Week 10 Notes: Root Locus and Controller Design
Week 10: Root Locus and Controller Design
Introduction
- Review of root locus concepts from the previous week.
- Using root locus for system response optimization.
- Improving transient response.
- Guaranteeing stability.
- Reducing steady-state error.
- Focus on gain adjustment and its impact on root locus.
Gain Adjustment and Transient Response
- Changing the gain K moves the system's closed-loop poles along the root locus.
- Poles move from open-loop poles towards open-loop zeros (or infinity).
- Objective: Improve transient response by selecting an appropriate gain K.
- Process:
- Sketch the root locus.
- Identify a desired pole location on the root locus that satisfies the angular criterion.
- Determine the gain Krequired to place the closed-loop pole at the desired location.
- Gain Computation: K=Product of finite zero lengthsProduct of finite pole lengths
- Geometrically, this involves measuring the lengths of vectors from open-loop poles and zeros to the desired closed-loop pole location.
Example: Gain Adjustment for Settling Time
- Starting with a third-order transfer function in the forward path.
- Addressing the second-order approximation:
- Ensuring the third pole (or zero) is far enough to the left to validate the approximation.
- Objective: Achieve a settling time of 2 seconds.
- Relating settling time to ζ (damping ratio) and ω<em>n (natural frequency): T</em>s=ζωn4
- If T<em>s=2 seconds, then ζω</em>n=2.
- On the s-plane, this corresponds to a vertical line at σ=−2.
- Locate the intersection of this vertical line with the root locus to find the desired pole location.
Procedure
- Identify the Sigma data needed to achieve the desired settling time.
- Intersect the vertical line (representing the sigma value) with the root locus.
- Select the pole, typically focusing on the one above the x-axis for a positive imaginary component.
- Measure the distance (or length) of each pole and zero from the selected pole.
- Compute K using the formula. If there are no zeros, treat the denominator as 1.
Calculation and Validation
- Example pole location: −2+j2.8.
- Compute distances from poles to the desired pole using the Pythagorean theorem.
- Example: Distance from pole at 0 to −2+j2.8 is 22+2.82. Distance from pole at −6 to −2+j2.8 is 42+2.82
- Calculate K as the product of pole lengths divided by the product of zero lengths.
- In the example, K is approximately 47 (or 48 using MATLAB).
- Verify the second-order dominance after closing the loop with the computed gain K.
Last Exercise: Guaranteeing a Damping Ratio
- Objective: Guarantee a damping ratio ζ of 0.707 (which corresponds to an angle of 45 degrees).
- First Step: Sketch the root locus.
- Second Step: Find the gain K.
- Transfer function: G(s)=Ks(s+1)s2+12s+100
Steps
- Identify the zeros of the transfer function.
- Represent the zeros and the poles
Zeros Identification
- Zeros are complex conjugates in this case.
- Roots of the numerator s2+12s+100 are −6±8j.
Poles Identification
- Poles are at s=0 and s=−1.
- Represent poles and zeros on the s-plane.
Root Locus Sketching
- On the real axis, the root locus exists to the left of an odd number of poles and zeros.
- In this case, the root locus exists between 0 and -1.
- The number of zeros matches the number of poles, so there are no asymptotes.
- Since the root locus starts from poles and goes to zeros, there must be a breakout point between 0 and -1.
- The root locus is symmetric about the real axis.
Breakout Point Calculation
- Use the equation: ∑<em>i=1σ+z</em>i1=∑<em>j=1σ+p</em>j1
- Where z<em>i are the zero locations, and p</em>j are the pole locations.
- Substituting the zeros −6±8j and poles 0,−1 yields:
- σ−6+8j1+σ−6−8j1=σ1+σ+11
- Simplifies to: σ2+12σ+1002σ+12=σ2+σ2σ+1
- Further simplification results in: σ3+13σ2+112σ+100=0
- Solving this cubic equation gives three roots:
- One real root and two complex conjugate roots.
- The real root is approximately σ=−0.51, which is the breakout point.
- The complex roots are not acceptable because they are not on the real axis.
Arrival Angle Computation
- Compute the angle of arrival to the zeros.
- Use the formula: ∑θ<em>poles−∑θ</em>zeros=180(2k+1)
- Where the angles are measured from the horizontal axis.
- Calculate angles from each pole and zero to a point close to the zero of interest.
Damping Ratio Consideration
- Desired damping ratio ζ=0.707 corresponds to an angle of 45 degrees.
- Draw a line from the origin at 45 degrees.
- The intersection of this line with the root locus gives the desired pole location.
- Since the breakout point is at σ=−0.51, the desired pole is approximately at −0.53+0.53j.
Gain Calculation
- Evaluate the lengths of vectors from each pole and zero to the desired pole.
- Use the formula: K=Product of zero lengthsProduct of pole lengths
- Desired pole location: s=−0.53+0.53j
- Calculate the lengths from the poles at 0 and -1 and the zeros at −6±8j.
- K=5.472+7.472⋅5.472+8.5320.532+0.532⋅0.472+0.532=0.0057
Controller Design Using Root Locus
Controller Design Goals
- Stability: Ensure the closed-loop system is stable.
- Desired Output: Achieve the desired output with minimal steady-state error.
- Transient Response: Obtain a fast and smooth transient response.
Achieving Design Goals
- Modify the Gain, but it's limited because:
- The root locus shape is fixed.
- Conflicting requirements might not be simultaneously satisfied (e.g., settling time and overshoot).
Compensators
- A state compensator adds zeros and poles to the open-loop transfer function.
- Modifies the root locus shape, affecting stability, transient response, and steady-state error.
Controller Categories
- PI (Proportional Integral) or Lag Compensators:
- Improve steady-state performance.
- Integrator reduces steady-state error.
- Potential stability issues.
- PD (Proportional Derivative) or Lead Compensators:
- Improve transient response and stability.
- Derivative component in the transfer function.
- Considerations similar to PI versus Lag.
- PID (Proportional Integral Derivative) Compensators or Lead-Lag Compensators:
- Combine both PI and PD characteristics.
- Increased complexity.
- Trade-offs in performance and cost.
- Increasing system type reduces or eliminates steady-state error.
- Increasing K to meet transient requirements can compromise stability.
- PI compensators add a pole at the origin (integrator) to eliminate steady-state error for a step input.
Challenges with Pure Integrators
- Adding an integrator changes the shape of the root locus.
- May result in a higher settling time and potential instability.
PI Compensator
- Compensator form: G<em>c(s)=K</em>p+sK<em>i=sK</em>ps+Ki
- Adds a pole at the origin and a zero nearby to mitigate the effect of the integrator on transient response.
PI Compensator Transfer Function
- G<em>c(s)=K</em>pss+K</em>pK<em>i
- Kp is the proportional gain.
- −K</em>pK<em>i is the location of the zero.
Example: PI Compensator Design
- Plant transfer function: G(s)=(s+1)(s+2)K
- Initial Design (Gain Controller Only):
- Damping ratio ζ=0.707.
- Desired pole: −1.5±j1.5.
- Kp = 1.25
- Settling time = 2.67 seconds
- Steady-state error = 0.444
- Adding a Pure Integrator to Remove Steady-State Error
- New transfer function: G(s)=s(s+1)(s+2)K
- The system is now type 1, so the steady-state error for step input is 0.
- However, the root locus is bent, resulting in
- Higher settling time.
- Potential for instability.
PI Compensator Design Example
- Place a zero at −0.5.
- Using PI compensator: G<em>c(s)=K</em>pss+0.5
- The new transfer function: G(s)=Kps(s+1)(s+2)s+0.5
- Choose the desired poles
- Compute Kp and Ki.
Lag Compensator
- Use passive components.
- G<em>c(s)=s+plags+z</em>lag
- Requires no external power source.
- Does not eliminate steady-state error entirely but reduces it.
Compensator Design Guideline
- Place PLAG is smaller than zLAG.
- Effect
The error constants increase by P</em>lagZ<em>lag
Compensator Design Example
- Goal: design a Lag Compensator, so the constant ratio grows 5 times.
- Assume z = 0.5
- Calculate p=50.5=0.1
Transient and Stability Improvement: PD and Lead Compensators
PD Compensator
- Based on choosing the pole location and a 0,
- G<em>c(s)=K</em>p+K<em>ds=K</em>p(1+K</em>pK<em>ds)
- Proportional derivative compensation: a gain that is added and derivative given from adding an S.
Lead Compensator
- If S is a derivative part.
Example
- Start with the transfer function, same than beginning of lecture: G(s)=(s+1)(s+2)K
- You want settling time to be half on what it was initially
- The overshoot has to remain the same.
Steps to follow
- Choose the pole position. For the Example -\$3+3i
- Apply Angle-criterion to compute where to place the zero.
- Angle condition: Zero minus two poles needs to equal 180(2k+1)
- Applying Trigonometry- Compute Tangents to deduct angles theta.
- tan(θ)=adjacentopposite
Compensator expression using calculated angle
- Compute constant: K=3
- Final Root-Locus can be seen
- Expressions for Constants: K</em>pK<em>d=5.33
Notes
- PD controllers can cause an increased overshoot on the system
- Placing 0 too far increases the risk of oscillations & vice versa.
- Derivatives increase noise which could be a risk
PD Implementation
- Can be realized with Active components.
- Is not as simple and it requires external sources to supply Energy.
PD Implementation can be expressed from constants
- Remember resistance/capacitor values will compute constants
Advantages and disadvantages of Active and Passive component implementations
Lead compensator
- Advantages:
- Uses passive components. No external power source.
- Great advantage to reduce noise.
- Disadvantages:
- Isn't so easy to produce robust stability design
Notes
- When building Lead Compensators, it's good to set the Zero for the Pole