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 Worst Fit VmAllocationPolicy implementation that chooses, as the host for a VM, that one with the most number of PEs in use, which are enough 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:
VmAllocationPolicyFirstFit, VmAllocationPolicyWorstFit