Closed-loop control 2026-10-13
Feedback control selects a control input using observations of the actual controlled plant. In a tracking loop, compare the reference signal with the measured output to form the tracking error , then let the controller change . The control input changes the plant output, which is measured again: that return path closes the loop. A controller can use earlier observations as well as the latest one. [ref]
For the ideal controlled plant, proportional control initially commands . As approaches , the command shrinks. When a positive control disturbance pushes above , the tracking error becomes negative and the control input pushes back. The result is a bounded offset rather than the continuing drift of open-loop control. Integral action can remove that offset by remembering past tracking errors.
A control selected from the observed current state, rather than specified only as a function of the initial state and time. For and stage cost , the infinite-horizon feedback gives and total cost . The finite-horizon Bellman coefficients satisfy , and increase to two, proving optimality.
Control theory Created 2026-09-24 Updated 2026-10-13
Control theory studies how to choose control inputs for a dynamical system so that its plant output follows a reference signal, despite control disturbances and imperfect knowledge of the controlled plant. A controller turns the available information into a control signal. The design must consider both the resulting response and stability theory: a rule that corrects a small mismatch can still produce growing deviations if the interconnection is badly chosen. [ref]
The central distinction is informational. Open-loop control executes planned commands; feedback control uses the measured output of the actual controlled plant to update those commands. A reference signal can describe a destination, while control disturbances describe influences that the controller did not command. A model can predict where the controlled plant should be; measurement tells the controller what actually happened. The authors provide a free full-book PDF through [ref].
For a concrete comparison, all examples below use the same ideal scalar controlled plant:
Here is an illustrative position, the control input, a control disturbance, and the measured output. Both and are dimensionless quantities; the numbers are chosen to expose the mechanism, with no empirical interpretation. The ordinary differential equation says that the present control input and control disturbance accumulate into . The measured output equals the entire state only in this ideal example; a general plant output need not reveal the entire state.
Figure 1.
Planned commands and feedback control for an ideal controlled plant
. Top: the reference signal and measured output form the tracking error, which the controller converts into a control signal. Bottom left: with no control disturbance, the planned pulse reaches at , while proportional control with feedback gain approaches it smoothly. Bottom right: a control disturbance starts at ; open-loop control drifts, while proportional control approaches . All coordinates are dimensionless quantities. Details.
Feedback delay 2026-10-14
A feedback delay means a controller reacts to an earlier plant output. An accurate measurement can still be stale: when the plant output has already crossed the reference signal, a controller using the earlier value may continue pushing it away from the target. In a pure constant-delay model, with . This isolates timing from measurement noise; it does not describe every sampling or communication mechanism. [ref]
For the ideal scalar controlled plant , a zero reference signal, no control disturbance, and proportional control with constant feedback gain , the equations are
With , this is an ordinary differential equation with exponential decay . With , it is a delay differential equation, requiring an initial history of delayed feedback. The delay stability of proportional integrator control depends on the product : even this simple controlled plant loses asymptotic stability at .
Figure 1.
A stale measured output can command motion away from the target
. Original schematic and exact toy trajectory for , , and initial history of delayed feedback on . At , the plant output is , but the measured output is , so drives farther below zero. The shaded interval has actual and measured values of opposite signs. All plotted coordinates are dimensionless quantities; these are model predictions, not measured data. Details.
Feedback gain 2026-10-14
A feedback gain sets the strength of a controller's response to its observations. For proportional control, means that a tracking error produces a control input when .
Here is an explicitly synthetic mathematical model of a warming disturbance and its compensatory cooling. It is a teaching analogy for thermoregulation, not a measured human heat budget. Write , where is a lumped internal temperature, is a fixed reference and is a chosen temperature scale. Let be an additional heating rate and an additional cooling rate, both scaled to the same reference rate. All three are dimensionless variables, while is a time constant in the chosen time units. The ordinary differential equation is
The term idealizes increased passive heat transfer with increased internal temperature, around the baseline. The term opposes warming through proportional control with feedback gain . This local signed model does not treat a negative as negative sweating: it would represent decreased cooling relative to baseline. Changes of the environment and multiple body compartments are omitted.
For a constant disturbance and initial condition , the exponential function solution is
Substitution checks the ordinary differential equation directly. Increasing reduces the lasting offset and, in this instantaneous model, shortens the response time constant to . It does not make zero for a nonzero disturbance and finite : a persistent cooling command requires a persistent displacement under proportional control. At the equilibrium point, the extra heating is balanced by passive loss plus active cooling . Zero change of temperature means balanced rates, rather than zero rates, consistent with conservation of energy.
The first diagram uses , , and a pulse from to , comparing with . The latter approaches during the pulse, compared with without active feedback control. After the pulse ends, each displacement decays as . These are computed curves, not physiological measurements. The curve still has passive loss; it is not a claim that an unregulated body warms without limit.
Real physiological effectors take time to respond. To isolate that issue, set and replace the instantaneous command by another ordinary differential equation:
Here the disturbance remains from onward and the effector time constant is also . The equilibrium point is still , but the characteristic polynomial is . Its eigenvalues give decaying oscillations and asymptotic stability. The exact response is
In particular, , so the first maximum occurs at , with . The response exceeds its eventual displacement while remaining above its baseline. The return has the same negative sign as before; the extra state changes the timing. A finite effector time constant is distinct from the fixed time lag in the delayed negative feedback model.
Figure 1.
Synthetic homeostasis responses: offset, lag and limited effector capacity
. Original computed plots from the homeostatic temperature model, all in arbitrary units and explicitly labelled synthetic. Upper panel: displacement under the same sustained disturbance. Lower panel: corresponding cooling command. Instantaneous proportional control, a finite effector time constant, and effector saturation give different responses despite opposing the same disturbance. No experimental data or clinical limits are shown. Details.
PID controller 2026-10-14
An ideal PID controller combines proportional control, integral action, and a term proportional to the derivative of the tracking error. With , it gives proportional-integral control. The integral stores past error, while the derivative responds to its current rate of change. Practical implementations must account for measurement noise, which an ideal differentiator can amplify. [ref].
Proportional control 2026-10-14
Proportional control chooses a control input proportional to the current tracking error. For the ideal controlled plant and constant reference signal , its ordinary differential equation is . With and initial condition , the exact response is
For , and , this gives and . To verify the formula, substitute it into the ordinary differential equation and check the initial condition; its decaying exponential function explains the approach to the goal.
With a constant control disturbance, setting gives the equilibrium point and steady-state tracking error . For , doubling the feedback gain from to reduces the offset from to . This improvement is a statement about the ideal model: it neglects feedback delay and measurement noise, so it does not establish that arbitrarily large feedback gains are safe. [ref]
In the first diagram's switched control disturbance experiment, and from give, for ,
Thus and . At the equilibrium point, the controller supplies to cancel the control disturbance. Proportional control needs a nonzero tracking error to produce that persistent correction.
Tracking error 2026-10-14
The tracking error used by the controller is the signed difference
between the reference signal and the measured output. A positive tracking error means the readout is below the desired value; a negative tracking error means it is above. With exact measurement , and give . For a positive-response controlled plant, positive feedback gain in proportional control then reduces the plant output. The sign of the controller must also account for the sign of the controlled plant's response: a positive command that reduces the plant output requires a different sign choice. Kantor uses the opposite tracking error convention, , together with a minus sign in his controller; translating both signs gives the convention here. [ref]
Distinguish the controller's tracking error from the physical plant output discrepancy . If the readout has constant sensor bias , then
All four quantities have the same units under dimensional analysis; a sensor bias is expressed in those units too. A readout that is too high by can make when the physical temperature is below the goal. Integral action integrates the tracking error it receives; it cannot infer this missing calibration information from that tracking error alone. Thermometer calibration against an independent reference addresses a different problem from tuning a feedback gain.
Figure 1. . Original signal diagram with a synthetic equilibrium point for proportional-integral control. All output coordinates are temperature rises above one fixed baseline; the control input is in heater-command percentage points. With and sensor bias , zero measured tracking error means , while the physical plant output is and its discrepancy is . No plotted laboratory measurements are implied. Details.
A motivating apparatus/model comparison is Park, Martin, Kelly and Hedengren's temperature-control laboratory: two TIP31C heaters with attached TMP36GZ sensors and heat sinks, an Arduino, a power supply, and a USB-connected computer. The readout converts sensor voltage to temperature; software records that measured output while specifying heater commands from to . For the single-heater test, one command changes in steps and the other heater stays off. Parameters are fitted to one run, then a different command sequence tests predictions without feeding measured temperatures into the simulation. The authors observe that their richer thermal model predicts the response better than the approximation with a single time constant and a delayed control input, especially after command changes. The real sensor has its own thermal lag. They also repeat the same command profile at different ambient temperatures and find changes in the response, motivating ambient-condition reporting. This experiment measures a command-to-readout response, not independently the exact heater temperature or delivered power. [ref]
The lesson for tracking error is to record three traces during a tracking test: the reference signal, the measured output, and the applied control input. Their first difference is the tracking error; a model prediction minus a readout is instead a model discrepancy. In a proposed comparison of proportional control and proportional-integral control, keep the initial temperature, ambient conditions, heater limits, and target changes fixed; run the second heater separately as a known control disturbance. Independent thermometer calibration is needed to assess physical accuracy. These are suggested controls, not additional experiments claimed for the paper. A sensor's lag, measurement noise, actuator saturation, and changed ambient conditions can all invalidate conclusions drawn from the ideal first-order model.