Professional Documents
Culture Documents
ϕ ⎡ x1 ( k + 1) ⎤
e ⎢ x ( k + 1)⎥ = Ax( k ) + Bu( k ) + z( k ) =
1
m ⎣ 2 ⎦
2 a b F c
⎡ 0.9998 0.0020⎤ ⎡ x1 ( k ) ⎤
=⎢ ⎥+
*
F m m θ ⎥⎢
⎣ − 0.1749 0.9956⎦ ⎣ x 2 ( k )⎦
3
5 (6)
θ c m 4
⎡ 0 0 ⎤ ⎡ w( k ) ⎤
+⎢ ⎥⎢ ⎥ + z( k )
d ⎣0.0080 − 0.0234⎦ ⎣ic ( k )⎦
F 7
m 7
⎡ x (k ) ⎤
d’ y ( k ) = Cx( k ) + v( k ) = [1 0] ⋅ ⎢ 1 ⎥ + v( k )
⎣ x 2 ( k )⎦
c k
III. LQG CONTROL DESIGN
Fig. 1. Mechanical structure of the weighing cell It becomes apparent from equation (6) that the
checkweighing system based on weighing cell has two
Defining the state variables as x1(t) = Θ(t) and inputs, and one output. One input is the weight, w(k),
.
which is uncontrollable input, and the other is the current
x2 ( t ) = θ (t ) , the state differential equations of the
ic(k) which is a controllable input. In general, an optimal
system from equation (3) are linear state-variable-feedback-control law is an attempt to
find the optimal input u(t) (=-L(k)x(k)), which minimizes
⎡ x&1 (t ) ⎤
⎢ x& (t )⎥ =
the quadratic cost function
⎣ 2 ⎦
⎡ 0 1 ⎤ J = xT ( N )S N x( N ) +
⎡ x (t ) ⎤
= ⎢ − ca ka 2 ⎥ ⋅ ⎢ 1 ⎥ +
2
N −1
(7)
⎢ − ⎥ x (t )
⎣ Θ tot Θ tot ⎦ ⎣ 2 ⎦ (4) ∑ [x T
( k )Q( k )x( k ) + u ( k )R ( k )u( k )]
T
k =0
⎡ 0 ⎤ ⎡ 0 ⎤
+ ⎢ d ' ga ⎥ w(t ) + ⎢ − d ' Blb ⎥ic (t )
⎢Θ ⎥ ⎢ Θ ⎥ where L is a feedback gain matrix, SN is a non-negative
⎣ tot ⎦ ⎣ tot ⎦
symmetric matrix, Q is a non-negative symmetric
weighing matrix that determines how much weight is
⎡ x (t ) ⎤
y (t ) = [1 0] ⎢ 1 ⎥ + v (t )
attached to each of the components of the state and R is a
⎣ x 2 (t )⎦ positive definite symmetric weighing matrix that
determines how much weight is attached to each of the
where xn(t) (n=1,2) are states of the systems, y(t) is the components of the input. Following the procedure given
output of the system and v(t) is the measurement noise, in ref. [7], the optimal feedback gain matrix L(k) is found
Gaussian with zero mean and variance Rv. For the as
measured parameters of the weighing cell given in [6],
the state equations (4) became
L( k ) = obtained by substituting values for the current ic(k) into
{R(k ) + BT (k )[Q(k + 1) + S(k + 1)]B(k )}−1 ∗ (8) equation (6) that gives
B + z C + With estimator
i (k) = -Lx (k)
ic
+
+
e
A
0.2
Kalman filter
c
(Estimate of x(k))
0.1
LQ Control x (k)
e
law
0
LQG Controller 0 0. 4 0.8 1.2 1.6 2
Weight filter
w - estimate of the weight w
e
Time [sec]
Fig. 3. Control input of the closed-loop system
Fig. 2. LQG controller for the system in discrete time state
space description
However, an additional weight filter, as shown in
The value of R directly effects the value of the control Figure 2, is needed for further performance improvement.
input ic(k): smaller the value of R, the larger is the current The algorithm for the weight filter was derived as
ic(k). Therefore, in reality the value of R is heavily follows. From equation (6), the states of the system are:
dependent on the electrical characteristics of weighcells.
In order to get the optimal value of the control input ic(k) x1 (k + 1) = 0.9998 x1 ( k ) + z1 ( k )
(13)
(=-Lx(k)), which minimises the cost function given in x2 (k + 1) = −0.1749 x1 (k ) + 0.9956 x2 (k ) +
(10), the feedback gain matrix L was calculated
+ 0.008w(k ) − 0.0234ic ( k ) + z2 ( k )
according to equation (8). Once the feedback gain matrix
had been determined, equations for the closed loop were
-4
In the steady state, with no movement of the balance x 10
10
beam, x2=0. Consequently, equations (13) become
x1 (k + 1) = 0.9998 x1 (k ) + z1 (k ) 8
Amp
4
and the control input current ic(k) is calculated as
2
ic (k ) = − L1 x1 ( k ) = − L1 xe1 (k ) (15) With integral action
0
where xe1 is the estimate of x1, which takes into
account the system and measurement noise. Substituting
values for ic(k) from equation (15) into equation (14), the -2
0 0.4 0 .8 1.2 1.6 2
expression for the weight filter is obtained as Time [sec]
Fig. 5. Output of the controlled system with and without
we ( k ) = [21.875 − 2.925L1 ]x e1 (k ) (16) integral action included
In order to reduce the steady state error further, an The performance of a dynamic weighing system is
integrating action was included in LQG design method as specified by accuracy and throughput rate. This can be
shown in Fig. 4. The outputs with and without integral translated as the steady state error and transient response
action are shown in Figure 5 indicating that the output of of the controlled system, respectively. To evaluate the
the system controlled with additional integral action is performance of the developed LQG controller with
balanced to zero, whilst the output of the system respect to existing alternatives, a comparison was made
controlled without integral action exhibits a steady state to the PD controllers designed in ref.[6]. Performance of
error of 0.0008 V. the controllers were analysed by using the step response,
and the results are summarised in Table 1.
Chechweighing System
w(k)Bw+z(k) v(k) TABLE I
COMPARATIVE PERFORMANCE OF LQG CONTROLLER
i c(k) + y(k)
+ x(k+1) x(k) tr in ms Overshoot (%) tss=1% ms
Bic + z-1 C + +
i c(k) = -Lxe(k)-LIQ(k)
Kalman filter
(Estimate of x(k) ) 1.4 1.4 0.128 0.143 8.4 9.4
∫
LQG Controller 1.2 1.2 0.130 0.150 2.2 2.9
xe (k) I 4 = ikd (t ) dt
-LI z
-1
+ TS
I 5 = ∫ t ikd (t ) dt
+ q(k) q(k+1) The performance of the controller is characterized in
+ terms of rise time t overshoot, and the time taken for the
r,
-L
LQG Controller
output to come within a defined percentage of its final
value, tss=X %. The output signal used is a step response
Weight filter
we - estimate of the weight w to a noise-free input. ikd corresponds to ic in this paper.
It becomes apparent from Table 1 that the LQG
Fig. 4. LQG controller with integral action controller performance exceeds the performances of both
controllers designed in ref. [6]. However, the overshoot is
slightly higher than the one obtained by a controller
tuned using function I5.
V. CONCLUSION
This paper investigates the suitability of using LQG
design method in weighcell based checkweighing
systems. The method is based on a linear optimal control
law, which takes state variables of a system as its inputs.
The regulating aspect of control problem, with included
stochastic disturbances, was presented. The known
mathematical model of checkweighing system was
adapted for the required state space model representation.
An LQG controller was designed and its characteristics
presented. In order to reduce the steady state error
further, an integrating action was included in LQG design
method. Furthermore, an algorithm for weight filter was
derived. Finally, this method was compared to the results
of previous work. The comparison showed that additional
performance improvement could be achieved by adopting
the LQG design method
VI. REFERENCES
[1] W.Balachandran, M.Halimic, M.Hodzic, M.Tariq, Y.
Enab and F. Cecelja: Optimal Digital Control and Filtering for
Dynamic Weighing Systems, IEEE Instrumentation and
Measurement Conference IMTC/95, Waltham, Boston, USA,
Proceeding pp. 293-298, April 1995.