File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name = " DirectTrajOpt"
22uuid = " c823fa1f-8872-4af5-b810-2b9b72bbbf56"
3- version = " 0.9.3 "
3+ version = " 0.9.4 "
44authors = [" Aaron Trowbridge <aaron.j.trowbridge@gmail.com> and contributors" ]
55
66[deps ]
Original file line number Diff line number Diff line change @@ -44,7 +44,11 @@ Base.@kwdef mutable struct IpoptOptions <: Solvers.AbstractSolverOptions
4444 acceptable_constr_viol_tol:: Float64 = 1.0e-2
4545 acceptable_compl_inf_tol:: Float64 = 1.0e-2
4646 acceptable_obj_change_tol:: Float64 = 1.0e-5
47- diverging_iterates_tol:: Float64 = 1.0e8
47+ # Ipopt's default is 1e20; the previous 1e8 fired false-positive "Iterates
48+ # diverging" exits on smooth-pulse NLPs whose unscaled second derivatives
49+ # legitimately reach O(1e8) (e.g. ddu ≈ u_max / Δt² with Δt in ns).
50+ # Until DTO-level variable scaling lands, defer to Ipopt's default.
51+ diverging_iterates_tol:: Float64 = 1.0e20
4852 eval_hessian = true
4953 hessian_approximation = eval_hessian ? " exact" : " limited-memory"
5054 hsllib = nothing
@@ -70,3 +74,10 @@ Base.@kwdef mutable struct IpoptOptions <: Solvers.AbstractSolverOptions
7074 watchdog_shortened_iter_trigger = 0
7175 watchdog_trial_iter_max = 3
7276end
77+
78+ @testitem " IpoptOptions: diverging_iterates_tol default matches Ipopt" begin
79+ using DirectTrajOpt: IpoptSolverExt
80+ # Locks in the bump from 1e8 (false-positive on smooth-pulse NLPs) to Ipopt's
81+ # native default of 1e20. See hopper/dto-variable-scaling for context.
82+ @test IpoptSolverExt. IpoptOptions (). diverging_iterates_tol == 1.0e20
83+ end
You can’t perform that action at this time.
0 commit comments