You are on page 1of 6

6th IFAC Symposium Advances in Automotive Control

Munich, Germany, July 12-14, 2010

Multiple-Input Multiple-Output Model


Predictive Control of a Diesel Engine
Maria Karlsson ∗ Kent Ekholm ∗∗ Petter Strandh ∗∗∗
Rolf Johansson ∗ Per Tunestål ∗∗

Department of Automatic Control, Lund University
∗∗
Department of Energy Sciences, Lund University
∗∗∗
Volvo Powertrain Corp.

Abstract: Traditionally, diesel engine control has had to rely on indirect feedback variables
and empirical open-loop maps because direct measurements of the variables representing high-
level objectives, such as emissions, have not been available in production engines. With new
sensors being developed, the opportunity opens to design the controller directly based on high-
level objectives. In this paper, we propose to use model predictive control as a systematic
way to go directly from high-level specifications to a control algorithm. The controller uses
four actuator variables and five measured variables and is based on a model obtained through
system identification. Experimental results on a six-cylinder heavy-duty engine around a fixed
operating point demonstrate the potential of the control scheme.

1. INTRODUCTION (EGR) and suitably chosen fuel injection timings (Muscu-


lus (2006)) as a means to reduce emissions of NOx and
The high-level objectives of the control system of a heavy- soot particles from the engine. LTC combustion is more
duty diesel engine is to provide a fast response to torque challenging from a control perspective than traditional
requests from the driver, to ensure a safe operation of the diesel combustion because of tight requirements on emis-
engine, to obtain a low fuel consumption, and to comply sions. Also, the time constants in the engine dynamics
with emissions legislation possibly in cooperation with af- are generally longer because EGR flow and heating and
tertreatment systems. Usually, the variables corresponding cooling of e.g. cylinder walls play a greater role in the re-
to high-level objectives of the controller such as brake effi- sulting combustion process. This development accentuates
ciency and emissions are not directly available for measure- the need to consider interactions between fuel injection
ment. Secondary variables are instead used for feedback and airpath controllers, as noted in e.g. (Hillion et al.
and feedforward control, such as pressures and temper- (2008); Alberer (2009)).
atures at various locations in the engine (Guzzella and
The goal in diesel engine control design is to optimize
Onder (2004)). Empirical maps (often based on steady-
engine operation. Much research effort has been spent
state data) are then used to find optimal settings for the
on good models and control design solutions for low-level
actuators and secondary variables in terms of the high-
control loops considering e.g. only the airpath control.
level objectives.
With today’s sophisticated engines, the over-all control de-
To satisfy the high-level goals, a set of actuator variables sign task involves many actuators, measurements, subsys-
are available. The most widely used in published stud- tems, interactions, experimental maps, models, conflicting
ies on diesel engine control are exhaust gas recirculation optimization criteria, and constraints. In this paper, we
(EGR) and variable geometry turbo (VGT) valve posi- propose to start the control design task from a high-level
tions (Omran et al. (2009); Ortner and Re (2007)), fuel perspective. The high-level control task of optimizing a
injection parameters (Hafner et al. (2000)), variable valve trade-off of several variables subject to a large number
actuation (Yilmaz and Stefanopoulou (2003)), or some of constraints fits nicely into the formulation of model
combination of these (Karlsson et al. (2008); Hillion et al. predictive control (MPC). In the work, the most impor-
(2008)). Modern diesel engines in production are equipped tant actuator variables were considered simulataneously,
with at least actuation of EGR, VGT, and fuel injection. namely EGR valve position, VGT vane position, start
of fuel injection, and fuel injection duration. As far as
In practice, there are interactions between all actuator possible, measurements directly related to high-level ob-
variables and both measured variables and high-level ob- jectives were used for feedback, i.e., direct measurement
jectives. Therefore, control design is a highly complex of NOx , opacity measurement for soot, and measurements
task. To make the problem manageable, the design of of indicated mean effective pressure (IMEPn ), combusion
airpath and fuelpath controllers are traditionally treated phasing, and peak pressure derivative from in-cylinder
as two separate tasks, considering only static interactions pressure sensors.
between the two systems. In recent years, much focus has
been put on low temperature diesel combustion (LTC) The purpose of the paper is to demonstrate the potential
achieved through high levels of exhaust gas recirculation of approaching the control design task from a top-down
⋆ This work was supported by Vinnova and Volvo Powertrain Corp. perspective starting with high-level control using multiple-

