Keywords

1 Introduction

The FC is a future development path for new energy vehicles with the advantages of zero emissions and zero pollution [1]. Furthermore, a fuel cell hybrid electric vehicle (FCHEV) has the characteristics of a fuel cell and battery [2]. Therefore, improving energy management is very important for FCHEVs [3].

Currently, Rule-based and optimization-based strategies are the two primary categories of EMSs [1]. The rule-based strategy is relatively simple and has a small amount of calculation [4]. However, the rule-based strategy has the disadvantage of poor adaptability and cannot get a good vehicle energy-saving effect under changeable working conditions [5, 6].

The energy management strategy based on optimization has strong adaptability and can improve the energy-saving effect of vehicles [7, 8]. Based on double-loop dynamic programming, Hou suggested an approach for managing and optimising battery size. The results show that dynamic programming (DP) provides more accurate results [9]. Yangzhou has studied a new energy management strategy based on MPC, which can save more than 3.79% of hydrogen consumption [10]. Although the MPC-based control strategy cannot provide the ideal global solution, it can forecast future working conditions and requires less computation than the dynamic programming technique [11, 12].

In recent years, many scholars have combined the external traffic information of vehicles with energy management, carried out speed planning for different vehicle operating conditions, and put forward targeted energy management [13, 14]. Guo Jinquan suggested an intersection speed planning-based real-time energy management technique for fuel cell electric hybrid buses, which reduces hydrogen consumption by 3.04% when compared to the previous strategy [15]. The fuel cell electric hybrid bus (FCHEB), as a widely used type of fuel cell system, has its unique traffic mode. As a unique working condition of FCHEB, inbound and outbound stations account for a large proportion of the process of FCHEB operation, so the energy management of FCHEB in this situation is essential.

The fuel cell hybrid power system and the vehicle longitudinal dynamics model are established in this work using an FCHEB as the research object. The traffic network at the bus station is constructed using intelligent traffic simulation software to replicate the real-world traffic scenario. According to the simulation data provided by the traffic simulation software, the speed planning is carried out within the range of 100 m before and after the bus station. And then, to boost the economy, energy management based on MPC is implemented. The technical framework of this article is shown in Fig. 1.

Fig. 1.
figure 1

Energy Management Strategy of fuel Cell buses in and out of station based on Speed Optimization.

2 Construction of Traffic Simulation Environment

This paper uses SUMO to construct a traffic simulation environment, which can quickly build a traffic network and design vehicles and traffic flow in the road network [16]. This study focuses on the energy management within 100 m before and after the bus station entry and exit. Still, the working condition of an entry and exit station is too simple. Therefore, this paper studies the scene conditions of 10 times bus entering and leaving the station and establishes a ring road network. By controlling the controlled vehicles to extend the cycle of the ring road network, the traffic information of the bus entering and leaving the station ten times is obtained, and only the traffic information within the range of 100 m before and after the bus stop is extracted. The vehicle information in the simulation environment is shown in Table 1.

Table 1. Vehicle types and their corresponding period and car-following models.

3 FCHEB Model

This section details the modeling process of FCHEB. The configuration information of FCHEB is shown in Table 2.

Table 2. Parameter of FCHEB power system.

3.1 Drive Motor Model

According to the principle of vehicle dynamics, the drive model of motor is established as Eqs. (1)–(3), where the influence of slope resistance is ignored.

