Skip to content

Commit 330dd6e

Browse files
Better handling of Base method movement
1 parent 381345f commit 330dd6e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/OptimizationBase/src/OptimizationBase.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ import SciMLBase: solve, init, solve!, __init, __solve,
1515
requireshessian, requiresconsjac,
1616
requiresconshess
1717

18-
@static if isdefined(SciMLBase, :supports_opt_cache_interface)
19-
import SciMLBase: supports_opt_cache_interface
20-
else
21-
supports_opt_cache_interface(alg) = false
18+
import SciMLBase: supports_opt_cache_interface
19+
@static if !hasmethod(SciMLBase.__solve, Tuple{OptimizationProblem, SciMLBase.AbstractOptimizationAlgorithm})
20+
include("solve.jl")
2221
end
2322

2423
export ObjSense, MaxSense, MinSense

0 commit comments

Comments
 (0)