Defining OptimizationProblems

SciMLBase.OptimizationProblem is defined and documented by SciMLBase. Optimization.jl accepts that problem type and provides the following local objective-sense aliases:

SciMLBase.OptimizationProblemType
OptimizationProblem(nlpmodel::AbstractNLPModel, adtype::AbstractADType = NoAD())

Returns an OptimizationProblem with the bounds and constraints defined in nlpmodel. The optimization function and its derivatives are re-used from nlpmodel when available or populated wit the Automatic Differentiation backend specified by adtype.

source