In my experience, a convenient toolkit to implement Cloud scheduling algorithms is CloudSim, which is written in Java. Is a quite complete and robust simulation framework, with lot of code samples. Here (http://users.exa.unicen.edu.ar/~cmateos/files/journals/pacini2014-aes.pdf) you can find some algorithmic details on task/VM schedulers of our own based on genetic algorithms and swarm intelligence implemented over CloudSim. Unfortunately the associated source code is no longer available. Hope this helps!