Skip to content

Compensator Design and Performance Tradeoffs

Summary

This chapter develops systematic methods for designing lead and lag compensators to meet performance specifications. Students will learn how phase lead improves transient response and stability margins while phase lag improves steady-state accuracy. Design procedures using both Bode plots and root locus are presented, enabling engineers to choose the approach best suited to given specifications. The chapter concludes with performance tradeoffs including the fundamental tension between speed and stability, sensitivity functions, robustness concepts, and the handling of disturbances and noise in feedback systems.

Concepts Covered

This chapter covers the following 20 concepts from the learning graph:

  1. Lead Compensator
  2. Lag Compensator
  3. Lead-Lag Compensator
  4. Phase Lead
  5. Phase Lag
  6. Compensator Design
  7. Maximum Phase Lead
  8. Compensation Zero
  9. Compensation Pole
  10. Bode Design Method
  11. Root Locus Design
  12. Performance Specs
  13. Design Tradeoffs
  14. Speed vs Stability
  15. Robustness
  16. Sensitivity
  17. Sensitivity Function
  18. Complementary Sensitivity
  19. Disturbance Rejection
  20. Noise Attenuation

Prerequisites

This chapter builds on concepts from:


Beyond PID: Shaping the Frequency Response

PID controllers are powerful and versatile, but they're not the only game in town. Sometimes the performance requirements are too demanding, the plant dynamics too challenging, or the specifications too precise for a standard PID to deliver. When you need surgical control over specific frequency ranges—adding phase exactly where it's needed, boosting gain at low frequencies without destabilizing high frequencies—you need compensators.

A compensator is a carefully designed transfer function that modifies the loop's frequency response to achieve desired closed-loop behavior. Unlike PID control, where you tune three parameters with known effects, compensator design gives you direct control over where you place poles and zeros in the s-plane. This precision comes at the cost of complexity, but when PID falls short, compensators pick up the slack.

In this chapter, we'll develop two fundamental compensator types: lead compensators that add phase and improve transient response, and lag compensators that boost low-frequency gain and reduce steady-state error. We'll learn to design them using both Bode plots (frequency domain) and root locus (s-domain), and we'll confront the fundamental tradeoffs that limit every control system design.

Gyra Moment

"My PID controller works well for normal balancing. But when my engineers wanted me to respond faster to disturbances without becoming unstable, they needed something more precise. They added a lead compensator that gives me extra phase margin exactly where I need it—around my crossover frequency. Now I can be quick and stable. It's like having prescription glasses tuned exactly to my vision problems."

The Anatomy of Compensators

All compensators we'll study share a common structure: a transfer function with poles and zeros arranged to provide specific phase and magnitude characteristics.

Poles and Zeros in Compensation

A compensation zero is a zero introduced by the compensator to modify the system's frequency response or root locus. Similarly, a compensation pole is a pole added for the same purpose.

The key insight: poles and zeros don't just change gain—they change phase. A zero adds up to +90° of phase (spread over about two decades), while a pole subtracts up to -90°. By placing poles and zeros strategically, we can sculpt the phase response to meet our needs.

Element Effect on Phase Effect on Magnitude
Zero at $s = -z$ Adds up to +90° +20 dB/decade above $\omega = z$
Pole at $s = -p$ Subtracts up to -90° -20 dB/decade above $\omega = p$

The relationship between pole/zero locations and their effects on Bode plots was covered in Chapter 12. Now we'll use this knowledge to design compensators systematically.

Lead Compensators: Adding Phase Where You Need It

A lead compensator is designed to add positive phase (phase lead) to the system, typically near the crossover frequency. This additional phase directly increases phase margin, improving stability and reducing overshoot.

Lead Compensator Transfer Function

The standard form of a lead compensator is:

Lead Compensator Transfer Function

$G_c(s) = K_c \cdot \frac{s + z}{s + p} = K_c \cdot \frac{1 + s/z}{1 + s/p}$

where:

  • $K_c$ is the compensator gain
  • $z$ is the zero location (magnitude)
  • $p$ is the pole location (magnitude)
  • For lead: $z < p$ (zero is closer to origin than pole)

The ratio $\alpha = z/p < 1$ is called the lead ratio. A smaller $\alpha$ means more separation between zero and pole, producing more phase lead.

Phase Lead from a Lead Compensator

The phase contribution of the lead compensator at any frequency is:

Phase Lead Equation

$\phi(\omega) = \tan^{-1}(\omega/z) - \tan^{-1}(\omega/p)$

The maximum phase lead occurs at the geometric mean of the zero and pole frequencies:

Maximum Phase Lead Frequency

$\omega_m = \sqrt{z \cdot p}$

At this frequency, the maximum phase lead is:

Maximum Phase Lead

$\phi_{max} = \sin^{-1}\left(\frac{1 - \alpha}{1 + \alpha}\right)$

where $\alpha = z/p$.

Lead Ratio $\alpha$ Maximum Phase Lead $\phi_{max}$
0.5 19.5°
0.3 33.2°
0.2 41.8°
0.1 54.9°
0.05 64.8°

Practical Limit

While smaller $\alpha$ gives more phase lead, it also means greater high-frequency gain. In practice, $\alpha$ values below 0.1 are rarely used because the noise amplification becomes problematic. If you need more than about 55-60° of phase lead, use two cascaded lead compensators rather than one extreme compensator.

Why Lead Improves Performance

Lead compensation works by adding phase near the crossover frequency. This directly increases phase margin, which:

  • Reduces overshoot in the step response
  • Improves damping (less oscillation)
  • Allows higher crossover frequency (faster response)
  • Increases robustness to model uncertainty

The tradeoff: lead compensators amplify high-frequency signals, which can be problematic with noisy measurements. The pole at $s = -p$ limits this amplification but doesn't eliminate it.

Gyra Moment

"Phase lead is like getting a heads-up before trouble arrives. My gyroscope gives me rate information—the derivative of my angle. A lead compensator does something similar in the frequency domain: it shifts the timing of my response so I act before things get bad. The earlier I can react, the less I have to overcorrect."

Diagram: Lead Compensator Bode Plot

Lead Compensator Bode Plot

Type: microsim

Bloom Taxonomy: Understand (L2) Bloom Verb: explain, interpret

Learning Objective: Students will explain how pole and zero placement in a lead compensator creates phase lead and understand the relationship between the lead ratio α and maximum phase.

Canvas layout: - Top section (50%): Magnitude and phase Bode plots - Bottom section (50%): Controls and key metrics display

Visual elements: - Magnitude plot showing +20 dB/decade rise then leveling - Phase plot showing positive phase bump - Marker at ω_m (maximum phase frequency) - Annotations showing zero and pole locations - Shaded region indicating phase lead contribution - Dashed lines showing asymptotic behavior

Interactive controls: - Slider: Zero location z from 0.1 to 10 rad/s (default: 1) - Slider: Pole location p from 1 to 100 rad/s (default: 10) - Slider: Gain K_c from 0.1 to 10 (default: 1) - Checkbox: Show asymptotes - Checkbox: Show ω_m marker - Button: Reset to defaults

Data Visibility Requirements: - Display α = z/p ratio - Show calculated φ_max in degrees - Show ω_m frequency - Display gain at ω_m - Warning if α < 0.1 (impractical design)

Behavior: - Plots update in real-time as parameters change - If z ≥ p, display warning "Not a lead compensator" - Phase bump visually highlights between zero and pole frequencies - Hovering over plots shows exact values at cursor position

Instructional Rationale: Interactive Bode plots let students see exactly how pole/zero placement creates the phase lead effect. Adjusting parameters builds intuition for the relationship between α and φ_max.

Implementation: p5.js with canvas-based sliders and transfer function evaluation

Lag Compensators: Boosting Low-Frequency Gain

While lead compensators improve transient response and stability margins, lag compensators address a different problem: steady-state error. A lag compensator increases low-frequency gain without significantly affecting the crossover frequency or phase margin.

Lag Compensator Transfer Function

The standard form of a lag compensator is:

Lag Compensator Transfer Function

$G_c(s) = K_c \cdot \frac{s + z}{s + p} = K_c \cdot \frac{1 + s/z}{1 + s/p}$

where:

  • $K_c$ is the compensator gain
  • $z$ is the zero location
  • $p$ is the pole location
  • For lag: $z > p$ (zero is farther from origin than pole)

