SIMULINK BLOCKSET FOR NEURO-FUZZY PREDICTIVE CONTROL. Cristian Olaru, George Dragnea and Octavian Pastravanu

Similar documents
GPC AND NEURAL GENERALIZED PREDICTIVE CONTROL

Contents Introduction Petri Net Toolbox at a First Glance... 4

European Journal of Science and Engineering Vol. 1, Issue 1, 2013 ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM IDENTIFICATION OF AN INDUCTION MOTOR

Real-time Model Predictive Control

Methods for closed loop system identification in industry

1498. End-effector vibrations reduction in trajectory tracking for mobile manipulator

Molodtsov's Soft Set Theory and its Applications in Decision Making

Lucian Blaga University of Sibiu, Faculty of Engineering, 4 E. Cioran St, 55025, Sibiu, Romania 2

SEMI-ACTIVE CONTROL OF BUILDING STRUCTURES USING A NEURO-FUZZY CONTROLLER WITH ACCELERATION FEEDBACK

Research on Adaptive Control System of Robot Arm with Six Degrees of Freedom

Transactions on Information and Communications Technologies vol 16, 1996 WIT Press, ISSN

A Predictive Controller for Object Tracking of a Mobile Robot

Robust Control of Bipedal Humanoid (TPinokio)

International Journal of Advance Engineering and Research Development. Flow Control Loop Analysis for System Modeling & Identification

SIGNALS AND LINEAR SYSTEMS LABORATORY EELE

FUZZY SIMULATION IN RELIABILITY ANALYSIS

Performance Limitations of Some Industrial PID Controllers

Cancer Biology 2017;7(3) A New Method for Position Control of a 2-DOF Robot Arm Using Neuro Fuzzy Controller

Artificial Neural Networks Based Modeling and Control of Continuous Stirred Tank Reactor

Dynamic Analysis of Structures Using Neural Networks

Model Predictive Control System Design and Implementation Using MATLAB

Neuro Fuzzy Controller for Position Control of Robot Arm

COMPARATIVE ANALYSIS OF TWO CYLINDRICAL ROLLER BEARINGS DESIGN USING FINITE ELEMENT METHOD (FEM)

Experiment 6 SIMULINK

A Comparative Study of Prediction of Inverse Kinematics Solution of 2-DOF, 3-DOF and 5-DOF Redundant Manipulators by ANFIS

MATLAB Simulink Modeling and Simulation of Recurrent Neural Network for Solving Linear Programming Problems

RELATIVELY OPTIMAL CONTROL: THE STATIC SOLUTION

SURFACE ROUGHNESS MONITORING IN CUTTING FORCE CONTROL SYSTEM

Dynamic Texture with Fourier Descriptors

A Modified Spline Interpolation Method for Function Reconstruction from Its Zero-Crossings

Nonmonotonic Databases and Epistemic Queries*

Ensemble methods in machine learning. Example. Neural networks. Neural networks

Defect Depth Estimation Using Neuro-Fuzzy System in TNDE by Akbar Darabi and Xavier Maldague

Parallel Evaluation of Hopfield Neural Networks

MULTI-LEVEL MODELLING OF A MODULAR DOUBLE SALIENT LINEAR MOTOR

1724. Mobile manipulators collision-free trajectory planning with regard to end-effector vibrations elimination

DEVELOPMENT OF GRAPHICAL USER INTERFACES IN CONTROL SYSTEMS FOR EDUCATIONAL LABORATORY WORK IN THE MATLAB ENVIRONMENT PD PRETORIUS

Reference Variables Generation Using a Fuzzy Trajectory Controller for PM Tubular Linear Synchronous Motor Drive

Improving Image Segmentation Quality Via Graph Theory

Neuro Fuzzy and Self Tunging Fuzzy Controller to Improve Pitch and Yaw Control Systems Resposes of Twin Rotor MIMO System

Learning Adaptive Parameters with Restricted Genetic Optimization Method

Cellular Learning Automata-Based Color Image Segmentation using Adaptive Chains

