Skip to content

Commit 21b8973

Browse files
committed
refactor: tweak maxtime to use max_wall_time
this should be more in line with the rest of the optimizers
1 parent afa8906 commit 21b8973

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
@@ -104,7 +104,7 @@ function __map_optimizer_args(cache,
104104
Ipopt.AddIpoptIntOption(prob, "max_iter", maxiters)
105105
end
106106
if !isnothing(maxtime)
107-
Ipopt.AddIpoptNumOption(prob, "max_cpu_time", maxtime)
107+
Ipopt.AddIpoptNumOption(prob, "max_wall_time", float(maxtime))
108108
end
109109
if !isnothing(reltol)
110110
Ipopt.AddIpoptNumOption(prob, "tol", reltol)

0 commit comments

Comments
 (0)