Wait—the transfer function looks identical to the lead compensator! The only difference is the relationship between $z$ and $p$. For lag compensators, $z > p$, which inverts the phase behavior.

Phase Lag from a Lag Compensator

With $z > p$, the phase contribution is negative (phase lag):

Phase Lag Equation

$\phi(\omega) = \tan^{-1}(\omega/z) - \tan^{-1}(\omega/p) < 0$

This phase lag is the price we pay for increased low-frequency gain. The key to successful lag compensation is placing the zero and pole at frequencies below the crossover frequency, so the phase lag doesn't affect stability margins.

Why Lag Improves Steady-State Accuracy

At very low frequencies, the lag compensator gain approaches:

$G_c(0) = K_c \cdot \frac{z}{p}$

Since $z > p$, this ratio is greater than 1, boosting the DC gain. Higher DC gain means smaller position error constant $K_p$ denominators and reduced steady-state error.

Goal Use Lead Use Lag
Increase phase margin
Reduce overshoot
Increase bandwidth
Reduce steady-state error
Increase DC gain
Avoid noise amplification

Lag Compensation Adds Phase Lag

The name says it all. Lag compensators introduce negative phase, which reduces phase margin. To avoid destabilizing the system, place the lag compensator's zero and pole at least one decade below the crossover frequency. This keeps the phase lag contribution small at the frequency that matters.

Diagram: Lag Compensator Bode Plot

Lag Compensator Bode Plot

Type: microsim

Bloom Taxonomy: Understand (L2) Bloom Verb: explain, compare

Learning Objective: Students will explain how lag compensators increase low-frequency gain while contributing phase lag, and understand why pole/zero placement well below crossover is critical.

Canvas layout: - Top section (50%): Magnitude and phase Bode plots - Bottom section (50%): Controls and key metrics display

Visual elements: - Magnitude plot showing flat high-frequency response, +20 dB boost at low frequencies - Phase plot showing negative phase dip - Marker at crossover frequency (adjustable) - Shaded region indicating where phase lag occurs - Annotation showing DC gain boost ratio z/p

Interactive controls: - Slider: Zero location z from 0.01 to 1 rad/s (default: 0.1) - Slider: Pole location p from 0.001 to 0.1 rad/s (default: 0.01) - Slider: Gain K_c from 0.1 to 10 (default: 1) - Slider: Crossover frequency ω_c for reference (default: 1) - Button: Reset to defaults

Data Visibility Requirements: - Display DC gain boost = z/p - Show phase lag at ω_c - Warning if phase lag at ω_c exceeds 5° - Display low-frequency gain in dB

Behavior: - Plots update in real-time as parameters change - If z ≤ p, display warning "Not a lag compensator" - Crossover frequency marker helps students verify separation - Phase lag contribution highlighted at ω_c

Instructional Rationale: Contrasting with lead compensator visualization reinforces the difference between the two. Students see why placement below crossover is essential.

Implementation: p5.js with canvas-based sliders and transfer function evaluation

Lead-Lag Compensators: The Best of Both Worlds

When you need both improved transient response and reduced steady-state error, a single compensator won't suffice. The solution: a lead-lag compensator that combines both functions.

Lead-Lag Compensator Transfer Function

Lead-Lag Compensator Transfer Function

$G_c(s) = K_c \cdot \frac{(s + z_{lead})(s + z_{lag})}{(s + p_{lead})(s + p_{lag})}$

where:

  • $z_{lead} < p_{lead}$ (lead section)
  • $z_{lag} > p_{lag}$ (lag section)
  • The lead section operates near crossover, the lag section operates at low frequencies

In practice, you can design the lead and lag sections separately, then combine them. The key is keeping them in different frequency ranges so they don't interfere with each other.

Section Frequency Range Purpose
Lead Near crossover (ω_c) Increase phase margin, reduce overshoot
Lag Well below crossover Increase DC gain, reduce steady-state error

The separation is crucial. If the lag section is too close to crossover, its phase lag will partially cancel the lead section's phase contribution.

Design Methods: Bode vs. Root Locus

