I am trying to schedule the VMs into host machines using a swarm optimization (SO) technique to find an optimal solution. Can someone suggests some ideas?
Yes it is possible, you need to first write the optimization function. depending on your needs, it could be a single objective or a multi objective optimization function; once you have the function ready, it is trivial then to apply any swarm intelligence algorithm