Skip to content

Commit 9b13264

Browse files
full split
1 parent 56cec42 commit 9b13264

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/OptimizationBase/src/OptimizationBase.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import SciMLBase: solve, init, solve!, __init, __solve,
1515
requireshessian, requiresconsjac,
1616
requiresconshess
1717

18-
import SciMLBase: supports_opt_cache_interface
18+
supports_opt_cache_interface(alg) = false
1919
@static if !hasmethod(SciMLBase.__solve, Tuple{OptimizationProblem, SciMLBase.AbstractOptimizationAlgorithm})
2020
include("solve.jl")
2121
end
@@ -39,7 +39,6 @@ Base.length(::NullData) = 0
3939
include("adtypes.jl")
4040
include("symify.jl")
4141
include("cache.jl")
42-
include("solve.jl")
4342
include("OptimizationDIExt.jl")
4443
include("OptimizationDISparseExt.jl")
4544
include("function.jl")

lib/OptimizationBase/src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ from NLopt for an example. The common local optimizer arguments are:
9292
"""
9393
function solve(prob::SciMLBase.OptimizationProblem, alg, args...;
9494
kwargs...)::SciMLBase.AbstractOptimizationSolution
95-
if supports_opt_cache_interface(alg)
95+
if SciMLBase.supports_opt_cache_interface(alg)
9696
solve!(init(prob, alg, args...; kwargs...))
9797
else
9898
if prob.u0 !== nothing && !isconcretetype(eltype(prob.u0))

0 commit comments

Comments
 (0)