Skip to content

Commit 781f43b

Browse files
committed
doc: jldoctest modifications
1 parent c213281 commit 781f43b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/controller/construct.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ constraints are all soft by default. See Extended Help for time-varying constrai
221221
julia> mpc = LinMPC(setop!(LinModel(tf(3, [30, 1]), 4), uop=[50], yop=[25]));
222222
223223
julia> mpc = setconstraint!(mpc, umin=[0], umax=[100], Δumin=[-10], Δumax=[+10])
224-
LinMPC controller with a sample time Ts = 4.0 s, OSQP optimizer, SteadyKalmanFilter estimator and:
224+
LinMPC controller with a sample time Ts = 4.0 s, OSQP optimizer, SingleShooting transcription, SteadyKalmanFilter estimator and:
225225
10 prediction steps Hp
226226
2 control steps Hc
227227
1 slack variable ϵ (control constraints)

src/controller/linmpc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ arguments. This controller allocates memory at each time step for the optimizati
167167
julia> model = LinModel([tf(3, [30, 1]); tf(-2, [5, 1])], 4);
168168
169169
julia> mpc = LinMPC(model, Mwt=[0, 1], Nwt=[0.5], Hp=30, Hc=1)
170-
LinMPC controller with a sample time Ts = 4.0 s, OSQP optimizer, SteadyKalmanFilter estimator and:
170+
LinMPC controller with a sample time Ts = 4.0 s, OSQP optimizer, SingleShooting transcription, SteadyKalmanFilter estimator and:
171171
30 prediction steps Hp
172172
1 control steps Hc
173173
1 slack variable ϵ (control constraints)
@@ -237,7 +237,7 @@ Use custom state estimator `estim` to construct `LinMPC`.
237237
julia> estim = KalmanFilter(LinModel([tf(3, [30, 1]); tf(-2, [5, 1])], 4), i_ym=[2]);
238238
239239
julia> mpc = LinMPC(estim, Mwt=[0, 1], Nwt=[0.5], Hp=30, Hc=1)
240-
LinMPC controller with a sample time Ts = 4.0 s, OSQP optimizer, KalmanFilter estimator and:
240+
LinMPC controller with a sample time Ts = 4.0 s, OSQP optimizer, SingleShooting transcription, KalmanFilter estimator and:
241241
30 prediction steps Hp
242242
1 control steps Hc
243243
1 slack variable ϵ (control constraints)

src/controller/nonlinmpc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ This controller allocates memory at each time step for the optimization.
223223
julia> model = NonLinModel((x,u,_,_)->0.5x+u, (x,_,_)->2x, 10.0, 1, 1, 1, solver=nothing);
224224
225225
julia> mpc = NonLinMPC(model, Hp=20, Hc=1, Cwt=1e6)
226-
NonLinMPC controller with a sample time Ts = 10.0 s, Ipopt optimizer, UnscentedKalmanFilter estimator and:
226+
NonLinMPC controller with a sample time Ts = 10.0 s, Ipopt optimizer, SingleShooting transcription, UnscentedKalmanFilter estimator and:
227227
20 prediction steps Hp
228228
1 control steps Hc
229229
1 slack variable ϵ (control constraints)
@@ -327,7 +327,7 @@ julia> model = NonLinModel((x,u,_,_)->0.5x+u, (x,_,_)->2x, 10.0, 1, 1, 1, solver
327327
julia> estim = UnscentedKalmanFilter(model, σQint_ym=[0.05]);
328328
329329
julia> mpc = NonLinMPC(estim, Hp=20, Hc=1, Cwt=1e6)
330-
NonLinMPC controller with a sample time Ts = 10.0 s, Ipopt optimizer, UnscentedKalmanFilter estimator and:
330+
NonLinMPC controller with a sample time Ts = 10.0 s, Ipopt optimizer, SingleShooting transcription, UnscentedKalmanFilter estimator and:
331331
20 prediction steps Hp
332332
1 control steps Hc
333333
1 slack variable ϵ (control constraints)

0 commit comments

Comments
 (0)