Text this: Constrained Optimal Control of Linear and Hybrid Systems