Professional Documents
Culture Documents
Department of Chemical Engineering, McMaster University, 1280 Main Street West, Hamilton, Ontario, Canada L8S 4L8
Johnson Controls Inc., 507 E. Michigan Street, Milwaukee, WI 53202, United States
a r t i c l e i n f o
abstract
Article history:
Received 4 March 2011
Received in revised form
5 July 2011
Accepted 8 July 2011
Available online 29 July 2011
Many systems used in buildings for heating, ventilating, and air-conditioning waste energy because of
the way they are operated or controlled. This paper explores the application of model predictive control
(MPC) to air-conditioning units and demonstrates that the closed-loop performance and energy
efciency can be improved over conventional approaches. This work focuses on the problem of
controlling the vapor compression cycle (VCC) in an air-conditioning system, containing refrigerant
which is used to provide cooling. The VCC considered in this work has two manipulated variables that
affect operation: compressor speed and the position of an electronic expansion valve. The system is
subject to constraints, such as the range of permissible superheat, and also needs to regulate
temperature variables to set points. An MPC strategy is developed for this type of system based on
linear models identied from data obtained from a rst-principles model of the VCC. The MPC strategy
incorporates economic measures in the objective function as well as control objectives. Tests are carried
out on a simulated VCC system that is linked to a simulation of a realistic building that is developed in
the U.S. Department of Energy Computer Simulation Program, EnergyPlus. The MPC demonstrated
signicantly better tracking control relative to conventional approaches (a reduction of 70% in terms of
the integral of squared error for step changes in the temperature set-point), while reducing the VCC
energy requirements by 16%. The paper describes the control approach in detail and presents results
from the tests.
& 2011 Elsevier Ltd. All rights reserved.
Keywords:
Vapor compression cycle
Temperature control
Building control
Energy efcient control
Model predictive control
EnergyPlus
1. Introduction
Environmental concerns as well as increased fuel prices have
brought energy efciency to the forefront of research priorities.
Canada currently ranks as the worlds sixth largest user of
primary energy (such as fossil fuels, nuclear fuels, hydro power,
etc.). In Canada, approximately 30% of the energy obtained from
primary sources of energy is consumed in the commercial and
residential sectors of the economy (Behidj et al., 2009). In these
sectors, a signicant portion of the energy is used towards
meeting the thermal and electrical energy demands in buildings.
Recent government reports estimate that through more efcient
building operation, the total energy consumption by the commercial and residential sectors can be reduced by 1520% (Behidj
et al., 2009).
The operating efciency of a building is inuenced by many
factors and can be improved at various points over its lifespan.
Prior to construction, using design standards that incorporate
energy and environmental concerns is often the rst step to
$
This work is a collaborative effort between Johnson Controls Inc. and the
McMaster Advanced Control Consortium.
Corresponding author.
E-mail address: mhaskar@mcmaster.ca (P. Mhaskar).
0009-2509/$ - see front matter & 2011 Elsevier Ltd. All rights reserved.
doi:10.1016/j.ces.2011.07.023
46
2. Preliminaries
In this section, we give an overview of an existing VCC model
used in this work and point out the key limitations of the models
and modications. Next, we describe the building model and the
software used for interfacing the VCC model with the building
model. Note that model development is not the focus of the
present work. A detailed model of the VCC and the building is
used only to illustrate the control design and is described in this
section for completeness.
2.1. VCC model overview
An ideal VCC consists of four processes: isentropic compression in a compressor, isobaric energy dissipation in a condenser,
isenthalpic expansion in an expansion valve and isobaric energy
absorption in an evaporator. An overlay of a VCC and the
corresponding pressure-volume diagram of the refrigerant is
shown in Fig. 1.
In a VCC unit, the refrigerant enters the compressor as a
superheated vapor and is compressed to a higher pressure,
resulting in the superheated vapor having a higher temperature
than the ambient temperature. From the compressor, the superheated refrigerant vapor enters a condenser (typically placed
outdoors), condensing to a sub-cooled liquid at the condenser
exit as a fan blows the ambient air over the condenser. The high
pressure sub-cooled liquid then ows into an expansion valve
which decreases the pressure and temperature of the refrigerant,
causing a liquidvapor mixture to form. Then, the two-phase
refrigerant mixture enters an evaporator that is exposed to the
environment to be cooled. The environment temperature is above
the temperature of the refrigerant, resulting in the evaporation
and subsequent heating of the refrigerant to a superheated vapor
at the evaporator exit. The air, in turn, is cooled and available as
primary air to be distributed for cooling. The superheated vapor
from the evaporator exit then ows into the compressor, completing the cycle.
The VCC model used in this work is adapted from the existing
simulation package, Thermosys, developed at the Air Conditioning
& Refrigeration Center (ACRC) at the University of Illinois at
Urbana-Champaign. In this simulation package, the refrigerant is
R-134a and is assumed to be cooling an air medium. The
simulator consists of dynamic models for the condenser, evaporator, and compressor and static models (i.e., algebraic equations) for the expansion valve and piping. In the following
subsections, a brief overview of the model components is provided followed by a general mathematical representation. For a
Pressure
Condenser
Valve
Evaporator
Wet vapor
(saturated conditions)
Compressor
Gas
Heat from process
Volume
47
hok
48
Two-phase region
Superheat region
0
@t
@z
_
@rAc hAc P @mh
pi ai Tw Tr
@t
@z
Superheat region
Two-phase region
Sub-cooled region
Fig. 2. Heat exchanger schematics showing the different uid regions (adapted from Rasmussen, 2005) which are modeled using the moving boundary approach.
(a) Evaporator with two uid regions. (b) Condenser with three uid regions.
ao Ac
2
X
Le,i
i1
Le
P
The term, ao Ac 2i 1 Le,i =Le T a,e Tw,e,i , represents the energy
absorption by the evaporator where T a,e is the average air
temperature around the evaporator:
i
o
T a,e 12Ta,e
Ta,e
49
_ a,e and cp,a,e denote the mass ow rate and specic heat
where m
capacity of the dry air being blown over the evaporator (assumed
to remain constant), wia,e and woa,e denote the humidity ratio,
which is dened as the ratio of the mass of water vapor in the air
to the total dry air mass, of the inlet and outlet air (respectively),
and hiW,e and hoW,e denote the specic water vapor enthalpy at the
inlet and outlet air conditions (respectively). The rst term in Eq.
(7) is the heat loss of the dry air and the only unknown variable in
o
this term is Ta,e
(the variable of interest). The second term is the
energy loss of the water vapor content in the air. In this term, the
inlet humidity and water vapor enthalpy are readily computable
from the known temperature (and pressure). If no condensation
occurs, there is no change in the humidity ratio and wia,e woa,e . In
the case of condensation, the outlet air is saturated, implying the
o
relative humidity at the outlet, fa,e , is 1.1 To compute the
humidity ratio, its relationship with the relative humidity can
be used to derive (Dincer and Rosen, 2007, Chapter 6):
woa,e 0:622
o
foa,e PW,e,sat
o
o
Pa fa,e PW,e,sat
o
where Pa is the known air pressure and PW,e,sat
is the saturation
o
pressure of water at Ta,e , which can be computed using Antoines
equation. Meanwhile, the outlet water vapor enthalpy is computed using the standard formula:
Z Ta,e
o
hoW,e hf ,sat
cp,W T dT
Tref
50
Nominal
Re-scaled
Units
_r
m
Vk
Le
Ae,o
Ae,i
Me
De
_ e,a
m
Lc
Ac,o
Ac,i
Mc
Dc
7.76 10 3
3.04 10 5
11.46
3.07
0.32
1.55
8.90 10 3
0.243
10.7
2.79
0.28
4.66
8.10 10 3
1.13 10 2
1.52 10 4
57.29
15.34
1.60
7.74
3.57 10 2
2.43
53.5
13.97
1.38
23.30
3.24 10 2
kg/s
m3
m
m2
m2
kg
m
kg/s
m
m2
m2
kg
m
30
28
26
24
10
12
14
Time (h)
16
18
51
90
80
70
60
8
10
12
14
Time (h)
16
18
500
400
300
200
10
12
14
Time (h)
16
18
Fig. 3. Variations in the ambient temperature, relative humidity, and internal gains, which act as disturbances in the zone 2 EnergyPlus building model.
Read values
ExchangeDoublewithSocket.m
Cooling load
Matlab
BCVTB
Integrate
VCC model
Read values
Integrate
building model
Output
variables
EnergyPlus
3. Temperature control
In this section, we propose a temperature control framework
for regulating the air temperature of zone 2 in the EnergyPlus
building model (interfaced with Matlab). To this end, we rst
identify an auto-regressive exogenous (ARX) model for the VCC
outputs using simulation data. Next, we utilize the model in an
offset free predictive control design for the stand-alone VCC unit
and compare its performance against PI control. Finally, we
integrate the proposed predictive controller in a cascade control
structure for regulating the zone temperature and implement the
control structure on the interfaced building model.
52
ny
X
i1
Ai yki
nu
X
Bi uki
i1
nd
X
Ci dki vk
i1
Table 2
Final ARX model lag structure.
Output
Lags
Ts,e
o
Ta,e
Ts,e
o
Ta,e
ok
vo
Tamb
i
Ta,e
2
1
2
1
2
1
2
1
2
1
2
1
103
12.5
RPM, k
1.5
12
11.5
11
10
20
30
Time (h)
40
50
26
24
22
20
10
20
30
Time (h)
40
50
10
20
30
Time (h)
10
30
20
Time (h)
40
50
25
20
40
Fig. 5. Portion of the input proles used to generate output data for ARX model identication.
50
Nonlinear model
ARX model
25
20
15
10
0
10
20
30
Time (h)
40
50
53
Nonlinear model
ARX model
22
20
18
16
14
0
10
20
30
Time (h)
40
50
Fig. 6. Comparison of the output prediction by the ARX model with the nonlinear model for the input and disturbance proles in Fig. 5.
energy efciency by minimizing the compressor energy consumption (the largest energy consumer in the VCC). The closed-loop
performance is evaluated in terms of the integral of squared error,
o
ISESA , between the supply air temperature, Ta,e
, and its set-point
o
trajectory, Ta,e,SP
:
TEC Dt
ISESA Dt
K
X
o
o
Ta,e,SP
iTa,e
i2
i1
i1
min
umin r uk r umax
subject to :
^
yk
k1
ny
X
i1
Ai yki
nu
X
Bi uki
i1
nd
X
Ci dki
for k 1, . . . ,P
i1
n
^ a bi
y^ k yk
n
y1,min r y^ 1 k ry1,max
^
a ky0y0
b2 i b2 i1 f y2 0y2,SP 0
Table 3
MPC tuning parameters.
Parameter
Value
P
Q
R
r
fy1,min ,y1,max g
fumin ,umax g
fDumin , Dumax g
4
950
diag{0.004,0.5}
350/17002
{3.5, 20}
{[678.8 6]T, [1700 15]T}
k
fg1 ,g2 g
f
0:2 0:50T
{6, 0.3}
0.01
23.5
54
23.4
23.3
23.2
23.1
SP
Nominal
+
23
0
4
Time (h)
Fig. 7. Supply air temperature responses using various combinations of the bias
terms in the proposed MPC design.
MPC
PI
20
15
10
5
0
1.2
10
Time (h)
23.6
23.4
23.2
SP
MPC
PI
23
0
10
Time (h)
15
103
MPC
PI
1.1
RPM, k
55
23.8
15
1
0.9
0.8
0.7
25
14
12
10
8
MPC
PI
6
0
10
Time (h)
15
10
Time (h)
15
Fig. 8. Closed-loop output and input proles for the VCC under MPC and PI control.
Table 4
Stand-alone VCC closed-loop performance metrics.
Metric
Control strategy
PI control
2
ISESA (s 1C )
sett
tSA
(s)
TEC (kJ)
MPC
837
222
10017
9217
56
o
Ts,e ,T a,e
Disturbances
VCC
k
Tzone,SP +
Compressor
T oa,e,SP
PI
MPC/PI
vo
EnergyPlus
Model
Evaporator
Condenser
Tzone
Valve
Fig. 9. Proposed cascade control structure for energy efcient temperature control.
Remark 9. One natural extension of the proposed control structure is to replace the outer PI loop with a model predictive
controller. The main requirement for this extension is to identify a
model between the supply air temperature and the zone air
24.6
24.4
Zone air temperature (C)
24.2
24
23.8
23.6
23.4
MPC
PI
23.2
8
10
11
12
13
14
Time (h)
15
16
17
18
Fig. 10. Air temperature in zone 2 when using a cascade control structure for
temperature control with a PI or predictive controller in the inner loop.
SP
MPC
24
23
22
21
8
10
12
14
Time (h)
16
57
SP
PI
25
24
23
22
21
18
10
12
14
Time (h)
16
18
103
MPC
PI
MPC
PI
1.2
20
RPM, k
25
15
10
0.8
5
10
12
14
Time (h)
16
18
10
12
14
Time (h)
16
18
14
12
10
8
MPC
PI
6
8
10
12
14
Time (h)
16
18
Fig. 11. Closed-loop output and input proles for the VCC when interfaced with the EnergyPlus building model under MPC and PI control.
Table 5
Inner loop performance metrics in the cascade control structure.
Metric
ISESA (s 1C2 )
TEC (kJ)
Control strategy
PI control
MPC
70 978
20 987
5080
4284
4. Conclusions
In this work, control strategies were implemented on a
realistic building model interfaced with a detailed VCC model
which provided the cooling load for a specied zone in the
building. The detailed VCC model was subject to realistic disturbances in the ambient and mixed air conditions as a result of
interfacing the two models. The zone air temperature in the
building model was also subject to realistic ambient air conditions (obtained from actual weather data) and typical internal
load variations. A cascade control structure was proposed to
regulate the zone air conditions in the building model. In the
Notation
Variable
V
r
Z
Description
volume
density
efciency
58
o
t
T
x
u
d
vo
cp
L
w
D
M
t
compressor RPM
time constant
specic enthalpy
pressure drop
discharge coefcient
volumetric mean void fraction
mass ow rate
cross-sectional area
pressure
perimeter
heat transfer coefcient
temperature
state variable
input variable
disturbance variable
valve opening
specic heat capacity
length
humidity ratio
diameter
mass
time
Subscript
Description
k
v
h
e
c
f
r
w
a
amb
W
sat
dp
V
s
SA
SP
compressor
valve
heat exchanger
evaporator
condenser
vapor
liquid
refrigerant
wall
air
ambient
water
saturation
dew point
volumetric
superheat
supply air
set-point
Superscript
Description
i
o
inlet
outlet
DP
Cd
g
_
m
A
P
p
Acknowledgments
Financial support from the Natural Sciences and Engineering
Research Council of Canada through the Collaborative Research
and Development Program (in collaboration with Johnson Controls Inc.) is gratefully acknowledged.
References
Albieri, M., Beghi, A., Bodo, C., Cecchinato, L., 2009. Advanced control systems for
single compressor chiller units. Int. J. Refrig. 32 (5), 10681076.