CDS 101: Lecture 2.1 System Modeling

Similar documents
CDS 101: Lecture 2.1 System Modeling

CDS 101: Lecture 2.1 System Modeling. Lecture 1.1: Introduction Review from to last Feedback week and Control

CDS 101/110: Lecture 2.1 System Modeling. Model-Based Analysis of Feedback Systems

CDS 110: Lecture 2-2 Modeling Using Differential Equations

CDS 101/110a: Lecture 2.1 Dynamic Behavior

CDS 101/110a: Lecture 10-1 Robust Performance

CDS 101/110a: Lecture 8-1 Frequency Domain Design

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

CDS 101/110a: Lecture 1.1 Introduction to Feedback & Control. CDS 101/110 Course Sequence

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

CDS 101: Lecture 5-1 Reachability and State Space Feedback

CDS 101/110a: Lecture 2.1 Dynamic Behavior

CDS 101: Lecture 4.1 Linear Systems

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

Math 128A Spring 2003 Week 12 Solutions

Introduction to Feedback Control

Lesson 9: Predator-Prey and ode45

(Refer Slide Time: 00:01:30 min)

Control for. Maarten Steinbuch Dept. Mechanical Engineering Control Systems Technology Group TU/e

CDS 101/110: Lecture 3.1 Linear Systems

CDS 101/110: Lecture 3.1 Linear Systems

MAE106 Laboratory Exercises Lab # 6 - Vibrating systems

2.72 Elements of Mechanical Design

Lecture 1: Introduction to System Modeling and Control. Introduction Basic Definitions Different Model Types System Identification

FEEDBACK CONTROL SYSTEMS

Dr Ian R. Manchester

Control Systems Design, SC4026. SC4026 Fall 2009, dr. A. Abate, DCSC, TU Delft

2.010 Fall 2000 Solution of Homework Assignment 1

MEAM 510 Fall 2012 Bruce D. Kothmann

Lab 5: Nonlinear Systems

Automatic Control Systems. -Lecture Note 15-

ET3-7: Modelling I(V) Introduction and Objectives. Electrical, Mechanical and Thermal Systems

Introduction to Control (034040) lecture no. 2

CDS 101/110a: Lecture 10-2 Control Systems Implementation

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo)

CDS 110b: Lecture 2-1 Linear Quadratic Regulators

2.004 Dynamics and Control II Spring 2008

Torques 1.0 Two torques We have written the swing equation where speed is in rad/sec as:

EXAMPLE: MODELING THE PT326 PROCESS TRAINER

Final Examination Thursday May Please initial the statement below to show that you have read it

D(s) G(s) A control system design definition

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design

System Modeling. Lecture-2. Emam Fathy Department of Electrical and Control Engineering

MCE493/593 and EEC492/592 Prosthesis Design and Control

2002 Prentice Hall, Inc. Gene F. Franklin, J. David Powell, Abbas Emami-Naeini Feedback Control of Dynamic Systems, 4e

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

AME 301: Differential Equations, Control and Vibrations

SCHOOL OF ELECTRICAL, MECHANICAL AND MECHATRONIC SYSTEMS. Transient Stability LECTURE NOTES SPRING SEMESTER, 2008

Reglerteknik, TNG028. Lecture 1. Anna Lombardi

Vibration Control Prof. Dr. S. P. Harsha Department of Mechanical & Industrial Engineering Indian Institute of Technology, Roorkee

Mechatronics Assignment # 1

EQUIVALENT SINGLE-DEGREE-OF-FREEDOM SYSTEM AND FREE VIBRATION

ME 563 HOMEWORK # 7 SOLUTIONS Fall 2010

ET3-7: Modelling II(V) Electrical, Mechanical and Thermal Systems

MEAM 510 Fall 2011 Bruce D. Kothmann

AMME3500: System Dynamics & Control

Topic # Feedback Control Systems

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

Positioning Control of One Link Arm with Parametric Uncertainty using Quantitative Feedback Theory

Acceleration Feedback