A Learning Algorithm for Tuning Fuzzy Rules Based on the Gradient Descent Method

CONTROL SYSTEMS, ROBOTICS AND AUTOMATION Vol. XVI - Control Reconfiguration - Jan Lunze

Neural Networks Lesson 9 - Fuzzy Logic

Petri Nets ~------~ R-ES-O---N-A-N-C-E-I--se-p-te-m--be-r Applications.

Unified PMU Placement Algorithm for Power Systems

Experiment 8 SIMULINK

DEVELOPMENT OF A MICROCONTROLLER- BASED SYSTEM WITH HARDWARE-IN-THE- LOOP METHOD FOR REAL-TIME CONTROL ALGORITHMS PROTOTYPING

HYBRID PETRI NET MODEL BASED DECISION SUPPORT SYSTEM. Janetta Culita, Simona Caramihai, Calin Munteanu

Operators to calculate the derivative of digital signals

Fault Detection of Reachability Testing with Game Theoretic Approach

A new approach based on the optimization of the length of intervals in fuzzy time series

Innovative Strategy of SOMA Control Parameter Setting

Sci.Int.(Lahore),28(1), ,2016 ISSN ; CODEN: SINTE 8 201

Truss structural configuration optimization using the linear extended interior penalty function method

Design of Neuro Fuzzy Systems

Performance of Error Normalized Step Size LMS and NLMS Algorithms: A Comparative Study

ADVANCED IMAGE PROCESSING METHODS FOR ULTRASONIC NDE RESEARCH C. H. Chen, University of Massachusetts Dartmouth, N.

SHIP heading control, also known as course keeping, has

A Modified PSO Technique for the Coordination Problem in Presence of DG

From Task Graphs to Petri Nets

Integrated Scheduling for Gasoline Blending Considering Storage Tanks and Pipe Network

Mechanics ISSN Transport issue 1, 2008 Communications article 0214

Face Recognition using SURF Features and SVM Classifier

Distributed Parameter Systems Blockset for Simulink --- Third-Party MathWorks Product ---

Parameter Estimation of a DC Motor-Gear-Alternator (MGA) System via Step Response Methodology

Robust time-varying shortest path with arbitrary waiting time at vertices

Efficient implementation of Constrained Min-Max Model Predictive Control with Bounded Uncertainties

Finite Element Convergence for Time-Dependent PDEs with a Point Source in COMSOL 4.2

On Constraint Problems with Incomplete or Erroneous Data

PETRI NET ANALYSIS OF BATCH RECIPES

Prime Numbers Comparison using Sieve of Eratosthenes and Sieve of Sundaram Algorithm

Formal Model. Figure 1: The target concept T is a subset of the concept S = [0, 1]. The search agent needs to search S for a point in T.

Enhancing Forecasting Performance of Naïve-Bayes Classifiers with Discretization Techniques

ALGORITHMIC DECIDABILITY OF COMPUTER PROGRAM-FUNCTIONS LANGUAGE PROPERTIES. Nikolay Kosovskiy

LOAD BALANCING IN MOBILE INTELLIGENT AGENTS FRAMEWORK USING DATA MINING CLASSIFICATION TECHNIQUES

Reinforcement Control via Heuristic Dynamic Programming. K. Wendy Tang and Govardhan Srikant. and

Metric Dimension in Fuzzy Graphs. A Novel Approach

Robust Controller Design for an Autonomous Underwater Vehicle

FEATURE EXTRACTION USING FUZZY RULE BASED SYSTEM

AUTOPILOT DESIGN DOR THE LATERAL-DIRECTIONAL MOTION OF AN UAV

The p-sized partitioning algorithm for fast computation of factorials of numbers

A Deterministic Dynamic Programming Approach for Optimization Problem with Quadratic Objective Function and Linear Constraints

Free-Form Shape Optimization using CAD Models

International Journal of Emerging Technologies in Computational and Applied Sciences (IJETCAS)

Improving the performance of an actuator control scheme during saturation