978-3-902661-72-2/10/$20.00 © 2010 IFAC 131 10.3182/20100712-3-DE-2013.00003


AAC 2010
Munich, Germany, July 12-14, 2010

Operated cylinders 6 for the apparent heat release rate based on a fixed ratio
Displaced Volume 2000 cm3 of specific heats (Heywood (1988)). From the heat release
Bore 131 mm rate, α50 is defined as the crank angle degree where 50 %
Stroke 150 mm of the heat has been released.
Connecting Rod Length 260 mm
Number of valves 4 Emissions of NOx , yN Ox were measured using a Siemens
Compression ratio 14.1 : 1 VDO / NGK Smart NOx Sensor. Soot emissions, yop were
Table 1. Engine specification measured using an opacimeter from SwRI measuring the
percentage of light absorbed by the exhausts in the exhaust
input multiple-output MPC and direct measurements of pipe. Formation of soot is highly nonlinear, with gain
emissions. There are many opportunities for future im- from actuator variables to measured opacity being much
provements of the scheme through putting more attention higher at high soot levels compared to lower levels. In
into low-level details, such as adding low-level control loops order to make the process more linear to facilitate closed-
from e.g. EGR valve position to mass flow. loop control, opacity was rescaled based on an inverted
empirical map when used for system identification and
The paper is organized as follows. In Section 2, the ex- feedback to the controller.
perimental equipment is presented and details are given
on actuator variables and measured variables. Section 3 Five measured variables were thus used in the control
discusses design of the model predictive controller. Sec- design,
T
tion 4 presents experimental results, and advantages and y = (yIMEP α50 dp yN Ox yop ) (5)
remaining issues for the control scheme are discussed in
Section 5. Finally, conclusions are made in Section 6 and The control system was based on a standard PC running
directions for future work are pointed out. Linux enabling cycle-to-cycle control. Controllers were
designed in Simulink and converted to C-code using Real-
2. EXPERIMENTAL EQUIPMENT Time Workshop.

The experiments were conducted on a six-cylinder turbo- 3. CONTROL DESIGN


charged heavy-duty diesel engine. Engine specifications
are given in Table 1. The engine was equipped with unit 3.1 High-level Specifications
injectors for diesel where fuel injection timings could be
set individually for each cylinder, with a low-pressure Several high-level objectives should be fulfilled in the
exhaust gas recirculation (EGR) loop where the EGR control design:
rate could be adjusted by a valve in the exhaust pipe, • Fast reference tracking of torque.
and with a variable geometry turbo (VGT) where the • Low specific fuel consumption.
turbocharging also could be adjusted. The setup allows • Low average emissions of NOx .
for four manipulated variables • Low average emissions of soot.
T
u = (uSOI uF D uEGR uV GT ) (1) • Limited emission peaks during transients.
where uSOI is the crank angle degree of start of injection, • Limited peak pressure derivatives to avoid audible
uF D the fuel injection duration measured in crank angle noise and damage to the engine.
degrees, uEGR the position of the EGR valve, and uV GT These high-level objectives need to be mapped into spec-
the position of the VGT vanes. The fuel injection variables ifications on the available control variables and measured
were updated each engine cycle, and the valve position variables of the engine.
variables were updated with a frequency of 10 Hz.
All cylinders were equipped with piezo-electrical, water- 3.2 Modelling
cooled pressure transducers of type Kistler 7061B, with
cylinder pressure data sampled every 0.2 crank angle The controller was based on a dynamic state-space model
degrees using a Microstar DAP 5400a/627 data acquisition of the engine obtained through system identification (Jo-
board. The pressure measurements p from the in-cylinder hansson (1993)). In (Karlsson et al. (2010)), it was shown
pressure sensors were used to compute indicated mean that identified linear models could predict outputs well at
effective pressure, yIMEP , combustion phasing α50 , and fixed operating points, and further that linear models at
maximum pressure derivative dp . The indicated mean different operating points could be combined into Wiener
effective pressure is defined as models which promises to provide good prediction over
Z a large operating range using a limited set of dynamical
1
yIMEP = pdV (2) models. In the present work, control around a fixed oper-
VD
ating point is studied. A fixed sixth-order linear model of
where the integral is taken over an engine cycle, and the the form
maximum pressure derivative as
xk+1 = Axk + Buk + Kwk
dp (6)
dp = max . (3) yk = Cxk + Duk + wk
θ dθ
From the cylinder pressure p, the heat release rate dQ is where uk ∈ R4 , and yk ∈ R5 was used for control design.
computed using the relation The model step response is shown in Figure 1. The
dQ γ dV 1 dp model incorporates both fast dynamics, as in e.g. the step
= p(θ) + V (θ) (4) response from uSOI to α50 which is almost instantaneous,
dθ γ−1 dθ γ−1 dθ

