Professional Documents
Culture Documents
Article Abt Autumobile
Article Abt Autumobile
Article Abt Autumobile
DSCC2016
October 12-14, 2016, Minneapolis, Minnesota, USA
DSCC2016-9769
Paper Outline
Two main points are discussed in the paper: Model descrip-
tion and MPC synthesis and design. The design tools, techniques
employed and model simplification are discussed in the model FIGURE 1. ATTMO VCS Model
description. The design approach discussion includes the MPC
formulation, closed-loop control results for the nonlinear model,
and performance comparison.
MODEL DESCRIPTION
Vapor Compression Cycle High-Fidelity Model
At the Air Force Research Laboratory (AFRL), a Vapor Cy-
cle System Research Facility (VCSRF) was constructed to con-
duct experiments in control and thermal management techniques.
The VCS under study is a simplified version of the VCSRF and
is constructed from the MATLAB Simulink
R TM
-based AFRL
Transient Thermal Modeling and Optimization (ATTMO) tool-
box [9–11]. The overall diagram of the system is shown in Fig-
ure 1. The operation and framework of the system can be de-
scribed as follows: heat is rejected to a mixture of 75% propylene
glycol and 25% water from the circulating refrigerant R134A at
the condenser (the red block near the top of Figure 1). Exiting
the condenser, the refrigerant passes through a flow distributer,
which diverts the refrigerant into 2 parallel paths, with each con-
FIGURE 2. Steady state P-h diagram of the VCSRF model
taining an identical electronic expansion valve (called EXV-4
and EXV-5 in [3]). The refrigerant then passes into evaporators
1 and 2 (called Panel 4 and Panel 5 Evaporators in [3]). In these
heat exchangers, heat is added to the refrigerant from the exter- valve openings are from 29.6% to 39.6%. Midpoint settings of
nal fluid polyalphaolefin (PAO), which is set to a constant inlet these control input ranges are used to operate the VCS for 2, 000
temperature and flow rate. Finally, the gaseous refrigerant passes seconds to achieve the steady-state operating point. Using the
into a flow junction, which merges the parallel streams and en- method to linearize and extract a design model discussed in [12],
ters the compressor, then returning to the condenser to restart the the linear model is then extracted. The equilibrium component
cycle. inlet conditions (except where noted) of this simulation are
provided in Table 1, with the pressure-enthalpy diagram of the
cycle in Figure 2.
VCS Linear Model Derivation
For the above VCS, we attempt to find a steady-state Once the nonlinear model has reached its steady state oper-
operating point to obtain the linear model and to design the ating condition, the linear model was generated using the Lin-
MPC. The steady-state operating point is found by considering earize function in the MATLAB Linear Analysis Tool Box [13].
the range of its control inputs. The compressor speed range For the current VCS, the resultant linear model had 132 states, 4
desired is from 7, 500 rpm to 8, 500 rpm, while the expansion outputs made up of Evaporator 1 oil exit temperature, Evaporator
TABLE 1. System equilibrium conditions used for linear model derivation. N/A indicates that a given initial condition is not applicable to the listed
component
2 oil exit temperature, Compressor inlet pressure, Compressor Models Responses to Compressor Command at 800 second
outlet pressure. The 3 control inputs are the compressor’s speed 0.5
ATTMO Model
in revolutions per minute (rpm), Expansion Value 1 percentage Linear Model
opening, Expansion Valve 2 percentage opening. Essential steps
0
have to be taken to derive a model of the VCS that is conducive
toward developing the MPC controller [12]. These steps are dis-
Evaporator Temperature
a
Q xa (k)
0.5
In Eq. (1), we can rewrite the first four terms of the summation
as:
0
For the MPC design, the performance index J and the closed-
−1
loop response of the VCS depend heavily on the designer’s
600 800 1000 1200 1400 1600 1800 2000 2200 choices for the design parameters P, Qy , Qi , Ru , and Rδ u . Taking
Time (s)
the terms in order in Eq. (2), the first term defines the cost of the
FIGURE 4. Reduced-Order Model Response to Unit Step Expansion current state, where xa is the state vector x augmented with two
Valve integrator states associated with two temperature tracking errors
e1,2 = Tc1,2 − T1,2 , and Q is a symmetric, positive definite matrix
of weights pertaining to each of the system states. The second
term similarly defines the cost of the control action, with u being
the control vector and R the symmetric, positive definite weight
with the control input signal to the plant. For the VCS controller,
matrix. Finally, the last term penalizes the rate of the control
the performance index J is as follows:
actions, preventing the controller from attempting to move actu-
ators beyond their hardware limits.
k=N p
Setting the weights of the cost function is largely a matter of
J = x̂T (N p )Px̂(N p ) + ŷT (k)Qy ŷ(k) + x̂iT (k)Qi x̂i (k) + · · · determining which control actions are preferable to others. For
∑ example, changing the expansion valve opening requires much
k=1
uT (k)Ru u(k) + δ u (k)Rδ u δ u(k) + sT (k)Ss(k)
T
(1) less energy than changing the compressor speed. Therefore, the
relative weight of the valves would be considerably lower than
that of the compressor. This intuitive approach works for the
second two terms, as all of the components in the vectors have a
The performance index shown in Eq. (1) has a quadratic form,
physical meaning; Eq. (3) displays the weights set for the cost
similar to the linear quadratic regulator formulation. The first
function based on this approach, where ε = 2−52 .
term of the performance index J, x̂T (N p )Px̂(N p ), includes the
final values of the estimated controlled system states x̂(N p ) to
ensure the system states x are well-behaved at the final sample of
the prediction horizon N p . All the terms within the summation 10 0 0 0 5 0 0 0
are to ensure the output y(k), the integrator states xi (k), control 0 .001 0 0 0 5 0 0
R= ,R = (3)
0 2 0
input u(k), and the changes in the control inputs δ u(k) provide 0 0 ε 0 .001 0
small temperature tracking error, stable system states, small con- 0 0 0 ε 0 0 0 .001
trol signals, and small changes in the control signals respectively.
The parameters s(k) is a slack parameter vector of the same di- This approach becomes more difficult when determining the
mension as the output y(k). The slack parameter s(k) soften the weighting for the state vector because not all of the states have a
constraints on y(k) so that violations are allowed with the penalty physical, intuitive meaning. It would be beneficial, therefore, to
on the performance index J.The designer’s choice of S influences have a way to systematically find a cost function weighting that
the availability of a feasible control u(k). bring about the desired response.
An automatic method to choose these design parameters can fa-
cilitate the overall MPC design process and can be seen as fol-
lows. At each sampling instance K in Eq. (1), we can rewrite the Approach Since the Q matrix must be symmetric, pos-
first term of the summation as: itive definite, a baseline matrix was chosen which would have
11
10.5
10
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Actuator Control Activities
Time (s)
From Figure 6, the MPC and LQG controllers appear to have
the speed when the temperture commands are initiated. How-
15
Evaporator 2 Oil Exit Temperature ever, under the MPC controller, the compressor begins speeding
14.5
MPC
LQG
up before the temperature commands start, allowing for better
PID
14 tracking with little overshoot. When compared to the PID con-
13.5
troller, there is a difference of 1600 rpm in the compressor speed.
Temperature (/ C)
13
The modulation of the compressor speeds during the temperature
12.5
12
commands are similar. Looking at the expansion valves time re-
11.5
sponses in Figure 7, there is also an offset by around 2% at the
11 begining under the PID controller vs. the MPC and LQG con-
10.5 trollers at t = 500 seconds. Two step temperature commands of
10
0 200 400 600 800 1000 1200 1400 1600 1800 2000
1.5◦ C and 1◦ C to the VCS cause the three controllers to reduce
Time (s)
the openings of the expansion valves as seen in Figure EXVAc-
FIGURE 5. Oil Exit Temperatures Under Different Controllers tion. As expected, the MPC and the LQG controllers regulate
the expansion valves in similar manners while the PID controller
commands to the expansion valves to a different opening posi-
tion. However, all controllers command the expansion valves to
increase their openings by the same amount. Once the step tem-
openings of the Expansion Valves 1 and 2 also begin to change perature commands are removed, both expansion valves return
around t = 425 seconds in anticipation of the step temperature to their steady-state values. Figure 8 shows the pressures of
commands. These control actions by the compressor and the ex- the compressor on the condensor side and evaporator side under
pansion valves allow for the closed-loop VCS under the MPC the three controllers. For the MPC and LQG controllers, these
controller to track the temperature commands with very small pressure time histories are very similar since they have the same
overshoot and undershoot. A comparison of the tracking per- initial trim values and both controllers have the same objective
formances of the three controller can be seen in Figure 5. Un- functions. However, when these pressure responses are com-
der the PID controller, the VCS has more overshoot in tracking pared with that of the PID-controlled plant, there are small differ-
the temperature commands. Temperature overshoots also occur ences in the inlet and outlet pressures of the compressor (418.8
when the VCS is controlled by the LQG controller. Very lit- kPa vs. 386.1 kPa for inlet pressure, and 1362.4 kPa vs. 1378.9
tle overhshoot is observed when the system is controlled by the kPa for the outlet pressure) because the PID controller is tuned
MPC controller. The differences in temperature shoots are due to optimize the inlet pressure. From the time of the initiation of
to the facts that the PID controller is a single-input, single output the temperature commands at t = 500 seconds to the termination
controller with sequential loop closure for each input-output pair of the commands at t = 1750 seconds, the MPC controller and
while the LQG controller is a multi-input, multi-output (MIMO) LQG controller are similar to each other, but different to that of
controller and thus it is able to cross coupling betwen inputs and the PID due to different initial trim state values. A more interest-
outputs. The MPC controller, on the other hand, has the advan- ing feature of the MPC controller is that the pressures at the inlet
tage of a MIMO controller and the ability to include known fu- and outlet of the compressor begin to change in anticipation of
ture disturbances in the current control input computations. Ta- the temperature commands. These anticipatory compressor ac-
ble 2 summarizes the overshoots and undershoots of their time tivities can be seen before t = 500 seconds in Figure 8. After
responses to these temperature step commands. the temperature command inputs return to zero at t = 1750 sec-
Opening (%)
9500 40
35
9000 30
25
0 500 1000 1500 2000 2500
Speed (rpm)
Time (s)
8500
Opening (%)
40
7500 35
30
7000 25
0 200 400 600 800 1000 1200 1400 1600 1800 2000 0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time (s) Time (s)
FIGURE 6. Control Activities of Compressor Speed FIGURE 7. Control Activities of Expansion Valves
onds, the closed-loop plant returns to its acquiescent state under controllers are very similar and are also higher than that of the
all three controllers. closed-loop system under the PID controller. The higher system
COP under MPC and LQG is desirable and is an indirect result of
Coefficient of Performance an optimal controller whose performance index includes control
It is noted that the closed-loop VCS’s coefficient of perfor- signal norms as seen in Eq. (1).
mance (COP) is not directly maximized in the control synthesis
for all three controllers. Instead, tracking performance is opti-
mized by minimizing the resultant errors. The COPs under dif- Conclusion
ferent controllers are analyzed as a fall-out results from the con- In this paper, we have applied the Model Predictive Con-
trollers. The steady-state COP is given as: trol design technique on a constrained linear model of a vapor
compression system. The controller design synthesis include
Q̇loads ṁ1C p (∆T1 ) + ṁ2C p (∆T2 ) a linear model with limited control inputs, limited rates of the
COP = = (16) control inputs, limited system outputs. The MPC controller is
Ẇcomp (ṁc )(h1 − h5 )
a discrete controller with a finite prediction horizon (Np = 17
sampling periods) and a finite control horizon (Nc = 15 sam-
where Q̇loads is the heat rate dissipated by the evaporators, Ẇcomp pling periods). The performance index J includes the norms of
is the power used by the compressor, ṁc is the total refrigerant state values, output values, input values, rates of input values,
flow rate through the compressor, and h1 and h5 are the refrig- and output slack varlues. The linear model of the VCS are rep-
erant enthalpy values at the compressor outlet and inlet, respec- resented as constraints along with other constraints such as the
tively. Using Eq. (9), the COP of the closed-loop VCS under the input constraints, output constraints, and input rate constraints.
MPC, LQG and PID controllers are computed and shown in Fig- While the input constraints are hard constraints, the output con-
ure 9. The COP of the closedloop VCS under the MPC and LQG straints are soft constraints, made possible by the inclusion of the
1390 MPC
LQG
1380 PID
4.8
1370
Pressure (kPa)
1360
1350 4.6
1340
1330
4.4
1320 MPC
LQG
1310 PID
4.2
1300
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time (s)
COP
4
440
3.6
Pressure (kPa)
430
420 3.4
410
400 3.2
390
380 3
0 200 400 600 800 1000 1200 1400 1600 1800 2000 0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time (s) Time (s)
FIGURE 8. System Pressures under Different Controllers FIGURE 9. VCS Coefficients of Performance under Different Con-
trollers