Optimizing robotic swarm based construction tasks