Real-time Optimization in Aerospace Systems