Using MATLB for stability analysis in Controls engineering Cyrus Hagigat Ph.D., PE College of Engineering University of Toledo, Toledo, Ohio

Similar documents
Alireza Mousavi Brunel University

Step Response of First-Order Systems

Control Systems Engineering ( Chapter 8. Root Locus Techniques ) Prof. Kwang-Chun Ho Tel: Fax:

Example on Root Locus Sketching and Control Design

Block Diagram Reduction

(b) A unity feedback system is characterized by the transfer function. Design a suitable compensator to meet the following specifications:

Introduction to Root Locus. What is root locus?

Module 07 Control Systems Design & Analysis via Root-Locus Method

EXAMPLE PROBLEMS AND SOLUTIONS

Radar Dish. Armature controlled dc motor. Inside. θ r input. Outside. θ D output. θ m. Gearbox. Control Transmitter. Control. θ D.

Chemical Process Dynamics and Control. Aisha Osman Mohamed Ahmed Department of Chemical Engineering Faculty of Engineering, Red Sea University

Nyquist Stability Criteria

Time Response Analysis (Part II)

Chapter 7 : Root Locus Technique

Lab Experiment 2: Performance of First order and second order systems

NETWORK ANALYSIS WITH APPLICATIONS

Transient Response of a Second-Order System

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

CHAPTER 7 STEADY-STATE RESPONSE ANALYSES

Class 11 Root Locus part I

Time Response of Systems

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

LABORATORY INSTRUCTION MANUAL CONTROL SYSTEM I LAB EE 593

Control System. Contents

Lecture 1 Root Locus

Radar Dish. Armature controlled dc motor. Inside. θ r input. Outside. θ D output. θ m. Gearbox. Control Transmitter. Control. θ D.

Classical Dual-Inverted-Pendulum Control

Linear System Theory

Introduction to Feedback Control

100 (s + 10) (s + 100) e 0.5s. s 100 (s + 10) (s + 100). G(s) =

7.4 STEP BY STEP PROCEDURE TO DRAW THE ROOT LOCUS DIAGRAM

APPLICATIONS FOR ROBOTICS

MATHEMATICAL MODELING OF CONTROL SYSTEMS

Test 2 SOLUTIONS. ENGI 5821: Control Systems I. March 15, 2010

DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

MAE143a: Signals & Systems (& Control) Final Exam (2011) solutions

Finding Transfer Functions of Circuits Using State-Space

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

Problems -X-O («) s-plane. s-plane *~8 -X -5. id) X s-plane. s-plane. -* Xtg) FIGURE P8.1. j-plane. JO) k JO)

School of Mechanical Engineering Purdue University. ME375 Feedback Control - 1

CHAPTER # 9 ROOT LOCUS ANALYSES

10ES-43 CONTROL SYSTEMS ( ECE A B&C Section) % of Portions covered Reference Cumulative Chapter. Topic to be covered. Part A

Control Systems. EC / EE / IN. For

Automatic Control Systems. Part III: Root Locus Technique

Compensator Design to Improve Transient Performance Using Root Locus

ME 475/591 Control Systems Final Exam Fall '99

Problem Weight Score Total 100

EEE 184: Introduction to feedback systems

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

Outline. Classical Control. Lecture 1


Root Locus Techniques

MAS107 Control Theory Exam Solutions 2008

EEE 184 Project: Option 1

Essence of the Root Locus Technique

ECE 345 / ME 380 Introduction to Control Systems Lecture Notes 8

University of Alberta ENGM 541: Modeling and Simulation of Engineering Systems Laboratory #7. M.G. Lipsett & M. Mashkournia 2011

MAK 391 System Dynamics & Control. Presentation Topic. The Root Locus Method. Student Number: Group: I-B. Name & Surname: Göksel CANSEVEN

Root Locus Methods. The root locus procedure

EE 3CL4: Introduction to Control Systems Lab 4: Lead Compensation

Unit 7: Part 1: Sketching the Root Locus

ECE317 : Feedback and Control

CYBER EXPLORATION LABORATORY EXPERIMENTS

OPTIMAL DESIGN AND ANALYSIS OF A CHEMICAL PROCESS CONTROL SYSTEM

Control Systems. University Questions

IC6501 CONTROL SYSTEMS

a. Closed-loop system; b. equivalent transfer function Then the CLTF () T is s the poles of () T are s from a contribution of a

16.31 Homework 2 Solution

MODELING OF CONTROL SYSTEMS

