Class VmAllocationPolicyBestFit

java.lang.Object
org.cloudbus.cloudsim.allocationpolicies.VmAllocationPolicyAbstract
org.cloudbus.cloudsim.allocationpolicies.VmAllocationPolicyBestFit
All Implemented Interfaces:
VmAllocationPolicy

public class VmAllocationPolicyBestFit extends VmAllocationPolicyAbstract
A Best Fit VmAllocationPolicy implementation that chooses, as the host for a VM, the one with the most number of PEs in use, which has enough free PEs for a VM.

This is a really computationally complex policy since the worst-case complexity to allocate a Host for a VM is O(N), where N is the number of Hosts. Such an implementation is not appropriate for large scale scenarios.

NOTE: This policy doesn't perform optimization of VM allocation by means of VM migration.

Since:
CloudSim Plus 3.0.1
Author:
Manoel Campos da Silva Filho
See Also: