Skip to content

Delete duplicate ReInitCache #721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,6 +24,6 @@ export ObjSense, MaxSense, MinSense
include("utils.jl")
include("state.jl")

export solve, OptimizationCache
export solve

end # module
6 changes: 0 additions & 6 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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