Two powerful approaches exist for compensator design: frequency-domain design using Bode plots and s-domain design using root locus. Both can achieve the same results, but each has advantages for different types of specifications.

The Bode Design Method

The Bode design method works directly with frequency-response specifications:

  • Gain margin and phase margin
  • Bandwidth (crossover frequency)
  • Steady-state error requirements (related to DC gain)

Design procedure for lead compensation (Bode method):

  1. Determine the required phase margin increase $\Delta\phi$
  2. Add a safety margin (typically 5-12°) to account for phase reduction from lead compensator gain increase
  3. Calculate the required $\alpha$: $\alpha = \frac{1 - \sin(\phi_{max})}{1 + \sin(\phi_{max})}$
  4. Find the new crossover frequency $\omega_c$ where the uncompensated system has magnitude $-10\log_{10}(\alpha)$ dB
  5. Place the maximum phase at this crossover: $\omega_m = \omega_c$
  6. Calculate zero and pole: $z = \omega_c\sqrt{\alpha}$, $p = \omega_c/\sqrt{\alpha}$
  7. Set compensator gain to maintain desired crossover

This procedure systematically places the phase lead exactly where it's needed—at the new crossover frequency.

Design procedure for lag compensation (Bode method):

  1. Set the gain $K_c$ to achieve the desired crossover frequency and phase margin (ignoring steady-state error for now)
  2. Determine how much additional DC gain is needed to meet the steady-state error specification
  3. Select the lag ratio: $z/p = $ (required DC gain increase)
  4. Place the lag zero at least one decade below crossover: $z \leq \omega_c/10$
  5. Calculate the pole: $p = z \cdot (\text{required ratio})^{-1}$
  6. Verify that phase margin hasn't been significantly reduced

The Root Locus Design Method

The root locus design method works with pole placement specifications:

  • Dominant pole locations
  • Damping ratio and natural frequency
  • Settling time and percent overshoot

Design procedure for lead compensation (root locus method):

  1. Determine the desired closed-loop pole locations from transient specifications
  2. Calculate the angle deficiency: the angle needed from the compensator zero and pole to make the desired point a valid root locus point
  3. Position the compensator zero and pole to provide this angle
  4. A common approach: place the zero directly below the desired pole, then find the pole location that provides the correct total angle
  5. Calculate the gain $K$ at the desired pole location

The root locus method gives direct control over closed-loop pole locations but requires more geometric construction than the Bode method.

Specification Type Preferred Method
Phase margin, gain margin Bode
Bandwidth Bode
Damping ratio, natural frequency Root Locus
Settling time, percent overshoot Root Locus
Steady-state error Either (Bode slightly easier)

Both Methods Work

There's no law saying you must use one method exclusively. Many engineers use Bode plots for initial design and root locus for verification, or vice versa. The best approach depends on how your specifications are stated and which method you're more comfortable with.

Diagram: Lead Compensator Design Workflow

Lead Compensator Design Workflow

Type: microsim

Bloom Taxonomy: Apply (L3) Bloom Verb: calculate, implement

Learning Objective: Students will apply the Bode design method to design a lead compensator that achieves a specified phase margin, with step-by-step guidance.

Canvas layout: - Left side (60%): Bode plots showing uncompensated and compensated responses - Right side (40%): Step-by-step design procedure with calculations

Visual elements: - Uncompensated Bode plot (dashed lines) - Compensated Bode plot (solid lines) - Phase margin indicators on both - Crossover frequency markers - Step-by-step procedure panel with current step highlighted - Calculated values displayed at each step

Interactive controls: - Slider: Target phase margin from 30° to 70° (default: 45°) - Slider: Safety margin from 0° to 15° (default: 5°) - Dropdown: Plant type (selection of common transfer functions) - Button: "Step through design" (advances through procedure) - Button: "Show all steps" - Button: "Reset"

Data Visibility Requirements: - Show uncompensated phase margin - Display required Δφ (phase margin increase needed) - Show calculated α and φ_max - Display z, p, and K_c values - Final compensated phase margin

Behavior: - Start with uncompensated system - Each step of the procedure is highlighted with explanation - As each step completes, corresponding elements appear on Bode plot - Final step shows before/after comparison - Can jump to any step or run all at once

Instructional Rationale: Step-by-step visualization of the design process demystifies the procedure. Students see each calculation's effect on the Bode plot, building understanding of the method's logic.

Implementation: p5.js with procedural animation and transfer function evaluation

Performance Specifications and How to Meet Them

Performance specs define what the closed-loop system must achieve. Understanding how compensators affect these specifications is essential for design.

Common Specifications

Specification Symbol Related To
Percent overshoot %OS Damping ratio, phase margin
Settling time $t_s$ Dominant pole real part
Rise time $t_r$ Bandwidth, crossover frequency
Steady-state error $e_{ss}$ DC gain, error constants
Phase margin PM Damping, robustness
Gain margin GM Robustness
Bandwidth $\omega_{BW}$ Speed of response

Specification Conflicts

Here's the uncomfortable truth: you can't have everything. Many specifications conflict with each other.

Speed vs. Stability is the classic tradeoff. Faster response (higher bandwidth, shorter settling time) typically requires higher loop gain. But higher loop gain reduces stability margins. Push too hard for speed and the system becomes oscillatory or unstable.

\[\text{Higher bandwidth} \Leftrightarrow \text{Higher crossover frequency} \Leftrightarrow \text{Less phase margin available}\]

Lead compensators help by adding phase, but they can only add so much before noise becomes a problem.

Accuracy vs. Robustness is another fundamental conflict. To reduce steady-state error, you need high DC gain (lag compensation or integral action). But high gain at low frequencies can make the system sensitive to model uncertainty and disturbances.

Gyra Moment

"I can be fast or I can be stable, but being both is hard. When my engineers push my bandwidth higher, I respond quicker to disturbances—but I also start to oscillate. There's always a limit. The best they can do is find the right balance, not eliminate the tradeoff. I've learned to accept that being 'good enough' at everything is sometimes better than being perfect at one thing."

Sensitivity and Robustness

The real world doesn't match our models perfectly. Components vary, parameters drift, and disturbances appear that we didn't anticipate. Robustness is the ability of a control system to maintain acceptable performance despite these uncertainties.

The Sensitivity Function

The sensitivity function $S(s)$ measures how disturbances and model errors affect the output:

Sensitivity Function

$S(s) = \frac{1}{1 + G(s)H(s)}$

where:

  • $G(s)H(s)$ is the loop transfer function
  • $S(s)$ relates disturbances at the output to their effect on the output

The sensitivity function tells us how much the closed-loop transfer function changes when the plant changes. A low sensitivity (small $|S(j\omega)|$) means the system is robust to plant variations at that frequency.

The Complementary Sensitivity Function

The complementary sensitivity function $T(s)$ relates the reference input to the output:

Complementary Sensitivity Function

$T(s) = \frac{G(s)H(s)}{1 + G(s)H(s)}$

Notice that $S(s) + T(s) = 1$. This is the fundamental constraint that limits what any linear controller can achieve.

Function Low at Frequency High at Frequency
$S(s)$ Good disturbance rejection Poor disturbance rejection
$T(s)$ Poor reference tracking Good reference tracking

Since they sum to 1, we can't have both low sensitivity and high complementary sensitivity at the same frequency. This is the mathematical expression of the speed-vs-robustness tradeoff.

Disturbance Rejection

Disturbance rejection measures how well the control system suppresses unwanted inputs. For disturbances entering at the plant output, the effect is governed by $S(s)$.

To reject low-frequency disturbances (like constant biases or slow drifts): - Make $|S(j\omega)|$ small at low frequencies - This requires high loop gain at low frequencies - Lag compensation or integral action achieves this

Diagram: Sensitivity and Complementary Sensitivity

Sensitivity and Complementary Sensitivity Functions

Type: microsim

Bloom Taxonomy: Analyze (L4) Bloom Verb: analyze, differentiate

Learning Objective: Students will analyze how S(s) and T(s) trade off against each other and understand the implications for disturbance rejection and noise attenuation.

Canvas layout: - Top half (50%): Bode magnitude plots of |S| and |T| - Bottom half (50%): Frequency response of loop gain and controls

Visual elements: - |S(jω)| magnitude plot (blue) - |T(jω)| magnitude plot (green) - 0 dB reference line - Crossover frequency marker - Shaded regions: "good disturbance rejection" (low |S|), "good noise rejection" (low |T|) - |S| + |T| = 1 constraint illustrated at selected frequency

Interactive controls: - Slider: Crossover frequency from 0.1 to 10 rad/s - Slider: Phase margin from 20° to 80° - Dropdown: Loop shape (simple integrator, lead-compensated, lag-compensated) - Toggle: Show S+T constraint visualization - Button: Reset to defaults

Data Visibility Requirements: - Display peak of |S| (sensitivity peak) - Show crossover frequency - Display |S| and |T| values at selected frequency - Warning if |S|_peak > 2 (poor robustness)

Behavior: - Plots update in real-time with parameter changes - Constraint S+T=1 shown graphically at user-selected frequency - Different loop shapes show different S/T tradeoffs - Sensitivity peak highlighted with warning for poor designs

Instructional Rationale: Visualizing S and T together makes the fundamental tradeoff concrete. Students see that pushing one function down necessarily pushes the other up.

Implementation: p5.js with transfer function evaluation and constraint visualization

Noise Attenuation

Noise attenuation refers to the system's ability to reject high-frequency noise from sensors. This is governed by $T(s)$ at high frequencies.

For good noise attenuation: - Make $|T(j\omega)|$ small at high frequencies - This means the loop gain should roll off at high frequencies - Lead compensation increases high-frequency gain—potentially problematic for noise

This creates another tradeoff: lead compensation improves phase margin but can amplify sensor noise. The pole in the lead compensator helps, but careful design is still required.

| Frequency Range | Want Low $|S|$ | Want Low $|T|$ | Benefit | |-----------------|----------------|----------------|---------| | Low frequencies | Yes | No | Disturbance rejection | | Crossover | (crossover) | (crossover) | — | | High frequencies | No | Yes | Noise attenuation |

Design Tradeoffs: The Fundamental Limits

Every control design involves tradeoffs. Understanding these limits helps you make informed decisions and set realistic expectations.

Speed vs. Stability

Faster response requires higher bandwidth, which pushes the crossover frequency higher. But: - At higher frequencies, the plant typically has more phase lag - Less phase margin means less stability and more overshoot - Eventually, instability

Lead compensation can add phase, but practical limits on $\alpha$ constrain how much. The fundamental tradeoff remains.

Accuracy vs. Noise Rejection

High DC gain (from lag compensation or integral action) improves steady-state accuracy. But: - High gain amplifies low-frequency disturbances - If the low-frequency disturbances include sensor bias, this is problematic

Disturbance Rejection vs. Noise Sensitivity

To reject output disturbances, make $|S|$ small, which requires high loop gain. But high loop gain also makes $|T|$ approach 1 more closely at those frequencies, passing more sensor noise to the output.

The Waterbed Effect

There's a mathematical result called the waterbed effect: if you push sensitivity down in one frequency range, it must come up somewhere else. You can't have $|S(j\omega)| < 1$ everywhere—the integral of $\ln|S|$ over all frequencies is constrained by the number of RHP poles and zeros.

This means there's no free lunch. Improving disturbance rejection at low frequencies typically worsens it at high frequencies, or vice versa.

No Universal Best Design

The optimal compensator depends entirely on your specific requirements and constraints. There is no "best" compensator that works for all situations. Every design is a negotiated settlement among competing demands. The engineer's job is to understand these tradeoffs and find the best compromise for the application at hand.

Diagram: Performance Tradeoff Explorer

Performance Tradeoff Explorer

Type: microsim

Bloom Taxonomy: Evaluate (L5) Bloom Verb: evaluate, prioritize

Learning Objective: Students will evaluate design tradeoffs by adjusting compensator parameters and observing how improvements in one performance metric degrade others.

Canvas layout: - Top left (40%): Step response plot - Top right (40%): Bode magnitude and phase - Bottom (20%): Performance metrics dashboard and controls

Visual elements: - Step response with overshoot, settling time markers - Bode plot with phase margin, crossover marked - Spider/radar chart showing: Rise time, Overshoot, Settling time, Steady-state error, Phase margin, Noise amplification - Color coding: green (good), yellow (acceptable), red (poor)

