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

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

ECE382/ME482 Spring 2005 Homework 8 Solution December 11,

Homework Assignment 3

ECE382/ME482 Spring 2005 Homework 1 Solution February 10,

Homework 7 - Solutions

MAE 143B - Homework 9

Frequency (rad/s)

Systems Analysis and Control

Frequency Response Techniques

ECE 486 Control Systems

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

Systems Analysis and Control

] [ 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.

CHAPTER 7 : BODE PLOTS AND GAIN ADJUSTMENTS COMPENSATION

Digital Control Systems

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

1 (20 pts) Nyquist Exercise

NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY Vadapudupatti, Theni

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

STABILITY OF CLOSED-LOOP CONTOL SYSTEMS

Problem 1 (Analysis of a Feedback System - Bode, Root Locus, Nyquist) Consider the feedback system defined by the open loop transfer function 1.

Stability of CL System

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

ELECTRONICS & COMMUNICATIONS DEP. 3rd YEAR, 2010/2011 CONTROL ENGINEERING SHEET 5 Lead-Lag Compensation Techniques

Controls Problems for Qualifying Exam - Spring 2014

Today (10/23/01) Today. Reading Assignment: 6.3. Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10

Analysis of SISO Control Loops

MAE 143B - Homework 7

1 (s + 3)(s + 2)(s + a) G(s) = C(s) = K P + K I

CHAPTER 7 STEADY-STATE RESPONSE ANALYSES

Richiami di Controlli Automatici

ME 475/591 Control Systems Final Exam Fall '99

Root Locus Methods. The root locus procedure

Engraving Machine Example

Classify a transfer function to see which order or ramp it can follow and with which expected error.

SECTION 5: ROOT LOCUS ANALYSIS

Outline. Classical Control. Lecture 1

FREQUENCY-RESPONSE DESIGN

Chapter 5 HW Solution

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

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

MAE 143B - Homework 9

Course roadmap. Step response for 2nd-order system. Step response for 2nd-order system

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering Dynamics and Control II Fall 2007

r + - FINAL June 12, 2012 MAE 143B Linear Control Prof. M. Krstic

K(s +2) s +20 K (s + 10)(s +1) 2. (c) KG(s) = K(s + 10)(s +1) (s + 100)(s +5) 3. Solution : (a) KG(s) = s +20 = K s s

Control Systems I Lecture 10: System Specifications

Systems Analysis and Control

APPLICATIONS FOR ROBOTICS

INTRODUCTION TO DIGITAL CONTROL

ECE382/ME482 Spring 2004 Homework 4 Solution November 14,

ECE317 : Feedback and Control

Systems Analysis and Control

IC6501 CONTROL SYSTEMS

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

x(t) = x(t h), x(t) 2 R ), where is the time delay, the transfer function for such a e s Figure 1: Simple Time Delay Block Diagram e i! =1 \e i!t =!

CHAPTER # 9 ROOT LOCUS ANALYSES

ECE317 : Feedback and Control

Exercise 1 (A Non-minimum Phase System)

Lecture 5: Frequency domain analysis: Nyquist, Bode Diagrams, second order systems, system types

Alireza Mousavi Brunel University

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

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

Compensator Design to Improve Transient Performance Using Root Locus

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

AMME3500: System Dynamics & Control

Professor Fearing EE C128 / ME C134 Problem Set 7 Solution Fall 2010 Jansen Sheng and Wenjie Chen, UC Berkeley

Exercise 1 (A Non-minimum Phase System)

Frequency methods for the analysis of feedback systems. Lecture 6. Loop analysis of feedback systems. Nyquist approach to study stability

Control System Design

Chapter 7 : Root Locus Technique

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

Example on Root Locus Sketching and Control Design

MAS107 Control Theory Exam Solutions 2008

Dynamic Compensation using root locus method

DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

EE 4343/ Control System Design Project LECTURE 10

CYBER EXPLORATION LABORATORY EXPERIMENTS

Topic # Feedback Control

Robust Performance Example #1

EE3CL4: Introduction to Linear Control Systems

LABORATORY INSTRUCTION MANUAL CONTROL SYSTEM I LAB EE 593

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

EECS C128/ ME C134 Final Thu. May 14, pm. Closed book. One page, 2 sides of formula sheets. No calculators.

