Class CloudletToVmMappingSimulatedAnnealing
java.lang.Object
org.cloudsimplus.heuristics.HeuristicAbstract<CloudletToVmMappingSolution>
org.cloudsimplus.heuristics.SimulatedAnnealingAbstract<CloudletToVmMappingSolution>
org.cloudsimplus.heuristics.CloudletToVmMappingSimulatedAnnealing
- All Implemented Interfaces:
CloudletToVmMappingHeuristic,Heuristic<CloudletToVmMappingSolution>
public class CloudletToVmMappingSimulatedAnnealing
extends SimulatedAnnealingAbstract<CloudletToVmMappingSolution>
implements CloudletToVmMappingHeuristic
A heuristic that uses Simulated Annealing
to find a suboptimal mapping between a set of Cloudlets and VMs to reduce
the number of idle or overloaded Vm
Pes.- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from interface org.cloudsimplus.heuristics.CloudletToVmMappingHeuristic
NULL -
Constructor Summary
ConstructorsConstructorDescriptionCloudletToVmMappingSimulatedAnnealing(double initialTemperature, ContinuousDistribution random) Creates a Simulated Annealing Heuristic for solving Cloudlets to VMs mapping. -
Method Summary
Modifier and TypeMethodDescriptionCreates a neighbor-solution cloning a source one and randomly changing some of its values.Gets the initial solution that the heuristic will start from to try to improve it.Methods inherited from class org.cloudsimplus.heuristics.SimulatedAnnealingAbstract
getAcceptanceProbability, isToStopSearch, setCurrentTemperature, updateSystemStateMethods inherited from class org.cloudsimplus.heuristics.HeuristicAbstract
getRandomValue, setBestSolutionSoFar, setNeighborSolution, setSolveTime, solveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudsimplus.heuristics.CloudletToVmMappingHeuristic
getCloudletList, getVmList, setCloudletList, setVmListMethods inherited from interface org.cloudsimplus.heuristics.Heuristic
getAcceptanceProbability, getBestSolutionSoFar, getNeighborSolution, getRandomValue, getSearchesByIteration, getSolveTime, isToStopSearch, setSearchesByIteration, solve
-
Constructor Details
-
CloudletToVmMappingSimulatedAnnealing
public CloudletToVmMappingSimulatedAnnealing(double initialTemperature, ContinuousDistribution random) Creates a Simulated Annealing Heuristic for solving Cloudlets to VMs mapping.- Parameters:
initialTemperature- the system initial temperaturerandom- a pseudo-random number generator- See Also:
-
-
Method Details
-
getInitialSolution
Description copied from interface:HeuristicGets the initial solution that the heuristic will start from to try to improve it. If no initial solution was generated yet, one should be randomly generated.- Specified by:
getInitialSolutionin interfaceHeuristic<CloudletToVmMappingSolution>- Returns:
- the initial randomly generated solution
-
createNeighbor
Description copied from interface:HeuristicCreates a neighbor-solution cloning a source one and randomly changing some of its values. A neighbor solution is one that is close to the current solution and has just small changes.- Specified by:
createNeighborin interfaceHeuristic<CloudletToVmMappingSolution>- Parameters:
source- the source to create a neighbor solution- Returns:
- the cloned and randomly changed solution that represents a neighbor solution
-