MAE 143B - Homework 8 Solutions

Dynamic Compensation using root locus method

STABILITY. Have looked at modeling dynamic systems using differential equations. and used the Laplace transform to help find step and impulse

Software Engineering 3DX3. Slides 8: Root Locus Techniques

Fundamental of Control Systems Steady State Error Lecturer: Dr. Wahidin Wahab M.Sc. Aries Subiantoro, ST. MSc.

Poles, Zeros and System Response

Department of Mechanical Engineering

CHAPTER 1 Basic Concepts of Control System. CHAPTER 6 Hydraulic Control System

20.6. Transfer Functions. Introduction. Prerequisites. Learning Outcomes

Basic Procedures for Common Problems

STABILITY ANALYSIS. Asystemmaybe stable, neutrallyormarginallystable, or unstable. This can be illustrated using cones: Stable Neutral Unstable

EE Experiment 11 The Laplace Transform and Control System Characteristics

Automatic Control Systems, 9th Edition

Chapter 7. Digital Control Systems

ROOT LOCUS. Consider the system. Root locus presents the poles of the closed-loop system when the gain K changes from 0 to. H(s) H ( s) = ( s)

Step input, ramp input, parabolic input and impulse input signals. 2. What is the initial slope of a step response of a first order system?

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Root Locus

R a) Compare open loop and closed loop control systems. b) Clearly bring out, from basics, Force-current and Force-Voltage analogies.

Subject: BT6008 Process Measurement and Control. The General Control System

EE -213 BASIC CIRCUIT ANALYSIS LAB MANUAL

Richiami di Controlli Automatici

AN INTRODUCTION TO THE CONTROL THEORY

9/9/2011 Classical Control 1

EC 8391-CONTROL SYSTEMS ENGINEERING. Questions and Answers PART-A. Unit - I Systems Components And Their Representation

I What is root locus. I System analysis via root locus. I How to plot root locus. Root locus (RL) I Uses the poles and zeros of the OL TF

+ i. cos(t) + 2 sin(t) + c 2.

School of Mechanical Engineering Purdue University. DC Motor Position Control The block diagram for position control of the servo table is given by:

Due Wednesday, February 6th EE/MFS 599 HW #5

Step Response for the Transfer Function of a Sensor

FATIMA MICHAEL COLLEGE OF ENGINEERING & TECHNOLOGY

Transcription:

Using MATLB for stability analysis in Controls engineering Cyrus Hagigat Ph.D., PE College of Engineering University of Toledo, Toledo, Ohio Abstract Analyses of control systems require solution of differential equations. Such solutions demonstrate performance in time domain and are used for determining stability boundaries. However, solving the differential equations for moderately complex control systems without use of numerical techniques are at times impossible. MATLAB can be used to solve differential equations and MATLAB can be used to quickly construct a Root-Locus plot for a control system that determines the stability boundaries for the control system without the need to solve the differential equations. This article demonstrates use of MATLAB for both solving system differential equations and constructing Root-locus plots. Introduction The concepts discussed in this article are using MATLAB to generate Root-Locus plots for control systems and using the plots to determine critical boundaries for control system analysis, and using MATLAB to determine the time response of control systems. The application of Root-Locus plots in control system analysis are determination of parameters that lead to an unstable behavior of a control system and determining boundaries where the control system behavior changes in the stable region. Root- Locus plots can be generated by manual techniques. However, the manual techniques are time consuming. MATLAB can be used to generate Root-Locus plots quickly. One of the goals of a control system analysis is determination of the response of the system in time domain. MATLAB can be used to determine the time domain response of a control system in most instances. However, there can be situations where MATLAB cannot be used for this purpose because the results while mathematically correct are not in a readily usable format. In this article application of MATLAB and its limitations for time response analysis of control systems are discussed. Nomenclature G(S): Transfer function of a closed loop control system in Laplace domain. H(S): Feedback multiplier of a control system in Laplace domain. R(S): Input to a control system in Laplace domain. C(S): Output of a control system in Laplace domain. K: Constant that can be varied to change control system behavior. S: Parameter in Laplace domain used to describe elements of the control system. f(t): Control system response in time domain. Technical Discussion A closed loop control system in its simplest form in Laplace domain is represented by figure 1. Figure 1: Representation of a closed loop control system in its simplest form in Laplace domain