Raktim Bhattacharya. . AERO 632: Design of Advance Flight Control System. Preliminaries

Mechanical Oscillations

State Space Representation

T1 T e c h n i c a l S e c t i o n

QFT Framework for Robust Tuning of Power System Stabilizers

King Saud University

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. MSc SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2015/2016

ELEC4631 s Lecture 2: Dynamic Control Systems 7 March Overview of dynamic control systems

Dr. Ian R. Manchester

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

Review: stability; Routh Hurwitz criterion Today s topic: basic properties and benefits of feedback control

Plan of the Lecture. Review: stability; Routh Hurwitz criterion Today s topic: basic properties and benefits of feedback control

Coupled Electrical Oscillators Physics Advanced Physics Lab - Summer 2018 Don Heiman, Northeastern University, 5/24/2018

Step Motor Modeling. Step Motor Modeling K. Craig 1

Contents. Dynamics and control of mechanical systems. Focus on

Control Theory: Design and Analysis of Feedback Systems

Mechatronics Engineering. Li Wen

ME 132, Dynamic Systems and Feedback. Class Notes. Spring Instructor: Prof. A Packard

WORK SHEET FOR MEP311

Performance of Feedback Control Systems

Outline. Classical Control. Lecture 1

Modeling and Experimentation: Mass-Spring-Damper System Dynamics

Dynamic Analysis on Vibration Isolation of Hypersonic Vehicle Internal Systems

Systems Analysis and Control

ME 328 Machine Design Vibration handout (vibrations is not covered in text)

CDS 270-2: Lecture 6-1 Towards a Packet-based Control Theory

Linear Control Systems Solution to Assignment #1

Alireza Mousavi Brunel University

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

Oscillations Simple Harmonic Motion

28. Pendulum phase portrait Draw the phase portrait for the pendulum (supported by an inextensible rod)

DC Motor Position: System Modeling

Modelling the Dynamics of Flight Control Surfaces Under Actuation Compliances and Losses

Updated 2013 (Mathematica Version) M1.1. Lab M1: The Simple Pendulum

Model of a DC Generator Driving a DC Motor (which propels a car)

PHYSICS 289 Experiment 1 Fall 2006 SIMPLE HARMONIC MOTION I

Overview of the Seminar Topic

Transcription:

CDS 101: Lecture 2.1 System Modeling Richard M. Murray 4 October 2004 Goals: Define what a model is and its use in answering questions about a system Introduce the concepts of state, dynamics, inputs and outputs Provide examples of common modeling techniques: differential equations, difference equations, finite state automata Reading: Åström and Murray, Analysis and Design of Feedback Systems, Ch 2 Advanced: Lewis, A Mathematical Approach to Classical Control, Ch 1

Week 1: Introduction Review from to Feedback last week and Control Actuate Sense Control = Sensing + Computation + Actuation Compute Feedback Principles Robustness to Uncertainty Design of Dynamics Many examples of feedback and control in natural & engineered systems: BIO BIO ESE ESE CS 4 Oct 04 R. M. Murray, Caltech CDS 2

RMM16 Model-Based Analysis of Feedback Systems Analysis and design based on models A model provides a prediction of how the system will behave Feedback can give counter-intuitive behavior; models help sort out what is going on For control design, models don t have to be exact: feedback provides robustness Weather Forecasting Control-oriented models: inputs and outputs The model you use depends on the questions you want to answer A single system may have many models Time and spatial scale must be chosen to suit the questions you want to answer Formulate questions before building a model Question 1: how much will it rain tomorrow? Question 2: will it rain in the next 5-10 days? Question 3: will we have a drought next summer? Different questions different models 4 Oct 04 R. M. Murray, Caltech CDS 3

Slide 4 RMM16 Use a different model, more related to feedback and control Richard Murray, 10/4/2003

