cloudsim icon indicating copy to clipboard operation
cloudsim copied to clipboard

The simulation with energy consumption awareness failed

Open zijie1024 opened this issue 5 months ago • 10 comments

I'm running an energy-aware simulation as follows, but the console shows that the Datacenter, Host, and Vm all failed to be created. I can provide the full code if needed.

new PowerHost(
          i,
          new RamProvisionerSimple(HOST_RAM),
          new BwProvisionerSimple(HOST_BW),
          HOST_STORAGE,
          peList,
          new VmSchedulerTimeShared(peList),
          new PowerModelLinear(HOST_MAX_POWER, HOST_STATIC_POWER_PERCENT)
)
new PowerDatacenter(
        name,
        datacenterCharacteristics,
        new VmAllocationPolicySimple(hostList),
        new LinkedList<>(),
        Constants.SCHEDULING_INTERVAL
);
new DatacenterBroker(name)
new PowerVm(
          i,
          userId,
          VM_MIPS,
          VM_PE_NUM,
          VM_RAM,
          VM_BW,
          VM_SIZE,
          1,
          VM_VMM,
          new CloudletSchedulerTimeShared(),
          Constants.SCHEDULING_INTERVAL
)
Image

Additionally, I found that some CloudSim documents mention PowerHostUtilizationHistory and PowerDatacenterBroker, but these classes don't exist in the latest code.

Image Image

zijie1024 avatar Aug 09 '25 12:08 zijie1024