114 views

Uploaded by elfrich

Attribution Non-Commercial (BY-NC)

- System Modeling
- Matlab for Control Theory
- 8- Design Control Simulation
- 10 EMI 12 Liquid Level Digital Control System a Case Study
- ANSYS tutorial
- Heat Transfer Solutions - James Van Sent
- Class 10 - Mathematical Modeling of Liquid Level System
- Practical Applications and Solutions Using LabVIEW Software
- Elementary Principles Of Chemical Processes_R. M. Felder And R. W. Rousseau.pdf
- Stoichiometry, Chemical Reactions, Chemical Thermodynamics, Chemical Kinetics
- Delayed Coker Unit Pinch
- 1997-Biegler, Grossmann and Westenberg-systematic Methods of Chemical Process Design
- Mechanics of Fluids
- Solution Manual Elements of Chemical Reaction Engineering 4th Edition
- Optimization_Reklaitis
- DuPont Refrigerant Piping Handbook(2)
- Adaptive Filtering Applications
- Elementary Principles of Chemical Processes
- Ammonia Solar Heat Engine
- Mathematical Modeling of Transport Processes

You are on page 1of 10

System Modelling:

Linear and control system analysis and design begins with models of real systems. These models, which are mathematical representations of such things as machinery, electrical circuits, and chemical processes are used to study the dynamic response of real systems. The mathematical techniques used by MATLAB to design and analyze these systems assume processes that are physically realizable, linear, and time-invariant (LTI). Time varying or nonlinear systems either cannot be analyzed or must be approximated by LTI representations. MATLAB uses models in the form of transfer functions or state-space equations. Either model form can be expressed in continuous-time (analog) or discrete-time (digital) forms. Transfer functions can be expressed as the ratio of two polynomials or in zero-pole-gain form. State-space system models are particularly well suited to MATLAB, since they a matrix based expression. EXAMPLE

k m b x(t)

p u(t)

y(t)

For the Transfer Function Representation of the system: y ( t ) = px ( t ) 2 x(s) 1 ( ms + bs + k )x ( s ) = u ( s ) --------- = ----------------------------2 u(s) ms + bs + k y(s) y(s) p y ( s ) = px ( s ) --------- = p then --------- = ----------------------------2 x(s) u(s) ms + bs + k If m = 1, b = 4, k = 3, and p = 10; Then the transfer function system model is Y(s) U(s) 10

------------------------2 s + 4s + 3

mx + bx + kx = u ( t )

Plant Which can be modelled in MATLAB as: num = [10]; den = [1 4 3]; or as z = []; p = [-3;-1]; k = 10;

For the State-Space Representation of the system: Let Then Or x1 = x x2 = x y ( t ) = px 1 mx 2 + bx 2 + k x 1 = u ( t ) x1 = x2 x1 x2 y = Cx + Du The state-space system model is:

D 1 ___ s A

x = Ax + Bu

y ( t ) = 10 0

B u(t)

+ y(t)

Which can be modelled in MATLAB as: A = [0 1;-3 -4]; B = [0;1]; C = [10 0]; D = 0;

Model Conversion:

MATLAB has a number of functions that make it easy to convert from one model form to another and to convert continuous-time systems to discrete-time systems. These conversion functions are summarized below and more information can be obtained by typing help function_name at the MATLAB command prompt: c2d Continuous state-space to discrete state-space conversion residue Partial fraction expansion conversion ss2tf State-space to transfer function conversion ss2zp State-space to zero-pole-gain conversion tf2ss Transfer function to state-space conversion tf2zp Transfer function to zero-pole-gain conversion zp2ss Zero-pole-gain to state-space conversion zp2tf Zero-pole-gain to transfer function conversion

MATLAB has several functions that are useful for designing and analyzing linear systems. These functions can be used in both continuous and discrete time systems. The basic design and analysis functions a summarized below: rlocus Evans root-locus plot rlocfind Locating the system gain from pole locations indicated be the mouse nyquist Nyquist frequency response plot bode Log-magnitude and phase vs. frequency response plot

