Text this: Time-Energy Optimization of Motion of Multi-Robot System