Next Article in Journal
Flow-Induced Dynamic Behavior of Head-Cover Bolts in a Prototype Pump-Turbine during Load Rejection
Next Article in Special Issue
Equivalent Consumption Minimization Strategy of Hybrid Electric Vehicle Integrated with Driving Cycle Prediction Method
Previous Article in Journal
Estimation of the Interaction Forces in a Compliant pHRI Gripper
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time NMPC for Speed Planning of Connected Hybrid Electric Vehicles

1
School of Mechanical Engineering, Nanjing University of Science and Technology, Nanjing 210094, China
2
School of Mechanical Engineering, Southeast University, Nanjing 211189, China
*
Author to whom correspondence should be addressed.
Machines 2022, 10(12), 1129; https://doi.org/10.3390/machines10121129
Submission received: 28 October 2022 / Revised: 19 November 2022 / Accepted: 24 November 2022 / Published: 28 November 2022

Abstract

:
Eco-cruising is considered an effective approach for reducing energy consumption of connected vehicles. Most eco-cruising controllers (ECs) do not comply with real-time implementation requirements when a short sampling interval is required. This paper presents a solution to this problem. Model predictive control (MPC) framework was applied to the speed-planning problem for a power-split hybrid electric vehicle (HEV). To overcome the limitations of time-domain MPC (TMPC), a nonlinear space-domain MPC (SMPC) was proposed in the space domain. A real-time iteration (RTI) algorithm was developed to accelerate nonlinear SMPC computations via generating warm initializations and subsequently forming the SMPC-RTI. Proposed speed controllers were evaluated in a hierarchical EC, where a heuristic energy management strategy was selected for powertrain control. Simulation results indicated that the proposed SMPC yields comparable fuel savings to the TMPC and the globally optimal solution. Meanwhile, SMPC reduced MPC computation time by 41% compared to TMPC, and SMPC-RTI further reduced MPC computation time without compromising optimization. During the hardware-in-loop (HIL) test, the mean computation time was 9.86 ms, demonstrating potential for real-time applications.

1. Introduction

Electrification of vehicles is considered the most promising solution for reducing both fossil-fuel consumption and pollutant emissions produced by conventional vehicles [1]. Over the past decade, electric vehicles (EVs) and hybrid electric vehicles (HEVs) have experienced explosive growth, and their penetration of the market is expected to continue to rise [2]. Even though the market is prosperous, fuel and electricity consumption are still enormous, which is not environmentally friendly [3]. Therefore, from an application perspective, improving energy efficiency is crucial to realizing sustainable transportation [4].
An effective way to optimize a vehicle powertrain’s efficiency is through energy management (EM). Utilizing current demand power or predicted demand power, EM strategy is capable of regulating each component’s output while minimizing energy consumption [5]. Nevertheless, performance of EM is dependent on the driving cycle. EM generally indicates significant energy reductions in the city cycle but poor reductions in the highway cycle [6].
An additional way to improve energy-saving capabilities of electrified vehicles is to implement eco-driving techniques [7]. With the aid of network connectivity, the host vehicle can easily access information about the surrounding environment, allowing it to regulate its speed in an eco-friendly manner [8]. In the current literature, eco-driving is classified into two types: green-light optimal speed advisory (GLOSA) and eco-cruising. GLOSA is designed to reduce stops and abrupt accelerations based on upcoming traffic signals generated by vehicle-to-infrastructure (V2I) technology [9,10]. For eco-cruising, global navigation satellite system (GNSS) information is used to calculate optimal speed on various terrain types [11].
Eco-cruising methods have gained considerable attention in recent years, in part due to their ability to save energy, both for individual vehicles and for convoys [12,13]. Among these methods, dynamic programming (DP) is the most widely used, due to its ability to obtain the global optimum [14]. Because of the heavy computational burden induced by dimensionality, the DP method can only be used for offline evaluation or for benchmarking of other methods. In [15,16], both iterative DP and approximate DP were proposed to reduce computational burden. In spite of this, these DP-based methods are not suitable for real-time implementation. Another popular optimal theory that has been widely used for eco-cruising is Pontryagin’s maximum principle (PMP). Using PMP, it is possible to derive analytical solutions on a flat road [17]. When road slope is considered, PMP is required to solve a two-point boundary value problem iteratively, which is time-consuming. With a sampling interval of 0.5 s and a time horizon of 20 s, PMP’s average computation time was 0.46 s, which is regarded as clearly too long [18]. Reinforcement learning (RL) has been extensively studied for problems associated with eco-driving [19]. The Bellman equation is used in RL to optimize the cost-to-go value function. Because RL introduces approximations to improve computation efficiency, it can be used as a real-time eco-cruising controller [20]. As it is difficult to design a reward function that balances exploration and exploitation, RL may not provide satisfactory results for optimization [21].
The look-ahead control method, also known as model predictive control (MPC), incorporates both optimization performance and computational efficiency, and is thus regarded as one of the most promising methods in the associated field [22,23]. Problems in eco-cruising are typically formulated as linear time-domain MPC [18]. Since road slope depends solely on the position of the vehicle, it is necessary to estimate road slope during the implementation of time-domain MPC. This is the principal limitation of the time-domain method [24]. Through translation of time-domain MPC to space-domain MPC, this issue can be resolved [25,26]. However, this results in space-domain MPC that is no longer linear but rather nonlinear. An important obstacle to practical application of nonlinear MPC (NMPC) is difficulty of solving the optimal control problem (OCP) in real time [27]. Several customized algorithms have been proposed to respond to this challenge, including DP [28], which is fast, and the alternating direction method of multipliers (ADMM) algorithm [29]. Based on reported computation times, these algorithms are still inapplicable when the system sampling interval is short, such as 0.1 s.
Motivated by the discussion above, we propose a real-time NMPC for speed planning of a connected HEV. The main contributions of this paper are threefold: (1) Speed planning with forthcoming road information was formulated as NMPC in the space domain. NMPC captured accurate system behavior and avoided any approximations of road information that may have caused errors. (2) To accelerate calculation of NMPC, a real-time iteration algorithm is proposed. Through comparison of different speed controllers, efficacy of the RTI algorithm is revealed and analyzed. (3) We also introduced a hierarchical eco-cruising controller (EC) for the power-split HEV to evaluate proposed speed controllers. Simulations as well as hardware-in-loop (HIL) tests were conducted to assess fuel savings and real-time performance.
The remainder of this paper is organized as follows: Section 2 introduces the HEV model as well as the EC, which incorporates the high-level speed controller and the low-level powertrain controller. The MPC for speed planning is formulated in Section 3, where the RTI algorithm is also proposed. Results of simulations on a realistic road, as well as discussion, are presented in Section 4, while HIL tests are presented in Section 5. Section 6 concludes this paper.

