Open
Description
Hi
My question is about providing grad, Jac and hess functions to MathProgBase solvers.
Which solvers (Ipopt, Knitro) require these functions to be provided when using MPB?
Is the syntax below correct (i.e. using empty array) when these functions are not specified ?
function MathProgBase.initialize(d::AbstractNLPEvaluator, requested_features::Vector{Symbol})
for feat in requested_features
if !(feat in [ ]) # empty array here ?
error("Unsupported feature $feat")
# TODO: implement Jac-vec and Hess-vec products
# for solvers that need them
end
end
end
MathProgBase.features_available(d::AbstractNLPEvaluator) = [ ] # empty array here ?
Thank you for clarifying.
Metadata
Metadata
Assignees
Labels
No labels