Railway Vehicle Modelling by the Constraint Equation Method∗