2. HEV Model and Hierarchical EC

This study focuses on the power-split powertrain, which is the most common HEV powertrain. First, we present longitudinal dynamics of the vehicle, followed by modeling of the power-split powertrain. Next, a hierarchical EC is developed.

2.1. Vehicle Longitudinal Dynamics

The forces that retard a vehicle during driving include rolling resistance, gradient resistance, and air drag. Given vehicle acceleration, torque required by the vehicle at the powertrain output shaft can be derived as
T o = r k f [ m a + m g ( sin α + f cos α ) + 1 2 C D A f ρ v 2 ] ,
where r , k f , m , g , and v are wheel radius, final reduction ratio, vehicle mass, gravity acceleration, and vehicle velocity, respectively, and α denotes road slope. The parameters f , C D , A f , and ρ denote rolling-friction coefficient, aerodynamic drag coefficient, vehicle frontal area, and air density, respectively.

2.2. Power-Split Powertrain

An identifying characteristic of the power-split powertrain is that it employs planetary gear sets (PGSs) to decouple engine speed from vehicle speed. Therefore, the combustion engine can always operate at high efficiency in the power-split powertrain. Figure 1 depicts the lever diagram and power flow of the power-split HEV powertrain: T , ω , and F represent torque, rotational speed, and internal gear force of PGSs, respectively. In addition, R and S represent the ring radius and sun gear radius of PGS1 and PGS2, and subscripts e , m g 2 , m g 2 , o , 1, and 2 identify the engine, motor/generator 1 (MG1), motor/generator 2 (MG2), the powertrain output shaft, PGS1, and PGS2.
It is evident that PGS1 serves as a power-coupling device between the engine and MG1, while PGS2 serves as a reducer for MG2. Since rotational dynamics are much faster than battery dynamics, powertrain losses were ignored in this study [30]. Powertrain dynamics are given by:
ω o = v k f r ,   ω m g 2 = R 2 S 2 ω o
ω m g 1 = ( R 1 S 1 + 1 ) ω e R 1 S 1 ω o
T m g 1 = T e S 1 R 1 + S 1
T m g 2 = S 2 R 2 T o T e R 1 S 2 ( R 1 + S 1 ) R 2 .
Quasi-static models are usually used to model HEV components. According to the test data in [31], we developed several lookup tables to model powertrain components, as shown in Figure 2.
According to Figure 2a, the instantaneous fuel rate ( m ˙ ) is described as a map of engine speed ( ω e ) and engine torque ( T e ):
m ˙ = f 1 ( ω e ,   T e )
where T e is limited by the maximum value ( T e _ m a x ), i.e., the black line in Figure 2a. Optimal brake-specific fuel consumption (BSFC) torque trajectory was calculated offline and is depicted by the dotted red line. Figure 2b,c show efficiency maps for both motors, and their consumed power was calculated as follows:
P m g 1 = T m g 1 ω m g 1 η m g 1 k ( T m g 1 , ω m g 1 )
P m g 2 = T m g 2 ω m g 2 η m g 2 k ( T m g 2 , ω m g 2 )
where η m g 1 k and η m g 2 k are operating efficiencies of MG1 and MG2, respectively, and the superscript k signifies the mode of operation: k equals 1 for motor operations and −1 for generator operations.
An equivalent circuit model was developed for the Li-ion battery system:
P e n d = P m g 1 + P m g 2 = U o c I b I b 2 R b
where P e n d is power at battery terminals, I b is current (positive during discharge, negative during charging), U o c is open-circuit voltage, and R b is equivalent internal resistance. As shown in Figure 2d, both U o c and R b are related to battery state of charge (SOC). Through solving of Equation (9), I b can be determined as follows:
I b = U o c U o c 2 4 P e n d R b 2 R b
Therefore, the dynamic of SOC can be determined as follows:
d S O C d t = I b Q b = U o c U o c 2 4 P e n d R b 2 R b Q b
where Q b is battery capacity.

2.3. Hierarchical EC

With the help of vehicle-to-everything (V2X) technologies, it is possible to improve fuel efficiency of an HEV on two levels: energy management and speed control. There are two types of eco-cruising architectures: integrated and hierarchical. Even though the integrated type maximizes fuel savings, it suffers from a heavy computing burden as speed planning and energy management are solved simultaneously. As an alternative, we propose an EC based on hierarchical architecture, as illustrated in Figure 3.
Using the information from V2X communication, the high-level controller is responsible for calculating optimal speed. The low-level powertrain controller then executes power allocation, based on optimized speed and road slope, in the powertrain. This work focuses only on the design of the high-level speed controller; the low-level powertrain controller directly adopts the heuristic strategy that is employed in actual vehicles.

3. MPC Method and RTI Algorithm

As shown in Figure 3, speed planning was the first step in the EC. In this section, an approximated fuel model is presented as a preliminary step towards developing MPC. Conventional MPC in time domain is then formulated, followed by our MPC in the space domain. Lastly, the RTI algorithm was proposed in order to accelerate the process of solving receding optimizations.

3.1. Approximated Fuel Model

In consideration of an equilibrium SOC, fuel is the only source of energy. Accordingly, it is reasonable to assume that all of a vehicle’s demands are met by the engine, which is always operating on the BSFC (as shown in Figure 2a) [18].
Fuel consumption corresponding to different power demands is shown in Figure 4.
The solid blue line represents the fitted curve and is given by the following equation:
f 2 ( P V ) = β 2 P V 2 + β 1 P V + β 0
where P V is power demand. It is evident that Equation (12) is a good match to the original data. Fitting parameters β 2 , β 1 , and β 0 equal 1.95 × 10 10 , 5.35 × 10 5 , and 4.96 × 10 2 , respectively.

