File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -242,12 +242,12 @@ end
242
242
243
243
function _create_new_optimizer (model:: MOI.AbstractOptimizer )
244
244
if MOI. supports_incremental_interface (model)
245
- return model
245
+ return MOI . instantiate ( typeof ( model))
246
246
end
247
247
return MOI. Utilities. CachingOptimizer (MOI. Utilities. UniversalFallback (MOI. Utilities. Model{
248
248
Float64
249
249
}()),
250
- model)
250
+ MOI . instantiate ( typeof ( model)) )
251
251
end
252
252
253
253
function __map_optimizer_args (prob:: OptimizationProblem ,
@@ -284,6 +284,7 @@ function SciMLBase.__solve(prob::OptimizationProblem,
284
284
abstol:: Union{Number, Nothing} = nothing ,
285
285
reltol:: Union{Number, Nothing} = nothing ,
286
286
kwargs... )
287
+
287
288
maxiters = Optimization. _check_and_convert_maxiters (maxiters)
288
289
maxtime = Optimization. _check_and_convert_maxtime (maxtime)
289
290
opt_setup = __map_optimizer_args (prob,
You can’t perform that action at this time.
0 commit comments