Control strategy for optimal compromise between trip time and energy consumption in a high-speed railway | Synapse