Derivative-Free Motion Optimization For Animated Characters