Optimization on a muscle-driven 2D gait model