Problemadvanced
Closed-loop identification
Also called identification in closed loop.
Identify a plant from data taken while a feedback controller runs, where the input is correlated with the noise.
- Time
- O(N d^2 + d^3) worst
- Where
- N = the number of samples; d = the number of parameters
- Model
- Real RAM
Closed-loop identification is the problem of building a model of a plant from data recorded while a feedback controller is running. The controller computes the input from the measured output , so is correlated with the disturbances that act on . Many methods that are consistent in open loop then fail: correlation and spectral analysis, output error fits and instrumental variables with past inputs as instruments can all converge to a wrong plant, and with no external excitation the data may not determine the plant at all. The problem is common because many plants cannot be run without their controllers for safety or economic reasons. The known answers are conditions under which a method is consistent. The direct prediction error method is consistent when the model set contains both the true plant and the true noise model and the data are informative. The indirect methods use a known controller or a measured reference signal instead.
In plain words
You want to learn how a machine responds to its input, but a controller is already holding it steady. Whenever a disturbance pushes the output up, the controller pushes the input down. In the record, the input and the disturbance move together, so it is hard to tell how much of the output came from the input and how much from the disturbance. In the worst case the record would look the same for many different machines. Two things help. You can add a small known test signal to the setpoint, which moves the input for reasons that have nothing to do with the disturbance. And you can use a method that models the disturbance as well, so that its effect is not blamed on the input.
Definition
Time is discrete, , with sampling period and shift operator . The data come from the loop
where is white noise, is an external signal independent of (a setpoint change or an added test signal), and the controller is linear. The loop must be well posed, which holds if has a delay, and internally BIBO stable. With the sensitivity function ,
The second equation shows the difficulty: unless , depends on .
The question. Given , and possibly or , and a model set , return an estimate such that converges to , or, when is not in the model set, to an approximation with a known frequency weighting. The noise model may or may not be of interest.
Informative data. The closed-loop data are informative for the model set if two models that give the same limit prediction errors on them have the same and (Ljung 1999, Section 13.4). A persistently exciting is not enough, because may be a filter of .
Variants
- Known or unknown controller. The indirect methods need exactly. The direct method does not use it.
- Measured or absent reference. With the only excitation is the noise, and the data are informative only for some controllers. With a measured , the joint input-output and two-stage methods become available.
- Linear or nonlinear, fixed or time-varying feedback. A time-varying or nonlinear controller, or switching between two linear controllers, can make the data informative even with .
- Consistency of only. In some uses only the plant matters; then methods that do not need a correct noise model are preferred.
- Recursive closed-loop identification. The self-tuning regulator and other adaptive controllers identify the plant online while their own feedback acts on it.
Examples
- No external signal (theorem). For and , the output obeys , and the ARX predictor depends only on . Every pair on the line fits equally well. For , and the data give only , the negative of the closed-loop pole , and the least squares normal matrix is singular because .
- An added reference (measurement). In the same loop with , a white signal , unit noise and , direct least squares on gave . The true system is ARX, so the model set contains both and , and the direct method is consistent. Identifying the closed loop from to gave , and solving , gave the same numbers: for an ARX model with a known proportional controller, the indirect estimate equals the direct one, because the two regressor vectors are related by a fixed invertible matrix.
- A wrong noise model (measurement). On the same data, an output error fit by the direct method gave and , far from the true and . In open loop the same fit would be consistent; in closed loop the noise model is wrong, and the correlation between and biases .
Known algorithms
- Direct method. Apply the prediction error method to as if the loop were open. Cost per Gauss-Newton step.
- Indirect method. Identify the closed-loop map from to in open loop, then solve for with the known : for the closed loop is , so .
- Joint input-output method. Identify the maps from to and from to , both open-loop problems, and take . The controller need not be known.
- Two-stage and projection methods. First estimate the part of caused by , the noise-free input , and then fit an output error model from that signal to .
- Instrumental variables with the reference as instrument. Instruments built from past values of are uncorrelated with and correlated with the regressor. In example 2 with the instruments and the estimate was .
Bounds
As in open loop, there is no exact complexity; each method costs about what its open-loop version costs in the real RAM, for one linear solve or one Gauss-Newton step. What is known are conditions for consistency and expressions for the variance.
- Consistency of the direct method (theorem). If the model set contains and , the data are informative and the loop has a delay, the direct prediction error estimate is consistent for and (Forssell and Ljung 1999; Ljung 1999, Section 13.4). It is also efficient, with the open-loop covariance formula.
- Bias of the direct method (theorem). If the noise model is wrong, the limit of is biased by a term proportional to the correlation between and in the loop. The bias is small when the noise is small compared with the part of caused by , or when the noise model is close to the truth (Forssell and Ljung 1999).
- Consistency of the indirect and joint methods (theorem). These methods are consistent for when the closed-loop maps from are estimated consistently, which holds with any fixed noise model because is independent of . The indirect method needs the controller exactly.
- Variance (theorem). For high model orders , the variance of the estimated frequency response is about , where is the disturbance spectrum and is the part of the input spectrum caused by (Forssell and Ljung 1999). In open loop the whole input spectrum takes the place of ; feedback spends part of the input on rejecting noise, and in this high-order expression that part does not reduce the variance.
- Informativeness without (theorem). With and a fixed linear controller, the data are informative only if the controller is complex enough compared with the model orders; a simple proportional controller is not, as example 1 shows (Gustavsson, Ljung and Söderström 1977).
Reductions
- Indirect to open loop. Since is independent of , the map from to is an open-loop identification problem, and the plant follows from it by algebra with the known .
- Joint input-output to two open-loop problems. The maps from to and from to are two open-loop problems with the same input.
- Direct to open loop with a full noise model. With a correct noise model the direct method uses exactly the open-loop prediction error criterion; only the conditions for informative data change.
Applications
- Re-identifying a plant in the process industry without opening the loop, for retuning or for model predictive control.
- Identification for control: iterating between identification and controller design, so that the model is accurate where the closed loop needs it.
- Adaptive control and the self-tuning regulator, where identification always runs in closed loop.
- Plants that are unstable without feedback, such as some flight dynamics and magnetic levitation, where open-loop experiments are impossible.
References
- Lennart Ljung, System Identification: Theory for the User, second edition, Prentice Hall, 1999, Chapter 13, Section 13.4 (identification in closed loop: identifiability, informative experiments and the direct, indirect and joint input-output approaches)
- Urban Forssell and Lennart Ljung, Closed-loop identification revisited, Automatica 35(7), 1215-1241, 1999, the classification into direct, indirect and joint input-output methods, and their bias and variance
- Ivar Gustavsson, Lennart Ljung and Torsten Söderström, Identification of processes in closed loop: identifiability and accuracy aspects, Automatica 13(1), 59-75, 1977, the identifiability of systems under feedback, with and without an external signal
- Torsten Söderström and Petre Stoica, System Identification, Prentice Hall, 1989, the chapter on identification of systems operating in closed loop
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag V0A2FW Edit this page History Report an error Markdown