Text this: Spline approach to optimal control problems with constraints.