Skip to content

Commit

Permalink
Merge pull request #97 from SciML/optimizationfunction
Browse files Browse the repository at this point in the history
Make OptimizationFunctions AbstractSciMLFunctions
  • Loading branch information
ChrisRackauckas authored Aug 14, 2021
2 parents 4edec99 + 5146157 commit 5796b96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SciMLBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ $(TYPEDEF)
Base for types defining optimization functions.
"""
abstract type AbstractOptimizationFunction end
abstract type AbstractOptimizationFunction{iip} <: AbstractSciMLFunction{iip} end

"""
$(TYPEDEF)
Expand Down
2 changes: 1 addition & 1 deletion src/problems/basic_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ QuadratureProblem(f,lb,ub,args...;kwargs...) = QuadratureProblem{isinplace(f, 3)

struct NoAD <: AbstractADType end

struct OptimizationFunction{iip,AD,F,G,H,HV,C,CJ,CH} <: AbstractOptimizationFunction
struct OptimizationFunction{iip,AD,F,G,H,HV,C,CJ,CH} <: AbstractOptimizationFunction{iip}
f::F
adtype::AD
grad::G
Expand Down

0 comments on commit 5796b96

Please sign in to comment.