Constrained Differential Dynamic Programming Solver for Trajectory Optimization and Model Predictive Control ...