We consider a hypersonic vehicle optimal flight control problem. The problem is modeled as an optimal control problem of switched systems (OCPSS), which can become a parameter optimization problem (POP). Following that, to achieve the globally optimal solution of the POP, an improved continuous filled function (CFF) algorithm including one adjusting parameter is proposed based on a penalty function, in which the CFF is differentiable, excludes logarithmic terms or exponential terms, and does not require to minimize the cost function. Numerical results show that the proposed algorithm is effective.