132
AAC 2010
Munich, Germany, July 12-14, 2010

from uSOI from uF D from uEGR from uV GT


1 1 1 1
yIMEP 0.5 0.5 0.5 0.5
(bar)
0 0 0 0
−100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300
1 1 1 1
α50 0.5 0.5 0.5 0.5
(CAD)
0 0 0 0
−100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300

0 0 0 0
dp
(bar/CAD) −1 −1 −1 −1

−2 −2 −2 −2
−100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300
10 10 10 10
yN Ox 0 0 0 0
−10 −10 −10 −10
(ppm) −20 −20 −20 −20
−30 −30 −30 −30
−100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300

4 4 4 4
yop
2 2 2 2
(%)
0 0 0 0
−100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300 −100 0 100 200 300
cycle cycle cycle cycle
Fig. 1. Step response of dynamic model used for model predictive control.

and slow dynamics as e.g. the step response from uEGR to Automatic code generation using Real-Time Workshop
yN Ox which takes more than 100 cycles to settle. from a Simulink model of the controller was used to trans-
late the controller into C-code which was later compiled
3.3 Model Predictive Control into an executable program that could be used for real-
time control.
The Model Predictive Control Toolbox of Matlab R2008b The following design choices were made in the setup of the
was used to design the controller. model predictive controller:
The formulation is based on optimization of the cost • A high weight was put on reference tracking of yIMEP
function to get a fast torque response.
X
Hp
X
Hp • A reference value was set for α50 to achieve combus-
J(k) = Y(i|k) + U(i|k) + ρǫ ǫ2 (7) tion phasing close to maximum brake torque timing.
i=1 i=1 Prior information is needed to determine the correct
where reference value.
X
Ny • A reference value of 0 was specified for yN Ox .
Y(i|k) = wjy (rj y(k) − ŷj (k + i|k))2 • A load-dependent reference value was set for yop . The
j=1
reference value was set low enough to avoid excessive
soot formation. The exact value should be determined
X
Nu X
Nu
considering the aftertreatment system used.
U(i|k) = wju (rju − ûj (k + i|k))2 + wj∆u ∆ûj (k + i|k)2
• A maximum limit was set on yop to avoid very large
j=1 j=1
peaks in soot emissions during transient operation
(8) where reference tracking of yIMEP would otherwise
subject to the constraints take precedence over keeping the reference value for
y y yop . Such high values of soot emissions may exceed
ymin − ǫVmin ≤y(k) ≤ ymax + ǫVmax
u u
umin − ǫVmin ≤u(k) ≤ umax + ǫVmax the capacity of the aftertreatment system for soot,
∆u ∆u (9) and may also clog engine pipes.
∆umin − ǫVmin ≤∆u(k) ≤ ∆umax + ǫVmax • A maximum limit was set on dp to avoid excessive
0 ≤ǫ audible noise.
for the system • A target value was set for uV GT . Without such a
target, maximum allowed turbocharging would be
xk+1 = Axk + Buk + Kwk
(10) applied in stationarity in order to obtain the best pos-
yk = Cxk + Duk + wk sible NOx -soot trade-off. In such case, uV GT would
The optimization is computed over the control moves loose control authority through saturation during
∆u(k + i|k) at a set Tu of specified control action times transients, and fuel consumption might also suffer.
i ∈ Tu , and over the slack variable ǫ (Maciejowski (2002)). • A slack variable was used for constraint softening.
A Kalman filter is used for output prediction based on a • Constraints were specified for minimum and maxi-
noise model obtained through system identification. mum values and rates of all control variables in order