$${n}_{\mathrm{g}}=60u/R/i/2\pi $$
(1)
$$ T_{{\text{m}}} = R(mgf_{{\text{d}}} + AC_{{\text{d}}} u^{2} /21.15 + ma)/i $$
(2)
$${P}_{\mathrm{m}}=\left\{\begin{array}{c}{T}_{\mathrm{m}}{n}_{\mathrm{g}}2\pi /60/{\eta }_{\mathrm{m}} ,{T}_{\mathrm{m}}\ge 0\\ {\eta }_{\mathrm{m}}{T}_{\mathrm{m}}{n}_{\mathrm{g}}2\pi /60 , {T}_{\mathrm{m}}<0\end{array}\right.$$
(3)

where, \({n}_{\mathrm{g}}\) is the drive motor speed, \({T}_{\mathrm{m}}\) is the motor torque, \({P}_{\mathrm{m}}\) is the motor power, \(u\) is the speed of FCHEB, \(a\) is the acceleration of FCHEB, \({\eta }_{\mathrm{m}}\) is the motor efficiency.

3.2 Fuel Cell Hybrid Power System Model

This paper uses the data-driven modelling method because the data-driven approach can reduce computational costs and model errors [17]. Using test data, create a look-up table model for the FC stack and DC/DC. The battery system is modelled using the Rint equivalent current model [18], and the battery power is expressed as Eqs. (4)–(9).

$$ P_{{{\text{bat}}}} = P_{{\text{m}}} - P_{{{\text{fc}}}} \eta_{{{\text{DC}}/{\text{DC}}}} $$
(4)
$$ I_{{{\text{bat}}}} = \left( {V_{{{\text{oc}}}} - {\text{sqrt}}\left( {V_{{{\text{OC}}}}^{2} - 4R_{{{\text{int}}}} P_{{{\text{bat}}}} } \right)} \right)/{2}/R_{{{\text{int}}}} $$
(5)
$$ U_{{{\text{bat}}}} = V_{{{\text{OC}}}} - P_{{{\text{bat}}\_{\text{req}}}} R_{{{\text{int}}}} /10 $$
(6)
$$ P_{{{\text{bat}}}} \, = \,I_{{{\text{bat}}}} \, \times \,U_{{{\text{bat}}}} $$
(7)
$$ \Delta SOC\, = \,\left( {V_{{{\text{oc}}}} - {\text{sqrt}}\left( {V_{{{\text{OC}}}}^{2} - 4R_{{{\text{int}}}} P_{{{\text{bat}}}} } \right)} \right)/2/R_{{{\text{int}}}} /Q_{{{\text{bat}}}} $$
(8)
$$ C_{{{\text{bat}}}} = \left\{ {\begin{array}{*{20}c} {\alpha P_{{{\text{bat}}}} ,P_{{{\text{bat}}}} \ge 0} \\ {\beta P_{{{\text{bat}}}} , P_{{{\text{bat}}}} < 0} \\ \end{array} } \right. $$
(9)

where, \({I}_{\mathrm{bat}}\) is the circuit current, \({V}_{\mathrm{oc}}\) is the open circuit voltage, \({R}_{\mathrm{int}}\) is the internal resistance, \({P}_{\mathrm{bat}}\) is the battery output power, \({P}_{\mathrm{fc}}\) is the fuel cell stack output power, \({\eta }_{DC/DC}\) is the DC/DC efficiency, \({U}_{\mathrm{bat}}\) is the battery voltage, ΔSOC is the change of the SOC, \({Q}_{\mathrm{bat}}\) is the battery capacity, \({C}_{\mathrm{bat}}\) is the battery equivalent hydrogen consumption, \(\alpha \) and \(\beta \) are the weight parameters after the test, respectively.

Fuel cell hydrogen consumption and battery equivalent hydrogen consumption are used to calculate the overall hydrogen consumption, such as Eq. (10).

$${C}_{\mathrm{all}}={C}_{\mathrm{fc}}+{C}_{\mathrm{bat}}$$
(10)

4 Energy Management of FCHEB with Optimized Speed

4.1 Speed Optimization Based on DP

Speed planning is carried out for the distance range of 100 m before and after the bus stop, and an optimal speed sequence is planned by using DP. It is worth noting that, different from the previous speed planning, the space-based method is used to design the speed. The disturbance of the speed planning system is the distance, that is, the spread of the cycle composed of ten “one hundred meters before and after the bus stop”, and the total length is 2000 m. The vehicle's acceleration serves as the control quantity, while the speed and time serve as the state quantity. The speed planning algorithm aims to reduce energy consumption as much as possible when ensuring a distance of 100 m before and after a certain speed passes through the bus station. It is clear from the energy consumption calculation formula in Sect. 3 that the overall energy consumption is influenced by the power of the power system. Here, the energy consumption is substituted by a reduction in total power consumption, preventing the calculation error brought on by the model's complexity. The objective function is shown in Eq. (11).

$${J}_{\mathrm{dp}}=min\sum_{n= i}^{N}{P}_{\mathrm{m}}\left({u}_{n},{a}_{n}\right) i=\mathrm{1,2},3\cdots N$$
(11)

where, n is the simulation step, N is the whole simulation duration.

The physical constraints of the DP speed optimization system are shown in Eq. (12).

$$\left\{\begin{array}{c}{u}_{\mathrm{min}}\le u\le {u}_{\mathrm{max}}\\ {a}_{\mathrm{min}}\le a\le {a}_{\mathrm{max}}\\ u\left(n+1\right)=\sqrt{2na\left(k\right)+{u}^{2}(k)}\end{array}\right.$$
(12)

4.2 Energy Management Based on MPC

This section will implement the energy management of the FCHEB power system. A proposed predictive energy management system based on MPC takes the speed sequence that DP planned as the reference trajectory. The energy consumption is optimised by using the battery SOC and FC power as state variables, the fuel cell change rate as the control quantity, the disturbance as the speed and acceleration, and the power distribution. In addition, to prevent the power battery from being charged all the time, the SOC of the battery has been maintained at a higher position which is not conducive to energy efficiency. And to prevent the battery current from being too large, SOC and current are added to the cost function, which is shown in Eq. (13).

$${J}_{\mathrm{mpc}}=min\sum ({C}_{\mathrm{all}}+\gamma \left(SOC-{SOC}_{\mathrm{ref}}\right)+\delta \left|{I}_{\mathrm{bat}}\right|)$$
(13)

where, \({SOC}_{\mathrm{ref}}\) is the reference SOC, \(\gamma \) and \(\delta \) are weight coefficients, respectively.

The physical constraints of power system energy management are shown in Eq. (14).

$$\mathrm{Motor}\left\{\begin{array}{c}{P}_{\mathrm{m}\_\mathrm{min}}\le {P}_{\mathrm{m}}\le {P}_{\mathrm{m}\_\mathrm{max}}\\ {T}_{\mathrm{m}\_\mathrm{min}}\le {T}_{\mathrm{m}}\le {T}_{\mathrm{m}\_\mathrm{max}}\end{array}\right.$$
$$\mathrm{Fuel\, Cell}\left\{\begin{array}{c}{P}_{\mathrm{fc}}\left(k+1\right)= {P}_{\mathrm{fc}}\left(k\right)+\Delta {P}_{\mathrm{fc}}(k)\\ 0<{P}_{\mathrm{fc}.\mathrm{min}}\le {P}_{\mathrm{fc}}\le {P}_{\mathrm{fc}.\mathrm{max}}\end{array}\right.$$
(14)
$$\mathrm{Battery}\left\{\begin{array}{c}{P}_{\mathrm{bat}.\mathrm{min}}\le {P}_{\mathrm{bat}}\le {P}_{\mathrm{bat}.\mathrm{max}}\\ {SOC}_{\mathrm{min}}\le SOC\le {SOC}_{\mathrm{max}}\end{array}\right.$$

5 Simulation Results and Discussions

The proposed EMS is simulated and verified in this section based on the Matlab & SUMO co-simulation platform. The space-based velocity trajectory planned by DP is transformed into a time-step-based velocity trajectory, as shown in Fig. 2. Since the maximum power consumption is limited, and the designed working condition is that the distance between two bus stops is only 200m, so the speed is not high. The bottom of the curve is the average speed of the simulated bus when it stops at the bus stop.

Fig. 2.
figure 2

DP-based speed planning curve.

According to Fig. 3, which shows that the suggested MPC strategy based on speed optimization almost matches the SOC trajectory based on the DP approach, battery power is consumed, which is consistent with the functional characteristics of FCHEB. Additionally, the proposed strategy’s SOC trajectory fluctuates more, which is more in keeping with the actual working circumstances. Contrarily, the simulation duration is longer and the SOC curve decreases slowly for the MPC method without speed planning, showing the suggested strategy’s quick reaction to changes in operating conditions.

Table 3 compares the energy consumption of the proposed speed-optimized MPC strategy, the MPC strategy without speed optimization, and the strategy based on DP. The energy consumption of MPC strategy based on speed optimization is close to that of DP and slightly higher than that of DP. In contrast, the energy consumption of MPC without speed optimization is higher due to the influence of SUMO simulation software and 26.47% higher energy consumption than the proposed strategy.

Fig. 3.
figure 3

The FCHEB SOC change curve.

The power following situation of the proposed EMS is shown in Fig. 4. \({P}_{\mathrm{m}}\) is satisfied by both \({P}_{\mathrm{fc}}\) and \({P}_{\mathrm{bat}}\). Due to the control of the FC change rate by the MPC strategy, the FC constantly fluctuates in a minimal range, which is in line with the fact that the FC cannot change back and forth in the extensive power range. Furthermore, since the SOC is high and the demand power is not high, the FC always works around a small value and charges the battery, which is in line with the characteristic that FCHEB does not need to charge the battery.

Table 3. Consumption of hydrogen under different strategies
Fig. 4.
figure 4

The power following the situation of the proposed EMS.

6 Conclusion

This study addresses the bus in and out of the station through energy management optimization, and a hierarchical predictive EMS based on speed optimization is proposed. Based on time and speed, an optimal speed sequence is planned on the spatial step based on the DP planning algorithm as the reference trajectory of the following energy management, and MPC method is utilised for energy management in the lower level. Simulation is utilised to confirm the viability of the suggested control strategy, and it results in a 26.47% reduction in energy consumption when compared to the EMS without speed optimization.