Skip to content

Commit 32135e8

Browse files
committed
small correction doc getinfo
1 parent 0aad27b commit 32135e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/predictive_control.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,13 @@ fields:
288288
289289
# Examples
290290
```jldoctest
291-
julia> mpc = LinMPC(LinModel(tf(5, [2, 1]), 3), Nwt=[0], Hp=1000, Hc=1);
291+
julia> mpc = LinMPC(LinModel(tf(5, [2, 1]), 3), Nwt=[0], Hp=1, Hc=1);
292292
293293
julia> u = moveinput!(mpc, [5]);
294294
295-
julia> info, sol_summary = getinfo(mpc); round.(info[:Ŷ][end], digits=2)
296-
5.0
295+
julia> info, sol_summary = getinfo(mpc); round.(info[:Ŷ], digits=3)
296+
1-element Vector{Float64}:
297+
5.0
297298
```
298299
"""
299300
function getinfo(mpc::PredictiveController)

0 commit comments

Comments
 (0)