3.2. MPC Formulation in Time Domain

Speed-planning MPC is conventionally formulated in the time domain, with a sampling interval of Δ t . In this case, system states are vehicle speed ( v ) and vehicle location ( s ) , while the control variable is acceleration ( a ) . System state dynamics can be discretized as follows:
v k ( i + 1 ) = v k ( i ) + a ( i ) Δ t
s k ( i + 1 ) = s k ( i ) + v k ( i ) Δ t + 1 2 a ( i ) Δ t 2
where k is the instant when the prediction is made and i is the discrete time index. The vehicle power demand is
P V k ( i ) = v k ( i ) [ m a ( i ) + m g ( sin α ( s k ( i ) ) + f cos α ( s k ( i ) ) ) + 1 2 C D A f ρ ( v k ( i ) ) 2 ] = v k ( i ) [ m a ( i ) + F r o a d ( s k ( i ) ) + 1 2 k a i r ( v k ( i ) ) 2 ]
where F r o a d ( s k ( i ) ) is road resistance and k a i r denotes C D A f ρ .
Speed-planning MPC in the time domain can be summarized as follows:
min v k , a i = 1 N t f 2 ( P V k ( i ) ) Δ t
s.t. Equations (13)–(15) and
v k ( i ) [ v _ ( s k ( i ) ) , v _ ( s k ( i ) ) ]
a ( i ) [ a _ , a _ ]
P V k ( i ) [ P _ V , P _ V ]
v k ( 1 ) = v k ,       s k ( 1 ) = s k
v k ( N t ) ϕ f v ,       s k ( N t ) ϕ f s
where Equation (16a) gives the objective function, with N t representing the prediction horizon; Equations (16b–d) are constraints on system variables; and Equation (16e) sets the initial states to the current system states. In addition, final vehicle speed and vehicle location were specified by Equation (16f), where ϕ f v and ϕ f s are adjusted according to study scenario. We refer to MPC defined by Equation (16) as TMPC.

3.3. MPC Formulation in Space Domain

It is evident that in TMPC, both road resistance— F r o a d ( s k ( i ) ) and speed limits— v _ ( s k ( i ) ) , v _ ( s k ( i ) ) depend on vehicle location s k ( i ) . Therefore, F r o a d ( s k ( i ) ) has to be guessed in the time domain, which is an inherent drawback of the control in the time domain [24]. Solving the problem in the time domain would require fitting of F r o a d ( s k ( i ) ) as a nonlinear function of traveled distance. For long horizons and general slope profiles, this would be very difficult to carry out if we wanted to preserve accuracy. Another concern is speed limits. As we use them, speed limits are non-differentiable functions of distance, hence solving in the time domain would make the problem a mixed-integer nonlinear programming problem, which would be extremely difficult to solve.
To reduce computational complexity, we present a space-domain method with a sampling interval of Δ s . When a road prediction is made, both road resistance and speed limits remain constant throughout MPC solving. Furthermore, speed limits can be handled very efficiently by most solvers, as they are simply box constraints.
The nominal kinetic ( E = v 2 / 2 ) and its derivative with respect to distance are defined as:
d E d s = v d v d s = d v d t = a
which is then discretized into:
E k ( i + 1 ) = E k ( i ) + a ( i ) Δ s .
In the space-domain method, travel time ( t ) is now considered a state variable, and its discrete dynamics are given by:
t k ( i + 1 ) = t k ( i ) + Δ s 2 E k ( i ) .
In addition, vehicle power demand (Equation (15)) changes to:
P V k ( i ) = 2 E k ( i ) [ m a ( i ) + F r o a d ( i ) + k a i r E k ( i ) ] .
Speed-planning MPC in space domain can be summarized as follows:
min E k , a i = 1 N s f 2 ( P V k ( i ) ) Δ s 2 E k ( i )
s.t. Equations (18)–(20) and
E k 1 2 [ v _ 2 ( i ) , v _ 2 ( i ) ]
a ( i ) [ a _ , a _ ]
P V k ( i ) [ P _ V , P _ V ]
E k ( 1 ) = 1 2 ( v k ) 2 ,       t k ( 1 ) = k
E k ( N s ) ϕ f E ,       t k ( N s ) ϕ f t
where Equation (21a) gives the objective function, with N s representing the prediction horizon; Equations (21b–d) are constraints on system variables; and Equation (21e) sets the initial states to the current system states. In addition, final vehicle speed and vehicle location are specified by Equation (21f), where ϕ f E and ϕ f t are adjusted according to study scenario. MPC defined by Equation (21) is referred to as SMPC. For ease of understanding, Figure 5 compares SMPC and TMPC.

3.4. RTI Algorithm