Pole placement state feedback gain determination (A-BK) Linear-quadratic regulator determination for optimal control Linear-quadratic estimator determination for optimal control Unit step time response plot Time response simulation for generic input functions

Suppose we are given the transfer function of position-control system, and since the electrical time constant is much smaller than the mechanical time constant we can approximate the openloop system as: e i o 4500 K o ( s ) ---------------------------4500K s ( s + 361.2 ) ------------- = ---------------------------i ( s ) s ( s + 361.2 ) The free integrator in the denominator will ensure that there will be zero steady-state error to a step command. It is desired that the closed loop system has a damping ratio of 0.7071. We can nd the value of the gain K that will achieve this damping by looking at the roots of 1 + KG(s) as K varies using the root-locus method. Lets use MATLAB to accomplish the design.

Select a good viewing window to focus on the intersection of the root-locus plot and the 0.7071 damping line (i.e. the slope of the line m = cos-1(x) = 45).

Which gives the desired gain to be approximately 14.5. Lets close the loop and test the system. Remember Gcl(s) = Gnum(s)/(Gden(s)+Gnum(s))

Now, suppose we need zero steady state error for ramp inputs. We need to add integral action to the controller. The model be comes: e i o 4500K p ( s + K I K p ) o ( s ) ------------- = -------------------------------------------------2 e ( s ) s ( s + 361.2 )

KI Kp + ___

S

Applying Rouths test to the system indicates that the system is stable for 0 < KI < 361.2Kp. This means that the zero of G(s) at s = -KI/Kp cannot be placed too far into the left hand plane without destabilizing the system. A viable method for designing a PI controller is to place the zero near the origin and away from the most signicant pole of G(s) at s = -361.2. If the zero is too close to the origin we will generate a slow pole and hence large settling time and too far will produce a zero that causes large overshoot. A good compromise is to put the zero at s = -KI/Kp at -10. Then the design and analysis is similar to the session above.

Another approach to control design is the frequency response method. Lets us design a PID controller for the following servo-system: 100 G ( s ) = --------------------------------------------------s ( 0.1s + 1 ) ( 0.2s + 1 ) KI KI2 G c ( s ) = K P + K D s + ----- = ( 1 + K D1 s ) K P2 + -------- s s Without compensation the gain margin is -16.5 dB so the loop cannot be closed before compensation. The performance specications state that the ramp error constant Kv is to be innite and the phase margin should be greater than 45. We shall rst design the PD portion of the controller. After plotting many bode diagrams it is found that the best compromise between the phase margin and the open-loop bandwidth of the system is when KD1 = 0.5. So lets augment the system Gc(s) with (1+0.5s) and nd the new phase margin.

We see that the PD compensated open-loop system has a new phase margin of 14.9. To realize a phase margin of 45, without affecting the phase curve, the gain-crossover frequency should be

approximately 13 rad/sec, at which point the magnitude curve has a gain of 20 dB. Thus, the PI controller must provide an attenuation of -20 dB at the same time it introduces another free integrator that will give us an innite ramp error constant. Lets add a -3 dB factor of safety to the attenuation, since the phase curve will inevitably be degraded by the phase of the PI controller. The value of KP2 is determined as 10^(-23/20) = 0.07 and KI2 is chosen one decade below the required corner frequency (13/10)*KP2 0.007. Thus, the parameters of the PID controller are determined to be KP = 0.0735, KD = 0.035, and KI = 0.007.

x = Ax + Bu y = Cx + Du u = Kx

State Feedback (Pole Placement) Regulator Design: The task is to nd the state feedback gain matrix K (u = -Kx + Nv) to move the open loop poles to stabilize and or prescribe the relative degree of stability of the closed loop system. The ability to assign the location of the closed loop poles is dependent on the controllability or stabilizability of the pair (A,B). If the uncontrollable modes of the system are stable we can use state feedback to stabilize the system. Lets look at:

x = 0.4 0 0.01 6.3 1 0 0 x+ 0 u 1.4 9.8 0.02 9.8 y = 00 1 x

Observer Design: In a typical system with many states, it is not possible or practical to sense all the states and feed them back. Any practical compensator must rely on measured output and inputs for feedback. Even though we do not have access to all the system states can can estimate them: x = Ax + Bu + L ( y C x Du ) x(0) = 0

If the pair (A,C) is observable then we can design an observer to asymptotically estimate all the states. Lets continue with the previous state feedback example:

Suppose we want to design an optimal regulator to control a system that consists of an inverted pendulum on a movable base. The purpose of the regulator will be to move the base such that the pendulum remains vertical, much like balancing a stick on your nger. The four states of the system are the position and velocity of the base and the angular position and velocity of the pendulum. The state-space equations and the control law for the system is: x = Ax + Bu y = Cx + Du u = Kx

(x

0

Qx + u Ru ) dt

Use lqr to calculate the feedback gain constant K assuming: 0 A = 0 0 0 1 0 0 2.2 0 0 0 22 0 0 1 0 0 B = 0.22 0 0.22 1 Q = 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1

R = 0.001

- System ModelingUploaded byFaröuq d'Cröw
- Matlab for Control TheoryUploaded byruhuna013
- 8- Design Control SimulationUploaded byahmed4665
- 10 EMI 12 Liquid Level Digital Control System a Case StudyUploaded byapi-3707706
- ANSYS tutorialUploaded byRabee Shammas
- Heat Transfer Solutions - James Van SentUploaded byHoward Schwartz
- Class 10 - Mathematical Modeling of Liquid Level SystemUploaded byapi-26676616
- Practical Applications and Solutions Using LabVIEW SoftwareUploaded byMaleny Garcia
- Elementary Principles Of Chemical Processes_R. M. Felder And R. W. Rousseau.pdfUploaded bynazmul hasan
- Stoichiometry, Chemical Reactions, Chemical Thermodynamics, Chemical KineticsUploaded byMark
- Delayed Coker Unit PinchUploaded byPavel Marcinkovic
- 1997-Biegler, Grossmann and Westenberg-systematic Methods of Chemical Process DesignUploaded byDalia Bonilla Correa
- Mechanics of FluidsUploaded byFlexi Soufiane
- Solution Manual Elements of Chemical Reaction Engineering 4th EditionUploaded byMatthew Leach
- Optimization_ReklaitisUploaded byJuan Carlos Amezquita
- DuPont Refrigerant Piping Handbook(2)Uploaded byVolvouser
- Adaptive Filtering ApplicationsUploaded by花玉良
- Elementary Principles of Chemical ProcessesUploaded byGerman Yaibona
- Ammonia Solar Heat EngineUploaded bywaqashabib
- Mathematical Modeling of Transport ProcessesUploaded bybgkdear
- LAB 02 ControlUploaded byfiaz023
- Polymer ElectronicsUploaded byKuldeep Singh
- Chemical Engineering Kinetics by J M SmithUploaded byMahita Reddy
- Gas Conditioning & Processing Vol 1.pdfUploaded byTino Khamphasith
- Gas Conditioning and Processing Volume 2 John Campbell Co.Uploaded bysaahamzeh
- Introduction to Material and Energy Balances REKLAITISUploaded byAbner Colman
- DistillationUploaded byMy My
- Distillation Design KisterUploaded byZopinho90
- Fundamentals of POLYMER ENGINEERINGUploaded bysercanvardar

