Title: Optimization and control of nonlinear systems with inflight constraints