Example #1: Spring Mass System u(t) Applications q 2 Flexible structures (many apps) q 1 Suspension systems (eg, Bob ) m 1 m 2 Molecular and quantum dynamics k 1 k 2 k 3 Questions we want to answer b How much do masses move as a function of the forcing frequency? What happens if I change the values of the masses? Will Bob fly into the air if I take that hill at 25 mph? Modeling assumptions Mass, spring, and damper constants are fixed and known Springs satisfy Hooke s law Damper is (linear) viscous force, proportional to velocity 4 Oct 04 R. M. Murray, Caltech CDS 4

q 1 k 1 q 2 Modeling a Spring Mass System u(t) m 1 m 2 k 2 k 3 b Model: rigid body physics (Ph 1) Sum of forces = mass acceleration Hooke s law: F = k(x x rest ) Viscous friction: F = b v mq&& 1 1= k2( q2 q1) kq 1 1 mq&& = k( u q) k( q q) bq& 2 2 3 2 2 2 1 2 Converting models to state space form Construct a vector of the variables that are required to specify the evolution of the system Write dynamics as a system of first order differential equations: dx n p = f( x, u) x, u dt q y = h( x) y q 1 2 q d 2 = k2 k1 ( q2 q1) q q 1 & 1 dt m m q& k k b ( u q ) ( q q ) q& m m m q1 y = q State space form 2 2 3 2 2 2 1 2 q& q& 1 4 Oct 04 R. M. Murray, Caltech CDS 5

Frequency Response for a Mass Spring System q 1 k 1 q 2 u(t) m 1 m 2 k 2 k 3 Steady state frequency response Force the system with a sinusoid Plot the steady state response, after transients have died out Plot relative magnitude and phase of output versus input (more later) Phase (deg) Magnitude (db) 20 10 0-10 -20-30 -40-50 -60 0-90 -180-270 -360 Frequency Response 0.1 1 10 b Matlab simulation (see handout) function dydt = f(t, y,...) u = 0.00315*cos(omega*t); dydt = [ y(3); y(4); -(k1+k2)/m1*y(1) + k2/m1*y(2); k2/m2*y(1) - (k2+k3)/m2*y(2) - b/m2*y(4) + k3/m2*u ]; t,y] = ode45(dydt,tspan,y0,[], k1, k2, k3, m1, m2, b, omega); Frequency (rad/sec) 4 Oct 04 R. M. Murray, Caltech CDS 6

RMM14 Modeling Terminology State captures effects of the past independent physical quantities that determines future evolution (absent external excitation) q 1 q 2 u(t) m 1 m 2 Inputs describe external excitation Inputs are extrinsic to the system dynamics (externally specified) Dynamics describes state evolution update rule for system state function of current state and any external inputs Outputs describe measured quantities Outputs are function of state and inputs not independent variables Outputs are often subset of state k 1 k 2 Example: spring mass system State: position and velocities of each mass: q1, q2, q& 1, q& 2 Input: position of spring at right end of chain: u(t) Dynamics: basic mechanics Output: measured positions of the masses: q, q 1 2 k 3 b 4 Oct 04 R. M. Murray, Caltech CDS 7

Slide 8 RMM14 Put an example back in (cut out of previous) Richard Murray, 10/4/2003

Modeling Properties Choice of state is not unique There may be many choices of variables that can act as the state Trivial example: different choices of units (scaling factor) Less trivial example: sums and differences of the mass positions (HW 2.4) Choice of inputs and outputs depends on point of view Inputs: what factors are external to the model that you are building Inputs in one model might be outputs of another model (eg, the output of a cruise controller provides the input to the vehicle model) Outputs: what physical variables (often states) can you measure Choice of outputs depends on what you can sense and what parts of the component model interact with other component models Can also have different types of models Ordinary differential equations for rigid body mechanics Finite state machines for manufacturing, Internet, information flow Partial differential equations for fluid flow, solid mechanics, etc 4 Oct 04 R. M. Murray, Caltech CDS 8