133
AAC 2010
Munich, Germany, July 12-14, 2010

uSOI (CAD)
−5 10

α50 (CAD)
−10 0

−15 −10
0 100 200 300 400 500 0 100 200 300 400 500

dp (bar/CAD) yIMEP (bar)


10 10
uF D (CAD)

8
8
6
6
0 100 200 300 400 500 0 100 200 300 400 500
60 30
uEGR (%)

20
40
10

20 0
0 100 200 300 400 500 0 100 200 300 400 500
34 150
yN Ox (ppm)
uV GT (%)

33 100

32 50
0 100 200 300 400 500 0 100 200 300 400 500
1400 20
N (rpm)

yop (%)

measured
1200 10 limit
ref
1000 0
0 100 200 300 400 500 0 100 200 300 400 500
engine cycle engine cycle

Fig. 2. Experimental results using the MPC controller for changes of load around the investigated operating point.

to take into account physical constraints on the actu- Also, the controller successfully combines feedforward and
ators and include some safety margins. feedback functionality. When load is increased, the model
• A prediction horizon of 100 engine cycles was used. predicts that opacity will exceed the limit and immediately
• The set of control action samples was chosen as adjusts uEGR and uSOI — corresponding to feedforward
Tu = {0, 2, 4}. control. When the measured opacity exceeds the limit a
few cycles after the change in reference load, all variables
All six cylinders of the engine were operated, but the
are further adjusted to quickly bring opacity below the
controller was based on feedback from cylinder 5 only for
limit — corresponding to feedback control.
the cylinder-individual measured variables yIMEP , α50 ,
and dp . Also, the same values were used for all cylinders for Combustion phasing α50 is maintained close to its ref-
the cylinder-individual actuator variables uSOI and uF D . erence value throughout the experiment. Peak pressure
derivative dp never approaches its limit of dp = 20
4. EXPERIMENTAL RESULTS bar/CAD during the experiment. Emissions of NOx are
minimized subject to constraints and reference values of
4.1 Change of reference load all other variables throughout the experiment. Compared
to other variables, yN Ox varies slowly throughout the
Experimental results for changes of reference value for experiment. This is due to the fact that NOx formation
yIMEP around the chosen operating point are shown in is influenced by many slow processes such as EGR flow
Figure 2. It can be seen that reference tracking of yIMEP and heating and cooling of cylinder walls (see Figure 1),
is fast and accurate. A change of load from yIMEP = 6 as well as response time in the NOx sensor (0.75 s for 33%
bar to yIMEP = 8 bar is achieved in 7 engine cycles to 66% rise). The influence of the VGT is negligible at
corresponding to 0.7 s at an engine speed of 1200 rpm. the investigated operating point, and it is kept close to its
The variance in yIMEP is substantially larger at load setpoint.
yIMEP = 6 bar, indicating that the model is less accurate
at this operating point.
When load is increased at engine cycle 250, opacity in- 4.2 Change of load and speed around the operating point
creases and momentarily exceeds the limit. The controller
takes several actions to bring down opacity. When the load Figure 3 show experimental results for changes of both
reference value is increased, the EGR valve is adjusted to load and speed around the reference point. Tracking of
reduce the amount of recycled exhaust gases, and thus yIMEP is accurate throughout the experiment, tracking
reducing soot formation. Injection timing is also advanced of α50 is successful except for the cases where load is
in order to get earlier combustion and less soot formation. increased and the opacity limit is exceeded. Emissions
Airpath and fuelpath actuators are thus automatically of NOx are as low as possible given the specifications
coordinated to satisfy control objectives. on opacity. The controller appears to be fairly robust to

