Control and Optimize Nonlinear Systems
Control and Optimize Nonlinear Systems
Control and Optimize Nonlinear Systems
Control and
Optimize
Nonlinear Systems
Turbocharging a constrained model predictive
controller (CMPC) with fuzzy logic allows
CMPCs to be applied to nonlinear systems.
Andrew C. Burden,
Roberto Z. Tantalean and
Pradeep B. Deshpande,
University of Louisville
Membership Function, µ
A fuzzy transi- 1.0 1.0 Plot of the
tion in which the membership
state of the pro- µA functions.
cess contains
the properties of
both states A µB
and B in a cer-
tain proportion
0.0 0.0
A B 50 53 60
turbances) that produced the outputs in step 1, predict the of the constraints on the MVs and the CVs. The parameter
CVs for P sampling intervals into the future. The parame- M is the control horizon.
ter P is the prediction horizon. Step 5. Apply the first of these M moves in each of the
Step 3. Correct the vector of predicted CVs to account MVs to the process and repeat steps 1–4 at the next sam-
for the presence of modeling errors and unmeasured dis- pling interval.
turbances. In this context, the differences between the The parameters N (longest open-loop settling time), M
measured CVs and the predicted CVs serve as indications and P have a bearing on controller responsiveness and ro-
of modeling errors and unmeasured disturbances. bustness (the ability to maintain stability in the presence
Step 4. Solve a constrained optimization problem to of a plant/model mismatch). With proper choices of these
compute a set of M controller movements, such that a parameters, perfect control (minimum variable control)
user-selected optimization index is satisfied, subject to all can be specified. However, in this instance, excessive
movements of the MVs result and the system can become
Nomenclature unstable in the presence of modeling errors. If P is set
equal to N plus M, the computations are simplified and a
a0 = linear membership function constant for process state A high-performance controller with desirable robustness
b0 = linear membership function slope for process state A
properties results.
c0 = linear membership function constant for process state B
CV = controlled variable (process output) CMPC contains a number of parameters for specifying
d0 = linear membership function slope for process state B operational objectives. These include:
E = error (R–CV) • The upper and lower limits of the CVs specify the tar-
Kc = proportional controller gain gets. A unique setpoint is specified by setting the upper
M = control horizon limit equal to the lower limit. Different values specify the
MV = manipulated variable (process input) bounds within which the outputs are to be contained. The
N = longest open-loop settling time controller first tries to regulate the outputs within their re-
NL = negative large, fuzzy linguistic variable
spective bounds. If it can do so, then it focuses on achieving
NM = negative medium, fuzzy linguistic variable
NS = negative small, fuzzy linguistic variable the economic objectives specified with the cost coefficients.
P = prediction horizon • Weights associated with the CVs are used to prioritize
PL = positive large, fuzzy linguistic variable the relative importance of the outputs. It is possible to spec-
PM = positive medium, fuzzy linguistic variable ify tighter control of some outputs relative to the others.
PS = positive small, fuzzy linguistic variable • The upper and lower limits on the MVs specify their
R = PID controller setpoint bounds, which the CMPC will not violate.
Rule = fuzzy rule • The cost coefficients associated with the MVs allow
T = sampling period
for their allocation on the basis of economic criteria speci-
Z = zero, fuzzy linguistic variable
∆E = change in error fied in the objective function. Move suppression coeffi-
∆M = manipulated variable movement cients allow for smooth MV movements.
∆E = -0.35
Let us take a numerical example to illustrate the con- 0 NL NS Z PS PL
cepts and to show how the membership functions are deter-
mined. Assume at process state A, the CV has a value of 50 –0.1 NL NL NS Z PS
and its value at process state B is 60. The property of inter- –0.5 NL NL NL NS Z
est is the proportional controller gain, Kc. Process testing
1.0
µ3
µ4
0.0
µA = a0 + b0(CV) (3a)
■ Figure 3c. Fuzzy rule base definitions and controller actions.
Since µA = 1.0 when the CV = 50.0, and µA = 0.0 when
the CV = 60.0, the constants in Eq. 3a are a0 = 6.0 and ( K c ( A ) × µ A ) + ( K c ( B) × µ B )
b0 = –0.1. Therefore: Kc (C ) = = 2.3 (5)
µA + µB
µA = 6.0 – 0.1 (CV) (3b)
Fuzzy-PID
Similarly, PID-type control is commonly used — meeting over
90% of the industrial control requirements — so advanced
µB = c0 + d0 (CV) (4a) control and optimization strategies that work in conjunc-
tion with this type of control are likely to be accepted by
Here, µB = 1.0 when the CV = 60.0, and µB = 0.0 when operators. This article will focus on the popular propor-
the CV = 50.0, so c0 = –5.0 and d0 = 0.1. Therefore: tional plus integral (PI) control law, which can be readily
extended to include the derivative mode. Essentially,
µB = –5.0 + 0.1 (CV) (4b) there are two ways of configuring a fuzzy PI controller.
Approach I. The fuzzy PI controller is designed to
For the process state C, where the CV = 53, Kc may be mimic traditional PI control action, adjusting the MV di-
computed according to: rectly. To construct this type of controller, we begin with
NL NM NS Zero PS PM PL
∆E
PL NL NM NS Zero PS PM PL
PM NL NM NS Zero PS PM PL
PS NM NS NS Zero PS PS PM
Zero NM NS Zero Zero Zero PS PM
NS NM NS NS Zero PS PS PM
NM NL NM NS Zero PS PM PL
NL NL NM NS Zero PS PM PL
■ Figure 4. Control surface produced by a 2-D fuzzy PI controller. ■ Figure 5. Fuzzy rule base for tuning parameters for determination.
the velocity form of the PI control law, which states that Step 2. Compute µ1 and µ2 by referring to Eq. 3a and
the manipulated variable movement, ∆Mn, is a function of an illustrative fuzzy plot for En (Figure 3b).
the error and the change in error: ∆Mn = f(En, ∆En): Step 3. Compute µ3 and µ4 by referring to Eq. 3a and
an illustrative fuzzy plot for ∆En (Figure 3b).
T Step 4. Using the fuzzy rule base in Figure 3a, use the
∆Mn = Kc ( ∆En + En ) (6) nearest four rules that encompass the location of the pro-
τI
cess state to compute ∆Mn.
Therefore, a 2-D fuzzy PI controller may be construct- Denoting the four rules as Rulei,j, where i (i =1, 2) rep-
ed to imitate traditional PI control action at every control resents a row index and j (j = 1, 2) represents a column
interval using the known values of En and ∆En. To do so, a index, ∆Mn may be computed using the method of weight-
set of rules is needed to determine what control action to ed averages according to:
take for various combinations of En and ∆En. For example,
a rule might state that if En is positive small (PS) and ∆En 2 2
is positive large (PL), then the control action should be ∑ ∑ Rulei, j µ i µ j +2
i =1 j =1
PL. The linguistic variables (PS, NL, Z, etc.) correspond to ∆Mn = 2 2 (7)
numerical values selected by the designer. The linguistic ∑ ∑ µ i µ j +2
i =1 j =1
control actions suggested by the rules in Figure 3a corre-
spond to illustrative values of ∆Mn shown in Figure 3b.
The stepwise procedure for constructing a 2-D fuzzy PI Example 1. Suppose En = 2 and ∆En = –0.35. Then,
controller is as follows: from Figure 3b µ1 = 0.375, µ2 = 0.0625, µ3 = 0.75 and µ4
Step 1. Compute En and ∆En. = 0.25. Comparing the highlighted area in Figure 3b and
the associated rules together with
their numerical values in Figure
3c, gives: Rule1,1 = Z = 0.0, Rule1,2
CV CV = PS = 1.0, Rule2,1 = NS = –1.0,
PL
and Rule2,2 = Z = 0.0. Therefore,
Defined State
PM
PS
CVi+2 substitution in Eq. 7 results in ∆Mn
= –0.375.
CVi CVi+1 These computations are re-
NS peated at every control interval.
NM CV i
NL Note the diagonal symmetry of the
fuzzy rule base of Figure 3a. This
}
}
}
MV ∆M 5 ∆M 5 ∆M 5
MV
symmetry mimics a PI controller
in the velocity form. The symme-
try may be manipulated by adjust-
■ Figure 6a (left). The manipulated variable movements of six step-tests at a defined controlled-variable value. ing the rules and/or the associat-
■ Figure 6b (right). Multiple step tests conducted within the positive medium (PM) class. ed values of controller actions
PS PM PL
NL NM NS Zero PS PM PL
∆E
PL NL NM NS Zero PS PM PL
PM NL NM NS Zero PS PM PL
PS NM NS NS Zero PS PS PM
Zero NM NS Zero Zero Zero PS PM NS NM NL
NS NM NS NS Zero PS PS PM
NM NL NM NS Zero PS PM PL
NL NL NM NS Zero PS PM PL
Tuning Parameter
Proportional Band
Proportional Band
Proportional Band
∆E ∆E ∆E
E E E
1 control volume.
Commercial processes generally ex-
0.8 hibit two types of nonlinearities. In one
case, the process gain varies across the
0.6 operating range of the CV. This is re-
0.4
ferred to as gain nonlinearity. In the
other, parameters involving time dy-
0.2 namics may also vary across the operat-
ing range. In both cases, the control ob-
0 jective is to use appropriate tuning pa-
0 5 10 15 20 25 30 35 40 45 50 55 60
rameters determined via the fuzzy logic
Time, s concepts described to prevent perfor-
mance degradation, regardless of where
■ Figure 11. Normalized closed-loop responses of the single-input single-output system using a the CV may be located. The next exam-
fixed-term PI controller. ple, built around a first-order system
containing a gain nonlinearity, offers a
1.4
comparative assessment of fixed-term
PI control vs. 3-D fuzzy PI control.
1.2 Example 3. The dual process simulator
Controlled Variable
30 30
20 20
10 10
0 0
0 20 40 60 80 100 0 25 50 75 100 125
Proportional Band
Reset (1/s)
0.19
80 20 0.15
60 0.18 15
0.1
40 10
0.17 0.05
20 5
0 0.16 0 0
0 20 40 60 80 100 0 25 50 75 100 125
100 100
Set Point, %
80 80
Controller
60 60
40 40
20 20
0 0
0 20 40 60 80 100 0 25 50 75 100 125
50 50
Variable B, %
Manipulated
40 40
30 30
Maximize
20 20 Maximize
10 10
0 0
0 20 40 60 80 100 0 25 50 75 100 125
60 80
Variable A, %
50
Manipulated
60
40
30 40
20
20
10
0 0
0 20 40 60 80 100 0 25 50 75 100 125
Time, s
■ Figure 16. Optimization results for a setpoint change from 20% to 40%.
Figure 13, while the effect of the manipulated variable B from Six Sigma and Advanced Controls, Inc. In this in-
(MVB) on the CV is linear. stance, a dynamic data exchange facility is required to per-
Figure 14 is a schematic of the 1 × 2 process and the form two functions: (1) to update the tuning parameters of
control strategy. The CMPC software used is ONLINE the 3-D fuzzy PI controller and (2) to fetch the CV from
20 20
15 15
10 10
5 5
0 0
0 25 50 75 100 125 0 25 50 75 100 120
Proportional Band
Reset (1/s)
80 0.15 20 0.15
60 15
0.1 0.1
40 10
20 0.05 5 0.05
0 0 0 0
0 25 50 75 100 125 0 25 50 75 100 125
100 100
Set Point, %
80 80
Controller
60 60
40 40
20 20
0 0
0 25 50 75 100 125 0 25 50 75 100 125
50 50
Variable B, %
Manipulated
40 40
30 30
Minimize
20 20 Minimize
10 10
0 0
0 25 50 75 100 125 0 25 50 75 100 125
50 50
Variable A, %
40 40
Manipulated
30 30
20 20
10 10
0 0
0 25 50 75 100 125 0 25 50 75 100 125
Time, s
the FIX32 database, making it available to ONLINE, and In this application, the 3-D fuzzy PI controller uses the
to write outputs from ONLINE back to the FIX32 rule base of Figure 5 in conjunction with the error and
database. The ONLINE outputs are the 3-D fuzzy PI con- change-in-error fuzzy sets of Figures 15a and 15b.
troller setpoint and the MVB. To account for the nonlinear effect of the MVA upon