2.010 Fall 2000 Solution of Homework Assignment 8

Table of Laplacetransform

Systems Analysis and Control

Some special cases


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

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

Positioning Servo Design Example

Ch 14: Feedback Control systems

Control Systems. University Questions

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

Compensation 8. f4 that separate these regions of stability and instability. The characteristic S 0 L U T I 0 N S

PM diagram of the Transfer Function and its use in the Design of Controllers

Outline. Classical Control. Lecture 5

EEE 184 Project: Option 1

Transcription:

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 1 Solution to HW7 AP9.5 We are given a system with open loop transfer function G(s) = K(s +.2) s 2 (s + 2)(s + 5) (1) and unity negative feedback. We are asked to determine the value of K that maximizes the phase margin, then, with that gain, to determine the overshoot resulting from a step input. Solution: The closed loop transfer function is T(s) = K(s +.2) s 2 (s 2 + 7s + 1) + Ks +.2K. (2) I don t see a straightforward calculation we can do to express the phase margin in terms of the gain K. Accordingly, we will have to write a Matlab script that searches for this maximum. First, we ll have to determine what values of K we should search over. The Routh array, shown in Table 1, leads us to conclude that we should vary K from to 6.2. (Obviously we don t want K to be exactly zero. We ll start with, say, K =.1.) Table 1: Routh array for AP9.5 s 4 : 1 1.2K s 3 : 7 K s 2 1 : 7 (K 7) 1 7 ( 1.4K) s 1 7 : K 7 (1.4K + K(K 7)/7) s 1 : 7 ( 1.4K) Next, using the Matlab script below, we obtain optimal gain Km = 4.9, with gain margin Gm = 12.289 at Wcg = 2.932, phase margin Pm = 48.4573, at Wcp =.578, and step response overshoot of 29. The Bode plot and step response for the closed loop system with K = 3.7 are shown in Figures 1 and 2. AP9_5.m solves part of problem AP9_5 from Dorf and Bishop 1th ed. 17 April 5 --sk for K = [.1:.1:6.1]; oltf = tf(k*[1.2],[1 7 1 ]); [Gm,Pm,Wcg,Wcp] = margin(oltf); pmar(round(k*1)) = Pm; end;

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 2 5 Figure 1: Closed Loop Bode Diagram for AP9.5 with K = 3.7 Closed Loop Bode Plot for AP9.5 with K = 4.9 Magnitude (db) 5 1 15 Phase (deg) 9 18 27 1 2 1 1 1 1 1 1 2 Frequency (rad/sec) [pmm,loc]=max(pmar); Km = loc/1 oltf = tf(km*[1.2],[1 7 1 ]); cltf = feedback(oltf,1); figure(5) bode(cltf) grid title([ Closed Loop Bode Plot for AP9.5 with K =,num2str(km)]) print -deps ap9_5a [Gm,Pm,Wcg,Wcp] = margin(oltf) open loop not closed loop xfer fn! [y,t] = step(cltf); figure(6) plot(t,y) grid

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 3 1.4 Figure 2: Step Response for AP9.5 with K = 3.7 Step Response for AP9.5 with K = 4.9 1.2 1.8 y(t).6.4.2 2 4 6 8 1 12 14 16 18 Time (s) xlabel( Time (s) ) ylabel( y(t) ) title([ Step Response for AP9.5 with K =,num2str(km)]) print -deps ap9_5aa overshoot = max(y) AP9.7 We are given a unity negative feedback system with compensator transfer function K(s + 4) and plant transfer function 1/s 2 cascaded in the forward path. A disturbance input occurs between the compensator and the plant. We are asked to find a K that results in phase margin of 45 degrees, then find the bandwidth and peak amplitude M p (not M pω ) of the response to a unit step disturbance. Solution: The closed loop transfer function is T(s) = Y (s) K(s + 4) = R(s) s 2 + Ks + 4K (3)

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 4 so the natural frequency of the closed-loop system is ω n = 2 K and the damping coefficient is ζ = K/4. We ll use an iterative search similar to that used in AP9.5, except that rather than maximizing the phase margin, we want to minimize the difference between the phase margin and the design specified phase margin of 45 degrees. This time it is not so easy to determine the range of K to use. The poles of the system are K/2 ± K 2 16K/2, so, assuming that K is positive, the only way for a pole to have a positive real part is for the square root to be real and greater than K. But, when real, the square root of K 2 16K is always less than K. In other words, the gain does not affect the stability. That doesn t help us decide what range of K to check. Let s start with the range < K < 1 and, if necessary, we ll increase the upper bound. Using the Matlab script below, we obtain optimal gain Km = 2.8, with infinite gain margin and phase margin Pm = 44.897, at Wcp = 3.9735. Using the interactive feature of the Matlab Bode plot we determine that the system bandwidth is approximately 5.8 rad/s. The maximum value of the closed loop step disturbance response is 2.8284. The Bode plot and step response for the closed loop system with K = 2.8 are shown in Figures 3 and 4. AP9_7.m solves part of problem AP9_7 from Dorf and Bishop 1th ed. 17 April 5 --sk iterate for closed loop gain margin for K = [.1:.1:1]; oltf = tf(k*[1 4],[1 ]); [Gm,Pm,Wcg,Wcp] = margin(oltf); pmar(round(k*1)) = Pm; end; [foo,loc]=min(abs(pmar-45*ones(size(pmar)))); Km = loc/1 oltf = tf(km*[1 4],[1 ]); cltf = feedback(oltf,1); figure(7) bode(cltf) grid title([ Closed Loop Bode Plot for AP9.7 with K =,num2str(km)]) print -deps ap9_7a [Gm,Pm,Wcg,Wcp] = margin(oltf) dcltf = tf(1,[1 Km 4*Km]) [y,t] = step(cltf); figure(8)

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 5 1 Figure 3: Closed Loop Bode Diagram for AP9.7 with K = 2.8 Closed Loop Bode Plot for AP9.7 with K = 2.8 5 5 Magnitude (db) 1 15 2 25 3 35 4 Phase (deg) 45 9 135 1 1 1 1 1 1 2 Frequency (rad/sec) plot(t,y) grid xlabel( Time (s) ) ylabel( y(t) ) title([ Closed Loop Response to unit step disturbance for AP9.7,... with K =,num2str(km)]) print -deps ap9_7aa max(y) AP9.9 We are given a system with unity negative feedback and forward path transfer function G c (s)g(s) = K P s + K I s 2 (s 2 + 7s + 1) (4) where K I /K P =.2 and we are asked to find the value of K P that maximizes the phase margin.

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 6 1.4 Figure 4: Closed Loop Step Disturbance Response for AP9.7 with K = 2.8 Closed Loop Response to unit step disturbance for AP9.7 with K = 2.8 1.2 1.8 y(t).6.4.2.5 1 1.5 2 2.5 3 3.5 4 Time (s) Solution: With K I /K P =.2, the closed loop transfer function is T(s) = K P (s +.2) s 4 + 7s 3 + 1s 2 + K P (s +.2). (5) Conveniently, this is the same transfer function that we had in problem AP9.5. The answer will thus be the same, i.e. K p = 4.9 will yield the maximum phase margin, etc. (Ok, so I wasn t paying enough attention when I assigned this one. I trust there will be no complaints. :-) DP9.3 We are given a system having unity negative feedback and transfer function G(s) = Ke 1s 4s + 1 in the forward path. We are asked to choose a value for K to keep the output within a narrow range while maintaining good dynamic response. Solution: First, let s generate a Bode diagram for the open loop system. The delay will add φ(ω) = ωt where T = 1 to the phase shift while not affecting the magnitude. We (6)

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 7 use the commands shown in the Matlab script below to generate the Bode diagram shown in Figure 5. This doesn t really seem very useful. Next, we ll use a Pade approximation to Figure 5: Open Loop Bode Diagram for DP9.3 with K = 1 Open Loop Bode Plot for DP9.3 with K=1 5 Magnitude (db) 1 15 2 25 3 35 1 3 1 2 1 1 1 2 Phase (deg) 4 6 8 1 1 3 1 2 1 1 1 Frequency (rad/s) express the time delay as a transfer function so that we can analyze the time and frequency response of the closed loop system. As shown in the Matlab script, the pade command yields the following second order transfer function approximation to time the delay: G d (s) = s2.6s +.12 s 2 +.6s +.12. (7) To get some idea what range of values of the gain K are allowable for a stable system, we can do a root locus of the system including the approximate time delay. The root locus plot is shown in Figure 6. We find that the complex valued loci cross the imaginary axis when K 7. Were this a real application, we d ask the physicians or biomedical engineers on our design team to be a bit more specific about what they mean by maintains narrow deviation for blood pressure while achieving a good dynamic response. That not being an option, I m going to use the working hypothesis that overshoot of more than 5 percent in a step response would be bad. I used a loop to generate step responses for different gains

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 8 Figure 6: Root Locus for DP9.3 with 2nd Order Pade Approximation to Time Delay.25 Root Locus for DP9.3.2.15.1 System: oltf Gain: 7.1 Pole:.28 +.173i Damping:.12 Overshoot (): 1 Frequency (rad/sec):.173.5 Imaginary Axis.5.1.15.2.25.7.6.5.4.3.2.1.1.2.3 Real Axis less than 5. (5 = 7 minus a large margin for error.) I found that the rise and settling time decreases with increasing K (as we would expect). I found that a value of K = 1.8 resulted in 4.23 overshoot, meeting my interpretation of the design requirements. The final value of the step response was.6429 so I would need to add a gain block after the feedback path to boost the output. To be really thorough, I d have to check to see whether this gain were frequency dependent and, if necessary, use a filter rather than a simple amplifier. Here s my Matlab script. DP9_3.m solves part of problem DP9_3 from Dorf and Bishop 1th ed. 17 April 5 --sk figure(3) K = 1; oltf = tf([k],[4 1]) [mag,phase,w] = bode(oltf);

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 9 nphase = squeeze(phase) - w.*1; subplot(2,1,1) magdb = 2*log1(squeeze(mag)); semilogx(w,magdb) grid ylabel( Magnitude (db) ) title( Open Loop Bode Plot for DP9.3 with K=1 ) subplot(2,1,2) semilogx(w,nphase, -.,w,squeeze(phase), - ) grid ylabel( Phase (deg) ) xlabel( Frequency (rad/s) ) print -deps dp9_3a [dnum,dden]=pade(1,2) oltf = series(tf(dnum,dden),tf([k],[4 1])) figure(4) rlocus(oltf) title( Root Locus for DP9.3 ) print -deps dp9_3rl t=[:.1:1] ; np=max(size(t)) for K = [.1:.1:5] oltf = series(tf(dnum,dden),tf([k],[4 1])); cltf = feedback(oltf,1); [y,t]= step(cltf,t); po(round(k*1)) = (max(y)-y(np))/y(np); end K=1.8 oltf = series(tf(dnum,dden),tf([k],[4 1])); cltf = feedback(oltf,1); [y,t]= step(cltf,t); MP9.2 We are asked to use the Matlab nyquist command to analyze the following three systems: G a (s) = G b (s) = G c (s) = 1 s + 1 (8) 2 s 2 + 8s + 14 (9) 1 (s + 1) 3 (1) Solution:

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 1 The Nyquist plots shown in Figures 7 through 9 are generated using the Matlab script below. Note that in the first two Nyquist diagrams the point ( 1,) is not encircled, indicating that if we close the loop with unity negative feedback the systems will still be stable. On the other hand, the third Nyquist diagram has two clockwise encirclements. Having no zeros, we have P = Z N = ( 2) = 2 poles of the closed loop system in the right half plane. This is shown in the following Matlab transcript fragment. >> clf = feedback(tf([1],[1 3 3 1]),1) Transfer function: 1 ---------------------- s^3 + 3 s^2 + 3 s + 11 >> roots([1 3 3 11]) ans = -3.1544.772 + 1.8658i.772-1.8658i MP9_2.m solves part of problem MP9_2 from Dorf and Bishop 1th ed. 17 April 5 --sk figure(2) nyquist(tf([1],[1 1])); title( Nyquist diagram for MP9.2a G(s) = 1/(s+1) ) print -deps mp9_2a figure(3) nyquist(tf([2],[1 8 14])); title( Nyquist diagram for MP9.2b G(s) = 2/(s^2+8s+14) ) print -deps mp9_2b figure(4) nyquist(tf([1],[1 3 3 1])); title( Nyquist diagram for MP9.2c G(s) = 1/(s+1)^3 ) print -deps mp9_2c MP9.6 We are given a unity negative feedback system with forward path transfer function G c (s)g(s) = 1(s + 3)( b )(s 2 25) s(s 3)(s 2 + 5s + 1) where b =.5. We are asked to (a) use the Matlab margin command to find the phase and gain margins and crossover frequencies, (b) determine from the results of part (a), the (11)

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 11 1 Figure 7: Nyquist plot for MP9.2a Nyquist diagram for MP9.2a G(s) = 1/(s+1).8.6.4.2 Imaginary Axis.2.4.6.8 1 1.8.6.4.2.2.4.6.8 1 Real Axis maximum value of b for which stability is retained, and (c) verify our answer to part (b) using the Routh-Hurwitz criterion. Solution: (a) The gain margin is 2.23 at 26.38 rad/s and the phase margin is 26.33 deg at the crossover frequency 12.65 rad/s. The Matlab commands used to generate this information are shown below. b =.5 Gc = tf(1*[1 3],[1 ]) G = tf(-b*[1-25],conv([1-3],[1 5 1])) oltf = series(gc,g) [Gm,Pm,Wcg,Wcp] = margin(oltf) (b) The gain margin being 2.23, we can increase the gain from b =.5 to 1.12 2.23b.

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 12 Figure 8: Nyquist plot for MP9.2b 1 Nyquist diagram for MP9.2b G(s) = 2/(s 2 +8s+14).8.6.4.2 Imaginary Axis.2.4.6.8 1 1.5.5 1 1.5 Real Axis (c) The closed loop transfer function is (after some algebra) 1b (s + 3)(s + 5)(s 5) T(s) = s 4 + (47 1b )s 3 + (1 15 3b )s 2 + ( 3 + 25b )s + 75b (12) so the Routh array is as shown in Table 2. I used Maple to do the calculations for the Routh array which are quite messy. The Maple commands I used were as follows. (I think that there is supposed to be a way to do this in Matlab as well, but Maple is better suited for this type of computation so I use it instead.) > # maple script for computing Routh-Hurwitz array for MP9.6 > with(linalg): > r1 := array([1,85-3*b,75*b]); > r2 := array([47-1*b,-3+25*b,]); > r3 := array([simplify(-1/r2[1]*(r1[1]*r2[2]-r1[2]*r2[1])), -1/r2[1]*(r1[1]*r2[3]-r1[3]*r2[1]),]); > r4 := array([simplify(-1/r3[1]*(r2[1]*r3[2]-r2[2]*r3[1])), -1/r3[1]*(r2[1]*r3[3]-r2[3]*r3[1]),]);

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 13 Figure 9: Nyquist plot for MP9.2c 8 Nyquist diagram for MP9.2c G(s) = 1/(s+1) 3 6 4 2 Imaginary Axis 2 4 6 8 4 2 2 4 6 8 1 Real Axis > r5 := array([simplify(-1/r4[1]*(r3[1]*r4[2]-r3[2]*r4[1])), -1/r4[1]*(r3[1]*r4[3]-r3[3]*r4[1]),]); Now, analyzing the Routh array, we see from the second row that we need b < 4.7. Next, using the Matlab command >> roots([3-3491 4295]) ans = 115.1231 1.2436 and noting that if b < 4.7, the denominator of the first element of the third row will be negative and we have a negative in front of the fraction, so we want the factor in the parentheses to be positive, which it is if b < 1.2436 or b > 115.1231. The second option would conflict with b < 4.7 so we can summarize our constraints so far as b < 1.2436. From the fourth row, using the Matlab command

ECE382/ME482 Spring 25 Homework 7 Solution April 17, 25 14 >> roots([1663-22561 2577]) ans = 1.1175.1436 and then using the Maple commands > subs(b=.13,r4[1]); > subs(b=.15,r4[1]); > subs(b=1.2,r4[1]); -28.491816 132.551481-46993.28859 we determine that we need.1436 < b < 1.1175. Thus we have finally determined that for stability we need.1444 < b < 1.1175. The upper bound on b agrees with that determined from the gain margin and that determined using the Routh-Hurwitz criterion. Note, however, that the gain margin approach did not tell us that there is also a minimum acceptable value for b to retain stability. Table 2: Routh array for MP9.6c s 4 : 1 85 3b 75b s 3 : 47 1b 3 + 25b s 2 : 1(4295 3491b +3b 2 ) 47+1b 75b s 1 : 5(1663b2 22561b +2577) 3b 2 3491b +4295 s : 75b