In this paper, we apply model predictive control (MPC) based on mixed H2/H to active vibration control of the flexibility of railway vehicle to improve ride quality. However, the flexibility in the body of high-speed railway vehicles creates difficulties which in practice may result in the body structure being heavier than what it is supposed to be. The use of active suspension helps to model the vehicle and its flexibility in an effective manner. Conventional control approaches are compared with linear matrix inequality MPC technique using flexible-bodied railway vehicle as an example. The result indicates that the MPC technique performs better in improving ride comfort compared to the passive and classical techniques when flexible modes are present.