Interactive controls: - Slider: Lead zero location - Slider: Lead pole location - Slider: Lag zero location (optional lag) - Slider: Lag pole location (optional lag) - Slider: Overall gain K - Toggle: Enable lag section - Dropdown: Priority (Speed, Stability, Accuracy) - Button: "Optimize for priority" - Button: Reset to defaults

Data Visibility Requirements: - All six performance metrics displayed numerically - Spider chart updates in real-time - Trade-off relationships highlighted (e.g., when speed improves, show stability degrading) - Historical comparison: show best achieved for each metric

Behavior: - All plots and metrics update in real-time - Spider chart visually shows balance of performance - When one metric improves significantly, show which others degraded - "Optimize for priority" adjusts parameters to favor selected metric - Cannot achieve all metrics at excellent levels simultaneously

Instructional Rationale: Interactive exploration of tradeoffs teaches students that no single design is universally best. The spider chart makes the multi-objective nature of control design visible and intuitive.

Implementation: p5.js with real-time simulation, spider chart visualization, and multi-objective display

A Systematic Design Approach

Here's a practical workflow for compensator design:

  1. Analyze the uncompensated system:
  2. Plot Bode diagrams or root locus
  3. Identify current phase margin, gain margin, crossover frequency
  4. Calculate current steady-state error

  5. Identify the performance gap:

  6. What specifications are not met?
  7. Is the problem phase margin (transient response) or DC gain (steady-state error) or both?

  8. Choose compensator type:

  9. Lead if phase margin/transient response is the problem
  10. Lag if steady-state error is the problem
  11. Lead-lag if both

  12. Design the compensator:

  13. Use Bode method for frequency-domain specs
  14. Use root locus for s-domain specs
  15. Follow the systematic procedures outlined earlier

  16. Verify the design:

  17. Check all specifications on the compensated system
  18. Look at step response, frequency response, and sensitivity functions
  19. Ensure no specification has degraded unacceptably

  20. Iterate if necessary:

  21. Tradeoffs may require adjusting the design
  22. Consider whether specifications themselves need revision

Summary and Key Takeaways

Compensator design extends our control toolkit beyond PID, giving precise control over where phase and gain are added or subtracted.

Lead compensators: - Add positive phase (phase lead) - Improve transient response and stability margins - Place zero closer to origin than pole ($z < p$) - Maximum phase occurs at $\omega_m = \sqrt{zp}$ - Practical limit around 55-60° per stage

Lag compensators: - Contribute negative phase (phase lag) - Increase low-frequency gain for better steady-state accuracy - Place zero farther from origin than pole ($z > p$) - Must be placed well below crossover to avoid destabilizing

Lead-lag compensators: - Combine both functions - Lead section near crossover, lag section at low frequencies - Address both transient and steady-state requirements

Design methods: - Bode method: best for phase margin, bandwidth specs - Root locus method: best for damping ratio, settling time specs

Fundamental tradeoffs: - Speed vs. stability (you can't have infinite bandwidth) - Accuracy vs. robustness (high gain amplifies uncertainty) - Disturbance rejection vs. noise attenuation ($S + T = 1$)

Sensitivity functions: - $S(s) = 1/(1 + GH)$: disturbance response, model sensitivity - $T(s) = GH/(1 + GH)$: reference tracking, noise transmission - Their sum equals 1, constraining what's achievable

Every control design is a compromise. The engineer's skill lies in understanding the tradeoffs and finding the best balance for the specific application.

Gyra Moment

"My control system isn't perfect—it can't be. There's always a tradeoff between how fast I can react and how stable I stay. But understanding these limits helps my engineers make good choices. They can't give me infinite speed and infinite stability, but they can find the sweet spot where I'm quick enough and stable enough to do my job. That's what good control engineering is about: not perfection, but the best possible compromise."

Check Your Understanding
  1. For a lead compensator, which is larger: the zero or the pole?
  2. Why must a lag compensator's zero and pole be placed well below the crossover frequency?
  3. What does the sensitivity function $S(s)$ measure?
  4. Why does improving disturbance rejection at low frequencies often worsen noise rejection at high frequencies?
  5. If you need both improved transient response and reduced steady-state error, what type of compensator should you consider?