Skip to content

Commit 905f9d2

Browse files
committed
doc: fixing jldoctest
1 parent d18ac95 commit 905f9d2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/controller/nonlinmpc.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ NonLinMPC controller with a sample time Ts = 10.0 s:
229229
├ model: NonLinModel
230230
├ optimizer: Ipopt
231231
├ transcription: SingleShooting
232+
├ gradient: AutoForwardDiff
233+
├ jacobian: AutoForwardDiff
232234
└ dimensions:
233235
├ 20 prediction steps Hp
234236
├ 1 control steps Hc
@@ -338,6 +340,8 @@ NonLinMPC controller with a sample time Ts = 10.0 s:
338340
├ model: NonLinModel
339341
├ optimizer: Ipopt
340342
├ transcription: SingleShooting
343+
├ gradient: AutoForwardDiff
344+
├ jacobian: AutoForwardDiff
341345
└ dimensions:
342346
├ 20 prediction steps Hp
343347
├ 1 control steps Hc

src/estimator/mhe/construct.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ julia> estim = MovingHorizonEstimator(model, He=5, σR=[1], σP_0=[0.01])
278278
MovingHorizonEstimator estimator with a sample time Ts = 10.0 s:
279279
├ model: NonLinModel
280280
├ optimizer: Ipopt
281+
├ gradient: AutoForwardDiff
282+
├ jacobian: AutoForwardDiff
281283
└ dimensions:
282284
├ 5 estimation steps He
283285
├ 0 slack variable ϵ (estimation constraints)

src/model/nonlinmodel.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ julia> h!(y, x, _ , _ ) = (y .= 0.1x; nothing);
154154
julia> model1 = NonLinModel(f!, h!, 5.0, 1, 1, 1, p=-0.2) # continuous dynamics
155155
NonLinModel with a sample time Ts = 5.0 s:
156156
├ solver: RungeKutta(4)
157+
├ linearization: AutoForwardDiff
157158
└ dimensions:
158159
├ 1 manipulated inputs u
159160
├ 1 states x
@@ -166,7 +167,8 @@ julia> h(x, _ , _ ) = 2x;
166167
167168
julia> model2 = NonLinModel(f, h, 2.0, 1, 1, 1, solver=nothing) # discrete dynamics
168169
NonLinModel with a sample time Ts = 2.0 s:
169-
├ solver: empty
170+
├ solver: EmptySolver
171+
├ linearization: AutoForwardDiff
170172
└ dimensions:
171173
├ 1 manipulated inputs u
172174
├ 1 states x

0 commit comments

Comments
 (0)