The OCP in Equation (21) is nonlinear and non-convex, essentially making SMPC into non-convex NMPC. When the control system sets a short update interval, such as 0.1 s, computations must be completed in milliseconds. Unfortunately, NMPC is usually difficult to solve in real time, which limits its practical application in the automotive industry.
For NMPC to be more practicable, real-time optimization of controlled processes has become increasingly popular. Several real-time optimization methods are available, but RTI appears to be the most efficient, since it reduces computation time to a minimum while maintaining all the advantages of a fully nonlinear treatment [27]. Typical RTI focuses on convex NMPC and uses the sequential quadratic programming (SQP) algorithm, performing only one quadratic programming (QP) iteration per MPC update [26]. The RTI is seldom used in non-convex NMPC. We take a further step in this study and propose an RTI algorithm for non-convex NMPC (see Equation (21)).
Considering the sampling instants of the system— [ k 1 , k 2 , k 3 , ] = [ 0 s , 0.1 s , 0.2 s , ] —the RTI algorithm would proceed as Algorithm 1:
Algorithm 1 RTI
1: Start with the sampling instant ( k 1 ) and an initial guess for non-convex NMPC (16), i.e., X 0 k 1 = ( E 0 k 1 , t 0 k 1 , a 0 k 1 ) = ( 0 , 0 , 0 ) .
2: Perform the interior point (IP) algorithm until it converges, send optimal feedback control ( a 0 k 1 ( 1 ) ) to the system, and record the optimal solution as X o p t k 1 = ( E o p t k 1 , t o p t k 1 , a o p t k 1 ) . Move to the next sampling instant ( k 2 ) .
3: Extract the acceleration sequence ( a o p t k 1 ) from X o p t k 1 . Define a 0 k 2 as identical to a o p t k 1 , and generate E 0 k 2 and t 0 k 2 according to Equations (17) and (18). Construct the warm guess— X 0 k 2 = ( E 0 k 2 , t 0 k 2 , a 0 k 2 ) that approximates exact optimal results.
4: Perform the IP algorithm with maximum iteration times ( N R T I ) . Send a 0 k 2 ( 1 ) as the optimal feedback control. Record the optimal solution as X o p t k 2 = ( E o p t k 2 , t o p t k 2 , a o p t k 2 ) .
5: Move to the next sampling interval and return to step (3).
Through adoption of small N R T I values, the RTI algorithm can significantly reduce computation time required by the IP. Extensive analysis will be conducted in Section 4 to evaluate performance of the proposed RTI algorithm.

4. Simulation and Results

4.1. Simulation Settings

4.1.1. Reference Speed Controllers and EM Strategy

For comparison purposes, two reference speed controllers were developed: the constant-speed controller (CC) and the globally optimal controller (GOC). The GOC uses a custom DP algorithm involving efficient variable grids to achieve optimal speed throughout the entire driving journey [32].
As discussed in Section 2.3, a heuristic strategy was chosen for the low-level controller. In general, heuristic strategies use a vehicle’s current states as input to determine operating mode and powertrain output [33]. Here, the vehicle states are engine on/off state (denoted by σ ), vehicle power demand ( P V ), battery (SOC) and vehicle speed ( v ) . According to the published work in [34], we developed a heuristic strategy that is very similar to the real-life EM strategy. Table 1 provides a summary of operation modes as well as their decision rules. It should be noted that, in hybrid mode, desired battery power and engine output are determined by offline policies [34].
The thresholds used in the heuristic strategy are described in Table 2.
A detailed explanation of the heuristic strategy can be found in [34] and is not repeated here. In order to calibrate the heuristic strategy, we compared the experimental and simulation results, and the experimental data is provided in [31]. The comparison is illustrated in Figure 6. It can be seen that the established heuristic strategy produced similar results to those obtained with vehicle testing. Vehicle testing showed 527.38 g of total fuel consumption while the simulation showed 520.23 g, representing a difference of only 1.36%.
It is important to note that the heuristic strategy does not possess optimality and could influence fairness of comparison between speed controllers. However, the heuristic strategy is widely used in reality, so it will provide the engineer with greater insight into application of speed controllers.

4.1.2. Simulation Parameters

Other HEV parameters used in this study can be found in Table 3.
The following simulation was performed on a desktop computer (Intel i7-10700 CPU at 2.9 GHz and 16 GB RAM), using Matlab 2021b. Additionally, CasADi software with the IPOPT solver was selected to perform IP iteration [35].

4.2. Results and Discussion

4.2.1. Speed Planning Results

We conducted the EC on two real-life roads featuring many hills: the urban expressway between Xuanwu District Nanjing and Jurong Zhenjiang, and the motorway between Chengdu and Chongqing. Figure 7 presents road altitude derived from Google Elevation API. The high speed limit on the expressway is 80 km/h as required by law, while the low speed limit was artificially set at 60 km/h. In the case of the motorway, both the high and low speed limits were set at 100 km/h and 60 km/h, respectively.
The prediction distance was set at a default of 1000 m. Using an average speed of 70 km/h for the expressway, the desired travel time was 51.43 s. Furthermore, we hoped that the HEV would complete the predicted distance at a speed of 70 km/h. As a result, ϕ f v , ϕ f s , ϕ f E , and ϕ f t in TMPC and SMPC were set to 19.44 m/s, 1000 m, 189.03, and 51.43 s, respectively. The prediction horizons, N t and N s , were each set to 50, while the sampling intervals, Δ t and Δ s , were set to 1.0286 s and 20 m, respectively.
In the case of the motorway, the average speed was clearly set at 80 km/h. Considering the prediction horizon of 1000 m, the desired travel time was 45 s. We could easily obtain the MPC design parameters ϕ f v , ϕ f s , ϕ f E , ϕ f t , N t , N s , Δ t , and Δ s , as 22.22 km/h, 1000 m, 246.91, 45 s, 50, 50, 0.9 s, and 20 m, respectively. In the RTI algorithm, the maximum iteration times ( N R T I ) were set as 8.
For TMPC to impose road resistance, the nonlinear function F r o a d ( s ) is required. In order to fit actual road resistance, we selected the sum of sines, which is expressed as follows:
F r o a d ( s ) = j = 1 8 b j sin ( c j s + d j )
where b j , c j , and   d j are fitting parameters that need to be updated periodically. As an example, Figure 8 shows road resistance along the first predicted distance. It is evident that Equation (22) offers a reasonable approximation for the actual data.
Road altitude and vehicle speed results on the expressway are demonstrated in Figure 9. Because the EC system updates every 0.1 s, all of the following results are described in time coordinates. As can be seen, all speeds were strictly constrained within limits. By correlating SMPC speed results with altitude in Figure 9a, we can derive the following speed-planning features: acceleration before going uphill, deceleration during the uphill ascent, and acceleration during the downhill descent.
Compared to the MPC results, the speed trajectory of the GOC clearly shows a different amplitude. This is because the GOC forecasts the entire road, and DP is able to find possible optimal solutions. In addition, the GOC leads to a shorter travel time than that of other speed controllers.
In Figure 9b, it is evident that the three MPCs exhibited quite similar speed trajectories. A zoomed-in comparison of the three MPCs is illustrated in Figure 10. It is evident that the SMPC-RTI exhibits close results to those of SMPC, which indicates that the proposed RTI maintains good solution quality.
Figure 11 shows acceleration of all speed controllers. It can be seen from Figure 11 that vehicle acceleration was controlled within [−1, 1] m/s2, which ensured acceptable driving comfort for passengers.
Road altitude and results on the motorway are demonstrated in Figure 12. As can be seen, all MPC controllers and GOCs exhibited similar speed and acceleration results. Since the terrain in Figure 12a contains fewer hills than the terrain depicted in Figure 9a, the speed regulation on the motorway appears smoother than that on the expressway. Moreover, although there was a wide range of flexibility available, the controllers only regulated speed between [69, 91] km/h. This indicates that maximizing speed band usage may not always be necessary for optimal performance.

