diff --git a/src/Optimization.jl b/src/Optimization.jl index b54d2fa03..a5e83efe7 100644 --- a/src/Optimization.jl +++ b/src/Optimization.jl @@ -15,7 +15,7 @@ using Logging, ProgressLogging, ConsoleProgressMonitor, TerminalLoggers, Logging using ArrayInterface, Base.Iterators, SparseArrays, LinearAlgebra using Pkg -import OptimizationBase: instantiate_function +import OptimizationBase: instantiate_function, OptimizationCache, ReInitCache import SciMLBase: OptimizationProblem, OptimizationFunction, ObjSense, MaxSense, MinSense, OptimizationStats @@ -24,6 +24,6 @@ export ObjSense, MaxSense, MinSense include("utils.jl") include("state.jl") -export solve, OptimizationCache +export solve end # module diff --git a/src/utils.jl b/src/utils.jl index 2e5e3b2ad..dec99be7b 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -66,9 +66,3 @@ function check_pkg_version(pkg::String, ver::String; pkg_info[pkg].version >= VersionNumber(ver) : pkg_info[pkg].version > VersionNumber(ver) end - -# Wrapper for fields that may change in `reinit!(cache)` of a cache. -mutable struct ReInitCache{uType, P} - u0::uType - p::P -end