134
AAC 2010
Munich, Germany, July 12-14, 2010

uSOI (CAD)
0 10

α50 (CAD)
−10 0

−20 −10
0 200 400 600 800 1000 0 200 400 600 800 1000

dp (bar/CAD) yIMEP (bar)


15
uF D (CAD)

10

10 8

6
5
0 200 400 600 800 1000 0 200 400 600 800 1000
80 25
uEGR (%)

20
60 15
10
40 5
0 200 400 600 800 1000 0 200 400 600 800 1000

yN Ox (ppm)
uV GT (%)

34 400

32 200

30 0
0 200 400 600 800 1000 0 200 400 600 800 1000
20
N (rpm)

1400
yop (%)

measured
10 limit
1200
ref
1000 0
0 200 400 600 800 1000 0 200 400 600 800 1000
engine cycle engine cycle

Fig. 3. Experimental results using the MPC controller for changes of load and speed around the investigated operating
point.

changes in load and speed in the investigated operating


range.
uF D (CAD) uSOI (CAD)

−5 5

−10 yN Ox (ppm) dp (bar/CAD) yIMEP (bar) α50 (CAD) 0


4.3 Influence of opacity constraint
−15 −5
0 50 100 0 50 100
Figure 4 shows a load change from yIMEP = 6 bar to 10 10

yIMEP = 8 bar for two different experiments. The first, 8


8
labeled ’original’ is the same as shown in Figure 2. In the 6
second experiment the same controller was used, except 6
0 50 100 0 50 100
that the constraint on opacity was removed. As can be 60 30
uEGR (%)

seen, the peak in opacity after the change of reference 20


load is larger for the second case. The largest difference 50
10
between the two controllers can be seen in uSOI and
40 0
α50 . With the opacity constraint present, the controller 0 50 100 0 50 100
advances combustion phasing compared to the setpoint in 34 150
uV GT (%)

order to reduce opacity.


33 100

32 50
5. DISCUSSION 0 50 100 0 50 100
40
original
yop (%)

The goal of the work presented here has been to use without opacity limit
20
MPC as a way to go from high-level specifications into limit
ref
a control algorithm in a systematic, intuitive manner. The 0
0 50 100
long-term vision is to use as little a priori information engine cycle
gathered through experimental data as possible, and leave
the multi-criterion optimization up to the controller based Fig. 4. Experimental results for a load increase. The orig-
on sensor information. There would be many advantages in inal controller has a constraint on yop which it ful-
using MPC in such way. The experimental efforts needed fills by advancing combustion phasing. The controller
for control system development could be reduced when without opacity constraint keeps the setpoint for α50
online optimization replaces precalibrated experimental at the expense of a larger peak in yop during the
maps. The controller could more easily adapt to engine transient. The eninge speed was fixed at N = 1200
wear and shifting environments. There is also a great rpm.
potential in designing the optimization criterion, setpoints,

135
AAC 2010
Munich, Germany, July 12-14, 2010

