Skip to content
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

Specifying Grad & Hessian functions for MPB solvers #200

Open
rt5592 opened this issue Sep 11, 2017 · 0 comments
Open

Specifying Grad & Hessian functions for MPB solvers #200

rt5592 opened this issue Sep 11, 2017 · 0 comments

Comments

@rt5592
Copy link

rt5592 commented Sep 11, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant