Invia SMS: Constrained Optimal Control of Linear and Hybrid systems