You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 ?
Thank you for clarifying.
The text was updated successfully, but these errors were encountered: