Skip to content

Commit 3911635

Browse files
committed
idem
1 parent a22cc6a commit 3911635

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/estimator/internal_model.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,20 @@ Init `estim.x̂` \ `x̂d` \ `x̂s` estimate at steady-state for [`InternalModel`
221221
222222
The deterministic estimates `estim.x̂d` start at steady-state using `u` and `d` arguments:
223223
```math
224-
\mathbf{x̂_d} = \mathbf{(I - )^{-1} B̂_u u}
224+
\mathbf{x̂_d} = \mathbf{(I - A)^{-1} (B_u u + B_d d)}
225225
```
226226
Based on `ym` argument and current stochastic outputs estimation ``\mathbf{ŷ_s}``, composed
227227
of the measured ``\mathbf{ŷ_s^m} = \mathbf{y^m} - \mathbf{ŷ_d^m}`` and unmeasured
228228
``\mathbf{ŷ_s^u = 0}`` outputs, the stochastic estimates also start at steady-state:
229229
```math
230230
\mathbf{x̂_s} = \mathbf{(I - Â_s)^{-1} B̂_s ŷ_s}
231231
```
232-
See [`init_internalmodel`](@ref) for details.
232+
This estimator does not augment the state vector, thus ``\mathbf{x̂ = x̂_d}``. See
233+
[`init_internalmodel`](@ref) for details.
233234
"""
234235
function init_estimate!(estim::InternalModel, model::LinModel, u, ym, d)
235236
x̂d, x̂s = estim.x̂d, estim.x̂s
236-
x̂d[:] = (I - estim.)\(estim.B̂u*u + estim.B̂d*d)
237+
x̂d[:] = (I - model.A)\(model.Bu*u + model.Bd*d)
237238
ŷd = h(model, x̂d, d)
238239
ŷs = zeros(model.ny)
239240
ŷs[estim.i_ym] = ym - ŷd[estim.i_ym] # ŷs=0 for unmeasured outputs

0 commit comments

Comments
 (0)