- Khepera, Micro Robot, FAQUploaded byelfrich
- Efficient C Coding for AVRUploaded byapi-3740925
- LabVIEW_book_Running Labview In MatlabUploaded byMina Maged George
- Matlab Tutorial for Systems and Control TheoryUploaded byelfrich
- MATLAB Symbolic Math ToolboxUploaded byelfrich
- Matlab Partial Differential Equation ToolboxUploaded byelfrich
- Mathematics - Fourier Transforms Using MATLABUploaded byapi-3833675
- Examples of Programming in MatlabUploaded bymilad
- pdf Engineering - Fluid Dynamics - Shallow Liquid Simulation Using Matlab (2001 Neumann)Uploaded byelfrich
- chemical process control with matlabUploaded byluisagarcia366
- (2001) E-Book - Electronics and Circuit Analysis Using Matlab - Theory - DiodesUploaded bydhruvv7
- opUploaded byelfrich
- Gyros CopUploaded byelfrich
- Albert Einstein - RelativityUploaded bysemiramiss22
- Theory of Relativity Albert EinsteinUploaded byapi-3701311
- Compiler Construction ManualUploaded byelfrich
- Compiler Book Ch10 - Parser and Scanner ConstructionUploaded byelfrich
- A Compact Guide to Lex & YaccUploaded byelfrich
- KheperaUserManualUploaded byelfrich
- GenIOManualUploaded byelfrich
- Tablas de DerivadasUploaded byelfrich
- SmithUploaded byAbel Baron
- Winavr Avr GccUploaded byelfrich
- Using the SPI as High SpeedUploaded byelfrich
- Timer Counter BasicsUploaded byelfrich
- Keyboard AVRUploaded byelfrich
- Implementing FIFO Buffers in SoftwareUploaded byelfrich
- How to Declare IO PinsUploaded byelfrich
- Frequency SynthesizerUploaded byelfrich

- Applicability of DFT + U to U metal and U-Zr alloyUploaded bybmalki68
- elliott-waves.pdfUploaded bysolarni
- Types of DataUploaded bysuchitrashishu
- Tutorial 1Uploaded byVishnu A R
- Pressure Transient AnalysisUploaded byswaala4real
- PREDICTIVE MODELS FOR SYSTEM XC - ANTIPORTER INHIBITION BASED ON STRUCTURALLY DIVERSE MOLECULESUploaded byiajps
- JPEG Encoder IP CoreUploaded byLundgren
- Ampacities of underground cablesUploaded bysuzanamg
- ICE-04Uploaded byKshitiz Rawat
- JNTUA 2015 1st Year SupplyUploaded bystarpenchal
- U Frame Support User DocumentationUploaded byHELIX2009
- non-historical-review of literature-4 18 2016Uploaded byapi-316027728
- Bulls Eye Sample Test Paper 2012Uploaded byparmodcobra360
- Objective Ch 2 FSC Part1 ImranUploaded byAngelic Shine
- ABS Standards OS-501Uploaded byvijuindia1111
- Sample Exam Solutions.docxUploaded byrichard
- Alisa Bokulich- Rethinking Thought ExperimentsUploaded byOppekee
- Become Friends With LogarithmsUploaded bywkkchamara
- Physical Quantity - Wikipedia, The Free EncyclopediaUploaded byGanesh Alessandro Gana
- A molecular approach ch13Uploaded byStephen
- Knock OutRouletteBookUploaded bybyron
- Unix Sed Command UtilityUploaded bysantosh_panditpur
- Math g2 m3 Full ModuleUploaded byRivka Share
- 51-151 (Revised)Uploaded bynorthern.wolves
- Parameters for a 2D-FE Induction Motor ModelUploaded byAkshay Gatkal
- hafez2016.pdfUploaded byeng_ahmed4444
- FYP ReportUploaded byPathum Fernando
- eeesyllUploaded byAswani Kumar E
- A Universal Instability of Many-dimensional Oscillator SystemsUploaded byBrishen Hawkins
- Assignment - 6 Game TheoryUploaded byDawit Haile