Solution to HW State-feedback control of the motor with load (from text problem 1.3) (t) I a (t) V a (t) J L.

Similar documents
Introduction to Controls

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

Introduction to Feedback Control

Linear State Feedback Controller Design

Outline. Classical Control. Lecture 5

State space control for the Two degrees of freedom Helicopter

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

MODERN CONTROL DESIGN

1 Steady State Error (30 pts)

(a) Find the transfer function of the amplifier. Ans.: G(s) =

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

Problem Weight Score Total 100

5HC99 Embedded Vision Control. Feedback Control Systems. dr. Dip Goswami Flux Department of Electrical Engineering

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

State Feedback Controller for Position Control of a Flexible Link

State Space Control D R. T A R E K A. T U T U N J I

Topic # Feedback Control

Homework Assignment 3

Control Systems Design

Controls Problems for Qualifying Exam - Spring 2014

EE221A Linear System Theory Final Exam

EECS C128/ ME C134 Final Wed. Dec. 15, am. Closed book. Two pages of formula sheets. No calculators.

Positioning Servo Design Example

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

Course Outline. Higher Order Poles: Example. Higher Order Poles. Amme 3500 : System Dynamics & Control. State Space Design. 1 G(s) = s(s + 2)(s +10)

Feedback Control Systems

Homework Solution # 3

System Modeling: Motor position, θ The physical parameters for the dc motor are:

Example: DC Motor Speed Modeling

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering 2.04A Systems and Controls Spring 2013

DO NOT DO HOMEWORK UNTIL IT IS ASSIGNED. THE ASSIGNMENTS MAY CHANGE UNTIL ANNOUNCED.

Rotary Inverted Pendulum

ECE382/ME482 Spring 2005 Homework 7 Solution April 17, K(s + 0.2) s 2 (s + 2)(s + 5) G(s) =

Subject: Optimal Control Assignment-1 (Related to Lecture notes 1-10)

Chapter 5 HW Solution

EE C128 / ME C134 Final Exam Fall 2014

EE 380 EXAM II 3 November 2011 Last Name (Print): First Name (Print): ID number (Last 4 digits): Section: DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO

Mechatronics Engineering. Li Wen

6.1 Sketch the z-domain root locus and find the critical gain for the following systems K., the closed-loop characteristic equation is K + z 0.

ECE-320: Linear Control Systems Homework 8. 1) For one of the rectilinear systems in lab, I found the following state variable representations:

Computer Aided Control Design

EE C128 / ME C134 Fall 2014 HW 6.2 Solutions. HW 6.2 Solutions

Feedback Control part 2

Topic # Feedback Control Systems

1 (30 pts) Dominant Pole

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

ECE 388 Automatic Control

Autonomous Mobile Robot Design

PID Control. Objectives

Control Systems. Design of State Feedback Control.

2.010 Fall 2000 Solution of Homework Assignment 1


ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

sc Control Systems Design Q.1, Sem.1, Ac. Yr. 2010/11

Full State Feedback for State Space Approach

FEEDBACK CONTROL SYSTEMS

Inverted Pendulum: State-Space Methods for Controller Design

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

Full-State Feedback Design for a Multi-Input System

Root Locus Design Example #4

DOUBLE ARM JUGGLING SYSTEM Progress Presentation ECSE-4962 Control Systems Design

Lab 3: Quanser Hardware and Proportional Control

EL2520 Control Theory and Practice

ECE382/ME482 Spring 2005 Homework 6 Solution April 17, (s/2 + 1) s(2s + 1)[(s/8) 2 + (s/20) + 1]

Digital Control: Part 2. ENGI 7825: Control Systems II Andrew Vardy

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) =

Time Response Analysis (Part II)

Linear Algebra. P R E R E Q U I S I T E S A S S E S S M E N T Ahmad F. Taha August 24, 2015

Frequency Response Techniques

BASIC PROPERTIES OF FEEDBACK

Section Matrices and Systems of Linear Eqns.

Rotary Motion Servo Plant: SRV02. Rotary Experiment #11: 1-DOF Torsion. 1-DOF Torsion Position Control using QuaRC. Student Manual

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

Control System Design

Dr Ian R. Manchester

ECE317 : Feedback and Control

I. D. Landau, A. Karimi: A Course on Adaptive Control Adaptive Control. Part 9: Adaptive Control with Multiple Models and Switching

Topic # Feedback Control Systems

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

Table of Contents 1.0 OBJECTIVE APPARATUS PROCEDURE LAB PREP WORK POLE-PLACEMENT DESIGN

LIAPUNOV S STABILITY THEORY-BASED MODEL REFERENCE ADAPTIVE CONTROL FOR DC MOTOR

Note. Design via State Space

Comparison of LQR and PD controller for stabilizing Double Inverted Pendulum System

Chap 4. State-Space Solutions and

Homework 7 - Solutions

Systems Analysis and Control

Problem Value Score Total 100/105

Separation Principle & Full-Order Observer Design

Control of Manufacturing Processes

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

] [ 200. ] 3 [ 10 4 s. [ ] s + 10 [ P = s [ 10 8 ] 3. s s (s 1)(s 2) series compensator ] 2. s command pre-filter [ 0.

Topic # /31 Feedback Control Systems. State-Space Systems Closed-loop control using estimators and regulators. Dynamics output feedback

Topic # Feedback Control. State-Space Systems Closed-loop control using estimators and regulators. Dynamics output feedback

Solution to Homework Assignment 1

LINEAR QUADRATIC GAUSSIAN

1. Type your solutions. This homework is mainly a programming assignment.

EE C128 / ME C134 Fall 2014 HW 8 - Solutions. HW 8 - Solutions

Exam. 135 minutes + 15 minutes reading time

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering Dynamics and Control II Fall K(s +1)(s +2) G(s) =.

5. Observer-based Controller Design

Transcription:

EE/ME 7: Advanced Linear Systems Solution Solution to HW Name On each item, grading is, or (full points, /2 points, points) EE/ME 7: Advanced Linear Systems Solution State-feedback control of the motor with load (from text problem.3) Problem # Parts Points Each Part Your Part Points. A 6 B 6 C 6 D 6 E 5 F 2 2 /4 G 5 H 3 2 /6 I 3 2 /6 2. A B C D 8 E 3 4 /2 Your Total Points /5 /5 Total: / Notes Consider the system of figure with the parameters of table, and with V a (t) θ L (t) as the output. V La (t) V Ra (t) I a (t) L a R a E a (t) - Motor Electrical Side τ m (t) θ m (t) J m B m Motor Mechanical Side Figure : Augmented motor model. Parameter values [ ] R a.4 Ohms K t 4.5 Newton-meter amp L a 3. Henries Table : Parameters for the motor drive. K θ L (t) Load J L Parameters values B L J m.3 kg-m 2 B m.2 N-m rad/sec J L 6. kg-m 2 B L 5. N-m rad/sec K 2 N-m rad Homework Solution (Revised: Nov 2, 23) Page Homework Solution (Revised: Nov 2, 23) Page 2

EE/ME 7: Advanced Linear Systems Solution EE/ME 7: Advanced Linear Systems Solution A) Put together the system model. For verification: your open-loop poles and zeros should be: >> Poles = pole(ssmodel) >> Zeros = zero(ssmodel) Poles = -.358 7.988i Zeros = Empty matrix: -by- -.358-7.988i -. -.4586.753i -.4586 -.753i >> Jm =.3 >> JL = 6 >> %% Build the state model of the mo >> Ksp = 2 >> Bm =.2 >> >> %% States: >> BL = 5 >> %% ThetaM >> Ra =.4 >> %% ThetaM dot >> La = 3 >> %% ThetaL >> Kt = 4.5 >> %% ThetaL dot >> >> %% Ia >> Ap = [ -Ksp/Jm -Bm/Jm Ksp/Jm Kt/Jm Ksp/JL -Ksp/JL -BL/JL -Kt/La -Ra/La ] Ap =. -4. -.6667 4. 5.. 2. -2. -.8333 Homework Solution (Revised: Nov 2, 23) Page 3 -.5 -.333 >> Bp = [ ; ; ; ; /La] >> Bp ans =.3333 >> Cp = [ ] >> Dp = Make LTI model and find poles, >> SSModel = ss(ap, Bp, Cp, Dp) >> pole(ssmodel) ans = -.358 7.988i -.358-7.988i -. -.4586.753i -.4586 -.753i >> zero(ssmodel) ans = Empty matrix: -by- A block diagram for a state-variable system with feedback is seen in 2. K is the feedback gain vector. A p, B p, C p and D p are the state-variable model matrices of the open-loop motor with load model. The control signal is given as: u(t) = K x(t)n f r(t) () Homework Solution (Revised: Nov 2, 23) Page 4

EE/ME 7: Advanced Linear Systems Solution EE/ME 7: Advanced Linear Systems Solution r(t) N f r (t) u(t) A p, B p, C p, D p x(t) x(t) y(t) Putting this into the state equation gives ẋ(t) = A p x(t)b p ( K x(t)nf r(t) ) Figure 2: Block diagram of a state-variable system with feedback control. B) Design a state-feedback controller to place the poles at -K [ ] P d = 2 3 4 5 6 Which gives Or with ẋ(t) = (A p B p K) x(t)b p N f r(t) ẋ(t) = A cl x(t)b cl r(t) A cl = A p B p K Use Matlab s place() command. B cl = B p N f Using the SS model >> Pd = [ -2, -3-4 -5-6] >> K = place(ap, Bp, Pd) K = -62.546 2.4389 34.546 49.374 55. (Note to grader: if the states are ordered differently in the model, the elements of K come out in a different order.) C) The closed-loop system and input matrices is given as A cl = A p B p K B cl = B p N f (2) Starting with Eqn (), show how the expression for A cl can be derived. The expression for u(t) is: u(t) = K x(t)n f r(t) Homework Solution (Revised: Nov 2, 23) Page 5 Homework Solution (Revised: Nov 2, 23) Page 6

EE/ME 7: Advanced Linear Systems Solution EE/ME 7: Advanced Linear Systems Solution D) Determine the closed-loop system matrix, A cl F) With N f =, build the closed-loop system model and plot the step response. F.) Include your step response plot >> Acl = Ap - Bp*K Acl =. -4. -.6667 4. 5.. 2. -2. -.8333 2.8349-5.6463-44.8349-6.457-8.5.4.2..8.6 E) Show that the eigenvalues of A cl are { 2 3 4 5 6}.4.2 >> eig(acl) ans = -2. -3. -4. -5. -6..5.5 2 2.5 3 3.5 4 4.5 Figure 3: Step response of pole-placement controller, with N f =. F.2) What is the DC Gain of the system, determined as the steady-state value of the step response? y ss =.4 G) The DC gain of a state-variable model can be computed as T DC = C p ( A cl ) B p (3) Using Eqn (3), determine the DC gain of the system. >> TDC = Cp * inv(-acl) * Bp TDC =.39 Homework Solution (Revised: Nov 2, 23) Page 7 Homework Solution (Revised: Nov 2, 23) Page 8

EE/ME 7: Advanced Linear Systems Solution EE/ME 7: Advanced Linear Systems Solution H) By setting N f = /T DC (4) The DC gain level can be raised. H.) Determine N f from Eqn (4) >> Nf = /TDC Nf = 72. H.2) Incorporate this value of N f into your closed-loop state model, and plot a new step response. What is the new value of DC gain of the closed-loop system..8.6.4.2 >> step( ss( Ap-Bp*K, Bp*Nf, -K, Nf) ).5.5 2 2.5 3 3.5 4 4.5 5 Time (seconds) 5 5.5.5 2 2.5 3 3.5 4 Time (seconds) Figure 5: Output and control step response. SSry = ss(acl, Bp*Nf, Cp-Dp*K, Dp*Nf) SSru = ss(acl, Bp*Nf, -K, Nf) figure(), clf subplot(2,,) step(ssry) subplot(2,,2) step( SSru ) SetLabels(2) print( -deps2c, StepRYU ).9.8.7.6.5.4.3 I.) Using Eqn () and the form for the state-variable model output equation, explain how the step command indicated above shows the control output in response to a step input. Setting up the state-variable model as given sets the model output equation to be.2. y(t) = K x(t)n f r(t).5.5 2 2.5 3 3.5 4 4.5 Figure 4: Step response of pole-placement controller, with N f = 72. Which will cause the model to produce the control signal as its output. I.2) What is the peak (maximum) level of control effort required in response to a step input. The new gain r(t) y(t) is.. I) u(t) as an output. Control signal u(t) is given by Eqn (). We can plot this as the output of a state variable model with Homework Solution (Revised: Nov 2, 23) Page 9 72. I.3) Does the control signal ever go negative, in response to a step input? Yes. Homework Solution (Revised: Nov 2, 23) Page