THE CLASSICAL method for training a multilayer feedforward

Neuro-Fuzzy Inverse Forward Models

EVALUATION OF THE PERFORMANCE OF VARIOUS FUZZY PID CONTROLLER STRUCTURES ON BENCHMARK SYSTEMS

Optimal Configuration of Compute Nodes for Synthetic Aperture Radar Processing

Łabiak G., Miczulski P. (IIE, UZ, Zielona Góra, Poland)

REPRESENTATION OF BIG DATA BY DIMENSION REDUCTION

Keywords hierarchic clustering, distance-determination, adaptation of quality threshold algorithm, depth-search, the best first search.

MANUFACTURING SYSTEM MODELING USING PETRI NETS

CHAPTER 1 INTRODUCTION

Artificial Neuron Modelling Based on Wave Shape

Keywords: Case-Base, Software Effort Estimation, Bees Algorithm

A Modified Inertial Method for Loop-free Decomposition of Acyclic Directed Graphs

A new analysis technique for the Sprouts Game

Transcription:

SIMULINK BLOCKSE FOR NEURO-FUZZY PREDICIVE CONROL Cristian Olaru, George Dragnea and Octavian Pastravanu Department of Automatic Control and Industrial Informatics, Faculty of Automatic Control and Computer Science echnical University Gh. Asachi of Iasi, Blvd. Mangeron 53A, 700050, Iasi, Romania Phone / Fax: +40-232-230751, E-mail: opastrav@delta.ac.tuiasi.ro Abstract: he paper presents a Simulink blockset that extends the usage of Simulink environment toward the area of neuro-fuzzy predictive control of non-linear processes. he blockset provides tools for identification, simulation and controller design based on neuro-fuzzy models. he user can circumvent the need for writing program codes, by simply operating with diagram blocks, in full accordance with the "drag and drop" technique specific to Simulink. he newly created blocks are easy to handle and versatile, permitting the selection of various options for model construction and control strategy. he first part of the article gives details about the algorithmic support and the software implementation. he second part illustrates the exploitation of the blocks for an example of reference tracking control taken from literature. Keywords: non-linear predictive control, neuro-fuzzy identification, neuro-fuzzy control, ANFIS procedure, Simulink. 1. INRODUCION he Model Based Predictive Control (MBPC) is a strategy that finds a control trajectory over a future time horizon based on a dynamic model of the process. In the last decades, MBPC has become an important and a distinctive part of control theory and has been widely used in the area of industrial applications. All predictive controllers are based on the fact that the process output can be predicted over a time horizon by using the past process inputs and outputs, if a suitable model of the plant is known. here are many algorithms proposed in literature for implementing a predictive control, such as: Model Algorithmic Control MAC (Mehra and Rouhani, 1982), Extended Prediction Self - Adaptive Control EPSAC (De Keyser and Van Cauwenberghe, 1985), Generalized Predictive Control GPC (Clarke et el., 1992) and Unified Predictive Control UPC (Kadirkamanathan, 1996). he mentioned algorithms are quite similar in the sense that they are based on the same general ideas: receding horizon principle, plant model as part of the controller, prediction of the system output and optimization of a cost function. he differences between the algorithms consist in the used plant models and the chosen cost function. he model used in the predictive controller plays a decisive role in obtaining a successful control strategy that can be applied to a real plant. he model must be capable to accurately describe the process dynamics, it should be easy to implement and at the same time fast in simulation. Considering these points of view, for many plants, a neuro-fuzzy system can prove to be a good model to use in a predictive controller. his paper is dedicated to the efficient exploitation of the well-known environment MALAB-Simulink for designing and testing neuro-fuzzy predictive controllers. It presents a Simulink blockset developed at the Department of Automatic Control and

