Cloudslab / cloudsim

CloudSim: A Framework For Modeling And Simulation Of Cloud Computing Infrastructures And Services
http://www.cloudbus.org/cloudsim/
810 stars 492 forks source link

how to call optimizeAllocation method #113

Open imedBdr opened 6 years ago

imedBdr commented 6 years ago

i m working on cloudsim to implement an genetic algorithm to find the optimal placement of vms in hosts. in the begening i need to put vms randomly ( i created a class that extends from VmAllocationPolicy ) then i need to optimize vm allocation by migrating them to other hosts : i rode that i have to implement optimizeAllocation method inside my policy , i did it but i don't know how to execute it (optimizeAllocation)

imedBdr commented 6 years ago

I found the solution . I called it from data center by : datacenter0.getallocationpolicy().optimizeallocation()

ghost commented 4 years ago

Hi Tannerdak, When to invoke the datacenter0.getallocationpolicy().optimizeallocation() ?