The open loop equivalent of the system of figure 1 is shown in figure 2. In order to plot the Root-Locus plot for the expression of equation (2), the following sequence of codes must be used in MATLAB. Figure 2: open loop representation of the Closed loop system of figure 1 An example of a system of the type of figure 1 is shown in figure 3 [1]. Figure 3 represents a preliminary design that contains a gain factor K which is yet to be determined. num= [1 5 6]; den= [1 1 ]; rlocus(num,den); v=[-4 1-1 1]; axis(v) MATLAB generates the Root-Locus plot shown in figure 4. 1 Root Locus.8.6.4 Figure 3: Example of a typical controls block diagram having a gain factor of K in order to determine the numerical values for use in MATLAB for getting a Root- Locus diagram the G(S)H(S) of the closed loop control block without the gain factor K must be determined. For the block diagram of figure 3 the G(S)H(S) factor is shown in equation (1). Equation (1) once simplified becomes equation (2). Imaginary Axis.2 -.2 -.4 -.6 -.8-1 -4-3.5-3 -2.5-2 -1.5-1 -.5.5 1 Real Axis Figure 4: Root-Locus plot of system of figure 3 Since the entire Root-Locus plot of figure 4 is to the left of the imaginary axis, it is concluded that the system of figure 3 is stable for all values of K. The type of Root- Locus plot shown in figure 4 points to critical system performance differences based on the location where the plot crosses the real axis.

By using the formula 1 + G(S)H(S) =, an expression for K for the system of figure 3 can be calculated [2]. Using this technique, K for system of figure 3 is determined to be as shown in equation (3). Setting dk/ds= results in a polynomial equation that when solved results in two values for S. They are S1 = -.634 & S2 = -2.366. Substituting the values of S1 & S2 into equation (3) results in K1 =.718 & K2 = 14. K1 & K2 are the K values that correspond to the Root-Locus plot of figure 4, and therefore they are the K values that form the boundaries where the system of figure 3 behaves differently. Based on the values of K1 & K2 there are three distinct ranges of interest for K. They are: K<.718,.718 <K< 14 & K>14. In order to evaluate the three ranges for K, the following three values corresponding to the three ranges are chosen for K. K=.5 Equations (5), (6) & (7) can be used in MATLAB to obtain the system response for various inputs. getting an impulse response for the system represented by equation (5). num= [.5.25.3]; den= [1.5 1.25.3]; impulse (num, den) Figure 5 is the impulse response for system of equation (5) generated by MATLAB. K= 7 K= 15 Using the formula of figure 2, the open loop transfer function for the system of figure 3 becomes Substituting the K values of.5, 7 and 15 into equation (4) results in formulas (5), (6) & (7) for the transfer function.

.2 Impulse Response.45 Impulse Response.18.4.16.35.14.3.12.1.8.6.4.2.25.2.15.1.5 5 1 15 2 25 Figure 5: Impulse response of system of equation (4) for a K value of.5 getting an impulse response for the system represented by equation (6). num= [7 35 42]; den= [8 36 42]; impulse (num, den) Figure 6 is the impulse response for system of equation (6) generated by MATLAB. -.5.2.4.6.8 1 1.2 1.4 1.6 Figure 6: Impulse response of system of equation (4) for a K value of 7 getting an impulse response for the system represented by equation (7). num= [15 75 9]; den= [16 76 9]; impulse (num, den) Figure 7 is the impulse response for system of equation (7) generated by MATLAB.

.3 Impulse Response 1 Step Response.25.9.8.2.7.15.1.6.5.4.5.3.2.1 -.5.2.4.6.8 1 1.2 1.4 1.6 Figure 7: Impulse response of system of equation (4) for a K value of 15 A comparison of figures 5, 6 & 7 shows that the system responds differently to a unit impulse input for different values of K. The parameters of interest in the case of a unit impulse input are the initial displacement and the settling time for the system to return to equilibrium. getting a unit step input response for the system represented by equation (5). 2 4 6 8 1 12 14 16 18 Figure 8: Response of system of equation (4) for a K value of.5 getting a unit step input response for the system represented by equation (6). num= [7 35 42]; den= [8 36 42]; step (num, den) 1.4 1.2 1.98 Step Response num= [.5.25.3]; den= [1.5 1.25.3]; step (num, den).96.94.92 Figure 8 is the system response for a unit step input for system of equation (5) generated by MATLAB..9.88.86 1 2 3 4 5 6 Figure 9: Response of system of equation (4) for a K value of.7

getting a unit step input response for the system represented by equation (7). num= [15 75 9]; den= [16 76 9]; step (num, den) The Laplace transform for the sinusoidal input is 6/ S 2 + 9. [3] Transfer functions for equations (5), (6) & (7) for a sinusoidal input of 2 sin (3t) are as shown in equations (8), (9) & (1). 1.1 Step Response 1.99.98.97.96.95.94.93.5 1 1.5 2 2.5 3 3.5 Figure 1: Response of system of equation (4) for a K value of 15 A comparison of figures 8, 9 & 1 shows that the system responds differently to a unit step input for different values of K. The parameters of interest in the case of a unit step input are the initial displacement and the settling time for the system to reach the value of unity which is guided by the unit step input. In order to find the response to a sinusoidal input for the three selected K values the transfer functions for equations (5), (6) & (7) for a sinusoidal input must be calculated. Assume a sinusoidal input of 2 sin (3t) where the frequency of vibration is in units of rad/sec. To get the system response for transfer functions shown in equations (8), (9) & (1) their inverse Laplace transform must be calculated. MATLAB cannot be effectively used to find the inverse Laplace transforms because the numerical techniques used by it do not present the solutions in a usable format. Equation (11), (12) & (13) are the inverse Laplace transforms calculated for equations (8), (9) & (1) by manual calculation techniques. [5] f(t) =.26 e -.34t.14 e -.86t +.83 sin (3t).12 cos (3t) (11) f(t) = e -2.25t (-.38 sin.43t +.15 cos.43t) + 1.9 sin 3t -.15 cos 3t (12)

f(t) =.37 e -2.5t.3 e -2.25t +1.95 sin (3t).7 cos (3t) (13) Further simplification of equations (11), (12) & (13) result in equations (14), (15) & (16). f(t) =.26 e -.34t.14 e -.86t +.15 sin (3t.6) (14) f(t) =.17 e -2.25t sin (.43t 1.19) + 1.9 sin (3t 1.49) (15) 11 through 13 illustrate this point graphically. These results show that the root-locus technique is able to identify the segments of the system that behave differently from a mathematical point of view. However, a comparison of figures 12 and 13 also demonstrate that from a practical point of view there may not be a difference between systems that mathematically appear different. f(t) =.37 e -2.5t.3 e -2.25t + 1.95 sin (3t 1.53) (16) Reviews of equations (14), (15) & (16) show that equation (15) indicates a different type of system characteristic compared to equations (14) and (16). Equation (15) shows that for values of K between.718 & 14 the system behaves differently compared to outside of this range. Figures Figure 11: Response of system of equation (5) to a sinusoidal input. This plot represents equation (14)

Figure 12: Response of system of equation (6) to a sinusoidal input. This plot represents equation (15) Figure 13: Response of system of equation (7) to a sinusoidal input. This plot represents equation (16) Summary & Conclusion In this article MATLAB was used to generate a Root-Locus plot for a closed loop control system that was represented by its block diagram in Laplace domain. The primary purpose of a Root-Locus plot is stability analysis of a control system. All the portions of a Root-Locus plot that are to the left of the imaginary axis represent the stable portion of the system and the plot portions to the right of the imaginary axis represent the unstable portion of the system. For the example presented in this article the system was completely stable. In addition to stability analysis, a Root- Locus plot can be used to determine the critical areas where the control system behavior changes significantly. These areas can be determined by calculating the parameters where the plot crosses the real axis. In the example presented in this article, the plot crossed the real axis at two locations, and the constant values where the plot crossed the real axis were shown to be the boundaries where the system behavior changed mathematically and physically. Once the parameters for a stable control system are determined, the control system must be analyzed for standard inputs. Among standard inputs are impulse, step function and sinusoidal inputs. In this article MATLAB was used to determine the control system response for an impulse input and a step input. Additionally, it was shown that the MATLAB output is not usable for a sinusoidal input. Classical techniques were used to determine the output for a sinusoidal input. Comparisons of the results obtained by classical techniques for the regions identified by the Root-Locus plot were made. The results obtained by the classical techniques confirmed that the Root-Locus plot does indeed identify boundaries where the system performance changes. References: 1. Modern Control Engineering; Fifth Edition; Katsuhiko Ogata; problem A-6-1. 2. Introduction to Control Systems ; D.K. Anand; page 23. 3. Transform Circuit Analysis for Engineering and Technology; William D. Stanley; Appendix B. 4. Modern Control Systems; Third Edition; Richard C. Dorf; Robert H. Bishop; page 87. 5. Technical Calculus. Special Edition ISBN -536-98727-.