Anda di halaman 1dari 7

Bulletin of the Transilvania University of Braşov • Vol. 7 (56) No.

2 - 2014
Series I: Engineering Sciences

ADAPTIVE PI CONTROLLER DESIGN TO


CONTROL A MASS - DAMPER - SPRING
PROCESS

S. COMAN1 Cr. BOLDIŞOR1

Abstract: In this paper, the authors have been applied the adaptive control
to a mass-damper-spring. During the whole design process only parametric
disturbances have been considered. Based on the uncertainty parameters
(mass, damping constant, and spring) and by using a gradient method (the
MIT rule), a PI adaptive controller is proposed and designed. The used
gradient method (i.e. the MIT rule) allowed for the studied parameters to be
varied in a predefined range. The whole design, as well as the experimental
results, was done in Matlab/Simulink.

Key words: mass - damper - spring, MRAS, model reference, adaptive control,
MIT rule.

1. Introduction the process dynamics and, eventually, to


gain the needed control through the whole
In general, the term of adapting to process.
something can be explained as behavior Due to the large scale of adaptive
changes due to direct reactions for given controllers, in this paper the studied case is
circumstances. Based on this broad related to mass-damper-spring. One of the
definition, an adaptive controller can be most important characteristics imposed to
defined as the controller's ability to modify a good adaptive controller design is the
its behavior in response to any changes of capability to ensure the system stability
the process dynamics that have an impact against any of the uncertainty parameters.
on him. Considering such premises as a valid
Historically speaking, the whole progress starting point (n.b. it is known that the
in the microelectronics area was a real values of uncertainty parameters vary
stimulus for plenty of adaptive control frequently and significantly), in this paper
experiments developed in special an adaptive control strategy is proposed
laboratories and industry. The results were and, based on it, a model of system
not left waiting - in the early 80s, adaptive uncertainty can be specified further by a
controllers were commercially launched designer.
and heavily used in industry. The key for When dealing with uncertainty parameter
having such a success was given by the is recommended and considered a good
very narrow definition for adaptive practice for correctly design managing, to
control: to easily adapt to any change of use adaptive control. Therefore, searching

1
Dept. of Automation and Information Technology, Transilvania University of Braşov.
70 Bulletin of the Transilvania University of Braşov • Series I • Vol. 7 (56) No. 2 - 2014

for a proper controller is adequate in most 2. Model Reference Adaptive Control


cases. For a controller to be considered fit (MRAC)
to its purpose, one rule has to be
accomplished - such that in case of a It is considered a starting point the
closed loop system, a certain adaptive desired behavior of a given process that
stability needs to be achieved. As a can be described. It can be achieved by
consequence, one of the main approaches using a model reference. Particularly, a
applied in adaptive control is Model linear time-invariant system (LTI) is
Reference Adaptive System (MRAS). representing the process, while the model
Adaptive control is a technique that reference is implemented as MRAC. The
provides automatic and real time aforementioned process is driven by its
adjustment for a controller. Such an input reference and has associated the
adjustment is performed when the studied transfer function Gm(s).
process presents unknown but constant MRAS was derived from continuous
parameters (in this case, the design of systems and has an inner loop and an outer
adaptive control should come up with an loop. The process itself and classical
automatic tuning procedure applicable to feedback are included in the inner loop,
all these parameters in a closed loop while the outer loop is only used to adjust
system), or unpredictably changing in time controller parameters.
parameters (in this case, for the system A complex process in designing of the
performances to be maintained, adaptive transfer function for model reference
control of the control system should be (Gm(s)) can be outlined by following the
used). The goal is to maintain system behavior of 3 (three) important signals
performances of a controller to its imposed (input, output, and error). The input signal
thresholds [1], [4], [5]. is based on a given reference input signal
Although the original scheme for MRAS, r(t) and the output signal ym(t) is represented
which was proposed by Whitaker in 1958, by the system desired response.
was introduced for flight control, in the An important goal is to succeed in
current study is applied to DC electrical diminishing the gap between system output
drive controlling (Figure 1) [1]. and reference model. This gap is considered
the error signal e(t) and its size depends on
the chosen model reference, the process y(t)
- which must follow the output signal, and
the command signal. It is said that a perfect
model can be achieved when, for all
command signals, the error signal is
reduced to a null value [2], [3], [5], [7].
In the particular case of MRAC, all
parameters can be adjusted either by using
a gradient method, or by applying a
stability theory.