Industrial Informatics of the echnical University "Gh. Asachi" of Iasi, that covers the standard problems of MBPC relying on neuro-fuzzy models. We have developed a blockset similar to the one developed in (Kloetzer and Pastravanu, 2004), except this new one is based on neuro-fuzzy techniques - the mathematical model is obtained with the ANFIS procedure (Jang, 1995). his blockset allows the user to operate only with block diagrams for model construction and validation, as well as for the simulation of predictive control strategies. hus, the user can focus on the control engineering aspects of the application, by eliminating programming tasks, which are important time-consumers in the absence of such predesigned software modules. hese modules are organized as a library of S-functions, fully compatible with the drag and drop philosophy of the Simulink package. In the construction of the current paper we incorporate the software facilities created by our previous work (Dragnea and Olaru, 2004) for identification and simulation experiments under Simulink, relying on neuro-fuzzy models. We also derive a full benefit from the experience accumulated by our research group (Kloetzer, et. al., 2001, Kloetzer and Pastravanu, 2004) in the exploitation of the MALAB-Simulink environment for neuralnetwork-based identification and control of nonlinear dynamical systems. he paper is organized as follows: the first part presents the theoretical preliminaries of neuro-fuzzy predictive control (Section II), continuing with the presentation of the new Simulink library created for neuro-fuzzy system-based control applications (Section III), followed by a case study that illustrates the usage of the blocks in Section IV and finally, in Section V, some conclusions are formulated to underline the importance of the results. 2. PREDICIVE CONROL BASED ON NEURO-FUZZY MODELS An intuitive graphical representation of the predictive control strategy is given in Fig. 1. At each time moment k, where is the sample time and it will be omitted in the following formulas for simplicity, the future control policy u is computed in the idea that the process output y will accurately follow the reference trajectory r. In presenting the basics of the standard predictive control, the following notations will be used: N u the control horizon; N 1 the minimum prediction horizon; N 2 the prediction horizon; λ the weight factor; r the reference trajectory. he predictive control based on neuro-fuzzy models uses a neuro-fuzzy system to calculate the future plant output and a cost function based on the error between the predicted process output and the reference trajectory. he cost function, which may be different from case to case, is minimized in order to obtain the optimal input control that is applied to the non-linear plant. A possible form of the cost function, used in most predictive control algorithms, is given by the following expression: N 2 2 J = [ r( k + i) y( k+ i) ] + i= N 1 (1) N u 2 λ [ uk ( + i 1) uk ( + i 2) ] i = 1 Usually, the weight factor is considered λ = 0 and the minimum prediction horizon is N 1 = 1. At each time moment k, the cost function J is minimized with respect to the vector containing the future input values: u = [ u( k + 1), u( k + 2),..., u( k + N )] u (2) Fig. 1. MBPC strategy he process to be controlled is described by: y( k) = f ( y( k 1),..., y( k n), u( k d ),..., u( k d m ])), (3) k, m, n, d N n+ m+ 1 where f : R R is a smooth non-linear mapping describing the input-output transfer of a static system. he identification experiment can be organized according to a series-parallel scheme (Narendra and Parthasarathy, 1990). he following notations will be used to designate the future inputs and outputs of the neuro-fuzzy model: uk ( + 1 d) = = [ uk ( + 1 d), uk ( + 1 d 1),..., uk ( + 1 d m)] (4) yk ( + i 1) = = [ yk ( + i 1), yk ( + i 2),..., yk ( + 1 n)] where i = N 1...N 2 denotes the order of the predictor, m and n are the number of delays for input and output of the model respectively, d is the dead time from (3) and k is the current time moment. By feeding the neuro-fuzzy system with the vectors from (4), one can obtain the i th - step ahead predictor y(k+i), as presented in Fig. 2. In computing the future outputs of the process, if N 2 > N u +d, after the (N u + d)-th iteration, the control signal will be kept constant at a value equal to

u(k+n u ). he predictive control algorithm relies on steps described below for an arbitrary discrete-time instant k: the previous iteration, after the minimization procedure at the moment k-1, has given the command vector u old = [ u( k), u( k + 1),..., u( k + N u 1)] ; the step ahead predictors y(k+i) of orders i=n 1...N 2, are calculated by using the vectors u(k+id), y(k+i-1); the optimal control signal is achieved by minimizing the cost function J in (1) with respect to the command vector: unew = [ u( k + 1), u( k + 2),......, u ( k + )]. N u classical manner. he blocks available in this library are presented in a compact form by fig.4. he NF_IDN (Fuzzy raining) block serves in constructing neuro-fuzzy model, whereas the NF_SIM (Fuzzy Simulator) block serves in simulating the model. Details on the implementation and exploitation of these blocks can be found in a previous work of ours (Dragnea and Olaru, 2004). he NF_CON (Neuro-fuzzy predictive controller) block is the latest created and added to the Simulink blockset presented in Fig. 4. Fig. 2. Computational strategy for neuro-fuzzy predictors. At the k-th time moment, the control signal u(k) is applied to the process and the algorithm is reiterated. At the first iteration, the initial input u(0) must be provided by the user. Considering the basic theoretical preliminaries of MPBC presented in this section, a block diagram of a standard predictive controller is depicted in Fig. 3. Fig. 4. Components of the Simulink blockset developed for neuro-fuzzy-system-based control applications. he modular architecture of the NF_CON block is presented in Fig. 5. he nucleous of the controller is the predctrl, which treats the first and the third steps of the algorithm described in section 2. he procedure cost.m provides the computations requested by the second step of the algorithm and for the construction of the objective (cost) function J. his procedure is called from the main routine after the first step, and the returned objective function is minimized in the third step. For the minimization of the cost function, the procedure fmincon from the Optimal oolbox was used, which allows imposing constraints for the values of the control input. At each iteration, the S-function predctrl stores a vector containing the last N u values of the control signal applied to the plant and, at the next time moment, this vector will be used as an initial guess for starting the minimization. Fig. 3. Basic structure of MBPC 3. BLOCKS AVAILABLE IN HE NEW LIBRARY AND HEIR USAGE he Simulink library dedicated to neuro-fuzzysystems-based control applications brings many advantages, as it offers a more attractive perspective for control engineering than writing codes in a Fig. 5. Modular architecture of NF_CON block

