Aircraft aeroservoelastic compensation using constrained optimization