4.2.2. Powertrain Results

This subsection presents powertrain results, obtained with the EC, that incorporated the high-level speed controller and the low-level powertrain controller. As a convenience, we have included only the expressway case in this subsection.
Figure 13 illustrates SOC and battery power. As the heuristic strategy cannot guarantee SOC equality strictly, initial SOC in each EC was manually determined. Table 4 lists initial and terminal SOC of each controller; the two values are close to each other.
It is shown in Figure 13a that, when compared to the EC that adopted the CC, the ECs that adopted other speed controllers revealed a different SOC pattern. Similar phenomena can be observed in Figure 13b. Meanwhile, when speed was optimized, battery power trajectory appeared smoother.
An illustration of the engine points distribution is shown in Figure 14, along with a statistic regarding engine speed and torque.
It is clear from Figure 14b that through incorporation of SMPC and the GOC, the EC allows more engine operation at low speeds ([1100, 1900] rpm) and medium torque ([50, 90] Nm), thereby increasing fuel efficiency.

4.2.3. Fuel-Consumption Evaluation

Table 5 presents performance of the EC using different speed controllers on the expressway. As shown in Table 5, average speed in each group remained relatively close, as did SOC deviation. This contributed to fairness of the next fuel comparison. Using the CC, the EC consumed 558.22 g of fuel. Fuel consumption decreased significantly after other speed controllers were introduced. As compared to the CC, the GOC helped the EC save 8.06% of fuel. TMPC, SMPC, and SMPC-RTI also achieved fuel savings of 7.84%, 7.90%, and 7.68% for the EC, respectively. In conclusion, the proposed TMPC and SMPC provide suboptimal solutions to the speed-planning problem. Furthermore, the proposed RTI algorithm preserves quality of solution for NMPC.
Table 6 presents performance of the EC using different speed controllers on the motorway. In this case, the GOC assisted the EC in reducing fuel consumption by 4.30% compared to the CC. Furthermore, TMPC, SMPC, and SMPC-RTI achieved fuel savings of 4.32%, 4.30%, and 4.50% for the EC, respectively.
Please note that the fuel savings above are only attributed to the high-level speed controller. A further reduction in fuel consumption could be achieved via incorporation of advanced EM strategies into the low-level powertrain controller.

4.2.4. Computation-Time Evaluation

Figure 15 illustrates computation-time statistics for all MPC-based speed controllers. The mean computation time of the TMPC was 27.68 ms, which indicates that the optimal control for the current system was not available after 27.68 ms. In other words, the EC needs to perform the previous optimal control within 27.68 ms, which for the current system state was not optimal. Note that the sampling interval is 100 ms; therefore, the mean computation time of 27.68 ms may have negatively affected MPC performance in real time [27]. Furthermore, the fitting process of Equation (22) may be time-consuming, which would also impede application of conventional TMPC.
As shown in Figure 15, the mean computation time of the proposed SMPC was 16.33 ms, which represents a 41% reduction over that of TMPC. Through use of RTI, the mean computation time was further reduced to 7.14 ms. It was possible to accelerate that 7.14 ms by adopting a smaller N R T I . Consequently, we performed a sensitivity analysis of N R T I ; results are shown in Figure 16.
As shown in Figure 16, energy savings increase very slowly after N R T I equals 8. Consideration of the two indicators together suggests that N R T I should be set at 8.

5. Real-Time Implementation

An HIL test platform was established, as shown in Figure 17a, in order to examine the proposed SMPC’s real-time performance. In Figure 17b, the schematic for the HIL test is shown; the HEV model and the proposed EC were run on the dSPACE@ MicroLabBox and the dSPACE@ MicroAutoBox, respectively. CAN cables were used to connect the two testing boxes. Since MicroAutoBox has close hardware specifications to the onboard ECU, its test results are highly indicative of real-world behavior [36].
On the HIL test platform, ECs that included three different speed controllers—the CC, SMPC and SMPC-RTI—were evaluated. Real-time performance of the EC that used SMPC and SMPC-RTI is summarized in Table 7.
Table 7 illustrates that fuel savings achieved by HIL testing are comparable to those achieved via simulation in Table 5. The reason for this is that the same HEV model and sampling interval were adopted. In terms of computation time, both SMPC and SMPC-RTI displayed longer values in HIL tests than in simulations. According to Table 7, the mean computation time for SMPC-RTI was 9.86 ms, which is less than 1/8 of the sampling interval. SMPC-RTI is therefore capable of meeting requirements of potential onboard applications.

6. Conclusions

In this paper, we propose a real-time NMPC for a connected power-split HEV that is capable of optimizing driving speed on roads that feature many hills. Our proposed SMPC does not rely on guesses regarding road resistance, since it was designed in the space domain. When it was used as the top-level speed controller in a hierarchical EC, 7.90% and 4.32% fuel savings were achieved on a realistic expressway and on a motorway; this is slightly lower than the results for the EC that used the GOC. In addition, SMPC reduced computation time by 41% when compared to conventional TMPC that is designed in the time domain.
For the purpose of enhancing real-time performance, an RTI algorithm for solving SMPC, in which the solution of each previous update is used to generate warm initialization, was developed. Simulation results demonstrated that SMPC-RTI not only provides sufficient solution quality but also significantly reduces computation time. Testing on a HIL platform demonstrated that SMPC-RTI achieved a mean computation time of 9.86 ms, which suggests that it may be suitable for advanced real-time cruise control systems.
Future research should focus on modeling uncertain speed limits caused by traffic flow, which will enhance robustness of speed controllers.