and constraints considering the requirements of the af- from e.g. valve positions to mass flow. Also, cylinder bal-
tertreatment system. ancing needs to be considered.
The methodology in this paper has come some way to-
wards the goal, but is not yet complete. The following a REFERENCES
priori information is used for the controller: D. Alberer. Fast Oxygen Based Transient Diesel Engine
Control. PhD thesis, Johannes Kepler Universität, Linz,
• A load-varying setpoint for opacity. It would be
desired to replace this with a fixed setpoint based 2009.
L. Guzzella and C. H. Onder. Introduction to Modeling
on what the aftertreatment system can handle.
and Control of Internal Combustion Engine Systems.
• A setpoint for α50 that is determined to be optimal
in terms of fuel consumption. It would be better to Springer-Verlag, Berlin, 2004.
M. Hafner, M. Schüler, O. Nelles, and R. Isermann. Fast
directly measure fuel consumption and use that for
neural networks for diesel engine control design. Control
feedback control. However, some effort is required
to integrate fuel consumption optimization into the Engineering Practice, 8(11):1211–1221, 2000.
J. B. Heywood. Internal Combustion Engine Fundamen-
MPC formulation. Fuel consumption cannot be mod-
tals. McGraw-Hill, New York, 1988.
elled as the output of a linear(-ized) model of type (6)
because at the optimum it is not a monotonically in- M. Hillion, J. Chauvin, and N. Petit. Controlling the
start of combustion on an HCCI diesel engine. In Proc.
creasing/decreasing function of the control variables.
American Control Conference, pages 2084–2091, 2008.
Some extremum-seeking feature must be included
into the controller to minimize fuel consumption on- R. Johansson. System Modeling and Identification. Pren-
line. tice Hall, Englewood Cliffs, New Jersey, 1993.
M. Karlsson, K. Ekholm, P. Strandh, R. Johansson, and
• A setpoint for uV GT , also obtained from experience
on optimal settings for fuel consumption. This set- P. Tunestål. LQG control for minimization of emissions
point should be removed and instead handled through in a diesel engine. In Proc. of the IEEE Multi-conference
on Systems and Control, pages 245–250, San Antonio,
online optimization of fuel consumption.
• Experimental data is required for identification of a TX, USA, 2008.
dynamic model. It would be desirable to replace it M. Karlsson, K. Ekholm, P. Strandh, R. Johansson, and
P. Tunestål. Dynamic mapping of diesel engine through
by a (semi-)physical model, possibly with physical
models for lower level control loops combined with system identification. In Submitted to the 2010 Ameri-
a higher-level model obtained through system identi- can Control Conference, 2010.
J. M. Maciejowski. Predictive Control with Constraints.
fication.
Pearson Education Limited, Harlow, England, 2002.
A drawback of the proposed control scheme is that it M. P. B. Musculus. Multiple simultaneous optical diag-
relies completely on sensors that are not available in nostic imaging of early-injection low-temperature com-
production heavy-duty diesel engines today, namely an bustion in a heavy-duty diesel engine. In SAE Technical
opacimeter and in-cylinder pressure sensors. Naturally, it Paper 2006-01-0079, 2006.
would be desirable to remove the need for such sensors and R. Omran, R. Younes, and J. C. Champoussin. Optimal
find reliable ways of estimating the quantities from other control of a variable geometry turbocharged diesel en-
measured variables. Though interesting progress has been gine using neural networks: Applications on the ETC
made along this path, see e.g. (Alberer (2009)), we believe test cycle. IEEE Transactions on Control Systems Tech-
it is still of interest to study what can be accomplished if nology, 17(2):380–393, 2009.
we assume that all desired measurements are available. P. Ortner and L. del Re. Predictive control of a diesel
engine air path. IEEE Transactions on Control Systems
Technology, 15(3):449–456, 2007.
6. CONCLUSIONS H. Yilmaz and A. Stefanopoulou. Control of charge
dilution in turbocharged diesel engines via exhaust valve
timing. In Proc. American Control Conference, pages
Model predictive control was used for control of a heavy- 761–766, 2003.
duty diesel engine with the aim of simultaneously control-
ling load, combustion phasing, and emissions in an optimal
way with correct trade-offs both in steady-state and during
transients. The controller used direct measurements of
emissions which facilitates relating high-level specifications
to design of a control algorithm. Experimental results
demonstrated the potential of the controller to use the
available degrees of freedom from the actuators to achieve
several objectives simultaneously.
The work presented here used a single linear dynamical
model obtained from system identification in a fixed op-
erating point. In future work, gain-scheduling of several
linear models assembled at different operating points could
be tested to control the engine in a larger operating range.
There is also potential in improving the control scheme
by adding more sensors and closing low-level control loops

136

You might also like