Sparse Identification of Polynomial Models and Its Application To Nonlinear MPC ?
Sparse Identification of Polynomial Models and Its Application To Nonlinear MPC ?
The two contributing factors have the following origin: This section describes the architecture and main charac-
teristics of the Organic Rankine Cycle (ORC) system used
• ybase (t+k|t) is the effect of the past inputs, the apriori for evaluating the performance of the developed control
defined future base control sequence ubase (t+k|t) and strategies. A schematic layout of the ORC system is pre-
the predicted disturbance n(t + k|t). sented in Fig. 1, where also position of the sensors are
• yoptimize (t + k|t) is the effect of the additions δu(t + included.
k|t) that are optimized and added to ubase (t + k|t),
according to δu(t + k|t) = u(t + k|t) − ubase (t + k|t).
The effect of these additions is the discrete time
convolution of ∆U = {δu(t|t), . . . , δu(t + Nu − 1|t)}
with the impulse response coefficients of the system
(G matrix), where Nu is the chosen control horizon.
The control ∆U is the solution to the following constrained
optimization problem:
N2
X 2
∆U =arg min [r(t + k|t) − y(t + k|t)]
∆U ∈ RNu
k=N
(14)
1
subject to A.∆U ≤ B
where N1 and N2 are the minimum and maximum pre-
diction horizons, Nu is the control horizon, r(t + k|t) is a
future setpoint or reference sequence. The various process
inputs and output constraints can all be expressed in terms
of ∆U , resulting in matrices A, B. Fig. 1. Schematic layout of the pilot plant available at
As the cost function (14) is decision variables ∆U is Ghent University, campus Kortrijk (Belgium)
quadratic with linear constraints, then the minimization
4.1 The Organic Rankine Cycle system where Ẇexp is the expander electrical power, Ẇpump is the
pump electrical power and Q̇in,ORC is the thermal power
The system considered in this study is the pilot plant supplied to the ORC system in the evaporator.
available at Ghent University campus Kortrijk (Belgium).
The system based on a regenerative cycle and Solkatherm 4.2 Low-order model suitable for prediction
(SES36) as working fluid, has a nominal power of 11 kWe.
The expander is originally a single screw compressor The ORC unit considered in this study has one ma-
adapted to run in expander mode. It drives an asyn- nipulated variable (the pump speed), and two outputs
chronous generator connected to the electric grid through (the evaporating temperature Tsat,ev and the superheating
a four-quadrant inverter, which allows varying the gen- ∆Tsh ). Notice that the temperature Thf and mass flow
erator rotational speed (Nexp ). During the experiments variations mhf in the heat source also influence Tsat,ev and
performed in this paper, the generator rotating speed ∆Tsh , thus becoming two measured disturbances. As result
is kept constant at 3000 rpm to simulate an installation we are interested on identifying a system consisting of 3
directly connected to the grid. The circulating pump Npp inputs (one manipulated and two measured disturbances)
is a vertical variable speed 14-stage centrifugal pump with and 2 outputs.
a maximum pressure of 14 bar and 2.2 kW nominal power.
A more detailed description of the setup and acquisition A linear parametric identification is performed in the
system can be found in Gusev et al. (2014). system using the prediction error minimization method
in the data collected from a multisine excitation signal
Starting from the bottom of the scheme (figure 1) it is Ljung (2007). The identified model presented in (19) is in
possible to recognize the liquid receiver installed at the the form of discrete-time transfer functions for a sampling
outlet of the condenser, where the fluid is collected in time of Ts = 1 s .
saturated liquid condition. From the receiver outlet, the
∆Tsh (q) −0.063q −1 + 0.059q −2
fluid is pumped through the regenerator cold side, and the = (19a)
Npp (q) 1 − 2.44q −1 + 1.955q −2 − 0.51q −3
evaporator, where it is heated up to superheated vapor,
reaching its maximum temperature at the evaporator ∆Tsh (q) 0.47q −1
= (19b)
outlet. The fluid, after being expanded in the volumetric Thf (q) 1 − 0.51q −1
machine, enters the regenerator hot side, and then it flows ∆Tsh (q) −2.98q −1 + 4.29q −2 − 1.31q −3
= (19c)
into the condenser to close the cycle. mhf (q) 1 − 1.35q −1 − 0.11q −2 + 0.46q −3
Regarding the optimal operation of the ORC unit, the Tsat,ev (q) 0.066q −1 − 0.063q −2
= (19d)
superheating and the evaporating temperature are the Npp (q) 1 − 2.42q −1 + 1.91q −2 − 0.49q −3
most relevant variables to be controlled Lemort et al. Tsat,ev (q) 0.0017q −11 − 0.0017q −12
= (19e)
(2011). The superheating is defined as: Thf (q) 1 − 3.6q −1 + 4.88q −2 − 2.95q −3 + 0.67q −4
∆Tsh = Texp,su − Tsat,ev (15) Tsat,ev (q) 2.43q −1 − 6.16q −2 + 5.33q −3 − 1.6q −4
= (19f)
mhf (q) 1 − 2.93q −1 + 3.12q −2 − 1.42q −3 + 0.23q −4
where Texp,su is the temperature measured at the inlet
of the expander and Tsat,ev the evaporating temperature, Next, we are interested in identifying a nonlinear polyno-
corresponding to the temperature at which the fluid un- mial model of the system. The following input signals have
dergoes the phase transition from saturated liquid to sat- been considered to perform the sparse identification: the
urated vapor at the fixed evaporating pressure Psat,ev . heat source conditions Thf and mhf have been simulated
as white noise filtered to a maximum band of 0.5 rad/s and
Tsat,ev = f (Psat,ev ) (16)
0.63 rad/s with amplitude variations of ± 20 ◦ C around
where f corresponds to a function that correlates the 110 ◦ C and ± 0.5 kg/s around 1.0 kg/s, respectively. The
pressure for the refrigerant SES36. pump speed has been taken as the sum of 10 sinusoids
spread over the band [0.005, 0.63] rad/s, taking values be-
Research performed on ORC technology has already es- tween 1320 rpm and 2100 rpm. A set of L = 2000 samples
tablished that to optimally operate the ORC unit, two has been generated from the ‘true’ system, considering a
conditions need to be satisfied Quoilin et al. (2011): sampling time of Ts = 1 s.
i A ‘high’ efficiency and a safe operation of the ORC In order to perform the sparse identification, a set of
unit is achieved if a minimum amount of superheating n = 57 polynomial basis functions has been considered
at expander inlet is guaranteed. and the corresponding matrix Φ = (Φ1 (x̃), . . . , ΦL (x̃)) has
ii For each heat source condition there exists an optimal been obtained according to:
evaporating temperature which maximizes the output Φk (x̃) =[φ1 (x̃), . . . , φn (x̃))]
power. =[1, y(k − r), Npp (k − r), Thf (k − r), mhf (k − r),
The main terms to assess the performance of the ORC y(k − r)2 , y(k − r) ∗ Npp (k − r), y(k − r) ∗ Thf (k − r),
system are the net output power and the cycle efficiency y(k − r) ∗ mhf (k − r), Npp (k − r)2 ,
which are defined in equation (17) and (18), respectively. Npp (k − r) ∗ Thf (k − r), Npp (k − r) ∗ mhf (k − r),
Ẇel,net = Ẇexp − Ẇpump (17) Thf (k − r)2 , Thf (k − r) ∗ mhf (k − r), mhf (k − r)2 ]
(20)
where r is the regresor which defines how many variables
Ẇel,net we look in the past, for example r = 2 represents y(k −
ηcycle = (18)
Q̇in,ORC r) ≡ [y(k − 1), y(k − 2)]; in this example r = 4 and k =
1, 2, . . . , L. Also note that in this case two multiple-input a NEPSAC-NMPC based on the nonlinear polynomial
single-output (MISO) systems have been identified, one model. The controller are tested in simulation using a
for superheating and other for evaporating temperature. heat source profile which could be typically observed in
Therefore, in (20) y(k − r) has to be replaced by each of industrial waste heat Quoilin et al. (2011), as for example
our outputs, i.e. ∆Tsh (k − r) and Tsat,ev (k − r). from exhaust gases from a reheat furnace, as depicted in
figure 4.
For the case of ∆Tsh the basis function set contains 17
functions defining the ‘true’ system equation, while for
Tsat,ev only 8 functions were required. Meaning that su- 140 2
Thf
perheating has more complex dynamics than the one of mhf
evaporating temperature. Simulations using the validation
data are performed for both linear and nonlinear models. 125 1.625
mhf [kg/s]
Thf [ºC]
for which both models present an acceptable performance 110 1.25
20
We assume that there exists an optimizer which computes
∆ Tsh [°C]
15
the optimal evaporating temperature as a function of the
10
5
heat source conditions (Thf and mhf ). The control objec-
0
tive is thus to follow the optimal setpoint which maximizes
0 500 1000 1500 2000 the output power, while keeping the superheating above
10
a desired threshold value, in order to guarantee a safe
operation.
0
Error
100 15
Tsat [°C]
95 10
5 MPC NMPC
90
0
85 200 400 600 800 1000 1200 1400 1600 1800 2000
80 120
0 500 1000 1500 2000
5 110
Tsat (°C)
100
0 90
Error
80
−5 70
200 400 600 800 1000 1200 1400 1600 1800 2000
−10 2000
0 500 1000 1500 2000
Npp (rpm)
1600
Fig. 3. Prediction of evaporating temperature using the 1400
identified linear and non-linear models as simulators. 200 400 600 800 1000 1200 1400 1600 1800 2000
Time (s)
15
10 numerical methods for nonlinear mpc and moving hori-
MPC NMPC
5
zon estimation. In Nonlinear Model Predictive Control,
0
1300 1350 1400 1450 1500 volume 384, 391–417. Springer Berlin Heidelberg.
120 Grune, L. and Pannek, J. (2011). Nonlinear Model Pre-
110 dictive Control. Theory and algorithms. Springer.
Tsat (°C)
100
Gusev, S., Ziviani, D., Bell, I., De Paepe, M., and Van den
90
Broek, M. (2014). Experimental comparison of work-
80
70
ing fluids for organic rankine cycle with single-screw
1300 1350 1400 1450 1500 expander. In In 15th International Refrigeration and
2000 Air Conditioning Conference at Purdue, Proceedings.
Lemort, V., Zoughaib, A., and Quoilin., S. (2011). Com-
Npp (rpm)
1800
parison of control strategies for waste heat recovery
1600
organic rankine cycle systems. In Sustainable Thermal
1400
Energy Management in the Process Industries Interna-
1300 1350 1400 1450 1500
Time (s) tional Conference (SusTEM2011).
Ljung, L. (2007). System identification: theory for the user.
Fig. 6. Zoom on Control performance for MPC and Prentice-Hall.
NMPC. Maciejowski., J. (2002). Predictive Control: With Con-
straints. Pearson Education. Prentice Hall.
Novara, C. (2011). Sparse identification of nonlinear
Although the linear MPC represents a very good option to functions and parametric set membership optoptimal
achieve optimal and safe operation of the ORC unit. The analysis. In in proc. American control conference, San
performance can be enhanced by means of the nonlinear Francisco, USA.
MPC controller, which is able to keep superheating above Qin, S. and Badgwell., T. (2003). A survey of industrial
the threshold value by making a more accurate prediction model predictive control technology. Control engineer-
(avoiding any liquid drop in the expander) and to present ing practice, 11, 733–764.
a smoother control effort (enlarging the pump life). Quoilin, S., Aumann, R., Grill, A., Schuster, A., and
Lemort., V. (2011). Dynamic modeling and optimal
control strategy for waste heat recovery organic rankine
5. CONCLUSIONS
cycles. Applied Energy, Vol. 88, 2183–2190.
Rao, C., Rawlings, J., and Mayne, D. (2003). Constrained
In the present contribution, a relaxed sparse identification state estimation for nonlinear discrete-time systems: sta-
algorithm is presented in order to identify a parametric bility and moving horizon approximations. Automatic
model of a nonlinear system, with prescribed modeling Control, IEEE Transactions on, 48(2), 246–258. doi:
error. The obtained input/output polynomial model is 10.1109/TAC.2002.808470.
further used in order to construct a constrained Non- Wang, L. (2010). Model Predictive Control System Design
linear Model Predictive Control strategy using NEPSAC and Implementation Using MATLAB
. R Advances in
approach. The performance of the proposed controller is Industrial Control. Springer.
tested and compared to the one achieved using a linear
model predictive controller for a waste heat recovery appli-
cation using ORC technology. The obtained results suggest
that the NMPC strategy leads to a smoother and safer
operation of the system, allowing to operate closer to the
boundary conditions where production is maximized.
Future work includes identification and control of multiple
input multiple output systems and using the knowledge of
the prescribed modeling error to build a robust NMPC
controller.