Skip to content

Commit 990b20e

Browse files
authored
fix(OptimizationIpopt): fix user callback not being picked up
1 parent af28dc1 commit 990b20e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OptimizationIpopt/src/OptimizationIpopt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ function SciMLBase.__solve(cache::IpoptCache)
344344
maxtime = maxtime,
345345
verbose = get(cache.solver_args, :verbose, false),
346346
progress = cache.progress,
347-
callback = get(cache.solver_args, :callback, nothing))
347+
callback = cache.callback)
348348

349349
opt_setup.x .= cache.reinit_cache.u0
350350

0 commit comments

Comments
 (0)