Skip to content

Commit b5525c9

Browse files
committed
doc: debug doctests
1 parent 9ecb633 commit b5525c9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/estimator/execute.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ julia> u = [1]; y = [3 - 0.1]; x̂ = round.(initstate!(estim, u, y), digits=3)
107107
0.0
108108
-0.1
109109
110+
julia> preparestate!(estim, y);
111+
110112
julia> x̂ ≈ updatestate!(estim, u, y)
111113
true
112114

src/estimator/mhe/execute.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ dictionary `info` with the following fields:
126126
127127
# Examples
128128
```jldoctest
129-
julia> estim = MovingHorizonEstimator(LinModel(ss(1.0, 1.0, 1.0, 0, 1)), He=1, nint_ym=0);
129+
julia> model = LinModel(ss(1.0, 1.0, 1.0, 0, 5.0));
130+
131+
julia> estim = MovingHorizonEstimator(model, He=1, nint_ym=0, direct=false);
130132
131133
julia> updatestate!(estim, [0], [1]);
132134

0 commit comments

Comments
 (0)