the model was incorporated within the structure of the predictive controller via the NF_CON block. he Simulink diagram used for the closed-loop tests of the neuro-fuzzy predictive controller is presented in Fig. 7. he parameters required by the control algorithm (minimum prediction horizon N 1 = 1, prediction horizon N 2 = 3, control horizon N u = 2, weight factor λ = 0 and initial input u init = 0) were set by means of the dialog box of the NF_CON block. Fig. 6. Dialog box for NF_CON block he dialog box of the NF_CON block, as you can see in Fig. 6, allows the user to specify the parameters related both to the neuro-fuzzy architecture (parameter vector, dead time, number of input and output delays in model (2)) and to the control algorithm (minimum prediction horizon, prediction horizon, control horizon, constraints for the control signal, weight vector and initial input). he reference trajectory must be stored in a workspace vector, because it is supposed to be a priori known. he vector containing the neuro-fuzzy model parameters has the same structure as the vector resulting from the identification with the Simulink block NF_IDN. Fig. 7. Simulink diagram used for testing the predictive control of the considered plant a. 4. ILLUSRAIVE CASE SUDY In order to illustrate the usage of our Simulink blockset, this section presents the steps taken for the synthesis of a neuro-fuzzy predictive controller corresponding to the non-linear plant described by the difference equation (Liu et al., 1996): 2.5 yk ( 1) yk ( 2) yk ( ) = + 1 + y 2 ( k 1) + y 2 ( k 2) + 0.3cos(0.5( yk ( 1) + yk ( 2)) + 1.2 uk ( 1) (5) Initially, the plant described by (5) was identified by using the NF_IDN block, with a sampling period = 1 second. hen, the neuro-fuzzy model was validated by simulation, using the specific block NF_SIM. Generally speaking, these two steps must be reiterated (with different training parameters) until the obtained model exhibit a desired quality. Finally, Fig. 8. Comparative plots of the controlled plant output (dashed line) and of the reference trajectory (full line) in case on unconstrained control action: a. piecewise linear reference signal; sinusoidal reference trajectory. Fig. 8 reproduces the results of a test when a neurofuzzy model was used by the predictive controller. Both figures prove a good tracking of the reference trajectory.

a. a. Fig. 9. Plot of the control action in case of: a. piecewise linear reference signal; sinusoidal reference trajectory. Fig. 11. Plot of the constrained control action (-0.3; 0.3) in case of piecewise linear reference signal (a) and of the constrained control action (-0.4; 0.4) in case of sinusoidal trajectory. In case of high values for the amplitude or constraints for the control action the results are not satisfactory as the output cannot follow the reference in the lowfrequency area, as presented in Fig. 10. a. In this case study, when a neuro-fuzzy model is used, the results obtained by the predictive controller, are comparable with the results obtained in case of neural models (e.g. Kloetzer and Pastravanu, 2004), but the first one has a slight advantage as it is more complex than the neural model. hus it can capture certain nonlinearities, which cannot be observed by the neural model. 5. CONCLUSIONS Fig. 10. Comparative plots of the controlled plant output (dashed line) and reference trajectory (full line) in case of constrained control action (-0.3;0.3) for a piecewise linear reference signal (a) and in case of constrained control action (-0.4;0.4) for a sinusoidal reference trajectory (b). We have developed a Simulink library that provides tools for identification, simulation and controller design based on neuro-fuzzy models. he exploitation of these tools is fully compatible with the "drag and drop" technique specific to Simulink and allows the user to focus on the Control Engineering problems, by getting rid of the traditional programming tasks. he newly created blocks are easy to handle and versatile, permitting the selection of various options for the model construction and the control strategy. he implementation of the blocks relies on functions available in MALAB and its toolboxes, fact which ensures the robustness of the software.

he considered case study proves the utility of the Simulink blockset in developing accurate neurofuzzy models that can be successfully incorporated within predictive control schemes. Acknowledgements: he first two authors are grateful to Mr. Marius Kloetzer for the generosity of sharing his experience in MALAB-Simulink programming. REFERENCES Clarke, D.W., Mothadi, C. and uffs, P.S., (1987), Generalized predictive control. Part I he basic algorithm and Part II Extensions and interpretations, Automatica, vol. 23, pp. 137 160. De Keyser, R and Van Cauwenberghe, A.R.,(1985), Extended prediction self adaptive control, IFAC Symposium on Identification and System Parameter Estimation, York, UK, pp. 1317 1322. Dragnea, G., Olaru, C., Kloetzer, M., Pastravanu, O., (2004), Simulink tools for neuro-fuzzy based identification, Symposium on Automatic Control and Computer Science, Iasi. Jang, J-S, Neuro-Fuzzy Modelling and Control, Proceedings of IEEE, 1995, 83, 3, 378 405. Kloetzer, M., Ardelean, D. and Păstrăvanu, O., (2001), Developing Simulink tools for teaching neural-net-based identification, Med 01: he 9 th Mediterranean Conference on Control and Automation, pp. 63 (abstract), paper on CD- ROM. Kloetzer, M. and Pastravanu O., (2004), Simulink blockset for neural predictive control, ransactions on Automatic Control and Computer Science, Vol. 49 (63), ISSN 1224-600X Liu, G. P., Kadirkamanathan, V. and Billings S.A.,(1996), Stable sequential identification of continuous nonlinear dynamical systems by growing RBF networks, International Journal of Control, vol. 65, pp. 53 60. Mehra, R. K. and Rouhani, R., (1982), Model algorithm control: review and recent development, Proc. Engn. Foundation Conf. on Chemical Process Control II, Sea Island, Georgia, pp. 287 310. Narendra, K. S. and Parthasarathy, K., (1990), Identification and control of dynamical systems using neural networks, IEEE ransactions on Neural Networks, vol. 1, pp. 4 27. Soeterboek, R., (1992), Predictive Control. A Unified Approach, Englewood Cliffs, Prentice Hall, New York.