Text this: Optimization and Optimal Control in Automotive Systems