@@ -223,17 +223,17 @@ This controller allocates memory at each time step for the optimization.
223223```jldoctest
224224julia> model = NonLinModel((x,u,_,_)->0.5x+u, (x,_,_)->2x, 10.0, 1, 1, 1, solver=nothing);
225225
226- julia> mpc = NonLinMPC(model, Hp=20, Hc=1, Cwt=1e6 )
226+ julia> mpc = NonLinMPC(model, Hp=20, Hc=10, transcription=MultipleShooting() )
227227NonLinMPC controller with a sample time Ts = 10.0 s:
228228├ estimator: UnscentedKalmanFilter
229229├ model: NonLinModel
230- ├ optimizer: Ipopt
231- ├ transcription: SingleShooting
230+ ├ optimizer: Ipopt
231+ ├ transcription: MultipleShooting
232232├ gradient: AutoForwardDiff
233- ├ jacobian: AutoForwardDiff
233+ ├ jacobian: AutoSparse ( AutoForwardDiff, TracerSparsityDetector, GreedyColoringAlgorithm)
234234└ dimensions:
235235 ├ 20 prediction steps Hp
236- ├ 1 control steps Hc
236+ ├ 10 control steps Hc
237237 ├ 1 slack variable ϵ (control constraints)
238238 ├ 1 manipulated inputs u (0 integrating states)
239239 ├ 2 estimated states x̂
@@ -334,7 +334,7 @@ julia> model = NonLinModel((x,u,_,_)->0.5x+u, (x,_,_)->2x, 10.0, 1, 1, 1, solver
334334
335335julia> estim = UnscentedKalmanFilter(model, σQint_ym=[0.05]);
336336
337- julia> mpc = NonLinMPC(estim, Hp=20, Hc=1, Cwt=1e6)
337+ julia> mpc = NonLinMPC(estim, Hp=20, Cwt=1e6)
338338NonLinMPC controller with a sample time Ts = 10.0 s:
339339├ estimator: UnscentedKalmanFilter
340340├ model: NonLinModel
@@ -344,7 +344,7 @@ NonLinMPC controller with a sample time Ts = 10.0 s:
344344├ jacobian: AutoForwardDiff
345345└ dimensions:
346346 ├ 20 prediction steps Hp
347- ├ 1 control steps Hc
347+ ├ 2 control steps Hc
348348 ├ 1 slack variable ϵ (control constraints)
349349 ├ 1 manipulated inputs u (0 integrating states)
350350 ├ 2 estimated states x̂
0 commit comments