Algorithm Search⌘K

Techniquecore

Two-degree-of-freedom control

Also called 2DOF control, setpoint weighting.

A controller that treats the reference and the measured output by separate paths, so tracking and disturbance rejection are tuned apart.

A two-degree-of-freedom (2DOF) controller computes the input from the reference rr and the measured output yy by two different transfer functions, u=Crr−Cyyu = C_r r - C_y y. A one-degree-of-freedom controller has Cr=CyC_r = C_y, so it acts only on the error r−yr - y. The feedback part CyC_y alone sets the closed-loop poles, the sensitivity function and the response to disturbances and noise. The part CrC_r then shapes the response to the reference without changing any of those. Horowitz (1963) is the classic reference for the structure. The simplest form is set-point weighting in a PID controller: a weight bb on the reference in the proportional term.

In plain words

A normal controller looks only at the error, the difference between what you want and what you have. So a jump of the set point and a sudden disturbance look the same to it, and one tuning must serve both. Often a tuning that removes disturbances fast gives a large overshoot after a set-point step. A two-degree-of-freedom controller uses the set point and the measurement in different ways. The part that acts on the measurement is tuned for disturbances and robustness. The part that acts on the set point is then tuned for a smooth and fast set-point response. The second part changes nothing in how the loop reacts to disturbances, so the two jobs are tuned apart.

When it applies

  • The loop must both track set-point changes and reject loads, and one tuning cannot do both well. This is common when the feedback is tuned for load rejection.
  • Set-point steps cause large kicks of the input or a large overshoot.
  • A model of the plant is available for a reference model and a feedforward term, or only a PID controller is available and set-point weights are the tool.

The template

  1. Design the feedback CyC_y for disturbance rejection, noise and robustness, for example by loop shaping or a PID tuning rule.
  2. Choose the reference path. Common forms:
    • Set-point weighting in PID: u=K(br−y+1Ti∫(r−y) dt+Tdddt(cr−y))u = K\left(b r - y + \frac{1}{T_i}\int (r - y)\,dt + T_d \frac{d}{dt}(c r - y)\right), with 0≤b≤10 \le b \le 1 and usually c=0c = 0.
    • Prefilter: u=Cy(Fr−y)u = C_y (F r - y).
    • Reference model and feedforward: u=(M/P)r+Cy(Mr−y)u = (M/P) r + C_y (M r - y), with a desired response MM.
  3. Keep the integral on the true error. The integral term must act on r−yr - y, so that the steady-state error is zero for every choice of the reference path.
  4. Tune the reference path with the feedback fixed: lower bb, or a slower FF or MM, gives less overshoot and a smaller kick of uu.

Why it works (theorems). With a load dd at the plant input, u=Crr−Cyyu = C_r r - C_y y and y=P(u+d)y = P(u + d),

y=PCr1+PCyr+P1+PCyd.y = \frac{P C_r}{1 + P C_y} r + \frac{P}{1 + P C_y} d.

The denominator and the map from dd contain only CyC_y, so the closed-loop poles, the internal stability and the load response do not depend on CrC_r (when CrC_r is BIBO stable, or when CrC_r and CyC_y share one integrator, as in the PID form). For the PI controller with weight bb,

Cr=K(b+1Tis),Cy=K(1+1Tis),CrCy=bTis+1Tis+1,C_r = K\left(b + \frac{1}{T_i s}\right), \quad C_y = K\left(1 + \frac{1}{T_i s}\right), \quad \frac{C_r}{C_y} = \frac{b T_i s + 1}{T_i s + 1},

which equals 1 at s=0s = 0. So the weight acts as a prefilter that moves the controller zero from −1/Ti-1/T_i to −1/(bTi)-1/(b T_i), and the steady-state error to a step is zero for every bb. For the reference model form with an exact model, y=Mry = M r and the feedback sees no error.

Classic examples

A PI controller on three lags. Let P=1/(s+1)3P = 1/(s + 1)^3 and the PI controller K=1.65646K = 1.65646, Ti=4.47205T_i = 4.47205 from the loop shaping page (a phase margin of 60 degrees). Measured with a simulation step of 0.01 s, for a unit set-point step and, separately, a unit load step at the plant input:

weight bb overshoot settling time (2 percent) time to 90 percent IAE of the set-point step
0 0 24.64 s 14.97 s 7.176
0.5 0 21.89 s 11.88 s 4.941
1 0.043 16.11 s 2.89 s 2.781

The load response is the same for all three values of bb: the peak of yy is 0.43861, and the integral of the error is 2.6996, which matches the theorem Ti/K=2.6998T_i/K = 2.6998 to the accuracy of the simulation. On this plant b=1b = 1 gives the fastest set-point response with a small overshoot. A low bb removes the kick of uu at the step: u(0+)=bKu(0^+) = b K, which is 1.656 for b=1b = 1 and 0 for b=0b = 0. The example shows that the weight changes only the set-point response; whether a low bb helps depends on the feedback tuning.

Reference model with feedforward. For P=1/(s+1)3P = 1/(s + 1)^3 and M=1/(0.5s+1)3M = 1/(0.5 s + 1)^3, the feedforward is uff=(M/P)r=(s+1)3/(0.5s+1)3 ru_{ff} = (M/P) r = (s + 1)^3/(0.5 s + 1)^3 \, r, and the output follows MM exactly when the model is exact. A unit step gives uff(0+)=8u_{ff}(0^+) = 8, so the desired response must respect the actuator limits.

Variations

  • Set-point weights bb and cc in the PID controller: c=0c = 0 (derivative on the measurement) is the usual choice and avoids a derivative kick.
  • Prefilter FF on the reference, of any order, with F(0)=1F(0) = 1.
  • Feedforward with a reference model, as in the template; it needs M/PM/P proper and BIBO stable, so MM must keep the delay and the zeros of PP in the right half-plane. See feedforward control.
  • IMC with two filters. In internal model control use one filter for the reference and another for the disturbance.
  • Reference shaping. Ramp or filter the set point, or use a reference governor to respect constraints.
  • Quantitative feedback theory. Horowitz's design method uses the two degrees of freedom to meet bounds on the response for a set of plants.

Pitfalls

  • Integral on the weighted error. If the integral acts on br−yb r - y, the steady-state error is not zero for b≠1b \neq 1. The integral must act on r−yr - y.
  • Expecting better disturbance rejection. The reference path cannot improve the response to loads or noise; only CyC_y can.
  • Bumps at mode changes. A change of bb during operation changes uu at once. Change the weights with the integral adjusted, as for bumpless transfer.
  • Saturation. A fast MM or a large bb makes uu large right after a step. Then the actuator saturates; see anti-windup.
  • Model error in the feedforward form. With a model error, the feedback sees Mr−y≠0M r - y \neq 0 and corrects it; the response is then between MM and the one-degree-of-freedom response.

Exercises

  1. Give the prefilter FF that is equivalent to the weight bb in a PI controller. (Answer: F=(bTis+1)/(Tis+1)F = (b T_i s + 1)/(T_i s + 1).)
  2. Show that the load response does not depend on bb. (Answer: y/d=P/(1+PCy)y/d = P/(1 + P C_y) and CyC_y does not contain bb.)
  3. Show that the steady-state error to a step is zero for every bb. (Answer: Cr/Cy→1C_r/C_y \to 1 as s→0s \to 0, so y/r→1y/r \to 1 when the loop has integral action.)
  4. In the example, what is the jump of uu at a unit set-point step for b=0.5b = 0.5? (Answer: bK=0.828b K = 0.828.)
  5. What is uff(0+)u_{ff}(0^+) for M=1/(0.5s+1)3M = 1/(0.5 s + 1)^3 and P=1/(s+1)3P = 1/(s + 1)^3? (Answer: the ratio of the leading coefficients, 1/0.53=81/0.5^3 = 8.)

References

  1. Isaac M. Horowitz, Synthesis of Feedback Systems, Academic Press, 1963, the whole book (the two-degree-of-freedom structure)
  2. Karl Johan Åström and Tore Hägglund, Advanced PID Control, ISA, 2006, Chapter 3, PID Control (set-point weighting)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples