algorithm uses this model to calculate the next
control input, u(t+1), from predictions of the
response from the plant’s model. Once the cost
function is minimized, this input is passed to the
plant.
3 NEURAL GENERALIZED
PREDICTIVE CONTROL
The ability of the GPC to make accurate predictions
can be enhanced if a neural network is used to learn
the dynamics of the plant instead of standard
nonlinear modeling techniques.(Noorgard, Ravn,
Poulsen and Hansen, 2000). The selection of the
minimization algorithm affects the computational
efficiency of the algorithm. In this work Newton-
Raphson method is used as the optimization
algorithm. The main cost of the Newton-Raphson
algorithm is in the calculation of the Hessian, but
even with this overhead the low iteration numbers
make Newton-Raphson a faster algorithm for real-
time control. (Soloway, 1996). The Neural
Generalized Predictive Control (NGPC) system can
be seen in Fig. 1. It consists of four components, the
plant to be controlled, a reference model that
specifies the desired performance of the plant, a
neural network that models the plant, and the Cost
Function Minimization (CFM) algorithm that
determines the input needed to produce the plant’s
desired performance. The NGPC algorithm consists
of the CFM block and the neural net block.
Figure 1: Block Diagram of NGPC System.
The NGPC system starts with the input signal, r(t),
which is presented to the reference model. This
model produces a tracking reference signal, w(t+k),
that is used as an input to the CFM block. The CFM
algorithm produces an output that is either used as
an input to the plant or the plant’s model. The
double pole double throw switch, S, is set to the
plant when the CFM algorithm has solved for the
best input, u(t), that will minimize a specified cost
function. Between samples, the switch is set to the
plant’s model where the CFM algorithm uses this
model to calculate the next control input, u(t+1),
from predictions of the response from the plant’s
model. Once the cost function is minimized, this
input is passed to the plant. The computational
performance of a GPC implementation is largely
based on the minimization algorithm chosen for the
CFM block. Models using neural networks have
been shown to have the capability to capture
nonlinear dynamics. Improved predictions affect rise
time, over-shoot, and the energy content of the
control signal.
3.1 Formulation of NGPC
3.1.1 Cost Function
As mentioned earlier, the NGPC algorithm
(Soloway, 1996) is based on minimizing a cost
function over a finite prediction horizon. The cost
function of interest to this application is
[][]
2
22
ˆ
(, , ) ()( |) ( ) () ( 1)
12
1
1
N
N
u
JNNN jytjt wtj j utj
u
jN j
δλ
=+−++Δ+−
∑∑
==
(1)
N
1
= Minimum Costing Prediction Horizon
N
2
= Maximum Costing Prediction Horizon
N
u
= Length of Control Horizon
()yt kt
⏐
= Predicted Output from Neural;
Network,
()ut kt
= Manipulated Input
()wt k
= Reference Trajectory
δ and λ = Weighing Factor
When this cost function is minimized, a control
input that meets the constraints is generated that
allows the plant to track the reference trajectory
within some tolerance. There are four tuning
parameters in the cost function, N
1
, N
2
, N
u
, and λ.
The predictions of the plant will run from N
1
to N
2
future time steps. The bound on the control horizon
is N
u
. The only constraint on the values of N
u
and N
1
is that these bounds must be less than or equal to N
2
.
The second summation contains a weighting factor,
λ that is introduced to control the balance between
the first two summations. The weighting factor acts
as a damper on the predicted u(n+1).
3.1.2 Cost Function Minimization Algorithm
The objective of the CFM algorithm is to minimize J
in Equation (1) with respect to [u(n+l), u(n+2), ...,
u(n+N
u
)]
T
, denoted as U. This is accomplished by
setting the Jacobian of Equation (1) to zero and
solving for U. With Newton-Rhapson used as the
CFM algorithm, J is minimized iteratively to
Cost Function
Minimization
(CFM)
Plant
Neural
Plant Model
z
-1
y(t)
()
n
yt kt
()wt k+
u(t)
s
s
NGPC Algorithm
GPC AND NEURAL GENERALIZED PREDICTIVE CONTROL
267