Fig. 1. General block diagram of MRAS 2.1. MRAS Designing by Using the
Gradient Method
The gradient method mentioned above is
used to design and simulate a MRAS The gradient method, also named the MIT
system. rule due to fact that was developed by the
Coman, S., et al.: Adaptive PI Controller Design to Control a Mass - Damper - Spring Process 71

Instrumentation laboratory at Massachusetts following second order differential


Institute of Technology (MIT), is one of the Equation:
two aforementioned approaches for MRAC
discussed in this paper. The associated d 2 x (t ) dx(t )
equation to MIT rule is: m c  kx(t )  F (t ) , (3)
dt dt
dθ J e where m is the mass, c the damping
 γ   γe , (1)
dt θ θ constant, k the spring stiffness, x(t) = y(t)
the displacement, and F(t) = u(t) the
where:  - is the controller parameter; e - is external force.
the error between the process and the
model outputs;  - is the adaptation gain;
e
- is the system’s sensitivity derivative.
θ
To understand better the MIT rule and its
purposes, a few explanations are
mandatory. A first assumption is that for
the examined closed loop system, the
given controller has one single adjustable
Fig. 2. Mass-damper-spring process
parameter . The next assumption is to
determine the error (e) between the process
The block diagram of the process is
output (y(t)) and model reference output
represented in the Figure 3.
(ym(t)).
To succeed in minimizing of the loss
1
function J ()  e [4], [6], the parameter
2
 must be adjusted. Changing the
parameters in a way of having negative
gradient forces the function J to be small.
One important aspect is that loss function
is randomly chosen. Supposing that loss Fig. 3. The diagram block of the system
function is J ()  e , then the adjustment
In a realistic system, parameters like
factor depends, among other variables, on mass, damping constant, and spring
signum function, too: stiffness are unknown, but they can be
varied in certain ranges: m  (1.8, 4.2),
dθ e c  (0.8, 1.2) and k  (1.4, 2.6).
 γ sign e , (2)
dt θ To control such a process, it is necessary
to use a PI adaptive controller.
3. Process Modelling of the Mass -
Damper - Spring 3.1. PI Adaptive Controller Designing

A mass - damper - spring system can be By selecting an adaptive law with three
described like in the Figure 2. adjusting parameters, the downsides of the
Using the second law of Newton, the three unknown parameters process
system dynamic can be represented by the specifics, can help in finding of the proper
72 Bulletin of the Transilvania University of Braşov • Series I • Vol. 7 (56) No. 2 - 2014

values. To continue, the same adjusting The sensitivity derivatives are obtained
mechanism that was detailed for the MIT by taking the partial derivatives of the
rule is used further on. The mass - damper error and considering the controller
- spring process is a second order element parameters:
with the following transfer function:
e(t ) α1 r (t )
Y ( s) 1/ m  2 ,
G ( s)   2 k1 p  (α 2  α1 k 3 ) p  (α1 k 2  α 3 )
U ( s ) s  (c / m) s  k / m 2
e(t )  α1 k1 r (t )
α1  2
 2 . (4) k 2 ( p  (α 2  α1 k 3 ) p  (α1 k 2  α 3 )) 2
s  α2 s  α3
α1 y (t )
 2
,
For the reference model, a second order p  (α 2  α1 k 3 ) p  (α1 k 2  α 3 )
transfer function is selected: e(t )
2
 α1 pk1 r (t )
 2
k 3 ( p  (α 2  α1 k 3 ) p  (α1 k 2  α 3 )) 2
Ym ( s ) ω n2
G m ( s)   2 . (5) α1 y (t )
R( s ) s  2 ζω n s  ω 2n  2 .
p  (α 2  α1 k 3 ) p  (α1 k 2  α 3 )
A perfect following of the model (9)
reference is achieved with the PI control
law [4], [8], [9]: Due to the fact that the process
parameters are unknown, none of the
u (t )  k1r (t )  k 2 y (t )  k 3 y (t ) . (6) above three equations can be used. The
below approximation is required in order
By inserting Equation (4) into Equation to overcome such an impediment:
(6), the MIT rule is applied, where p is the
differential operator: p 2  (α 2  α1 k 3 ) p  (α1 k 2  α 3 )
(10)
 p 2  2 ζω n p  ω 2n .
α1
Y ( s )  G ( s )U ( s )  2
[k1 R ( s )
s  α2 s  α3 In conclusion, the adjustment for the
 k 2Y ( s )  k 3 sY ( s )]  controller parameters is:
α 1 k1 R ( s )
Y ( s)    
2
s  (α 2  α 1 k 3 ) s  (α 1 k 2  α 3 ) dk1 (t ) 1
  γ  2 2
r (t )  e(t ) ,
α 1 k 1 r (t ) dt  p  2 ζω n p ω n 
y (t )  2
.
p  (α 2  α 1 k 3 ) p  (α 1 k 2  α 3 )
(7) dk 2 (t )  1 
 γ  2 2
y (t )  e(t ),

dt  p  2 ζω n p  ω n 
As a consequence, the error is:
dk 3 (t )  1 
 γ  2 y (t )  e(t ).
 α1 k1 r (t ) dt 2
e(t )   2  p  2 ζω n p  ω n 
 p  (α 2  α 1 k 3 ) p  (α1 k 2  α 3 ) (11)
ω 2n 
  r ( t ). (8) where parameter 1 is introduced in the
2
s  2 ζω n s  ω 2n 
 adaptation gain .
Coman, S., et al.: Adaptive PI Controller Design to Control a Mass - Damper - Spring Process 73

Fig. 4. The simulation scheme

4. Simulation Results controller designed for a mass - damper -


spring process.
Both, the PI controller and the process
have been designed in continuous time
domain. The closed loop control system
was simulated in Matlab/Simulink for the
nominal values of the uncertain parameters
(Figure 4) [10].
For the process model the authors
proposed three scenarios: the first one is
using the nominal values of the parameters
(y1(t)), the second is using the minimum
values of the parameters (y2(t)), and the
third is using the maximum values of the
parameters (y3(t)).
By imposing a value equal to 3.5 for
adaption gain and by analysing the signals’
progression (y1(t), y2(t), y3(t)), it can be
deducted that system is adjustable.
Moreover, in Figure 5 (where for a period of
100 seconds, a step input was applied), by
analysing the signals it can be concluded that
the system’s performances are acceptable.

5. Conclusions

The current study presents in a rigorous Fig. 5. Progression of the output signals
way the experiments performed by the (y(t), ym(t)) and adjustment error signal
authors and pertaining to an adaptive (e(t))
74 Bulletin of the Transilvania University of Braşov • Series I • Vol. 7 (56) No. 2 - 2014

The best experimental results have been Overview. In: Department of Electrical
obtained by applying a PI adaptive and Computer Engineering, Univ. of
controller and only for a single scenario - British Columbia, 2013.
when the parameters’ nominal values have 4. Feng, G., Lozano, R.: Adaptive
been set. Control Systems. Read Educational
The MIT rule provides satisfactory and Professional Publishing, 1999.
results but does not guarantee coverage or 5. Gyor, K., Oltean, S.: Sisteme de
stability. conducere adaptive. Indrumator de
laborator (Adaptive Control Systems.
Acknowledgements Laboratory guide). Târgu-Mureş. Ed.
Univ. Petru Maior, 2006.
We hereby acknowledge the structural 6. Ioannou, P., Fidan, B.: Adaptive
founds project PRO-DD (POS-CCE, Control Tutorial. In: Society for
0.2.2.1., ID 123, SMIS 2637, ctr. No. Industrial and Applied Mathematics,
11/2009) for providing the infrastructure USA, 2006, p. 387.
used in this work. 7. Landau, I., at al.: Adaptive Control:
Algorithms, Analysis and Applications.
References London. Springer-Verlag, 2011.
8. Levine, W.: Control Systems. Advanced
1. Astrom, K., Wittenmark, B.: Adaptive Methods. USA. CRC Press, 2011.
Control. USA. Addison-Wesley, 1989. 9. Monopoli, R.V.: Model Reference
2. Coman, A., Axente, C., Buscoianu, Adaptive Control with an Augmented
M.: The Simulation of the Adaptive Error Signal. In: IEEE Trans. on
Systems using the MIT Rule. In: 10th Automatic Control 19 (2003), No. 5, p.
Wseas Int. Conf. on Mathematical 474-484.
Methods and Computational 10. Xue, D., Chen, Y., Atherton, D.:
Techniques in Electrical Engineering, Linear Feedbacl Control. Analysis and
Bulgaria, 2008, p. 301-305. Design with Matlab. In: Society for
3. Dumont, G.: Adaptive Control. Model Industrial and Applied Mathematics,
Reference Adaptive Control. an USA, 2007, p. 324.
Reproduced with permission of the copyright owner. Further reproduction prohibited without
permission.

Anda mungkin juga menyukai