Professional Documents
Culture Documents
101
INTRODUCTION
The predictive controllers are based on the mathematical model of the object,
which is being controlled. Nonlinear system identification and prediction is a complex
task. All the processes in nature are nonlinear. In large number of processes, the
nonlinearities are not prominent, so their behavior can be described by the linear
model. In the linear systems theory there exist a large number of methods that can be
applied for obtaining the linear model of processes. The nonlinear model must be
chosen when the nonlinearity is strongly exhibited. In the identification process, the
parameters of the mathematical model are being determined as such that the difference
between the system response and its mathematical model is as least as possible, both in
the transient regime and in stationary state. The general model of linear processes is
ARX (Auto Regressive eXogenous); while for the nonlinear ones it is NARX
(Nonlinear Auto Regressive eXogenous). The NARX model structure enables
application of the neural networks, the fuzzy systems and the neuro-fuzzy systems for
approximation of the nonlinear function. Identification nonlinear system by TakagiSugeno fuzzy model has been successfully applied in many applications, [1, 2].
Authors in [3] investigated the identification of nonlinear systems by feedforward
neural networks, radial basis function neural networks, Runge-Kutta neural networks
102
NEURO-FUZZY MODELING
A wide class of nonlinear dynamic systems with an input u and an output y can
be described by the model:
ym ( k ) = f m ( ( k ) , )
(1)
where:
ym ( k ) is the output of the model,
regression vector
is the parameter vector
nu denotes the maximum lag of the input and n y denotes the maximum lag of the
output.
The structure scheme of the Takagi-Sugeno fuzzy system identification is shown in
Figure 1.
The input vector to the Takagi-Sugeno fuzzy system is defined as:
I T ( k ) = u ( k 1) , u ( k 2 ) ,... u ( k nu ) , y ( k 1) , y ( k 2 ) ... y ( k n y )
103
output variable. Linguistic values of the variable y ( k i ) are A1i , A2i ,..., Ani , i = 1, n y
and u ( k i ) are B1i , B2i , ..., Bni , i = 1, nu . For the system with n y + nu inputs and one
output, set of linguistic rules is defined in the form:
104
ym ( k ) = zi f i
(2)
i =1
where:
zi =
zi
(3)
zi
i =1
( y ( k n )) ( u ( k 1) )
y
B11
( y ( k n ) ) ( u ( k 1) )
y
B11
B12 ( u ( k 1) ) ... B2 nu ( u ( k nu ) )
...
( y ( k n ) ) ( u ( k 1) )
y
B21
B22 ( u ( k 2 ) ) ... B2 nu ( u ( k nu ) )
...
Bn 2 ( u ( k 2 ) ) ... Bnnu ( u ( k nu ) )
( y ( k n ) ) ( u ( k 1) )
y
Bn1
105
Aij =
1
y ( k j ) a A
ij
1 +
Aij
bAij
, i = 1, n; j = 1, n y
and
Bij =
1
u ( k j ) aB
ij
1 +
cBij
bBij
, i = 1, n; j = 1, nu .
a Aij , bAij , cAij , aBij , bBij , cBij are the parameter of the function Aij and Bij .
Consequences functions of the fuzzy rules are of the form:
ny
nu
j =1
j =1
f i = ij y ( k j ) + ij u ( k j ) + i .
(4)
Substituting (4) and (3) into (2) the system output is obtained as:
ym ( k ) =
1
p
zi
ny
nu
i =1
j =1
j =1
zi ij y ( k j ) + ij u ( k j ) + i .
(5)
i =1
The difference between the output of the plant y ( k ) and the output of the network
ym ( k ) is called the prediction error:
e ( k ) = y ( k ) ym ( k ) .
(6)
This error is used to adjust the parameter in the Takagi-Sugeno fuzzy system via
the minimization of the following function:
2
1
= y ( k ) ym ( k ) .
(7)
2
106
object current states and future control signals, u ( k + i ) , i = 1,2,..., N c , where N c is the
control horizon and N c N H . The predictive controllers compute potential future
control signals such that the future outputs will be as close as possible to the desired
values r ( k + i ) , i = 1,2,..., N H .
There exist several types of the predictive controllers. In this work is used the
GPC (General Predictive Control) controller, where the cost function is calculated as:
NH
Nc
J ( k ) = r ( k + m ) ym ( k + m ) + u 2 ( k + m 1)
m =1
(8)
m =1
where:
u 2 ( k + m 1) = u ( k + m 1) u ( k + m 2 )
is the weight factor of the control signal.
Model output ym ( k + m ) is calculated based on (5):
ym ( k + m ) =
nu
ny
y
k
+
m
j
+
(
)
i ij
ij u ( k + m j ) + i
p
i =1
j
=
1
j
=
1
zi
(9)
i =1
Nc
Taking into account the term u 2 ( k + m 1) in the cost function (8) prevents
m =1
the control signals to be too big such that the executive organs would not be able to
realize.
T
optimization
problem,
i.e.,
determination
of
u ( k ) , u ( k + 1) ,...,
107
In this work for obtaining the optimum values of the control signals, the function
fminunc of the Matlab's Optimal Toolbox was used. In the k-th step N c 1 control,
signals are obtained. The first calculated signal is being sent to the controller output.
SIMULATION RESULTS
For the simulation example, we consider the nonlinear plant, which is described
by the following nonlinear difference equation:
y ( k 1) y ( k 2 ) y ( k 1) + 2.5
y ( k ) = 0.35
+ u ( k 1) .
(10)
2
2
1 + y ( k 1) + y ( k 2 )
...
R27 : if y ( k 1) is A31 and y ( k 2 ) is A32 and u ( k 1) is B31 then:
f 27 = 0.6759 y ( k 1) 0.05963 y ( k 2 ) + 0.3103u ( k 1) 0.05284
Since the object model is formed, it is necessary to define the cost function (8)
parameters. These parameters are selected by the trial and error method. By increasing
the variance of the control signal is decreasing, but simultaneously the difference
between the set and real value of the object output is increasing. In the considered
example, the satisfactory results are obtained for the following values of parameters:
N H = 3 , N c = 3 , = 0.05 .
The optimal predictive controller in the k-th step computes the control signals:
T
u ( k ) , u ( k + 1) . In Figure 2 a), the reference signal is shown by the solid line, while
108
the broken line denotes the object output. In Figure 2 b), difference between the
reference signal and the object output is shown. From the figure, it is obvious that the
tracking error is small. The variation of the control signal is shown in Figure 3. From
the figure, one can notice that the executive organ can track the generated control
signal, since it is not oscillatory. The obtained solution is good for practical realization.
r
y
0.6
0.5
0.4
0.3
0.2
0.1
0
0
10
20
30
40
50
60
70
80
90
60
70
80
90
100
t [s]
a)
0.3
r-y
0.2
0.1
0
-0.1
-0.2
0
10
20
30
40
50
t [s]
100
b)
109
1.2
u
1
0.8
0.6
0.4
0.2
0
0
10
20
30
40
50
60
70
80
90
t [s]
100
CONCLUSIONS
In this work is considered the synthesis of the predictive controller for control of
the nonlinear object. The object is modeled by the Takagi-Sugeno fuzzy system. The
cost function is selected so, that by its minimization the difference is decreased
between the future object outputs and the desired values of the outputs, with
simultaneous minimization of the control signal variance. In the paper is the
optimization problem solved by the iterative procedure.
The simulation results, given in Section four, show that the predictive controllers
can successfully be applied for control of the prominently nonlinear object. The given
trajectory tracking error is small. The proposed structure can be applied in control of
the linear objects that are modeled by the Takagi-Sugeno fuzzy system.
Acknowledgement: This research was supported by the Ministry of Science and
Environmental Protection of Republic of Serbia through the Mathematical Institute
SANU Belgrade, Grants No. 144002.
REFERENCES
[1]
[2]
110
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]