I've been working with CloudSim for a while now. You need a good Java base to start with. Then it becomes easy to use and get what you want. It has example classes and straight forward comments in its classes. I have a paper on VM migration https://www.researchgate.net/publication/277930968_The_Effects_of_Hotspot_Detection_and_Virtual_Machine_Migration_Policies_on_Energy_Consumption_and_Service_Levels_in_the_Cloud. The source code for CloudSim is also available: https://www.researchgate.net/publication/303896687_PowerVmSelectionPolicyMaximumUtilization.
All I did was writing this small class and updating PlanetLabRunner class. And there you have what you were looking for.
Now, for placement you're looking at PowerVmAllocationPolicy classes (instead of PowerVmSelectionPolicy). There are multiple policies already included in the package. They are from this paper: "Optimal online deterministic algorithms and adaptive heuristics for energy and performance efficient dynamic consolidation of virtual machines in Cloud data centers" by Anton Beloglazov and Rajkumar Buyya.
I recommend having a read of the papers and relating them to the classes in CloudSim.
All the best,
Sahar Sohrabi
Article The Effects of Hotspot Detection and Virtual Machine Migrati...
Dear Sahar thanks alot for guiding me .... You are right ! I would read the papers you shared..but one more thing..If I want to apply the multi objective optimization by using new evolutionary algorithms for vm placement...then will these default classes in cloudsim be applicable? or no ?
This paper may help you: "Multi-objective Virtual Machine Placement with Service Level Agreement: A Memetic Algorithm Approach". visit the following URL: