Professional Documents
Culture Documents
considering the present state of the plant as the initial state, the 2.243e 006 2.243e 006
B
current control action is obtained by solving finite horizon of 0.01094 0
optimal open loop control problem 4876 0
C
The convolution model of the output of a plant is given as 4876 1.33
0 0
below: D
0 0
∑ ∆ (6) Step response of the above model shows that if the rate of
From the above relation, predicted output of the plant is as hot water flow is increased by a step then both the temperature
follows: of the water and height of water in tank increases
∑ ∆ 1 (7) exponentially. Also, if rate of cold water flow is increased by a
step, temperature of the water decreases exponentially and the
where U is the input and p is the prediction horizon,y he
mathematical model is very close to the defined system.
predicted output , y represents the actual output,.
From above relation, dynamic matrix is:
IV. PROTOTYPING ENVIROMENT FOR MPC IN
0 … 0
FPGA
0 … 0
(8)
A. Developed Programs for MPC implementation in FPGA
… for Stirred Tank Process.
So every time the output predicted is compared with the Block Diagram representation of the algorithm is given in
actual output computed from mathematical model and error is Fig. 1. The MPC program is developed in LABVIEW-FPGA
calculated. and is translated in to BIT file and implemented in Hardware.
So error can be given as: Fig. 2 shows the DMC algorithm developed in Labview-
9 FPGA. Algorithm for optimization of error developed in
10 Labview-FPGA is given in Fig. 3
:
:
22
2013 IEEE Conference on Systems, Process & Control (ICSPC2013), 13 - 15 December 2013, Kuala Lumpur, Malaysia
variables, temperature and height if a step change in hot water control variable to predefined values and for system to be
flow is introduced. insensitive to disturbances.
Fig.4 Step response of the output variables temperature and height for
a step change in hot water flow is introduced. As the variables in the
Dynamic Matrix Algorithm were assigned as integers, response has
VI. CONCLUSION
minor quantization noise. But the controller has good performance in Model Predictive Controllers using FPGA’s are conventionally
terms of reduction of loop interaction which is a major concern in used in controlling Single Input Single Output Systems. But,
MIMO systems. many systems in industrial applications are Multiple Input
Multiple Output Systems and have loop interactions. The
C. Hardware in loop simulation proposed novel approach of Model Predictive Controller using
Hardware in loop test of the controller designed in FPGA is FPGA uses a Dynamic Matrix Algorithm approach and solves
done by simulating the plant in LABVIEW platform. For problems associated with control of MIMO systems with
verifying the performance of the setup a step change is given to FPGA. The performance of the approach was evaluated based
hot water flow and the response obtained is analyzed. on the reduction of loop interaction which is a major concern in
MIMO systems. Results of testing on Stirred Tank system
show the system has good performance in terms of reduction of
loop interaction. The approach also achieves direct digital
control with ability to solve the Quadratic Programming (QP)
problem online and can be applied to complex systems with
fast response time and/or embedded applications where
computational resource may be limited for supervisory control
approach.
Fig. 5 Step response for hardware in loop simulation
Fig. 5 illustrates the output when a step change is given and REFERENCES
the time taken to reach that new set point.
[1] E. Monmasson and M. Cirstea, "Guest editorial special section on field
V. TESTING THE MPC-FPGA IN STIRRED TANK programmable gate arrays (FPGAs) used in industrial control systems",
SYSTEM IEEE Trans. Ind. Electron., Vol. 55, No. 4, pp.1499 -1500, 2008.
23
2013 IEEE Conference on Systems, Process & Control (ICSPC2013), 13 - 15 December 2013, Kuala Lumpur, Malaysia
[7] L. Idkhajine , E. Monmasson , M.W. Naouar , A. Prata and K. Boualla- [24] Y. Zhang, W. Xie, Z. Li, Y. Zhang, "Model Predictive Direct Power
ga, "Fully integrated FPGA-based controller for synchronous motor Control of a PWM Rectifier With Duty Cycle Optimization", IEEE
drives", IEEE Trans. Ind. Electron., Vol. 56, No. 10, pp.4006 -4017, Trans. Power Electr., Vol. 28, No.11,pp.5343 – 5351, 2013.
2009.
[25] .Rivera,V.Yaramasu, A. Llor, J. Rodriguez, B. Wu, M. Fadel, "Digital
[8] M. W. Naouar , A. A. Naassani , E. Monmasson and I. Slama- Predictive Current Control of a Three-Phase Four-Leg Inverter", IEEE
Belkhodja, "FPGA-based predictive current for synchronous machine Trans. Ind.Electr,,Vol. 60, No.11, pp.4903 – 4912, 2013.
speed drive", IEEE Trans. Power Electron., Vol. 23, No. 4, pp.2115 -
2126, 2008. [26] P. Cortes , A. Wilson , S. Kouro , J. Rodriguez and H. Abu-Rub "Model
predictive control of multilevel cascaded H-bridge inverters", IEEE
[9] F. Zhengwei , J. E. Carletta and R. J. Veillette, "A methodology for Trans. Ind. Electron., Vol. 57, No. 8, pp.2691 -2699, 2010.
FPGA-based control implementation", IEEE Trans. Control Syst. Tech-
nol., Vol. 13, No. 6, pp.977 -987, 2005.
[10] K.V. Ling, S.P. Yue and J.M. Maciejowski, “A FPGA Implementation of
Model Predictive Control”, Proceedings of the 2006 American Control
Conference, Minneapolis, Minnesota, USA, June 14-16, 2006.
[16] D.Q. Mayne, J.B. Rawlings, C.V. Rao, and P.O.M. Scokaert. “Con-
strained model predictive control: Stability and optimali-
ty”,Automatica,Vol. 36, No.6, pp. 789–814, 2000.
24