Text this: Optimal Control of Hybrid Vehicles