The invention relates to the technical field of double-source power supply, in particular to an
energy management method and device for a double-source power supply vehicle,
computer equipment and a medium. The method comprises the following steps: S1, acquiring various types of operation data of the double-source power supply vehicle in a
sliding time window; s2, predicting the predicted
energy consumption of the dual-source power supply vehicle in a prediction
time domain by using the trained
energy consumption prediction model based on the multiple types of operation data; s3, determining availability information of a
contact network for supplying power to the double-source power supply vehicle in the prediction
time domain, and battery constraint conditions and
pantograph constraint conditions of the double-source power supply vehicle; s4, taking the predicted
energy consumption, the availability information, the battery constraint condition and the
pantograph constraint condition as constraint conditions of the target function, and generating an energy configuration strategy by minimizing the target function; the energy configuration strategy comprises an
energy distribution strategy of the vehicle-mounted battery and the
pantograph, a pantograph operation strategy and a vehicle-mounted battery charging and discharging strategy. By adopting the method, energy switching can be carried out in time.