Differential Equations Differential equations model continuous evolution of state variables Describe the rate of change of the state variables dx Both state and time are continuous variables = f ( xu, ) dt y = h( x) Example: electrical power grid Swing equations && δ1+ D & 1δ1 = ω0 P1 B δ1 δ2 + G δ1 δ2 && δ + D & δ = ω P B δ δ + G δ δ ( sin( ) cos( )) ( sin( ) cos( )) 2 1 2 0 2 1 2 1 2 State: Inputs: Outputs: Describe how generator rotor angles (δ i ) interact through the transmission line (G, B) Stability of these equations determines how loads on the grid are accommodated rotor angles, velocities ( i, i ) power loading on the grid (P i ) voltage levels and frequency (based on rotor speed) δ δ & 4 Oct 04 R. M. Murray, Caltech CDS 9

Finite State Machines Finite state machines model discrete transitions between finite # of states Represent each configuration of system as a state Model transition between states using a graph Inputs force transition between states Example: Traffic light logic Car arrives on E-W St Timer expires Timer expires Car arrives on N-S St State: Inputs: Outputs: current pattern of lights that are on + internal timers presence of car at intersections current pattern of lights that are on 4 Oct 04 R. M. Murray, Caltech CDS 10

Difference Equations Difference eqs model discrete transitions between continuous variables Discrete time description (clocked transitions) New state is function of current state + inputs State is represented as a continuous variable k+ 1 k k k+ 1 k+ 1 Example: CD read/write head controller (implemented on DSP) x y = f( x, u ) = h( x ) howstuffworks.com Controller operation (every 1/44,100 sec) Get analog signal from read head Determine the data (1/0) plus estimate the location of the track center Update estimate of wobble Compute where to position disk head for next read (limited by motor torque) State: Inputs: Outputs: estimated center, wobble read head signal commanded motion Performance specification Keep disk head on track center Reject disturbances due to disk shape, shaking and bumps, etc 4 Oct 04 R. M. Murray, Caltech CDS 11

RMM7 Example #2: Predator Prey Questions we want to answer Given the current population of rabbits and foxes, what will it be next year? If we hunt down lots of foxes in a given year, what will the effect on the rabbit and fox population be? How do long term changes in the amount of rabbit food available affect the populations? FOX http://www.math.duke.edu/education/ccp/ materials/diffeq/predprey/contents.html Modeling assumptions The predator species is totally dependent on the prey species as its only food supply. The prey species has an external food supply and no threat to its growth other than the specific predator. 4 Oct 04 R. M. Murray, Caltech CDS 12

Slide 13 RMM7 Tie to Hideo's Friday lecture, if possible Richard Murray, 9/4/2002

Example #2: Predator Prey (2/2) Discrete Lotka-Volterra model State R k # of rabbits in period k F k # of foxes in period k Inputs (optional) u k amount of rabbit food Outputs: # of rabbits and foxes Dynamics: Lotka-Volterra eqs R = R + b ( u) R af R k+ 1 k r k k k F = F d F + af R k+ 1 k f k k k Matlab simulation (see handout) Discrete time model, simulated through repeated addition 350 300 250 200 150 100 50 0 1850 1870 1890 1910 1930 Comparison with data Parameters/functions b r (u) d f a rabbit birth rate (per year) (depends on food supply) fox death rate (per year) interaction term 4 Oct 04 R. M. Murray, Caltech CDS 13

Summary: System Modeling Model = state, inputs, outputs, dynamics dx dt y = = f( x, u) h( x) x y = f( x, u ) k+ 1 k k = h( x ) k+ 1 k+ 1 Principle: Choice of model depends on the questions you want to answer q 1 k 1 q 2 u(t) m 1 m 2 k 2 k 3 b function dydt = f(t,y, k1, k2, k3, m1, m2, b, omega) u = 0.00315*cos(omega*t); dydt = [ y(3); y(4); -(k1+k2)/m1*y(1) + k2/m1*y(2); k2/m2*y(1) - (k2+k3)/m2*y(2) - b/m2*y(4) + k3/m2*u ]; 4 Oct 04 R. M. Murray, Caltech CDS 14