do optimization for several robots