The Use of Mathematica in Control Engineering Linear Model Descriptions Linear Model Transformations Linear System Analysis Tools Design/Synthesis Techniques.

Slides:



Advertisements
Similar presentations
Dynamic Behavior of Closed-Loop Control Systems
Advertisements

Frequency Response Techniques
Properties of State Variables
CHE 185 – PROCESS CONTROL AND DYNAMICS
Chapter 8 Root Locus <<<4.1>>>
Control of Multiple-Input, Multiple-Output Processes
Chapter 8 Root Locus and Magnitude-phase Representation
Analysis of SISO Control Loops
© Goodwin, Graebe, Salgado, Prentice Hall 2000 Chapter7 Synthesis of SISO Controllers.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Multivariable Control Systems
Frequency Response Methods and Stability
Control of Multiple-Input, Multiple- Output (MIMO) Processes 18.1 Process Interactions and Control Loop Interactions 18.2 Pairing of Controlled and Manipulated.
Transient and steady state response (cont.)
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
A DESCRIPTOR SYSTEMS PACKAGE FOR MATHEMATICA
Multivariable Control Systems
Feedback Control Systems (FCS) Dr. Imtiaz Hussain URL :
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
Automatic Control Theory-
1 Chapter 2 We need to write differential equations representing the system or subsystem. Then write the Laplace transform of the system. Then we will.
Automatic Control System
Book Adaptive control -astrom and witten mark
Unit 5: Feedback and control theory An Introduction to Mechanical Engineering: Part Two Feedback and control theory Learning summary By the end of this.
Open and closed loop transfer functions. BIBO stability by M. Miccio rev. 3.5 of March 12, 2015.
ME375 Handouts - Spring 2002 Root Locus Method.
Chapter 7 Stability and Steady-State Error Analysis
Model Reference Adaptive Control (MRAC). MRAS The Model-Reference Adaptive system (MRAS) was originally proposed to solve a problem in which the performance.
THE LAPLACE TRANSFORM LEARNING GOALS Definition
Prof. Wahied Gharieb Ali Abdelaal CSE 502: Control Systems (1) Topic# 3 Representation and Sensitivity Analysis Faculty of Engineering Computer and Systems.
1 Chapter 11 Compensator Design When the full state is not available for feedback, we utilize an observer. The observer design process is described and.
Motivation For analytical design of control systems,
Chapter 4 A First Analysis of Feedback Feedback Control A Feedback Control seeks to bring the measured quantity to its desired value or set-point (also.
دانشگاه صنعتي اميركبير دانشكده مهندسي پزشكي استاد درس دكتر فرزاد توحيدخواه بهمن 1389 کنترل پيش بين-دکتر توحيدخواه MPC Stability-2.
Root Locus Techniques (Sketching Method) Date: 25 th September 2008 Prepared by: Megat Syahirul Amin bin Megat Ali
Lecture 14: Pole placement (Regulator Problem) 1.
7.1 Root Locus (RL) Principle We introduce the RL through an example. Consider servo motor system shown bellow The closed loop transfer function is motor.
(COEN507) LECTURE III SLIDES By M. Abdullahi
ERT 210/4 Process Control & Dynamics DYNAMIC BEHAVIOR OF PROCESSES :
Dr. Tamer Samy Gaafar Lec. 2 Transfer Functions & Block Diagrams.
Shroff S.R. Rotary Institute of Chemical Technology Chemical Engineering Instrumentation and process Control.
Control Systems Lect.3 Steady State Error Basil Hamed.
SKEE 3143 Control Systems Design Chapter 2 – PID Controllers Design
Chapter 6 The Stability of Linear Feedback System
Intelligent Robot Lab Pusan National University Intelligent Robot Lab Chapter 6. TRANSIENT RESPONSE -- STABILITY Pusan National University Intelligent.
Feedback Control System THE ROOT-LOCUS DESIGN METHOD Dr.-Ing. Erwin Sitompul Chapter 5
EE611 Deterministic Systems Multiple-Input Multiple-Output (MIMO) Feedback Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Root Locus Method Assist. Professor. Dr. Mohammed Abdulrazzaq
Chapter 12 Design via State Space <<<4.1>>>
Automatic Control Theory CSE 322
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Transfer Functions Chapter 4
Automatic Control Theory CSE 322
Pole Placement and Decoupling by State Feedback
Learning Outcomes After completing this ppt the student will be able to: Make and interpret a basic Routh table to determine the stability of a system.
Pole Placement and Decoupling by State Feedback
§3-3 realization for multivariable systems
Feedback Control Systems (FCS)
7.1 Root Locus (RL) Principle
Root-Locus Analysis (1)
Digital and Non-Linear Control
Synthesis of SISO Controllers
Equivalent State Equations
Homework 3: Transfer Function to State Space
Chapter 6. STABILITY Good relationships nurture you. They help you find yourself and who you are. I don’t mean just relationships with boys or men. Relationships.
IntroductionLecture 1: Basic Ideas & Terminology
Time Response, Stability, and
Presentation transcript:

The Use of Mathematica in Control Engineering Linear Model Descriptions Linear Model Transformations Linear System Analysis Tools Design/Synthesis Techniques Pole Assignment Model-Reference Optimal Control PID Controller Concluding Remarks Neil Munro Control Systems Centre UMIST Manchester, England.

Linear Model Descriptions The Control System Professional currently provides several ways of describing linear system models; e.g. 1For systems described by the state-space equations where y is a vector of the system outputs u is a vector of the system inputs and x is a vector of the system state-variables 2For systems described by transfer-function relationships where s is the complex variable

Examples: - ss = StateSpace[{{0, 0, 1, 0},{0, 0, 0, 1}, {-(a b), 0, a+b, 0},{0, -(a b), 0, a+b}}, {{0, 0},{0, 0},{1, 0},{0, 1}},{{-b, -a, 1, 1}}]

tf = TransferFunction[s,{{1/(s-a),1/(s-b)}}]

New Data Formats have been implemented, for these objects, which are fully editable, as follows: - ss = StateSpace[{{0, 0, 1, 0},{0, 0, 0, 1}, {-(a b), 0, a+b, 0},{0, -(a b), 0, a+b}}, {{0, 0},{0, 0},{1, 0},{0, 1}},{{-b, -a, 1, 1}}] now results in the composite data matrix

tfsys = TransferFunction[s, {{((s+2)(s+3))/(s+1)^2,1/(s+1)^2}, {(s+2)/(s+1)^2,(s+1)/((s+1)^2(s+3))}, {1/(s+2),1/(s+1)}}] which now yields

New Data Objects Four new data objects have been introduced; namely, 1.Rosenbrock’s system matrix in polynomial form 2.Rosenbrock’s system matrix in state- space form 3.The right matrix-fraction description of a system 4.The left matrix-fraction description of a system.

The system matrix in polynomial form provides a compact description of a linear dynamical system described by arbitrary ordered differential equations and algebraic relationships, after the application of the Laplace transform with zero initial conditions; namely where , u and y are vectors of the Laplace transformed system variables. This set of equations can equally be written as

If the system description is known in state- space form then a special form of the system matrix can be constructed, known as the system matrix in state-space form, as shown below The system matrix in polynomial form is then defined as When a system matrix in polynomial form is being created, it is important to note that the dimension of the square matrix T(s) must be adjusted to be r, where r is  the degree of Det[T(s)].

Matrix Fraction Forms Given a system description in transfer function matrix form G(s), for certain analysis and design purposes; e.g. the H-  approach to robust control system design; it is often convenient to express this model in the form of a left or right matrix- fraction description; e.g. 1.A left matrix-fraction form of a given transfer function matrix G(s) might be 2A right matrix fraction form of a given transfer function matrix G(s) might be

Linear Model Transformations G(s) [A, B, C, D] G(s) System Matrix P(s) in polynomial form [A, B, C, D] System Matrix P(s) in state-space form [T(s),U(s),V(s),W(s)] System Matrix P(s) in polynomial form P 1 (s)  P 2 (s) G(s) Least Order

New Data Transformations All data formats are fully editable tfsys = TransferFunction[s, {{((s+2)(s+3))/(s+1)^2,1/(s+1)^2}, {(s+2)/(s+1)^2,(s+1)/((s+1)^2(s+3))}, {1/(s+2),1/(s+1)}}] rff = RightMatrixFraction[tfsys] ss = StateSpace[tfsys] rff = RightMatrixFraction[ss,s]

tfsys = TransferFunction[s, {{(s+1)/(s^2+2s+1)},{(s+2)/(s+1)}}] ps = SystemMatrix[tfsys,TargetForm  RightFraction] rff = RightMatrixFraction[ps] TransferFunction[%] ps = SystemMatrix[tfsys,TargetForm  LeftFraction] lf = LeftFractionForm[ ] New Data Transformations

tfsys =TransferFunction[s, {{(s+1)/(s^2+2s+1)},{(s+2)/(s+1)}] rff = RightMatrixFraction[tfsys] dt = ToDiscreteTime[tfsys,Sampled->20]//Simplify

SystemMatrix[dt,TargetForm->RightFraction] SystemMatrix[dt] RightMatrixFraction[%] New Data Transformations

A Least-Order form of a System-Matrix in polynomial form is one in which there are no input-decoupling zeros and no output-decoupling zeros, and would yield a minimal state-space realization, when directly converted to state-space form. For example, the polynomial system matrix is not least order, since T(s) and U(s) have 3 input-decoupling zeros at s = {0, 0, -1}; i.e. [T(s) U(s)] has rank  4 at these values of s.

Hence

System Analysis Controllable[ss] Observable[ss] ss =[A, B, C, D] SmithForm[T(s) U(s)] McMillanForm[G(s)] Controllable[ps] Observable[ps] Decoupling Zeros Controllable[ps] Observable[ps] Decoupling Zeros MatrixLeftGCD[T(s) U(s)] MatrixRightGCD[T(s) V(s)]

Controllability and Observability In the same way that the controllability and observability of a system described by a set of state space equations can be determined in the Control System Professional by entering the commands Controllable[ss] and Observable[ss] where ss is a StateSpace object. These tests can now also be directly applied to a system matrix object by entering the commands Controllable[sm] and Observable[sm] where sm is a SystemMatrix object in either polynomial form or state space form.

Preliminary Analysis Reduction of State-Space Equations Given a system matrix in state-space form then an input-decoupling zeros algorithm, implemented in Mathematica, reduces P(s) to The completely controllable part is then given by

Gasifier Model Format A is 25 x 25B is 25 x 6 C is 4 x 25D is 4 x 6 Inputs:- 1 char 2 air 3 coal 4 steam 5 limestone 6 upstream disturbance Outputs:- 1 gas cv 2 bed mass 3 gas pressure 4 gas temperature

Preliminary Analysis The original 25 th order system is numerically very ill conditioned. The eigenvalues cover a significant range in the complex plane, ranging from to The condition number is 5.24 x At  = 0 the maximum and minimum singular values are and 50, respectively. The Kalman controllability and observability tests yield a rank of 1, and the controllability and observability gramians are :-

Preliminary Analysis Application of the decoupling zeros algorithm to [sI-A, B] yielded indicating that the system had 7 input-decoupling zeros, which was confirmed by transforming A and B to spectral form. Dimensions of

Coprime Factorizations

Smith and McMillan Forms The Smith form of a polynomial matrix and the McMillan form of a rational polynomial matrix are both important in control systems analysis. Consider an x m polynomial matrix N(s), then the Smith form of N(s) is defined as S(s) = L(s)N(s)R(s) and L(s) and R(s) are unimodular matrices.

Smith and McMillan Forms Consider now an x m rational polynomial matrix G(s), and let G(s) = N(s)/d(s) where d(s) is the monic least common denominator of G(s), then the McMillan form of G(s) is defined as where M(s) is the result of dividing the Smith form of N(s) by d(s), and cancelling out all common factors

Pole Assignment PID Controller Nonlinear Systems Model-Order Reduction Robust NA Nyquist Array Optimal Control Model Ref. Opt. Control Design Methods Synthesis Methods

Design/Synthesis Methods Methods implemented are:- 1 Pole Assignment - Some Observations 2 Model-Reference Optimal Control 3 The Systematic Design of PID Controllers 4 Uncertain Nonlinear Systems 5 Robust Direct Nyquist Array Design Method 6 Model-Order Reduction

Pole Assignment Control Systems Centre - UMIST We consider four main types of approaches ACKERMANN’S FORMULA SPECTRAL APPROACH MAPPING APPROACH EIGENVECTOR METHODS

Control Systems Centre - UMIST Ackermann’s Formula Here  is the controllability matrix of [A,b], and p c (s) is the desired closed-loop system characteristic polynomial. where Spectral Approach Here, i and  i are the open-loop system and desired closed-loop system poles, respectively, and the v i ´ are the associated reciprocal eigenvectors.

Mapping Approach Control Systems Centre - UMIST The state-feedback matrix is given as where  is the controllability matrix of [A, b] Here, the a i and  i are the coefficients of the open-loop and closed-loop system characteristic polynomials, respectively.

Control Systems Centre - UMIST Eigenvector Methods It is also possible to determine the state- feedback pole assignment compensator as where the m i are randomly chosen scalars and the u c i are the closed-loop system eigenvectors calculated from Selecting m i =1, for example, the state- feedback compensator can be found as

Control Systems Centre - UMIST Comparison of Dyadic Methods under Numeric Considerations

Control Systems Centre - UMIST Comparison of Dyadic Methods under Symbolic Considerations

Model Reference LQR System Model-Reference Optimal Control The resulting optimal feedback controller K o can be partitioned as where K 11 and K 21 operate on the reference-model state vector x M and K 12 and K 22 operate on the system state vector x.

Model Reference LQR feedback paths. Model Reference LQR System Closed-Loop.

Unit-step on reference input 1 Unit-step on reference input 2 Unit-step on reference input 3 Unit-step on reference input 4

In recent years, several researchers have been re-examining the PID controller to determine the limiting K p, K i, and K d parameter values to guarantee a stable closed-loop system; namely, Keel and Bhattacharyya Ho, Datta, and Bhattacharyya Shafei and Shenton Astrom and Hagglund Munro and Soylemez The PID Controller

Test compensator arrangement Test compensator space

The Nyquist plot for Kp = 0.5 and Ki = 0.5 The admissible PI compensator space

Design Requirements Stability Performance Robustness Simplicity Transparency increasing difficulty

Acknowledgements My thanks to Dr Igor Bakshee of Wolfram Research for his interest and help in carrying out this work.

D-Stability Im Re d  D  = Sin(  ) Control Systems Centre UMIST Control Systems Centre UMIST

The Nyquist Plot Approach Here, we detect 5 axis crossings, (-2,+2,+2,-1,-1), where the last is due to the infinite arc, on the right, due to the pole at the origin. Control Systems Centre UMIST Control Systems Centre UMIST

The resulting stability boundary is The Nyquist Plot Approach Note that the origin is not included in the region because the basic system is unstable.

The Nyquist Plot Approach Here, with Kp = 5 and Ki = 18 the system is stable, even with an additional gain of k = yielding closed-loop poles = ± i ± i ± i Control Systems Centre UMIST Control Systems Centre UMIST

Diagonal Dominance Concepts Various definitions of Diagonal Dominance exist, namely :- Rosenbrock’s row/column form ~ R Limebeer’s Generalised Diagonal Dominance ~ L Bryant & Yeung’s Fundamental Dominance ~ Y where the conservatism of the resulting dominance criterion reduces as Y < L < R Code Mathematica Code

Nyquist Array Example

Gasifier Model Format A is 25 x 25B is 25 x 6 C is 4 x 25D is 4 x 6 Inputs:- 1 char 2 air 3 coal 4 steam 5 limestone 6 upstream disturbance Outputs:- 1 gas cv 2 bed mass 3 gas pressure 4 gas temperature

Combined Sequential Loop Closing and Diagonal Dominance Method This approach is a new combination of Bryant’s Sequential Loop Closing Approach with MacFarlane and Kouvaritakis’ ALIGN Algorithm, Edmunds’ Scaling and Normalization Technique, and Rosenbrock’s Diagonal Dominance. It is particularly appropriate in cases where a simple controller structure is desired. Advantages: –It can be implemented by closing one loop at a time. –Usually, the resulting control scheme is quite simple and can be easily realized in practice.

Achieving Diagonal Dominance Normalization : –Generates the input-output scaling to be applied to the system in order to minimize interaction. –Determines the best input-output pairing for control purposes. –Produces good diagonal dominance properties at low and intermediate frequencies. –Results are obtained by using simple, wholly real permutation matrices. High frequency decoupling : –Aims at improving the transient response of the system. –Emphasis is on frequencies close to the bandwidth, around which interaction is most severe. –Results are obtained by making use of wholly real matrices.

Preliminary Analysis The original 25 th order system is numerically very ill conditioned. The eigenvalues cover a significant range in the complex plane, ranging from to The condition number is 5.24 x At  = 0 the maximum and minimum singular values are and 50, respectively. The Kalman controllability and observability tests yield a rank of 1, and the controllability and observability gramians are :-

Preliminary Analysis Application of the decoupling zeros algorithm to [sI-A, B] yielded indicating that the system had 7 input-decoupling zeros, which was confirmed by transforming A and B to spectral form. Dimensions of

Design Procedure - 1 The Nyquist Array after an initial output scaling of diag{ , 0.001, 0.001, 0.1} looks like :

Design Procedure - 2 The Nyquist Array after swapping the first two outputs (calorific value of fuel gas and bedmass) and closing the bedmass/char off-take loop is :

Design Procedure - 3 The Nyquist Array of the 3 x 3 subsystem after normalisation and high frequency decoupling at  = rad/sec is (where the outputs are pressure, temperature and calorific value of fuel gas) :

Design Summary Implement PI controller on bedmass/char-extraction loop. Scale inputs and outputs, to normalize them. Use ALIGN Algorithm for the remaining 3-input 3-output subsystem. Design a PI controller for the fast Calorific Value Loop. Design a PI controller for the fast Pressure Loop. Design a Lag-Lead controller for the remaining slow Temperature Loop. Output Scaling Gasifier Input Scaling constant decoupling bedmass PI temperature control pressure PI cv PI The control scheme resulting from this approach is as follows :

Controller Constant Pre-compensator Constant Post-compensator Dynamic Controller

Model Simplification

Root-locus diagram of g 1,1 (s) Model Simplification

Control Systems Centre - UMIST Theorem: By using just the first input of a given MIMO system, it is almost always possible to arbitrarily assign  1 self conjugate poles of the system, and make these poles uncontrollable from the other inputs, provided that the system [A, b 1,C] has  1 controllable and observable poles, where b 1 is the first column of the input matrix (B), where This result can be compared with a previous result developed by Munro and Novin-Hirbod (1979) for the case of dynamic output feedback, where the degree r of the necessary compensator is given by