EE/ME 7: Advanced Linear Systems Solution 2 Controller Design, Linear Quadratic Regulator Staring again with the 5 th order model of the motor drive, A p, B p, C p and D p of problem. Design a linear quadratic regulator controller with >> Q = * eye(5) >> R = >> K = lqr(ap, Bp, Q, R) >> Acl = Ap - Bp*K >> Nf = /(Cp*inv(-Acl)*Bp) A) What are the controller gains (K vector and N f value) for this LQR controller? >> Q = * diag([ ]) >> R = >> K = lqr(ap, Bp, Q, R) K = -48.2496 25.54 92.97 9.6728 56.6223 >> Acl = Ap - Bp*K Acl =. -4. -.6667 4. 5.. 2. -2. -.8333 6.832-9.8385-3.993-6.5576-9.74 >> Nf = /(Cp*inv(-Acl)*Bp) Nf = 44.724 Homework Solution (Revised: Nov 2, 23) Page EE/ME 7: Advanced Linear Systems Solution B) What are the pole locations of for the system with the new controller design >> Poles = eig(acl) Poles = -8.675 8.756i -8.675-8.756i -.24.3892i -.24 -.3892i -.955 C) Plot and examine the step response for the closed-loop system with both θ L (t)and u(t) as outputs, that is θ L (t) y(t) = (5) u(t) Include your plot for the case with y(t) given by Eqn (5). To: Out() To: Out(2).8.6.4.2 6 4 2 2 2 3 4 5 6 7 Figure 6: Step response for y(t) given by Eqn (5). Homework Solution (Revised: Nov 2, 23) Page 2

EE/ME 7: Advanced Linear Systems Solution EE/ME 7: Advanced Linear Systems Solution D) (Essay Question) Write a few words about the speed and stability of the response of the LQR controlled, compared with the pole-placement controller. Mention also the size of motor required in each case (the motor size scales with the magnitude of the maximum value of u(t)). (Note to grader, responses will vary, should at least address the rise and/or settling time (speed), that both systems are stable and that the LQR shows lower peak control effort). Both the pole-placement and LQR controllers appear very over-damped. Neither shows overshoot. Looking at figure 6, the settling time of the LQR controller is approximately 5 seconds, somewhat slower than the 3.5 second settling time of the pole-placement controller. The peak control effort for the LQR controller is about 45, or about 2/3 the peak control effort for the pole-placement controller. E) In LQR design, the designer determines the system performance by selecting Q and R. Modify the Q matrix according to >> Q = 2 * diag([.2 ]) (This was found with a few iterations of cut-and-try.) Repeat your calculations and analyses of steps B-D. E.) What are the pole locations of for the system with the new controller design >> Poles = eig(acl) Poles = -9.245 2.382i -9.245-2.382i -.764.475i -.764 -.475i -.9925 Homework Solution (Revised: Nov 2, 23) Page 3 E.2) Include your step-response plot with both θ L (t)and u(t) as outputs. To: Out() To: Out(2).5.5 6 4 2 2 2 3 4 5 6 7 8 Figure 7: Step response ([ for y(t) given by Eqn (5), with ]) Q = diag 2 2 2 2 4 E.3) (Essay Question) Write a few words about the speed and stability of the response of the new LQR controlled, compared with the pole-placement controller. Mention also the size of motor required in each case (the motor size scales with the magnitude of the maximum value of u(t)). (Note to grader, full credit for any answer that addresses speedstabilitycontrol effort). The new controller is faster than the original LQR controller and about the same speed as the pole-placement controller, while requiring significantly lower control effort. The new controller shows overshoot, which is to say that it is less stable than either of the original two controllers. But only a small amount of overshoot is present, which could be acceptable in many applications. Homework Solution (Revised: Nov 2, 23) Page 4