Author Contributions

Conceptualization, F.J. and Q.W.; methodology, F.J.; software, F.J. and Y.Z.; validation, F.J. and W.Z.; formal analysis, F.J. and Y.Z.; investigation, F.J. and L.W.; resources, L.W.; data curation, F.J. and Y.Z.; writing—original draft preparation, F.J.; writing—review and editing, F.J. and Y.Z.; visualization, F.J.; supervision, L.W.; project administration, W.Z. and L.W.; funding acquisition, L.W. All authors have read and agreed to the published version of this manuscript.

Funding

This research was supported in part by the National Natural Science Foundation of China (Grant No. 52172383).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dai, Z.; Liu, H.; Rodgers, M.O.; Guensler, R. Electric vehicle market potential and associated energy and emissions reduction benefits. Appl. Energy 2022, 322, 119295. [Google Scholar] [CrossRef]
  2. Austmann, L.M. Drivers of the electric vehicle market: A systematic literature review of empirical studies. Financ. Res. Lett. 2021, 41, 101846. [Google Scholar] [CrossRef]
  3. Zhuge, C.; Wei, B.; Dong, C.; Shao, C.; Shan, Y. Exploring the future electric vehicle market and its impacts with an agent-based spatial integrated framework: A case study of Beijing, China. J. Clean. Prod. 2022, 322, 710–737. [Google Scholar] [CrossRef] [Green Version]
  4. Liu, T.; Tan, W.; Tang, X.; Zhang, J.; Xing, Y.; Cao, D. Driving conditions-driven energy management strategies for hybrid electric vehicles: A review. Renew. Sustain. Energy Rev. 2021, 151, 111521. [Google Scholar] [CrossRef]
  5. Gao, Y.; Yang, S.; Wang, X.; Li, W.; Hou, Q.; Cheng, Q. Cyber Hierarchy Multiscale Integrated Energy Management of Intelligent Hybrid Electric Vehicles. Automot. Innov. 2022, 1–15. [Google Scholar] [CrossRef]
  6. Ju, F.; Zhuang, W.; Wang, L.; Zhang, Z. Optimal sizing and adaptive energy management of a novel four-wheel-drive hybrid powertrain. Energy 2019, 187, 116008. [Google Scholar] [CrossRef]
  7. Guanetti, J.; Kim, Y.; Borrelli, F. Control of connected and automated vehicles: State of the art and future challenges. Annu. Rev. Control. 2018, 45, 18–40. [Google Scholar] [CrossRef] [Green Version]
  8. Vahidi, A.; Sciarretta, A. Energy saving potentials of connected and automated vehicles. Transp. Res. Part C Emerg. Technol. 2018, 95, 822–843. [Google Scholar] [CrossRef]
  9. Dong, H.; Zhuang, W.; Chen, B.; Yin, G.; Wang, Y. Enhanced eco-approach control of connected electric vehicles at signalized intersection with queue discharge prediction. IEEE Trans. Veh. Technol. 2021, 70, 5457–5469. [Google Scholar] [CrossRef]
  10. Nie, Z.; Farzaneh, H. Real-time dynamic predictive cruise control for enhancing eco-driving of electric vehicles, considering traffic constraints and signal phase and timing (SPaT) information, using artificial-neural-network-based energy consumption model. Energy 2022, 241, 122888. [Google Scholar] [CrossRef]
  11. Kamal, M.A.S.; Mukai, M.; Murata, J.; Kawabe, T. Ecological vehicle control on roads with up-down slopes. IEEE Trans. Intell. Transp. Syst. 2011, 12, 783–794. [Google Scholar] [CrossRef]
  12. Coppola, A.; Lui, D.G.; Petrillo, A.; Santini, S. Eco-Driving Control Architecture for Platoons of Uncertain Heterogeneous Nonlinear Connected Autonomous Electric Vehicles. IEEE Trans. Intell. Transp. Syst. 2022. early access. [Google Scholar] [CrossRef]
  13. Dong, H.; Zhuang, W.; Ding, H.; Zhou, Q.; Wang, Y.; Xu, L.; Yin, G. Event-driven Energy-efficient Driving Control in Urban Traffic for Connected Electric Vehicles. IEEE Trans. Transp. Electr. 2022. early access. [Google Scholar] [CrossRef]
  14. Uebel, S.; Murgovski, N.; Tempelhahn, C.; Bäker, B. Optimal energy management and velocity control of hybrid electric vehicles. IEEE Trans. Veh. Technol. 2017, 67, 327–337. [Google Scholar] [CrossRef]
  15. Ju, F.; Zhuang, W.; Wang, L.; Wang, Q. Iterative Dynamic Programming Based Model Predictive Control of Energy Efficient Cruising for Electric Vehicle with Terrain Preview. SAE Tech. Pap. 2020, 1, 132. [Google Scholar]
  16. Deshpande, S.R.; Jung, D.; Bauer, L.; Canova, M. Integrated approximate dynamic programming and equivalent consumption minimization strategy for eco-driving in a connected and automated vehicle. IEEE Trans. Veh. Technol. 2021, 70, 11204–11215. [Google Scholar] [CrossRef]
  17. Han, J.; Vahidi, A.; Sciarretta, A. Fundamentals of energy efficient driving for combustion engine and electric vehicles: An optimal control perspective. Automatica 2019, 103, 558–572. [Google Scholar] [CrossRef]
  18. Hu, J.; Shao, Y.; Sun, Z.; Wang, M.; Bared, J.; Huang, P. Integrated optimal eco-driving on rolling terrain for hybrid electric vehicle with vehicle-infrastructure communication. Transp. Res. Part C Emerg. Technol. 2016, 68, 228–244. [Google Scholar] [CrossRef]
  19. Ganesh, A.H.; Xu, B. A review of reinforcement learning based energy management systems for electrified powertrains: Progress, challenge, and potential solution. Renew. Sustain. Energy Rev. 2022, 154, 111833. [Google Scholar] [CrossRef]
  20. Lee, H.; Kim, K.; Kim, N.; Cha, S.W. Energy efficient speed planning of electric vehicles for car-following scenario using model-based reinforcement learning. Appl. Energy 2022, 313, 118460. [Google Scholar] [CrossRef]
  21. Wang, Q.; Ju, F.; Zhuang, W.; Wang, L. Ecological cruising control of connected electric vehicle: A deep reinforcement learning approach. Sci. China Technol. Sci. 2022, 65, 529–540. [Google Scholar] [CrossRef]
  22. Ghandriz, T.; Jacobson, B.; Murgovski, N.; Nilsson, P.; Laine, L. Real-time predictive energy management of hybrid electric heavy vehicles by sequential programming. IEEE Trans. Veh. Technol. 2021, 70, 4113–4128. [Google Scholar] [CrossRef]
  23. Cai, H.; Xu, X. Lateral Stability Control of a Tractor-Semitrailer at High Speed. Machines 2022, 10, 716. [Google Scholar] [CrossRef]
  24. Jia, Y.; Jibrin, R.; Görges, D. Energy-optimal adaptive cruise control for electric vehicles based on linear and nonlinear model predictive control. IEEE Trans. Veh. Technol. 2020, 69, 14173–14187. [Google Scholar] [CrossRef]
  25. Hamednia, A.; Sharma, N.K.; Murgovski, N.; Fredriksson, J. Computationally efficient algorithm for eco-driving over long look-ahead horizons. IEEE Trans. Intell. Transp. Syst. 2021, 23, 6556–6570. [Google Scholar] [CrossRef]
  26. Uebel, S.; Murgovski, N.; Bäker, B.; Sjöberg, J. A two-level mpc for energy management including velocity control of hybrid electric vehicles. IEEE Trans. Veh. Technol. 2019, 68, 5494–5505. [Google Scholar] [CrossRef]
  27. Diehl, M. Real-Time Optimization for Large Scale Nonlinear Processes. Ph.D. Thesis, University of Heidelberg, Heidelberg, Germany, 2001. [Google Scholar]
  28. Weißmann, A.; Görges, D.; Lin, X. Energy-optimal adaptive cruise control combining model predictive control and dynamic programming. Control Eng. Pract. 2018, 72, 125–137. [Google Scholar] [CrossRef]
  29. Zhang, Y.; Qu, X.; Tong, L. Optimal Eco-driving Control of Autonomous and Electric Trucks in Adaptation to Highway Topography: Energy Minimization and Battery Life Extension. IEEE Trans. Transp. Electrif. 2022, 8, 2149–2163. [Google Scholar] [CrossRef]
  30. Borhan, H.; Vahidi, A.; Phillips, A.M.; Kuang, M.L.; Kolmanovsky, I.V.; Cairano, S.D. Mpc based energy management of a power-split hybrid electric vehicle. IEEE Trans. Control. Syst. Technol. 2011, 20, 593–603. [Google Scholar] [CrossRef]
  31. Kim, N.; Rousseau, A.; Rask, E. Vehicle-level control analysis of 2010 Toyota Prius based on test data. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2012, 226, 1483–1494. [Google Scholar] [CrossRef]
  32. Bellman, R. Dynamic programming. Science 1966, 153, 3437. [Google Scholar] [CrossRef] [PubMed]
  33. Ju, F.; Murgovski, N.; Zhuang, W.; Hu, X.; Song, Z.; Wang, L. Predictive energy management with engine switching control for hybrid electric vehicle via ADMM. Energy 2022, 263, 125971. [Google Scholar] [CrossRef]
  34. Li, Y.; Lu, X.; Kar, N.C. Rule-based control strategy with novel parameters optimization using NSGA-II for power-split PHEV operation cost minimization. IEEE Trans. Veh. Technol. 2014, 63, 3051–3061. [Google Scholar] [CrossRef]
  35. Andersson, J.A.; Gillis, J.; Horn, G.; Rawlings, J.B.; Diehl, M. CasADi: A software framework for nonlinear optimization and optimal control. Math. Program. Comput. 2019, 11, 1–36. [Google Scholar] [CrossRef]
  36. Zhao, S.; Amini, M.R.; Sun, J.; Mi, C.C. A two-layer real-time optimization control strategy for integrated battery thermal management and hvac system in connected and automated hevs. IEEE Trans. Veh. Technol. 2021, 70, 6567–6576. [Google Scholar]
