Text this: Optimization and optimal control :