Skip to content

Commit cd4294a

Browse files
authored
Merge pull request #97 from JuliaControl/doc_correction
minor doc correction
2 parents b320658 + c3c2dbe commit cd4294a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/estimator/kalman.jl

+8-7
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,14 @@ is based on the process model :
578578
\end{aligned}
579579
```
580580
See [`SteadyKalmanFilter`](@ref) for details on ``\mathbf{v}(k), \mathbf{w}(k)`` noises and
581-
``\mathbf{R̂}, \mathbf{Q̂}`` covariances. The functions ``\mathbf{f̂, ĥ}`` are `model`
582-
state-space functions augmented with the stochastic model of the unmeasured disturbances,
583-
which is specified by the numbers of integrator `nint_u` and `nint_ym` (see Extended Help).
584-
The ``\mathbf{ĥ^m}`` function represents the measured outputs of ``\mathbf{ĥ}`` function
585-
(and unmeasured ones, for ``\mathbf{ĥ^u}``). The matrix ``\mathbf{P̂}`` is the estimation
586-
error covariance of `model` state augmented with the stochastic ones. Three keyword
587-
arguments specify its initial value with ``\mathbf{P̂}_{-1}(0) =
581+
``\mathbf{R̂}, \mathbf{Q̂}`` covariances. The two matrices are constructed from ``\mathbf{Q̂ =
582+
\text{diag}(Q, Q_{int_u}, Q_{int_{ym}})}`` and ``\mathbf{R̂ = R}``. The functions
583+
``\mathbf{f̂, ĥ}`` are `model` state-space functions augmented with the stochastic model of
584+
the unmeasured disturbances, which is specified by the numbers of integrator `nint_u` and
585+
`nint_ym` (see Extended Help). The ``\mathbf{ĥ^m}`` function represents the measured outputs
586+
of ``\mathbf{ĥ}`` function (and unmeasured ones, for ``\mathbf{ĥ^u}``). The matrix
587+
``\mathbf{P̂}`` is the estimation error covariance of `model` state augmented with the
588+
stochastic ones. Three keyword arguments specify its initial value with ``\mathbf{P̂}_{-1}(0) =
588589
\mathrm{diag}\{ \mathbf{P}(0), \mathbf{P_{int_{u}}}(0), \mathbf{P_{int_{ym}}}(0) \}``. The
589590
initial state estimate ``\mathbf{x̂}_{-1}(0)`` can be manually specified with [`setstate!`](@ref).
590591

src/estimator/mhe/construct.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ MovingHorizonEstimator estimator with a sample time Ts = 10.0 s, Ipopt optimizer
318318
``\mathbf{x̂_i}`` can be manually specified with [`setstate!`](@ref), or automatically
319319
with [`initstate!`](@ref) for [`LinModel`](@ref). Note the MHE with ``p=0`` is slightly
320320
inconsistent with all the other estimators here. It interprets the initial values as
321-
``\mathbf{x̂_i} = \mathbf{x̂}_{-1}(-1)`` and ``\mathbf{P̂_i} = \mathbf{P̂}_{-1}(-1)``, that
322-
is, an *a posteriori* estimate[^2] from the last time step. The MHE with ``p=1`` is
323-
consistent, interpreting them as ``\mathbf{x̂_i} = \mathbf{x̂}_{-1}(0)`` and
321+
``\mathbf{x̂_i} = \mathbf{x̂}_{-1}(-1)`` and ``\mathbf{P̂_i} = \mathbf{P̂}_{-1}(-1)``, an
322+
*a posteriori* estimate[^2] from the last time step. The MHE with ``p=1`` is consistent,
323+
interpreting them as ``\mathbf{x̂_i} = \mathbf{x̂}_{-1}(0)`` and
324324
``\mathbf{P̂_i} = \mathbf{P̂}_{-1}(0)``.
325325
326326
[^2]: M. Hovd (2012), "A Note On The Smoothing Formulation Of Moving Horizon Estimation",

0 commit comments

Comments
 (0)