Steady-state error and the final value theorem
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
Ask a feedback loop for 1 and it may settle at 0.8. Follow one unity-feedback loop, a gain K driving the plant 1/((s+1)(s+2)(s+10)), through a simulated step response, then predict the leftover error in two lines with the final value theorem: e_ss = 1/(1 + G(0)). More gain shrinks the error, until at K = 440 the loop goes unstable and the theorem's answer means nothing.
Ask for 1
A unity-feedback loop: a gain K = 80 drives the plant P(s) = 1/((s+1)(s+2)(s+10)), and the output is fed straight back. At t = 0 the reference r(t) steps from 0 to 1. Does the output end up at 1?
reference r(t) = 1 for t ≥ 0 (unit step) controller u = K·e, K = 80 plant P(s) = 1/((s+1)(s+2)(s+10)) open loop G(s) = K·P(s) feedback unity: c(t) goes straight back
اقرأ الدرس خطوة بخطوة
Ask for 1
A unity-feedback loop: a gain K = 80 drives the plant P(s) = 1/((s+1)(s+2)(s+10)), and the output is fed straight back. At t = 0 the reference r(t) steps from 0 to 1. Does the output end up at 1?
reference r(t) = 1 for t ≥ 0 (unit step) controller u = K·e, K = 80 plant P(s) = 1/((s+1)(s+2)(s+10)) open loop G(s) = K·P(s) feedback unity: c(t) goes straight backThe error is the gap
The summing junction subtracts the output from the reference: e(t) = r(t) − c(t). At t = 0 the output is still 0, so the error is 1. The steady-state error, e_ss, is the value e(t) settles to as t grows.
e(t) = r(t) − c(t) t = 0 c = 0 e = 1 t → ∞ e → e_ss (if it settles) In the s-domain, with unity feedback: E(s) = R(s) / (1 + G(s))Run the step
Simulated: the output rises, peaks at 1.04, and settles within 2 % by 3.7 s. It settles at 0.800, not 1. The error stays at 0.200 for good. That leftover is the steady-state error.
# simulate the loop: K = 80, P = 1/((s+1)(s+2)(s+10)) K, dt = 80, 0.001 x = [0.0, 0.0, 0.0] # c, c', c'' def f(x): u = K * (1 - x[0]) # u = K * e return [x[1], x[2], u - 13*x[2] - 32*x[1] - 20*x[0]] for n in range(10000): # 10 s, Runge-Kutta 4 k1 = f(x) k2 = f([v + dt/2*k for v, k in zip(x, k1)]) k3 = f([v + dt/2*k for v, k in zip(x, k2)]) k4 = f([v + dt*k for v, k in zip(x, k3)]) x = [v + dt/6*(a + 2*b + 2*c + d) for v, a, b, c, d in zip(x, k1, k2, k3, k4)] print(f"{1 - x[0]:.3f}") # 0.200Why a gap must remain
The plant's DC gain is P(0) = 1/20, so holding c = 0.8 takes a drive u = 16. The controller only makes u = 80·e. The one error that gives 16 is 0.200. Zero error would mean zero drive.
at steady state nothing changes, so s → 0: c = P(0)·u = u / 20 u = K·e = 80·e e = 1 − c solve: e = 1 / (1 + 80/20) = 0.200 u = 16.0, c = 0.800The final value theorem
We need not simulate. The final value theorem says: if e(t) settles, its final value is the limit of s·E(s) as s goes to 0. For a step, R(s) = 1/s, so s·E(s) = 1/(1 + G(s)).
final value theorem (FVT) lim e(t), t → ∞ = lim s·E(s), s → 0 valid only if every pole of s·E(s) is in the left half-plane step: R(s) = 1/s s·E(s) = s · (1/s) / (1 + G(s)) = 1 / (1 + G(s))Plug in s = 0
At s = 0 the plant gives 1/20, so G(0) = 80/20 = 4. Then e_ss = 1/(1 + 4) = 0.200, the same as the simulation, from two lines of arithmetic. G(0) is the loop's DC gain.
K = 80 G0 = K / 20 # G(0) = 4.0 print(f"{1 / (1 + G0):.3f}") # 0.200 simulation at t = 10 s: e = 0.200Turn the gain up
More gain, less error: K = 180 gives G(0) = 9 and e_ss = 1/10 = 0.100. The price: the output now peaks at 1.42 and takes 5.7 s to settle. Gain buys accuracy and costs damping.
K G(0) e_ss peak 2 % settle 80 4 0.200 1.04 3.7 s 180 9 0.100 1.42 5.7 s simulated e at 10 s, K = 180: 0.099Too much gain
K = 440: the theorem's formula promises e_ss = 0.043. The simulation disagrees: the output swings wider and wider. Two closed-loop poles sit at 0.11 ± j5.90, in the right half-plane. There is no final value.
K = 440 formula 1 / (1 + 22) = 0.043 (meaningless) poles 0.11 ± j5.90, -13.21 simulation c swings from -1.47 to 3.23 and keeps growingCheck stability first
The theorem only holds when the closed loop is stable. For this loop that means K below 396. A later lesson in this module, The Routh-Hurwitz test, finds that limit without solving for the poles.
closed loop: s³ + 13s² + 32s + (20 + K) = 0 for K > 0: stable ⇔ K < 396 K = 80 poles -1.05 ± j2.84, -10.91 stable K = 440 poles 0.11 ± j5.90, -13.21 unstable Order: check stability, then use the FVT.What sets the error
For a step, e_ss = 1/(1 + G(0)): only the loop's DC gain matters. A bigger G(0) means a smaller error, as long as the loop stays stable. A pole at s = 0 makes G(0) infinite; System type and error constants is next.
step input, unity feedback, stable loop: e_ss = 1 / (1 + G(0)) bigger G(0) → smaller e_ss G(0) = ∞ → e_ss = 0 (integrator in the loop) python-control: control.dcgain(G) returns G(0)
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01A unity-feedback loop is stable and G(0) = 4. A unit step goes in. What is the steady-state error?
For a step with unity feedback, e_ss = 1/(1 + G(0)) = 1/(1 + 4) = 0.2. The output settles at 0.8.
02Why can't the K = 80 loop settle with zero error?
At steady state c = u/20. Holding c = 0.800 needs u = 16.0, and u = 80·e, so e must be 0.200.
03When may you use the final value theorem on e(t)?
If a pole sits on the imaginary axis or in the right half-plane, e(t) never settles, and lim s·E(s) as s → 0 gives a number that means nothing.
04With K = 440, the formula gives e_ss = 0.043. What actually happens?
Two closed-loop poles sit at 0.11 ± j5.90, in the right half-plane. The loop is unstable (this loop needs K < 396), so there is no final value.
05Raising K from 80 to 180 in this loop does what?
G(0) goes from 4 to 9, so e_ss goes from 0.200 to 0.100. The peak rises from 1.04 to 1.42: gain buys accuracy and costs damping.
المسرد
- Error e(t)
- Reference minus output, r(t) − c(t). The summing junction of a unity-feedback loop computes it.
- Steady-state error (e_ss)
- The value the error settles to as time goes to infinity, if it settles at all.
- Final value theorem
- If every pole of sF(s) is in the open left half-plane, the limit of f(t) as t → ∞ equals the limit of sF(s) as s → 0.
- Unity feedback
- A loop that feeds the output straight back to the summing junction, with no sensor dynamics or scaling.
- Open-loop transfer function G(s)
- Everything between the error and the output, here K·P(s). For unity feedback, E(s) = R(s)/(1 + G(s)).
- DC gain G(0)
- The transfer function at s = 0: how much a constant input is amplified once everything has settled. python-control's dcgain() returns it.
- Right half-plane
- The part of the s-plane (the complex plane where poles live) whose real part is greater than 0. A pole there gives a response that grows; the open left half-plane, real part below 0, gives one that dies away.
- Stable (closed loop)
- Every closed-loop pole has a negative real part, so the response to a bounded input settles instead of growing.
الملاحظات والمصادر
- Every curve and number in the figure is simulated from the loop's equation, c''' + 13c'' + 32c' + 20c = K·(1 − c), with fourth-order Runge-Kutta and a 1 ms step.
- The final value theorem: if every pole of sF(s) lies in the open left half-plane, then the limit of f(t) as t goes to infinity equals the limit of sF(s) as s goes to 0. If a pole is on the imaginary axis or to the right of it, f(t) has no final value, and the formula's answer means nothing.
- The limit K < 396 comes from the Routh array of s³ + 13s² + 32s + (20 + K): its third row is (13·32 − 20 − K)/13, which must stay positive. The Routh-Hurwitz lesson in this module explains why.
- The Python is plain Python 3, no libraries. With python-control installed, control.dcgain(G) returns G(0) directly.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 7, Steady-State Errors)
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (ch. 5, Transient and Steady-State Response Analyses)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 4, A First Analysis of Feedback)
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall)
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- python-control documentation: control.dcgain
- Final value theorem (statement, conditions and a misuse example)
اختبار يتاح بعد الخطوة الأخيرة.