Professional Documents
Culture Documents
Abstract— This paper presents the construction of a flow [7]. While the fuzzy control is a specific methodology for
station that allows the implementation of different advanced detecting abnormalities in the quality control of various
control technique. Furthermore this work focuses on comparing processes such as water treatment using heuristic rules with
of the performance of traditional PID controllers, Fuzzy logic
a hierarchical structure which tries to assimilate the human
and predictive MPC when controlling the flow dynamic variable
and to analyze the advantages and disadvantages of these thinking in numerical data [8], this, when applying a PWM
control strategies in industrial processes. The characteristics of inverter, fast dynamic response is achieved to improve the
the controllers are tested both in simulation and shortcomings of traditional controllers [9]. In research
experimentation with dedicated software in systems analysis. studies, combining both drivers give rise to an advanced
control strategy like the fuzzy PID that manages to achieve
Index Terms— Fuzzy Logic, PID, Predictive MPC. high static accuracy, high dynamic performance and
robustness [10]. While the MPC is within optimal controls,
I. INTRODUCTION
meaning that the performance depends on the optimization of
() ( )
3 ( )= ∑ (5)
2
• Partial derivative action
1
0 ( )=− ( ( )− ( − 1) (6)
0 2 4 6 8 10 12 14 16 18 20 22 24 26
Time [s] where , y represent the positive earnings: adjustment
proportional, integral time and derivative time, respectively.
Fig. 3. System output to a determined input.
The established PID controller uses an integral sum
correction algorithm of the three actions [13].
TABLE I: ADJUSTMENT OF THE TRANSFER FUNCTION
( )= ( )+ ( )+ ( ) (7)
Domain Adjustment percentage
C. Fuzzy Control
Continuous (s) 96,37 %
Discrete (z) 96,76 % The fuzzy model is a control strategy characterized by: i)
Expert knowledge of the dynamics of the system, a coded rule
To implement the predictive control model, MPC, it is base and derived from practice and human experience; ii)
necessary that (1) is represented as a State Pattern. Implementation of the controller design without a function of
rigorous transfer of the station; iii) Control through words
( + )= ( )+ ( )+ ( ) interpreting the common sense, instead of using numbers or
(2) sentences instead of equations.
( )= ( )+ ( )+ ( )
where, Fuzzy controller
x (t) 0.80 −0.23 0.007 0.008 x (t)
x (t) 0.59 0.22 0.20 −0.01 x (t) SP Inference Defuzzyficati
= + Fuzzyfication
x (t) −0.02 −0.68 −0.28 −0.38 x (t) mechanism on
x (t) 0.006 −0.019 −0.15 0.87 x (t)
0.007 u (t) −0.01 e (t) Knowledge Process
0.12 u (t) 0.04 e (t) Base
+ +
0.11 u (t) 0.12 e (t)
0.008 u (t) −0.57 e (t)
Transmisor
( ) = −12.16 0.9008 0.022861 −0.07599 x (t) +
+ 0 u (t) + e (t) Fig. 4. Strategy fuzzy control loop.
B. PID Control Fig. 4 shows the proposed control scheme, where the
PID control is the most classic and common control in the accumulated error ( ) is defined by the difference between
industry control. For the proposed controller design, it was present error ( ) minus error ( − 1), i.e.,
considered that the: i) Controller will be applied to a transfer ( ) = ( ) − ( − 1) (8)
function with linear trend; ii) Process variable must be within It is worth mentioning that ( ) and ( ) represent the
the parameters set by the operator; iii) Tuning values or inputs of fuzzy control which must be fused ( ) with five
control gains must give a good performance to get the best triangular membership functions and two trapezoidal ones;
response of the controller in the flow system. and ( ) with three triangular fuzzy sets representing all
The error of the PID controller is defined by the difference states (linguistic) that the input can take. The functions of the
of the Set Point, SP, and the process variable (PV). input ( ) are distributed symmetrically in a range of -100 to
( )= − (3) 100 as shown in Fig. 5; also, the membership degrees must
be cross linked so that each value remains represented in at define all possible logical statements (Table II). Finally,
least two functions, and each function must be defined in a every action the output makes should be diffused, with the
range of 50 in order to filter noise measurement. aim of representing every action in a number, using the
method of the area center defined by:
( )
= (9)
( )
where ( ) is the area of the diffuse solution, is the
center of gravity (concrete control action) of the membership
function ( ) of the control conditions.
E NMA A A A
R
NB MA MA MA
R
O C MA C MB
R
PB MB MB MB
PMA B B B
Fig. 6. Membership functions of Accumulated Error Variable ( ).
PA BB BB BB
The labels correspond to the values that ( ) can take on
a specified range {-100 ... 0 ... 100} with fuzzy sets {NA,
NMA, NB, C, PB, PMA, PA}, where in each case P D. Predictive Control based on MPC model.
represents positive, N is negative. A corresponds to high, M The aim of MPC is to obtain a future path of the
is medium, B is low, e.g., PMA corresponds to a medium- manipulated variable u. In this regard a prediction horizon N
high positive error. Whereas N, C and P, are functions is set, for which future outputs will be predicted at every
representing the accumulated error ( ) negative, zero and moment . Therefore, a prediction model is used (2) which
positive, respectively. See Fig. 6. aims to describe the behavior of the flow process variables to
be controlled. The predictions are dependent on values
For the controller output, five triangular fuzzy sets and obtained until the instant and on the future control signals.
two trapezoidal ones, with considerations of uniform For the calculation of future control signals, a cost
distribution and intervals required for each membership function or optimization criterion is required. This is
function are used. The controller output determines the responsible for punishing errors that occurs between the
voltage to be sent to the plant, and is represented as {BB, B, predicted output and the reference trajectory. The
MB, C, MA, A, T} in a range of {-3 ... 0 ... 3} where C is optimization iterative algorithm returns a vector containing
zero, B is low, M is medium, A is high, and finally T is all. the future control actions, the dimension of vector depends
See Fig. 7. | on the control horizon. However, only the first element of the
vector must be sent to the plant. This process is repeated for
each instant . The MPC strategy and the idea of involved
terms [14] are illustrated in Fig. 8.
Ymax Medium
Reference
r Estimated
PREDICTION
HORIZON
Ymin
t
Mov. Past
Mov. Planned
CONTROL HORIZON
Umin
-5 -4 -3 -2 -1 K +1 +2 +3 +4 +5 +6 +7
35
Flow [LPM]
Flow [LPM]
Point SP. Whereas Fig. 13 shows the evolution of error.
10
45 0
Pv-Difuso
40 SP -10
35
Flow [LPM]
-20
30
25 -30
20 0 1 2 3 4 5 6 7 8 9 10 11
Time [s]
15 Fig. 15. MPC control error
10
5 H. Comparison of controls
0 Fig. 16 represents the response comparison of the plant to
0 15 6 2 7 3 8 94 10 11
Time [s] the three proposed controls. The figure illustrates that the
Fig. 12. Execution of Fuzzy algorithm on the flow station. MPC reacts faster than the PID and fuzzy. The stability of
each type gives as a result that the PID is slower than the
Fuzzy and MPC.
40
ERROR DIFUSO 45
Pv-PID
30
40 Pv-Difuso
Pv-MPC
20 35
Flow [LPM]
Flow [LPM] SP
10 30
0 25
20
-10
15
-20
10
-30
0 1 2 3 4 5 6 7 8 9 10 11 5
Time [s] 0
Fig. 13. Fuzzy control Error. 0 1 2 3 4 5 6 7 8 9 10 11
Time [s]
G. MPC control tests Fig. 16. Execution of PID, Fuzzy, MPC controllers
For the last test, the MPC control (11) is applied. Fig. 14
40
indicates the controller's response when set point changes are ERROR PID
made. And Fig. 15 represents the response of the plant to 30
ERROR DIFUSO
ERROR MPC
changes in the set point, SP. The experiment indicates that
the error tends to be reduced to zero and remain constant 20
Flow [LPM]
30
-20
25
20 -30
15 0 1 52 6 3 4 7 8 9 10 11
Time[s]
10
Fig. 17. PID, Fuzzy and MPC controllers’ error
5
0
0 1 2 3 4 5 6 7 8 9 10 11
Time [s] VI. CONCLUSIONS
Fig. 14. Execution of MPC algorithm on the flow station By applying different types of control in a flow system
such as PID and Fuzzy, the behavior is similar. While the
strategy of MPC Control indicates that its speed to correct the [15] E. F. Camacho and C. Bordons, Model Predictive Control, España:
Escuela Superior de Ingenieros, Universidad de Sevilla.
error is faster since its output and the optimization of a
criterion are predicted. Edwin Pruna, graduated in Electronics
When applying appropriate tuning constants in the PID and Instrumentation Engineering from
control, the control strategy acts in a proper and satisfactory the Universidad de las Fuerzas Armadas
way. It achieves to meet the system and operator ESPE in 2007, and obtained a M.Sc. in
requirements. The well-defined Fuzzy control rules generate Energy Management in 2013. His
a great reliability in the system. It is concluded that the two research interests are: design and
control strategies are suitable for industrial processes. On the implementation of prototypes for
other hand, when the MPC defines its tuning variables well, engineering education, and virtual
it has better speed in the settling time and decreases rehabilitation for people disabilities.
oscillations when reaching the set point.
MIMO processes can merge the MPC control with the Víctor H. Andaluz was born in Ambato-
PID forming a cascade control. The MPC actions are Ecuador in 1984. He obtained a Ph.D. in
references of the PID control allowing the classic control Control Systems Engineering in 2011.
manage the optimization of resources and improve control Currently he is working at the
making the store error tend to zero asymptotically. Universidad de las Fuerzas Armadas
The characteristics of the flow station that cause problems ESPE, Latacunga-Ecuador. His area of
are: i) Transmitter, its configuration is determined for taking research is intelligent control applied to
90 samples to send the flow data; ii) The centrifugal pump production systems, mobile robots and
has "dead zones" since for the circulation of liquid, the rehabilitation of people disabilities
voltage level applied to the pump must reach a determined
value; iii) The pump introduces noise into the system since it Luis E. Proaño was born in Ambato,
has an engine inside; and finally iv) Delay in the system when Ecuador in 1992, graduatedin Electronics
the pump speed varies. and Instrumentation Engineering from
Universidad de las Fuerzas Armadas
REFERENCES ESPE in 2015. His research interests are
[1] A.Sanchez. Instrumentacion y control avanzado de automation and image processing.
procesos.Madrid: Ed Santos, 2013, pp 345-350.
[2] K. Ogata. Ingenieria de Control Moderno, 4ta ed, Madrid: Pearson Christian P. Carvajal was born in
Educacion, 2004, pp. 984-984.
[3] M. Johnson y M. Moradi, PID Control, Londres: Verlang, 2005, pp. Ambato, Ecuador in 1992, graduated in
539-541. Electronics and Instrumentation
[4] P. Ponse Cruz, Inteligencia Artificial con Aplicaiones a la Engineering from Universidad de las
Ingenieria, Mexico: AlfaOmega, 2010, pp 289-293. Fuerzas Armadas ESPE in 2015. His
[5] M. J.Willis y M. T. Tham Advanced Process Control. Dept. of
Chemical and Process Engineering. University of Newcastle. research interests are automation and
Agosto 2006. robotics.
[6] W. Zhuo, J. Yanyan y W. Shichao “The application of feedforward
PID control in water level control system” IEEE Congreso Mundial Ivón Escobar, is in Electronics and
de automatización,pp 3-5, 2012
[7] M. Tajjudin, N. Ishak, H. Ismail, M. H. Fazalul Rahiman y R. Instrumentation Engineering from
Adnan, “Optimized PID control by Nelder -Mead method for drive Universidad de las Fuerzas Armadas
systems electrohydraulic” IEEE Conferencia Sistema de Control y ESPE in 2008, obtained the degree of
Postgrado Coloquio de Investigación, 2011, pp 2-4. Master in Energy Management in 2013.
[8] C. Dadios, “Fuzzy logic control monitoring water quality and
monitoring for conservation of aquatic life in Lake Taal” IEEE The research are design and
Conferencia Tencon, 2012, pp 4-7. implementation of prototypes for
[9] E.-C. Chang y J. M. Guerrero, “Fuzzy variable structure control for engineering education and rehabilitation virtual.
PWM inverters” IEEE Conferencia Sistemas Difusos, 2011, pp 2-
3.
[10] J.Z. Cao, H. Yang y H. Nan, “Advanced Fuzzy PID Composite Marco Pilatásig, graduated in
Control for Stabilized” IEEE Conferencia Mecatrónica y Electronics and Instrumentation
Automatización, 2012, pp 2-5. Engineering from the Universidad de las
[11] D. L. Marruedo, “Control predictivo de sistemas no lineales con Fuerzas Armadas ESPE in 2005; and the
restricciones: estabilidad y robustez”. Ph.D. tesis, Universidad de
Sevilla, Sevilla, Andalucía, España, 2002. degree of Master in Energy Management,
[12] Emerson Process Management Rosemount 8732E, Integral Mount Technical University of Cotopaxi,
or Remote Mount Magnetic Flowmeter System, Emerson Process Ecuador in 2013. It plays the roles of
Management, 2011. Professor in the Department of Electrical
[13] National Instruments LabView, PID and Fuzzy Logic Toolkit User
Manual, National Instruments, 2009. and Electronics at the Universidad de las Fuerzas Armadas
[14] M. Maciejowski, Predictive Control with Constraints, ESPE, Latacuna