@@ -133,9 +133,9 @@ optimally update the stochastic estimate ``\mathbf{x̂_s}`` are:
133133```
134134with current stochastic outputs estimation ``\m athbf{ŷ_s}(k)``, composed of the measured
135135``\m athbf{ŷ_s^m}(k) = \m athbf{y^m}(k) - \m athbf{ŷ_d^m}(k)`` and unmeasured
136- ``\m athbf{ŷ_s^u = 0}`` outputs. See [^3 ].
136+ ``\m athbf{ŷ_s^u = 0}`` outputs. See [^1 ].
137137
138- [^3 ]: Desbiens, A., D. Hodouin & É. Plamondon. 2000, "Global predictive control : a unified
138+ [^1 ]: Desbiens, A., D. Hodouin & É. Plamondon. 2000, "Global predictive control : a unified
139139 control structure for decoupling setpoint tracking, feedforward compensation and
140140 disturbance rejection dynamics", *IEE Proceedings - Control Theory and Applications*,
141141 vol. 147, no 4, https://doi.org/10.1049/ip-cta:20000443, p. 465–475, ISSN 1350-2379.
@@ -147,14 +147,22 @@ function init_internalmodel(As, Bs, Cs, Ds)
147147end
148148
149149@doc raw """
150- updatestate !(estim::InternalModel, u, ym, d=Float64[])
150+ update_estimate !(estim::InternalModel, u, ym, d=Float64[])
151151
152152Update `estim.x̂` \ `x̂d` \ `x̂s` with current inputs `u`, measured outputs `ym` and dist. `d`.
153+
154+ The [`InternalModel`](@ref) updates the deterministic `x̂d` and stochastic `x̂s` estimates with:
155+ ```math
156+ \b egin{aligned}
157+ \m athbf{x̂_d}(k+1) &= \m athbf{f}\B ig( \m athbf{x̂_d}(k), \m athbf{u}(k), \m athbf{d}(k) \B ig) \\
158+ \m athbf{x̂_s}(k+1) &= \m athbf{Â_s x̂_s}(k) + \m athbf{B̂_s ŷ_s}(k)
159+ \e nd{aligned}
160+ ```
161+ This estimator does not augment the state vector, thus ``\m athbf{x̂ = x̂_d}``. See
162+ [`init_internalmodel`](@ref) for details.
153163"""
154- function updatestate ! (estim:: InternalModel , u, ym, d= Float64[])
164+ function update_estimate ! (estim:: InternalModel , u, ym, d= Float64[])
155165 model = estim. model
156- # ---- remove operating points ----
157- u, d, ym = remove_op! (estim, u, d, ym)
158166 x̂d, x̂s = estim. x̂d, estim. x̂s
159167 # -------------- deterministic model ---------------------
160168 ŷd = h (model, x̂d, d)
0 commit comments