In this paper, an optimal control problem for aero-engines based on a switched linear parameter varying (LPV) model is solved. Firstly, according to the change of external flight conditions, a switched LPV model with different altitudes and Mach numbers is established for aero-engines. Then, since the optimal control of the parameter-dependent switched system cannot be dealt with by traditional methods, we thus propose an optimal control method for the switched LPV system, which includes solving the optimal continuous inputs and the optimal switching instants. Finally, simulations and a hardware in-the-loop test of an aero-engine control system are presented to verify the effectiveness and superiority for the proposed optimal control method.