11 Ex 4444 Je
11 Ex 4444 Je
11 Ex 4444 Je
LiTH-ISY-EX--11/4444--SE
Sammanfattning
Abstract
Nyckelord
Keywords MPC, series-parallel HEV, Hildreths procedure, Quadratic Programming, plug-in
HEV
Abstract
The automotive industry is required to deal with increasingly stringent legislation
for greenhouse gases. Hybrid Electric Vehicles, HEV, are gaining acceptance as the
future path of lower emissions and fuel consumption. The increased complexity
of multiple prime movers demand more advanced control systems, where future
driving conditions also becomes interesting. For a plug-in Hybrid Electric Vehicle,
PIHEV, it is important to utilize the comparatively inexpensive electric energy
before the driving cycle is complete, this for minimize the cost of the driving cycle,
since the battery in a PIHEV can be charged from the grid. A strategy with length
information of the driving cycle from a global positioning system, GPS, could
reduce the cost of driving. This by starting to blend the electric energy with fuel
earlier, a strategy called blended driving accomplish this by distribute the electric
energy, that is charged externally, with fuel over the driving cycle, and also ensure
that the battery’s minimum level reaches before the driving cycle is finished. A
strategy called Charge Depleting Charge Sustaining, CDCS, does not need length
information. This strategy first depletes the battery to a minimum State of Charge,
SOC, and after this engages the engine to maintain the SOC at this level. In this
thesis, a variable SOC reference is developed, which is dependent on knowledge
about the cycle’s length and the current length the vehicle has driven in the cycle.
With assistance of a variable SOC reference, is a blended strategy realized. This
is used to minimize the cost of a driving cycle. A comparison between the blended
strategy and the CDCS strategy was done, where the CDCS strategy uses a fixed
SOC reference. During simulation is the usage of fuel minimized; and the blended
strategy decreases the cost of the driving missions compared to the CDCS strategy.
To solve the energy management problem is a model predictive control used. The
designed control system follows the driving cycles, is charge sustaining and solves
the energy management problem during simulation. The system also handles
moderate model errors.
Sammanfattning
Fordonsindustrin måste hantera allt strängare lagkrav mot utsläpp av emissio-
ner och växthusgaser. Hybridfordon har börjat betraktas som den framtida vägen
för att ytterligare minska utsläpp och användning av fossila bränslen. Den ökade
komplexiteten från flera olika motorer kräver mera avancerade styrsystem. Be-
gränsningar från motorernas energikällor gör att framtida förhållanden är viktiga
att estimera. För plug-in hybridfordon, PIHEV, är det viktigt att använda den
v
Contents
1 Introduction 1
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Related Research 3
2.1 Dynamic Programming . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1.1 Deterministic Dynamic Programming . . . . . . . . . . . . 4
2.1.2 Stochastic Dynamic Programming . . . . . . . . . . . . . . 4
2.2 ECMS and A-ECMS . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3 MPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.4 Blended Vs. CDCS . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.5 Ideas for this thesis . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Problem formulation 9
3.1 Supervisory Control System . . . . . . . . . . . . . . . . . . . . . . 9
3.2 Utilization of GPS . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3 Drive cycles and driver . . . . . . . . . . . . . . . . . . . . . . . . . 10
5 System Modeling 17
5.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.2 Internal combustion engine . . . . . . . . . . . . . . . . . . . . . . 17
5.3 Motor and Generator . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.4 Battery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.5 Drive train . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.5.1 Planetary gear set . . . . . . . . . . . . . . . . . . . . . . . 21
5.5.2 Torque Coupler and final drive . . . . . . . . . . . . . . . . 22
5.5.3 Longitudinal vehicle model . . . . . . . . . . . . . . . . . . 24
5.5.4 Dynamic Model . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.6 Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
ix
x Contents
7 Results 37
7.1 Step response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
7.1.1 Acceleration . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1.2 CDCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
7.2 Sampling time and control horizon . . . . . . . . . . . . . . . . . . 42
7.3 Robustness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.4 Utilization of GPS . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7.4.1 Highway, Urban and City driving . . . . . . . . . . . . . . . 46
7.4.2 City driving . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
7.4.3 Highway driving . . . . . . . . . . . . . . . . . . . . . . . . 47
8 Conclusions 51
8.1 Step response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.2 Sampling time and control horizon . . . . . . . . . . . . . . . . . . 52
8.3 Robustness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.4 Utilization of GPS . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
8.5 Future work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Bibliography 55
Chapter 1
Introduction
This master thesis project was carried out at Infineon Automotive Electronics Joint
Lab, State Key Lab of Engines, Tianjin University. The objective of the thesis is
to design a control strategy, that aims to handle the energy management problem
for a series-parallel plug-in hybrid electric vehicle. The controller are assisted with
a global positioning system.
1.1 Background
Environmental impact from vehicles has recently been under strong debate, de-
mands from customers and politicians urge the automotive industry to take respon-
sibility for pollutions and greenhouse gases. Sustainable and less energy consuming
methods of travel are going to be important for the future automotive manufac-
turers. A hybridization of an electrical and a conventional vehicle increases pos-
sibilities of a higher overall efficiency, compared to a conventional vehicle. The
hybrid electric vehicle is called HEV, and the plug-in HEV, PIHEV. The PIHEV
can charge the battery from the grid. The extra energy source provides electric
energy, which compared with energy from fuel is considered relatively inexpensive
and localy lower emissions. To fully utilize the benefits of the PIHEV, the control
system is required to:
1
2 Introduction
1.2 Outline
In chapter 2 related research is discussed and the problem formulation is defined
in chapter 3. Aspects of using a model predictive control system; as well aspects
of utilizing a global positioning system, GPS, are also discussed. The chapter 4
describes the architecture of different hybrid electric vehicle systems. A system
model and supervisory control system is designed in chapters 5 and 6, the results
and conclusions is presented in chapters 7 and 8, where ideas of future work also
is presented.
Chapter 2
Related Research
Control system for HEV’s can be divided into two main groups, one is called op-
timal controller, and the other is rule-based controller. The rule-based controller
uses rules that are based on experience and engineering judgement. In this thesis
a controller that is based on an optimal control strategy is developed.
The optimal controller is based on finding the optimal control law based on a
certain criterion. For HEV’s, the control law will depend on the driving cycle.
Therefore to find the optimal control for a driving cycle, the entire cycle needs to
be known. This is referred to as finding the global optimum. The equation (2.1)
describes the cost function that are minimized, and ~u denotes the control variable.
The end-time of the driving cycle is denoted tend and the function f (q) is the
cost associated with the electric energy usage. The energy level of the battery is
described by its state of charge, denoted as q~(u(t)), where one is full and zero is a
battery that is completely depleted.
tZend
h i
Jcost = min ṁf uel ~u(t) + f q(~u(t)) dt (2.1)
~
u
0
The equation requires that information about the future driving mission is avail-
able; naturally this causes issues with implementation, due to difficulties of predict-
ing the future driving conditions. The more frequent use of a GPS, can overcome
some of these shortcomings. Further it provides the possibility to come closer to
the global optimum of the entire driving cycle. By using GPS to predict the future
route, future power demands can be estimated and utilized to improve the fuel
economy.
3
4 Related Research
Figure 2.1. All possible costs over a finite time are evaluated to find the sequence that
have the smallest total cost. Jn is representing the cost at time step n, depending on
what the control variable is selected to, where ~
un is the control variable at time step n.
In [2] and [8] a developed ECMS controller where using adaption of the weighting
factor to maintain charge sustenance for the battery. The adaption uses a variable
weighting factor that are between a factor that is favoring charging the battery and
a factor that is favoring discharging the battery. This is called adaptive equivalent
consumption minimization strategy, A-ECMS, and solved the problem when an
ECMS strategy is not charge sustaining.
2.3 MPC
Model predictive control, MPC, can utilize different methods of solving the opti-
mization problem. By using a model of the system, future states can be predicted.
In [4] Quadratic Programming, QP, is used for solving the optimization problem.
Figure 2.2. The plant model is used to predict future states as a function of the control
variable with assumption of future torque’s demands from the driver. The control variable
is denoted ~ x. The variables Td1 and Td2 is showing different assumption
u and the states as ~
of future torque’s demands.
the driver’s demanded torque is constant during the prediction horizon, and Td2
assumes that it is decreasing. In this article rules depending on the magnitude
of the torque’s demands from the driver is used to modeling the driver’s torque
demands over the prediction horizon. A substantial amount of the ideas in this
thesis originates from this article.
Figure 2.3. Blended driving is the dashed line and the Charge Depleting Charge Sus-
taining, CDCS, is the solid line. The grey area is representing the All Electric Range,
AER.
The relative inexpensive energy from the battery is required to be used as much
as possible to minimize the cost to driving the vehicle. The batteries energy level
is described by its state of charge, SOC. This can be accomplished with two strate-
gies, both is shown in figure 2.3. The gray area shows the All Electric Range, AER,
which is the length that vehicle can drive on exclusively using electric energy. A
strategy that is called Charge Depleting Charge Sustaining strategy, called CDCS
strategy, uses all the electrical energy until the battery reaches the minimum level
of SOC, before it begins to utilize energy from the fuel. The other strategy has
knowledge about the mission’s length and is using energy from fuel earlier than the
CDCS strategy. This strategy is called blended driving and has slower depletion
of energy in the battery. In [10] is it shown, that from the start of a driving cycle,
blending the use of energy from the battery, with the energy from the fuel, can
decrease the total cost of a driving cycle. Blended strategy requires knowledge of
2.5 Ideas for this thesis 7
the cycle’s length, which can be realized with a GPS. The developed strategy in
[10], is using SDP to find the optimal control sequence. Length information of the
cycle is modeled as a stochastic variable and the knowledge of the cycle’s length
resulted in that the SOC depletes slower. It is also shown that a shorter cycle’s
length than the actual cycle length did not cause a higher cost.
Problem formulation
The focus of this master thesis is to develop a supervisory control system that
solves the energy management problem and minimize the cost of a drive mission
with usage of GPS. The strategy used for control is called model predictive control,
MPC. The strategy should be charge sustaining and consider constraints. Charge
sustaining is defined as the batteries energy is maintained above a predefined
minimum level during the drive cycle. The strategy is evaluated with and without
information from a GPS. In this thesis no analysis of the emissions is done, nor is
it considered to be minimized in the control system.
Figure 3.1. Demanded torque from the driver and the estimated states, if one exist,
are input signals to the controller.
The concept of a general MPC is illustrated in figure 3.1, the strategy can be
divided into four stages:
1. Sampling the estimated or measured states from the system.
2. The optimizer minimizing the cost function with constrains over a time pe-
riod. The optimization is made with an internal model, known as a plant
model.
9
10 Problem formulation
3. The first optimal control signal is applied on the system until new inputs are
available from the state estimator.
4. Return to step 1.
Future input signal from the state estimator and torque demands from the driver
are unknown, therefore a plant model is required. The complexity of this model
could be reduced to reduce computational efforts. The equation (3.1) describe a
discrete cost function over a time window Nc with the weighting factors w1 and
w2 . The state of charge is denoted as q.
T0X
+Nc 2 2
Jcost = w1 ∆mf uel [k] + w2 q[k] − q ref (3.1)
k=T0
GPS systems already have functionality of duration and length of the driving
mission implemented, this information can then be provided to the controller.
The future demands from the driver and information of topography is, in this
thesis, considered unknown. The length of the mission can be regarded as reliable.
The influence of speed limitations, weather and traffic condition influence the time
information, time information is consequently regarded as uncertain.
Figure 3.2. The top illustrate the FTP-75 cycle, middle SFTP-US06 and the bottom
the NEDC drive cycle.
are made by repeating the cycles in arbitrary order. The extended cycles are
addressed in chapter 7. Various extensions will reflect the performance of the
controller in different circumstances, consequently those extended drive cycles can
provide insight on the controllers robustness and when blended driving is preferred.
The different HEV configurations are briefly presented in this chapter. Since there
are several variations of the presented configurations, the chapter aim is only to
give the reader a short overview. The text focus on full hybrids, less hybridized
vehicles is not considered in this chapter. The main advantages, that do not need
to apply for all configurations, are considered as:
2. Extra degree of freedom, due to the multiple prime movers, enables part-load
to be shifted to more efficient regions.
3. Downsized engine and motors co-operate to fulfill the maximum power de-
mands.
4. Reduce engines idle time, by only engaging the engine when necessary.
The PIHEV’s battery can be charged from the grid. For a HEV, the energy is
derived from fuel. Amount of energy in the battery is often measured with its
state of charge, SOC, which are dimensionless and is one for a full battery and
zero for empty battery.
Figure 4.1. The motor in this configuration is also working as an alternator, which
enables it to recuperate kinetic energy.
13
14 Hybrid Electric Vehicles
A series HEV utilize the engine to extend the vehicles range, this enables
the engine to be designed for average power requirements. Since the engine is
decoupled from the drive-train, it can be utilized at a high efficiency region and
with low emissions. Minimized idle time is also possible by turning off and on
the engine. Series configuration demands that the motor is designed to fulfill
maximum power demands. The added weight and multiple energy conversions
might lead to lower overall efficiency of the drive train, in particular at highway
drive. In general the series architecture has advantages in urban and city driving.
Figure 4.1 illustrates the basic power path in a series HEV.
Figure 4.2. The figure is showing a full parallel hybrid architecture, where the engine
can provide traction power to the drive train.
Parallel configuration utilizes the engine and motor to co-operate to fulfill high
power demands. The parallel configuration in figure 4.2 can only charge the bat-
tery when the vehicle is moving.
Clearly this can pose issues, if the energy level in the battery does not permit
the motor to be engaged. For instance, SOC level is at minimum level, there-
fore the engine is required to deliver all the power. If the available power is less
than the required it results in that the desired power from the driver is not reached.
Figure 4.3. a) An configuration that make it possible to drive in electric mode, engine
only mode or a combination. b) An similar configuration as in this thesis, where the
architecture in this thesis allows the battery to be charged from the grid. The planetary
gear set is in the figure called PGS.
In the architecture in the figure 4.3 the generator can also operate as motor,
i.e. alternator. The planetary gear set, PGS, along with the generator, realize a
Electronically-controlled variable transmission, e-CVT, making it possible to freely
control the engines angular speed. Advantages from series and parallel hybrid can
with proper design both be utilized with a series-parallel configuration. This is pos-
sible since series-parallel HEV can work as series and parallel HEV. Series-parallel
is also referred to as split hybrid, dual-mode and combined HEV. Complexity,
added weight and increased development cost are the main disadvantages.
System Modeling
5.1 Overview
Figure 5.1. Dashed arrow represents data to the controller, solid arrows are power flows
and small solid arrows are desired torques.
Figure 5.1 illustrates the interaction between the different subsystems in the
HEV system. The components engine, motor and generator are controllable with
the torque demands. Signals that are available for the controller are SOC, vehicle
velocity, GPS data and angular velocity for engine, motor and generator.
17
18 System Modeling
a mean effective pressure of pmf from the burning mass. The chemical power is
then described by equation (5.1) and (5.2), substitution lead to the relationship
in equation (5.3).
Pc = pmf Vd (5.1)
qlhv ṁf
pmf = (5.3)
Vd
Normalized angular velocity and torque is done with equation (5.4) and (5.5).
ωe S
cm = (5.4)
π
Te πN
pme = (5.5)
Vd
The equation (5.6) describe power losses derived from the Otto-cycle, i.e. ther-
modynamic cycle and mechanical friction losses. This is a general and simplified
approach, referred to as Willians line. This is used to estimate the fuel consump-
tion as a function of angular velocity and torque.
A first and second order adaption, as equation (5.7), is made for pme0 (ωe ) and
e(ωe ) respectively. The data is estimated from figures in [6].
Willians lines equation and parameters are from [6]. By solving equation system
(5.6) with (5.3) the fuel consumption is given by (5.8).
5.4 Battery
The model in this section is from [6] and the parameters values are adapted to
a battery with a capacity of 6 [kWh]. The battery is modeled as an open circuit
with a voltage source in series with a resistance. Applying Kirchhoff’s voltage law,
defined as (5.12), the circuit in figure 5.2 results in (5.13).
n
X
0= Ui (5.12)
i
20 System Modeling
Multiplying above equation with U , and using that P (t) = U (t)I(t), the quadratic
equation below is obtained. The power in/out of the system is determined by
auxiliary, motor and generator, P (t) = U (t)I(t) = Paux (t) + Pm (t) + Pg (t).
p
Uoc − 2 − 4RP (t)
Uoc
2
0 = U (t) + RU (t)I(t) − U (t)Uoc =⇒ U (t) = (5.14)
2
The batteries energy level is often described with its state of charge, SOC. This is
the ratio of current and maximum electric charge that defines the dimensionless
variable q(t).
(
Q(t) Q̇(t) = −I(t) , discharging
q(t) = with (5.15)
Q0 Q̇(t) = −ηc I(t) , charging
dQ(t) dq
U (t) = RI(t) = −R = −RQ0 (5.16)
dt dt
The fact that the Uoc depends on the SOC is not considered.
Battery
Q0 Maximum battery capacity [Ah]
R Battery resistance [Ω]
Uoc Voltage from voltage source [V]
U Voltage from voltage source [V]
Ur Voltage over resistance [V]
I Circuit current [A]
q State of charge, SOC [*]
Figure 5.3. A1 and A2 are planetary carrier and gears, B the sun, and C the ring.
Figure 5.4. Free body diagram of the mechanical parts of the PGS. From the right
in the figure are ring, sun and planetary carrier with the planetary gears shown. F is
denoting force, T torque and n radius.
(5.18). The planetary gear is also assumed massless. Further the PGS, is assumed
not to have any friction losses, it accordingly works as an ideal mechanic component
which distributes power. Euler moment law lead to relationship (5.19), (5.20) and
(5.21).
F = Fij = −Fji (5.18)
Jr ω̇r = −Tr + nr F (5.19)
Js ω̇s = −Ts + ns F (5.20)
Jc ω̇c = Tc − nr F − ns F (5.21)
Engine and generator connects to the planetary gear shaft and sun shaft. Genera-
tor torque is defined as negative compared to the rings rotation. A service brake is
22 System Modeling
mounted on the shaft, leading to a brake torque Tb , occurs in the equation (5.22).
Je ω̇e = Te + Tb − Tc (5.22)
Jg ω̇g = Ts − Tg (5.23)
Hence the engine and generator is direct connected to the planetary carrier and
sun, the angular velocity is consequently the same, i.e. ωe = ωc and ωg = ωs .
Eliminating the torque variables Ts and Tc with the relationship (5.22) and (5.23)
lead to (5.24) and (5.25).
Je + Jc ω̇e = Te + Tb − (nr + ns )F (5.24)
Jg + Js ω̇g = ns F − Tg (5.25)
Figure 5.5. Overview of the torque coupler and the final drive.
considered massless and identical ratio in the torque coupler is assumed, i.e. Rr =
Rcf = Rm . This further simplifies calculations.
if Tw = −Tcf (5.27)
ωr = −ωcf (5.28)
ωm = −ωcf (5.29)
Inserting (5.26)-(5.30) in (5.31) lead to the relationship (5.32) for the torque con-
verter and final drive. The torque converter is also assumed to be massless.
Jm
ω̇w = if Tw + Tm + Tr (5.32)
if
To be consistent with section 5.5.3 the wheels angular velocity is also used in this
section. Thus, with if ωm = ωw the wheels angular velocity can be re-written to
the motors angular velocity.
Notation for torque coupler, final drive and PGS.
F Internal forces in PGS [N]
Jr Ring of PGSs inertia [kg m2 ]
Js Sun of PGSs inertia [kg m2 ]
Jc Carrier of PGSs inertia [kg m2 ]
Je Engine inertia [kg m2 ]
Jm Motor inertia [kg m2 ]
Jg Generator inertia [kg m2 ]
nr Inner diameter for the ring in PGSs [m]
ns Inner diameter for the sun in PGSs [m]
if Final drive ratio [*]
Tr Ring torque [Nm]
Ts Sun torque [Nm]
Tc Carrier torque [Nm]
Te Engine torque [Nm]
Tm Motor torque [Nm]
Tg Generator torque [Nm]
Tw Wheel torque [Nm]
Tcf Torque and final drive torque [Nm]
ωe Engine angular velocity [rad/s]
ωg Generator angular velocity [rad/s]
ωm Motor angular velocity [rad/s]
24 System Modeling
Figure 5.6. Only longitudinal forces are considered, which is referred to as a longitudinal
vehicle model.
dωw
Jw = Tw − rw Fw (5.37)
dt
dvv
mv = Fw − F (v) (5.38)
dt
vv = rw ωw (5.40)
With the equation (5.37), (5.38), (5.39) and (5.40) becomes (5.41), which describe
the vehicle dynamics.
dω
2 w
mv rw + Jw = Tw − rw Fr (v) + Fgrav + Fair (vv ) (5.41)
dt
Subject to equation (5.42)-(5.44) from [12], with the assumption c1 = 0, the rolling
resistances force becomes a constant.
1
Fair (vv ) = ρair cd Af vv2 (5.43)
2
5.6 Driver
The torque sum of all prime movers should be equal to the desired torque
from the driver acting on the wheels. Due to the different gear ratio between the
engine, motor and generator, the coefficient obtained from the dynamic equation
determine the constraint that the controller is required to fulfill.
Tdriver = ~a~u = am Tm + ae Te + ab Tb + ag Tg (5.46)
26 System Modeling
The equation (5.46) describe driver’s demanded torque and that the controlled
variables, ~u, with the coefficient, ~a, requires to fulfill this demand. The coefficients
is obtained from the first row in the dynamic equation (5.45). These coefficients
describe the torque from engine, service brake, motor and generator impact on the
wheel.
Chapter 6
Figure 6.1. The developed supervisory control system consists of two parts, one MPC
block and a low level block. Desired torques are solid arrows, long dashed arrows are
data and requested angular speed for the engine are the short dashed arrow.
The supervisory control system is divided in two parts, seen in figure 6.1. The
MPC block calculates the desired torque to engine, service brake and motor that
minimizes the utilization of fuel and divergence from SOC reference. The MPC
block provides the low level block with the desired angular speed of the engine.
Depending on the engine torque a rule based strategy send a reference angular
speed to the low level controller.
27
28 Supervisory Control System
mf . The matrices in (6.2) are the variables that are used in this thesis. The
disturbance is denoted as ~v , the control variable as ~u and the states as ~x.
q Tm Tg
~x = mf , ~u = Te , ~v = ωg (6.2)
ωm Tb ωe
6.2.2 Discretization
Realizing a controller requires a discrete state space model. Assuming the control
signal is constant between sampling, i.e. zero-order hold, the discrete system
matrices are obtained through (6.8).
ZTs ZTs ZTs
Ac Ts Ac Ts Ac Ts
Ad = e , Bd = e Bc dt , Ed = e Ec dt , Fed = eAc Ts Fec dt (6.8)
0 0 0
6.2 Model Predictive Control 29
The remaining problem of calculating the discrete matrices can be done with
(6.10). Further explanation is found in [3] and [9]. The usage of the S matrix is
done to simplify (6.8) to (6.11).
ZTs
Ts2 T3 T k+1
S= eAc Ts dt = ITs + Ac + A2c s + · · · + Akc s (6.10)
2! 3! (k + 1)!
0
Since the matrices Ac , Bc , Ec and Fed are time independent they simply become
(6.11).
Ad = I + Ac S , Bd = Bc S , Ed = Ec S and Fed = Fec S (6.11)
In the Matlab environment the discrete matrices are instead obtained by the com-
mand:
SYSD = C2D(SYSC,Ts,METHOD)
The relationship (6.10) and (6.11) has to be used if the Matlab command is not
available. The command is used with a zero-order hold method, since in this thesis
the Matlab command is available.
The control signal that is calculated in this section is added together, as shown
in equation (6.18), in order to obtain the desired torque from the engine, motor
and brake. As shown in equation (6.16), is ~u the increment of the torque. This
requires the usage of equation (6.18), to obtain the demanded torques. The tc is
the current time, ~up is the calculated signal at time p. This sum is calculated after
every time the algorithm is used.
T0 +Np
!
X 2 2
min z(~u) = min Q1 ~y [k] − ~r[k] + Q2 ~u[k] (6.20)
~
u ~
u
k=T0
An example of a two step open loop predictor, accomplish with recursive use of
the plant model is shown in (6.23). This means that the first step of prediction is
6.2 Model Predictive Control 31
used for the second and both the first and second prediction is used in the third.
Therefore knowledge of the current states and the disturbances is needed to obtain
a system where the decision-variables control the future states. In this thesis the
disturbances are assumed to be constant over time.
~x[k + 1] = A~x[k] + B~u[k] + E~v [k]
~x[k + 2] = A~x[k + 1] + B~u[k + 1] + E~v [k + 1] =
= A2 ~x[k] + AB~u[k] + B~u[k + 1]
E~v [k + 1] + AE~v [k] +
(6.23)
Utilizing the special form above, a general prediction matrix of Np steps is ac-
complished in (6.24). The ideas of the equations are from [3]. The matrices are
described in equation (6.25)-(6.28).
~x[k]
..
X= = A~x[k] + BU + EV (6.24)
.
~x[k + Nc − 1]
I
C 0 ... 0 A
0 C ... 0 A2
C= ,A= (6.25)
. .. .. .
. . . . .
. . .
.
0 ... 0 C
ANp −1 B
0 0 0 ... 0 0 0 0 ... 0
B 0 0 ... 0 E 0 0 ... 0
. .
. .
B= AB B 0 ... . ,E = AE E 0 ... . (6.26)
. .
. .. .. .. . .. .. ..
. . . . 0 . . . . 0
ANp −2 B ... AB 0 0 Np −2
A E ... AE 0 0
T
min z(~u) = (Y − R) Q1 (Y − R) + U T Q2 U (6.30)
~
u
32 Supervisory Control System
Y = CX = C (Ax[k] + BU + EV ) (6.31)
With (6.30) and (6.31) yields:
!T !
min z(~u) = C Ax[k]+BU +EV −R Q1 C (Ax[k] + BU + EV )−R +U T Q2 U
~
u
(6.32)
By re-formulating the constraints and equation (6.32), the standard quadratic
programming form is obtained in the equations (6.33) and (6.34). By formulating
Y in terms of U an optimization algorithm can be used to find the optimum
values for U . Interesting to note is that the constraints is linear, this means that
re-formulation of constraints on Y can be done to fit the framework in section
6.2.6. The constant term that occurs can be removed without effect on the optimal
solution.
1
min U T HU + f T U (6.33)
U 2
Γmin
u ≤ Mu U ≤ Γmax
u
(6.34)
Γmin
y ≤ My Y (U ) ≤ Γmax
y
Figure 6.2. The two dashed lines illustrating two constrains, x∗ is the optimal value
and the solid lines illustrate the topographic of the cost function. The gray area is where
no permitted solution can be found. x1 and x2 is restricted to only positive values.
MU ≤ Γ (6.36)
Necessary condition for a non-linear problem to be optimal is the Karush - Kuhn
-Tucker conditions, also called KKT condition. With above problem formulation
the KKT condition becomes:
HU + f T + MT λ = 0
MU − Γ ≤ 0
(6.37)
λT (MU − Γ) = 0
λ≤0
The active constrains, satisfying MU − Γ = 0 for the j:th row, is divided into two
sets, the problem becomes (6.38)- (6.42).
X
HU + f T + λj MTj = 0 (6.38)
j∈Sact
M j U − Γj ≤ 0 j ∈
/ Sact (6.39)
Mj U − Γj = 0 j ∈ Sact (6.40)
λ<0j∈
/ Sact (6.41)
λ = 0 j ∈ Sact (6.42)
Assuming the active set of constraints is known, a closed solution becomes (6.43)
and (6.44) which give the optimal solution.
−1
λact = − Mact H−1 MTact Γact + Mact H−1 f
(6.43)
• Linearly independent.
The selection of the control, disturbance and state variables as (6.2) makes that
linear independence is accomplished. Number of active constraints is an issue, but
the method is still used because the simplicity of Hildreth’s procedure. The effect
of a violation of this criteria are shown in chapter 7.1, and also how the control
variables is affected. Hence Hildreth’s procedure is a dual and iterative method,
a violation of above requirements will lead to a near-optimal solution. From [11]
is the origin of the structures and motivation of utilizing this procedure origin.
The vector components in λ are only permitted to vary with one component at
each time, λ is defined positive in the direction of the optimal solution. Focusing
only on one component, i.e. λj , adjusting this component to improve the cost
function. If this is not possible without violating the constraints, i.e negative
λi , this component is set to zero. By defining (6.45) and denoting pji as the ji:th
component in the matrix P and lj as the j:th component in the vector L. Iterating
the i:th component in the λ vector at time n a explicit form is obtained as (6.46)
and (6.47).
P = Mact H−1 MTact , L = Γ + MH−1 f (6.45)
λn+1
j = max{wjn+1 , 0} (6.46)
j−1 m
!
1 X X
wjn+1 =− lj + pji λn+1
i + pji λni (6.47)
pjj i=1 i=j+1
The converged vector λcon , either contain a positive value or zero. With a prede-
termined accuracy, a closed formula is obtained as (6.48). If λcon = 0 would the
expression describe a solution with no active or no constraints. The term MT λcon
is describing the correction term.
Correction term
z }| {
∗ −1
U = −H f+ MT λcon (6.48)
Further information about duality and optimization theory is found in [5], and for
Hildreth’s procedure in [11].
6.3 Low level controller 35
Figure 6.3. The reference angular speed from the MPC block is fed back with the
angular speed of the engine, denoted ωeM P C and ωemeasured respectively.
The low level controller block contains one PI controller with two feed-forward
controllers from the torques demands from the MPC block. The torques demands
are regarded as disturbance in the low level controller block, which is natural if the
dynamic equation from the powertrain, equation (5.45), is regarded. The figure
6.3 illustrates the different parts of the low level controller. Tuning of the param-
eters is done with a method called lambda method, found in [3]. Below is a short
introduction of the lambda method.
Ti 1 d
FP I (s) = (1 + ) (6.49)
Kp (λTi + L) Ti dt
The PI controller is described as equation (6.49), and the parameters are adjusted
by using the rules in equation (6.50).
T
K= , Ti = T (6.50)
Kp (λT + L)
Kp is the loop gain, L the delay time and T is the time constant. The parameter
λ is tuned so the systems rise-time and settling time are acceptable.
Chapter 7
Results
The weighting matrices Q1 and Q2 are tuned by trial and error and kept constant
during all time. The matrices are configurated to be charge sustaining and are not
particular adapted to any driving cycle. A substantial time was spent on finding
the weighting coefficients that are used, further tuning could improve the systems
performance but because lack of time this was not done. An increased value of
the weight that is punishing the difference between the reference SOC and current
SOC would make the system to follow the reference closer, but this would also lead
to a higher cost for some driving cycles. Q1 and Q2 is tuned and is maintained
constant for all simulation, this is made to be able to investigate the influence of
other parameters and how a model error are affecting the system.
As discussed in section 6.2.6; guarantee to find the optimal control variable re-
quires that the number of active constraints must be fewer than the optimization
variables. The variables Tm , Te and Tb are the optimization variables, Tdriver and
Tg are the measurable variables. There are three optimization variables, which
leads that only two constraints can be active. During the acceleration phase, the
variable Tb is always calculated to zero by the controller because braking the en-
gine’s shaft when using the engine would be ineffective. The equation (7.1) is
re-writen with Tb = 0.
Tdriver − ag Tg = am Tm + ae Te + ab Tb
Te = Temax max − a T = a T max + a T max
Tdriver g g m m e e
max Tb =0
Tm = Tm =⇒ Te = Temax
Te = Temin 0->110 [km/h] Tm = Tm max
Tm = Tmmin
(7.1)
At maximum torque’s demands from the driver must all three constraints in equa-
tion (7.1) be satisfied. During these circumstances, it is not possible to guarantee
37
38 Results
that the algorithm accomplish this. Linear independent and fewer optimization
variables than active constraints that are the two criterion that have to be fulfilled,
as discussed in section 6.2.6, is violated during these circumstances. Linear inde-
pendent between the equations are not possible when there are two variables that
have to fulfill three equations. In the figure 7.1 and 7.2 is the time marked when
the constraints are active. Hildreth’s procedure gives with these circumstances
a converged solution that makes the solution near optimal. When there are two
active constraints this is marked with multiple colors.
7.1.1 Acceleration
Figure 7.1. The top graph illustrates the torque’s demands from the controller to the
engine, motor and generator. Overall efficiency and vehicle speed is shown in the other
two graphs. The different colors show when different constraints are active.
The figure 7.1 illustrate a driver that desires to accelerate up to 110 [km/h],
and after this continuing cruising at this speed. The vehicle is accelerating between
0-20 [s], during this time the motor is assisted by the engine and the generator.
The generator work as motor and is providing power to the wheels during this
acceleration phase, this is a consequence of the kinetic constraints of the PGS,
discussed in 5.5.2, and that the low level controller needs to control the engine
angular velocity. The motor is direct connected to the drive shaft; therefore the
motor is unable to provide the same torque for higher angular velocity as for lower.
This is regarded by the controller, consequently only demanding maximum torque
that is possible for the current angular velocity. A closer look at the time interval
7.1 Step response 39
15-20 [s] illustrates the motor’s decreased torque, and the engine torque remaining
110 [Nm] until 17 [s] before it decreases the torque. When the active constrains is
shifted, disturbance from the torque that the engine and motor deliver can occur.
This is particularly visibly in figure 7.2 at 7.5-15 [s], during this time period is the
desired torque from the driver not fulfilled. During the acceleration the overall
efficiency are around 40 %, to become 90 % after the acceleration part, when the
engine is not required to assist the motor. The overall efficiency increasing when
the vehicle speed is increasing, this is shown in 7.1. This is because the motor is
direct connected to the wheel through the torque coupler, i.e. the motor’s angu-
lar velocity is proportional to the wheels’ angular velocity. The short increase of
efficiency of 9% around 7-7.5[s] is caused by active constraints are shifted, but it
is remarkable that it is so significant and during such short time. A better expla-
nation would have been desirable, but due to lack of time deeper analysis where
not done.
At 16 [s] reaches the vehicle 100 [km/h], even the desired velocity is not reached,
decreases the demanded torque from the driver. The engine’s angular velocity can
freely be controlled, meaning engine can provide, at all vehicle speeds, 110 [Nm].
In figure 7.1 at 17 [s], the engine’s torque decreases despite the reference vehicle
velocity is not reached, this since the required torque from the driver is decreased.
The figure 7.2 illustrate the decreased torque’s demands from the driver. This is
because the driver is realized with a PI-controller, where the demanded torque is
a function of the difference between the driving cycles reference speed and current
vehicle speed.
Figure 7.2. Dashed line is the desired torque from the driver and the solid line is the
actual torque acting on the wheel.
Tdriver = am Tm + ae Te + ab Tb + ag Tg (7.2)
40 Results
The controller is designed to follow the required torque from the driver. The
torque’s demands from the driver have to be fulfilled by the controller, where
the coefficients am , ae , ab and ag in the equation (7.2) are describing the engine’s,
motor’s and generator’s torque acting on the wheels. In the figure 7.2, it is showed
that the torque from the engine, motor and generator deviates from the desired
torque. This is caused by the multiple active constrains.
7.1.2 CDCS
Figure 7.3. Change of strategy from electric drive to CDCS initialize when the SOC
passing the reference at 0.25. tp representing the transient phase, cp representing the
convergence phase, and fp is the final phase.
In this section the vehicle continues driving with a velocity of 110 [km/h]. Due
to the batteries SOC reaches the minimum level, the controller changes strategy
in order to be charge sustaining. The CDCS mode consists of three phases, tran-
sient, convergence and final phase, illustrated in figure 7.3. In the transient phase
the generator provides a negative torque. This because the engine angular velocity
requires to be controlled, due to that the engine is engaged. This phase transiently
gives rise to a positive derivate of the SOC. The time the low level controller needs
to control the engine angular velocity is the same as the time for this phase. After
the transient phase, the convergence phase starts, in this phase the SOC almost
reaches a stationary value. The MPC is unable to directly control the genera-
tor because of the architecture of the designed supervisory control system. The
settling time is 73 [s] with an accuracy of 5 %. The settling time is defined as
the time it takes to reach a stationary value with a predetermined accuracy. The
convergence phase requires the generator to work as a motor, i.e. utilize energy
to provide power to the wheel, this in order to control the engine angular velocity.
The final phase that makes the usage of battery energy to zero is a long phase
where the disturbance of the low level controller is a probable reason why it is so
7.1 Step response 41
Figure 7.4. The generated energy from motor is utilized by the generator.
long. In summary, all the three prime movers, engine, generator and motor are
required to be engaged to maintain charge sustenance. Figure 7.4 illustrates the
power path of the system during CDCS mode.
Figure 7.5. The disturbance of the power to the wheel is illustrated in the bottom
graph. The solid arrow denoted tp is the duration of the transient phase, the dashed
arrow denoted cp is the converge phase and final phase is denoted as f p .
Start of engine is illustrated in figure 7.5, where increased engine and genera-
tor torque with decreased motor torque represents change of strategy. The fast
decreased power acting on the wheel is derived from the negative generator torque
at 136[s]. At this time, the generator is generating power to the battery, for about
1.5 [s] power is re-directed to the battery instead of direct all the power to the
42 Results
wheel. During this phase, all the power is directed into the generator, i.e. it is
charging the battery. The overall efficiency is higher at transient phase compared
with the convergence phase, although the power to the wheel is not maintained at
necessary level. The oscillations around zero torque at 150-175[s] from the motor
are amplified by the engine. The efficiency is affected to start to vary between 15-
22%. No reason why the motor’s torque began to oscillate around zero are found,
but a low pass filter after the MPC controller could dampen those oscillations, but
this where not carried out in this work. The figure is showing the effect on the
Figure 7.6. The axes scale is enlarged to illustrate the vehicle’s insignificant deviation
from the reference’s velocity.
vehicles velocity when changing mode, during a time period of 18 [s] the velocity of
the vehicle increases 2.5 [km/h]. The MPC is disturbed by the low level controller
that controls the generator’s angular velocity. The MPC represses the disturbance
and the speed slowly converge to 110 [km/h], a MPC that handles the disturbance
parameter, ~v , faster would be desirable but is not accomplished here.
Figure 7.7. Gray is the all electric drive area, where the remaining is in CDCS mode.
• In the figure 7.7 the gray area is the all electric area. No different in perfor-
mance is allowed between electric drive and CDCS drive.
The ability to follow the reference is considered important. The unknown future
torque’s demands from the driver causes problem. The controller is using the
same desired torque value for the whole prediction time. This causes issues since a
change in speed will also become a change on torque’s demands. A long prediction
horizon is only beneficial when the driving cycle has small variations. The table
Table 7.1. The symbol ’-’ representing simulations where one or more criteria is violated.
7.1 is an example of how the overall efficiency and SOC is influenced by different
sampling time and prediction horizon, defined as Ts and Np . Comparing the
different prediction horizons, the table 7.1 illustrates that the overall efficiency
and the SOC is higher with a longer prediction horizon. Utilization of electric
energy offers great possibility of a high efficiency, and despite the usage of electric
energy is higher for the shorter sampling time, the overall efficiency is higher for the
long prediction horizon. The proportion for other sampling time and prediction
horizon follows the results shown in the tables, but for simplicity they are not
presented. The table 7.1 presents the driving cycles end values, whereas the figure
7.8 illustrate the time variation. A longer sampling time allows the SOC to deviate
more than a shorter sampling time. A sampling time of 1 [s] causes the controller to
44 Results
Figure 7.8. Four different set of parameters are presented. The reference and minimum
SOC are the horizontal straight lines.
violate the lower bound of the SOC, therefore is not charge sustaining nor robust.
A faster sampling time thus results in a more robust controller. During simulation
the longer sampling time lead to approximate four times shorter simulation time.
7.3 Robustness
The previous section implicate that the best robustness is with a sampling time of
0.25 [s] and prediction horizon of 15 samples. In this section are these parameters
used. The MPC structure used in this thesis does not guarantee stability; therefore
it is important to simulate effects from a model error. There are modified MPC
that guaranty stability, but for simplicity and lack of time this is not implemented.
The controller assumes the vehicle driving on a road with no slopes. Implement-
ing a constant slope of 2◦ and 1◦ in the model, but not in the controller, gives
implication of how a model error affects the performance. The extended driving
cycle, figure 7.7, presented in the previous section, is also used during simulations
for this test. The figure 7.9 illustrates the controller’s ability to follow the pre-
determined extended driving cycle, with a model error. It is important to stress
that the vehicle is constantly driving uphill. During the first acceleration part,
the vehicle speed with a road of 2◦ slope is approximate 4 km/h lower than with
a horizontal road. According to the simulation, the velocity differences from the
horizontal road decreases over time. The first highway phase depletes the battery
significantly faster for the simulation with road slope than the horizontal road.
Conversion to road slope in percent is; slope of 2◦ is 3.49 % and 1◦ is 1.75 %.
7.4 Utilization of GPS 45
Figure 7.9. The slope of 2◦ is close to zero at the SOC level, consequently not charge
sustaining. The slope of 1◦ is in the allowed boundaries of the SOC level.
( d
q ini − q 0 − q ini − q 0 − q min d0
m
if 0 ≤ dm ≤ d0
f (dm ) = (7.3)
q min else
46 Results
The percent in the table 7.2 - 7.4 is defined as equation (7.4). This is used to give
a overview of the different between blended driving and CDCS driving.
CDCS − Blended
∆= (7.4)
Blended
Table 7.2. q is the SOC, and a positive % value defines as higher CDCS value compared
to the blended value.
The table 7.2 is in line with the conclusion that blended driving can lead to
a lower cost. Additional to the lower cost, it is important to stress that the end
value of the SOC is higher. When blended driving is used on Cycle A, nearly the
entire mission has a higher cost, due to the engine being engaged relative early, see
figure 7.10. During CDCS drive the engine is engaged at 5 [km], consequently the
controller has to utilize fuel to a higher extent than the blended driving. For cycle
A, the difference in cost at city driving section in 7-11[km] maintained constant.
Additionally, during this section, the use of the electric energy is higher for the
CDCS driving than the blended driving. During the second highway section, the
blended driving cost decreases relative to the CDCS driving, and finally result in
a lower total cost for the blended driving.
For driving cycle B, blended driving reduces the cost compared to CDCS more
than for cycle A. At approximate 30 [km] the cost for blended driving becomes
equal to the cost of CDCS driving. Additionally, for this section, the utilization
of electric energy is lower with blended driving.
Blended driving reduces the cost for cycle B significant more than blended driving
for cycle A.
Table 7.3. q is SOC, and a positive % value defines a higher CDCS value compared to
the blended value. A significant cost saving can be made when driving in blended driving
for cycle D.
7.4 Utilization of GPS 47
Blended driving is shown to have lower cost for both of the simulated city cycles,
as shown in table 7.3. The SOC is also higher at the end of the simulation for the
blended driving. Comparing the result between the cycles, D has a significantly
greater increase in fuel economy compared to cycle C. On the cycle C the cost for
blended driving is almost immediately lower than CDCS, whereas cycle D shows
improvement in the end of the cycle. This is illustrated in figure 7.11.
Table 7.4. q is referred as SOC, and a positive % value defines as higher CDCS value
compared to the blended value.
The result from simulation is shown in table 7.4. CDCS driving in both cycle E
and F is using battery energy to a higher extent compared to blended driving. The
cost for blended driving in both cycles is lower than CDCS driving. This shows
the benefits of blended driving. The cycles E and F present similar result the first
half, shown in figure 7.12, where the cost for the blended driving is higher. But
as the simulation proceed; the remaining possibility to use electric energy finally
leads to a lower overall cost.
48 Results
Figure 7.10. The dashed line is CDCS simulation and the dash dotted from the blended
simulation.
7.4 Utilization of GPS 49
Figure 7.11. The dashed line is representing the result from CDCS simulation, and the
dash dotted is the blended simulation.
50 Results
Figure 7.12. In this figure dash doted line is CDCS driving and the blended driving is
dashed lines.
Chapter 8
Conclusions
To solve the problem of blending battery energy with fuel from beginning of a
driving cycle a variable SOC reference was developed, which where depending on
information from a GPS. Result from the simulation, shows that using blended
driving reduce the cost of driving. Some driving cycle’s costs is reduced almost
24%. The mean value for the others cycles were around 5%, where they varied
between 2.2-8%. The developed supervisory control system has acceptable perfor-
mance, meaning it follows the driver’s torque demands when the circumstances to
do so are right, with no model error and a sampling time of 0.25 [s] the system is
charge sustaining and considers constraints. The controller can operate in all pos-
sible modes, the hybrid mode and only electric mode. The controller also presents
robustness against error in the plant model, this for moderate slopes up to 1◦ , in
percent this is ≈ 1.5%. Further in this chapter the result discussed more thorough
and also topics for future work are presented.
The generator angular speed is a linear combination of engine and motor angular
velocity, which is a consequence of the vehicle’s configuration, this is addressed
in section 5.5.1 and equation (5.36). The active set method is not guaranteed to
51
52 Conclusions
find the optimum for problems where linear dependency exists, which is addressed
in section 6.2.6. To be able to handle the complexity, the Supervisory Control
System is divided into two parts, one MPC structure controller and one low level
controller. A disadvantage of this structure is that the MPC block is unable to
control the generator. The optimization does not include the generator; further
consequence is that a global optimum might not be obtained.
To solve this, an optimal method which handles linear dependency, and ability
to consider more active constraints than optimization variables, has to be used.
To completely disengage all electrical prime movers is not possible in this architec-
ture; hence the generator is required to control engine angular velocity. Although
when the lower boundary of the SOC is reached, the motor is providing enough of
energy to the generator. In this mode all the utilized energy is derived from the
fuel. All possible modes can be accomplished with the controller; pure EV mode
and hybrid mode.
The structure of the PIHEV when the SOC is at the lowest allowed boundary
is similar to a series hybrid. The power to the wheel is derived from the fuel, but a
part of the fuel energy is converted to electric energy to control the engine angular
velocity.
8.3 Robustness
Slopes up to 2◦ give reasonable driving performance, although issues of charge
sustaining are more visible. Slopes up to 1◦ is handled by the controller, and
provide a simulation that is charge sustaining and follow the driving cycle, but
greater slopes cause problems with charge sustaining. Hard constrains on the
SOC could solve this problem, but due to insufficient time and issues derived from
use of an active set method, this was not carried out.
8.4 Utilization of GPS 53
For blended driving all cycles, except of cycle F, has higher SOC end values than
the reference value. For blended driving the reference SOC is 0.25 at the end
of simulation. Using the electric energy to a higher extent than the presented
strategy, might further decrease the overall cost.
The plant model could probably be subjected to simplification; this would proba-
bly be desirable in an implementation. Finding suitable linearization points could
also reduce the calculation burden.
Imposing hard constraints on the SOC level would also guarantee charge sustain-
ing. Solving this issue is associated with replacing the current active set algorithm.
However, a different approach of variable weighting factor for the SOC deviation
might be sufficient.
Bibliography
[1] Predictive control of drivetrains, July 2002. 15th Triennial World Congress.
[2] A-ECMS: An Adaptive Algorithm for Hybrid Electric Vehicle Energy Man-
agement, December 2005. IEEE Conference on Decision and Control, and the
European Control Conference.
[3] M. Enqvist. Industriell reglerteknik - Kurskompendium. December 2008.
First Edition.
55