Networked Nonlinear Model Predictive Control of The Ball and Beam System
Networked Nonlinear Model Predictive Control of The Ball and Beam System
Abstract: Aiming at ball and beam system—a typical nonlinear control plant, establish its affine nonlinear model, based on the
nonlinear model predictive control method, some amelioration is made, combined with the networked predictive control scheme,
a networked nonlinear model predictive control method is introduced, which can compensate the network induced time delay
and the packet loss, and used in the implementation of the networked control of the ball and beam system. The performance is
proved by the simulation results, that the system can be stable when the random networked induced time delay with an upper
bound is larger than one sample period. The simulation carried out in real network illustrates the availability of the method.
Key Words: Networked control systems (NCS), Nonlinear, Model predictive control (MPC), Ball and beam system
469
ª x1 º ª x2 º ª0 º can be stated as: for any state x at time t, find a continuous
« x » « A( x x 2 − g sin x ) » «0 » function uˆ (τ ; x(t )) :[t , t + T ] → U , in a moving hori-
« 2» = « 1 4 3 »
+ « »U (2) zon time frame, T, such that the performance index J is
« x3 » « x4 » «0 » minimized:
« » « » « » min J Subject to (4) and (5) (6)
¬ x4 ¼ ¬ 0 ¼ ¬1 ¼ uˆ
470
3.2 The Control of ill-Defined Relative Degree ª1º
Nonlinear System: an Analytic NMPC Method « uˆ »
Y (t ) = [q*,0 ( x) q*,1 ( x) " q*,L ( x)] « » Q( x)Uˆ (18)
For the nonlinear systems which relative degree is «#»
ill-defined, W.H Chen et. al introduced an analytic « L»
¬uˆ ¼
switch NMPC method, which request to a proper switch
Minimize the performance index (15)
space point, if not well designed, it will make some sys-
∂Y T
tem vibration; moreover, the switch method is compli- ( ) M (Y − Yd ) + μ3Tuˆ = 0 (19)
cated, can not fit the demands of networked control. ∂uˆ
Therefore, in this section, we raise a non-switch analytic Yields:
NMPC control method for ill-defined systems. ª0 0 " 0 0 º
In the derivation of the analytic NMPC law, the differ- «1 0 " 0 0 »
ential of û make the analysis and calculation much ∂Y ∂Uˆ « » (20)
= Q( x ) = Q( x) «0 2 " 0 0» Uˆ Q( x)VUˆ
complicated. Considering that the NMPC law is deter- ∂uˆ ∂uˆ « »
mine by the initial value of uˆ (t + τ ) , the value of «# # % # # »
«¬0 0 " L 0»¼
uˆ (t + τ ) when τ ∈ (0, T ] is not so important, because
they are middle process in derivation, so we can make Substituting (18), (20) into Eq. (19), yields:
following assumption instead of (A4). (Q( x)VUˆ )T M (Q( x)Uˆ − Yd ) + μ3Tuˆ = 0 (21)
(A4)* In prediction horizon [t,t+T], the control input is a Eq. (21) is a 2L-1th exponential equation of optimal
constant value, namely: control. Consider that in the stable point, the control input
uˆ (t + τ ) ≡ u (t ),τ ∈ [0, T ] (14) is 0, thus it is only necessary to solve the equation near 0.
Obviously, on this assumption, û ’s any order derivative For simplicity, we ignore the 2nd and higher order of
will be 0, which make it easy to solve the analytic NMPC û ,let:
law. ª I 2 º ª1 º
The approximation of the performance index J can be Uˆ ≈ « »« »
rewritten as: ¬ 0( N −1)×2 ¼ ¬uˆ ¼
1 1 Then:
J = (Y − Yd )T M (Y − Yd ) + μ3Tuˆ 2 (15)
2 2 q*,1 ( x)T M (q*,0 ( x) − Yd ) + [q*,1 ( x)T Mq*,1 ( x) + μ3T ]uˆ = 0 (22)
In the moving time frame, differentiate the system’s From Eq. (22), we can get the optimal analytic law of
output yˆ (t + τ ) , τ ∈ [0, T ] from order 0 up to order N NMPC:
with respect to t, in order to make control input obviously q*,1 ( x)T M (q*,0 ( x) − Yd )
included in Y, N should be larger than r, the 0 to Nth uˆ * = − (23)
q*,1 ( x)T Mq*,1 ( x) + μ3T
derivatives of yˆ (t + τ ) are:
The actual control input, u(t), is given by the initial value
yˆ ( t + τ ) = h ( xˆ ) q 0 ,0 ( xˆ ) *
of the optimal control input û . Because there is no
yˆ ( t + τ ) = L h ( xˆ ) q ( xˆ )
f 1,0 singular point, the controller is continuous in the state
# space.
yˆ ( r − 2 ) ( t + τ ) = L f r − 2 h ( xˆ ) q r − 2 ,0 ( xˆ )
3.3 Networked Nonlinear Model Predictive Control
yˆ ( r −1) ( t + τ ) = L f r −1 h ( xˆ ) + L g Lrf− 2 h ( xˆ ) uˆ
(16) In networked control system, the sensor, actuator and the
q r −1,0 ( xˆ ) + q r −1,1 ( xˆ ) uˆ
controller are located distributive, they communicate
yˆ ( r ) ( t + τ ) = L f r h ( xˆ ) + [ L g Lrf−1 h ( xˆ ) with each other through networks. The use of network
induce time delay and data dropout in the control system
+ L f L g Lrf− 2 h ( xˆ )]uˆ + L2g Lrf− 2 h ( xˆ ) uˆ 2
which will degrade the performance of the control system.
q r −1,0 ( xˆ ) + q r −1,1 ( xˆ ) uˆ In this section, we discuss how to compensate the net-
worked induced delay and data loss. For the sake of
#
simplicity, the following assumptions are imposed:
yˆ (N )
( t + τ ) = q N ,0 ( xˆ ) + q N ,1 ( xˆ ) uˆ (A5) The transmission delay is discretized to integral
+ q N , 2 ( xˆ ) uˆ 2 + " + q N , L ( xˆ ) uˆ L times of sample time, k and f are delay of forward and
feedback channel, respectively, which are random num-
The 0 to Nth derivatives of the predictive output bers with upper bound.
yˆ (t + τ ) can be denoted by polynomials of û , the co- (A6) The number of consecutive data drops in the for-
efficient of the polynomials according to: ward channel is not greater than N1 , the round trip time
qi ,0 ( x) = L f qi −1,0 ( x), i = 1," , N
(17) delay (k+f) is not greater than N, N1 and N are both
qi , j ( x) = Lg qi −1, j −1 ( x) + L f qi −1, j ( x), i = 1," , N , j = 1,", L
Thus, Y(t) can be written as: positive integer, satisfy N1 <N.
471
(A7) In networked control system, the data transmitted by sends them to the actuator. In actuator side, a buffer and a
packets, which including a data sequence with a time networked delay compensator are located. In the scheme,
stamp. under the assumption (A5) ~ (A7), it can be guaranteed
The scheme of the networked predictive control is shown that there exists at least one control sequence in the buffer
is Fig.2, including a control prediction generator and a that include the control value for current time. The func-
networked delay compensator. Control prediction se- tion of the networked delay compensator is to check the
quence consists of the current control value and the pre- time stamp and choose the latest prediction sequence
dictive control value for next N steps. At each sample which contains the control value for current time. The
cycle, control prediction generator receives the feedback following part will discuss the calculation of the predic-
states and generates the control predictive sequence, then tive control sequence.
472
ª 0 º
« 0 »
« » (28)
q*,1 ( x ) = « 0 »
« »
« 2 bx x
1 4 »
«¬ 4 bx 2 x 4 − bg cos x3 »¼
REFERENCES
[1] ALBERTO I. Nonlinear Control Systems, 3th ed. London:
Springer-Verlag, 1995.
[2] CHEN W H, BALANCE D J. On a Switching Control
Scheme for Nonlinear System with ill-Defined Relative De-
gree. Systems and Control Letters, 2002.
[3] CHEN W H, BALANCE D J, GAWTHROP P J. Optimal
Fig.3 local nonlinear model predictive control control of nonlinear systems:a predictive control approach.
Automatica, 2003.
[4] LIU G P, MU J X ,REES D.Design and Stability of networked
predictive control systems with random network transmission
delay- a polynomial approach.
[5] LIU G P, XIA Y Q, REES D. Design and stability criteria of
networked predictive control systems with random network
delay in the feedback channel.
473