Figure 1. Lever diagram and power flow of the power-split HEV powertrain.
Figure 1. Lever diagram and power flow of the power-split HEV powertrain.
Machines 10 01129 g001
Figure 2. Component lookup tables for the powertrain: (a) engine, (b) MG1, (c) MG2, and (d) battery.
Figure 2. Component lookup tables for the powertrain: (a) engine, (b) MG1, (c) MG2, and (d) battery.
Machines 10 01129 g002
Figure 3. Hierarchical EC.
Figure 3. Hierarchical EC.
Machines 10 01129 g003
Figure 4. Fuel consumption corresponding to different power demands.
Figure 4. Fuel consumption corresponding to different power demands.
Machines 10 01129 g004
Figure 5. Comparison between TMPC and SMPC.
Figure 5. Comparison between TMPC and SMPC.
Machines 10 01129 g005
Figure 6. Heuristic strategy comparison between experiment and simulation.
Figure 6. Heuristic strategy comparison between experiment and simulation.
Machines 10 01129 g006
Figure 7. Two testing roads: (a) the expressway between Nanjing and Zhenjiang (19 km), and (b) the motorway between Chengdu and Chongqing (20 km).
Figure 7. Two testing roads: (a) the expressway between Nanjing and Zhenjiang (19 km), and (b) the motorway between Chengdu and Chongqing (20 km).
Machines 10 01129 g007
Figure 8. Road resistance along the distance.
Figure 8. Road resistance along the distance.
Machines 10 01129 g008
Figure 9. Road altitude and vehicle speed results on the expressway. (a) Road altitude against driving time in SMPC. (b) Vehicle speed results of different speed controllers.
Figure 9. Road altitude and vehicle speed results on the expressway. (a) Road altitude against driving time in SMPC. (b) Vehicle speed results of different speed controllers.
Machines 10 01129 g009
Figure 10. Comparison between three MPCs.
Figure 10. Comparison between three MPCs.
Machines 10 01129 g010
Figure 11. Acceleration of different speed controllers on the expressway.
Figure 11. Acceleration of different speed controllers on the expressway.
Machines 10 01129 g011
Figure 12. Road altitude and results on the motorway. (a) Road altitude against driving time in SMPC. (b) Vehicle speed results of different speed controllers. (c) Acceleration of different speed controllers.
Figure 12. Road altitude and results on the motorway. (a) Road altitude against driving time in SMPC. (b) Vehicle speed results of different speed controllers. (c) Acceleration of different speed controllers.
Machines 10 01129 g012
Figure 13. SOC and battery power of the EC using different speed controllers: (a) SOC, (b) battery power.
Figure 13. SOC and battery power of the EC using different speed controllers: (a) SOC, (b) battery power.
Machines 10 01129 g013
Figure 14. Engine results for the EC using different speed controllers: (a) engine-point distribution and (b) histogram of engine speed and torque.
Figure 14. Engine results for the EC using different speed controllers: (a) engine-point distribution and (b) histogram of engine speed and torque.
Machines 10 01129 g014
Figure 15. Computation-time statistics for speed controllers.
Figure 15. Computation-time statistics for speed controllers.
Machines 10 01129 g015
Figure 16. Results of the sensitivity analysis.
Figure 16. Results of the sensitivity analysis.
Machines 10 01129 g016
Figure 17. HIL (a) test platform and (b) schematic.
Figure 17. HIL (a) test platform and (b) schematic.
Machines 10 01129 g017
Table 1. Power-split HEV operation modes.
Table 1. Power-split HEV operation modes.
Operation ModesDecision Rules
Braking mode—mechanical braking P V < 0 S O C S O C _
Braking mode—regenerative braking P V < 0 S O C < S O C _
Electric mode 0 < P V P _ e v S O C S O C t a r g v v _ e v
Hybrid mode { σ = 0 0 < P V S O C < S O C t a r g }
{ σ = 0 P V > P _ e v } { σ = 0 v > v _ e v }
{ σ = 1 S O C S O C s e t }
Table 2. Thresholds of the heuristic strategy.
Table 2. Thresholds of the heuristic strategy.
ThresholdsDecision RulesValues
S O C _ Highest battery SOC0.8
S O C t a r g Target battery SOC during discharge0.5
S O C s e t Battery SOC set point during charging0.65
P _ e v Maximum power demand in electric mode9 kW
v _ e v Maximum vehicle speed in electric mode16 m/s
Table 3. Power-split HEV Prius 2013 parameters.
Table 3. Power-split HEV Prius 2013 parameters.
ParametersValues
Vehicle   mass   ( m ) 1450 kg
Aerodynamic drag coefficient0.28
Vehicle   front   area   ( A f ) 2.52 m2
Rolling   resistance   coefficient   ( f ) 0.015
Air   density   ( ρ ) 1.20 kg/m3
Gravitational   acceleration   ( g ) 9.81 m/s2
Wheel   radius   ( r ) 0.28 m
Final   reduction   ratio   ( A f ) 3.30
PGSs   parameter   ( R 1 / S 1 ,   R 2 / S 2 ) 3.60, 2.63
Maximum engine power/torque73 kW/142 Nm
Fuel consumed in restarting of engine 0.60 g
MG1 maximum power/torque42 kW/140 Nm
MG2 maximum power/torque60 kW/200 Nm
Battery   capacity   ( Q b )1.35 kWh
Table 4. Initial and terminal SOC of the EC using different speed controllers.
Table 4. Initial and terminal SOC of the EC using different speed controllers.
CCTMPCSMPCSMPC-RTIGOC
Initial SOC0.60000.58500.58500.58700.5850
Terminal SOC0.60300.58320.58290.58540.5832
Table 5. Performance of the EC using different speed controllers.
Table 5. Performance of the EC using different speed controllers.
CCTMPCSMPCSMPC-RTIGOC
Average speed (km/h)7069.6769.6369.5469.85
SOC deviation0.0030−0.0018−0.0021−0.0016−0.0018
Fuel consumption (g)558.22514.48514.12515.31513.24
Fuel savings (%)-7.847.907.688.06
Table 6. Performance of the EC using different speed controllers.
Table 6. Performance of the EC using different speed controllers.
CCTMPCSMPCSMPC-RTIGOC
Average speed (km/h)8079.2779.3779.3779.82
SOC difference *−0.0006−0.0007−0.0008−0.0007−0.0008
Fuel consumption (g)632.17605.01604.84604.96603.72
Fuel savings (%)-4.304.324.304.50
* SOC difference is deviation between initial and terminal SOC in Table 4.
Table 7. Real-time performance of ECs using two speed controllers: SMPC and SMPC-RTI.
Table 7. Real-time performance of ECs using two speed controllers: SMPC and SMPC-RTI.
SMPCSMPC-RTI
Fuel savings (%)7.887.67
Mean computation time (ms)23.659.86
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ju, F.; Zong, Y.; Zhuang, W.; Wang, Q.; Wang, L. Real-Time NMPC for Speed Planning of Connected Hybrid Electric Vehicles. Machines 2022, 10, 1129. https://doi.org/10.3390/machines10121129

AMA Style

Ju F, Zong Y, Zhuang W, Wang Q, Wang L. Real-Time NMPC for Speed Planning of Connected Hybrid Electric Vehicles. Machines. 2022; 10(12):1129. https://doi.org/10.3390/machines10121129

Chicago/Turabian Style

Ju, Fei, Yuhua Zong, Weichao Zhuang, Qun Wang, and Liangmo Wang. 2022. "Real-Time NMPC for Speed Planning of Connected Hybrid Electric Vehicles" Machines 10, no. 12: 1129. https://doi.org/10.3390/machines10121129

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop