Skip to content

Commit 3082b79

Browse files
committed
bench: remove oracle keyword
1 parent a25f40d commit 3082b79

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

benchmark/3_bench_predictive_control.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ nmpc_madnlp_ss = setconstraint!(nmpc_madnlp_ss; umin, umax)
345345
JuMP.unset_time_limit_sec(nmpc_madnlp_ss.optim)
346346

347347
optim = JuMP.Model(()->UnoSolver.Optimizer(preset="filtersqp"), add_bridges=false)
348-
transcription, hessian, oracle = MultipleShooting(), true, true
349-
nmpc_uno_ms_hess = NonLinMPC(estim; Hp, Hc, Mwt, Nwt, Cwt, optim, transcription, hessian, oracle)
348+
transcription, hessian = MultipleShooting(), true
349+
nmpc_uno_ms_hess = NonLinMPC(estim; Hp, Hc, Mwt, Nwt, Cwt, optim, transcription, hessian)
350350
nmpc_uno_ms_hess = setconstraint!(nmpc_uno_ms_hess; umin, umax)
351351
JuMP.unset_time_limit_sec(nmpc_uno_ms_hess.optim)
352352

test/3_test_predictive_control.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,6 @@ end
877877
@test_throws ArgumentError NonLinMPC(nonlinmodel)
878878
@test_throws ArgumentError NonLinMPC(nonlinmodel, transcription=TrapezoidalCollocation())
879879
@test_throws ArgumentError NonLinMPC(nonlinmodel, transcription=TrapezoidalCollocation(2))
880-
@test_throws ErrorException NonLinMPC(linmodel1, oracle=false, hessian=AutoFiniteDiff())
881880
@test_throws ArgumentError NonLinMPC(nonlinmodel, Wy=[1 0;0 1])
882881
end
883882

0 commit comments

Comments
 (0)