User-defined gradient and hessian ADNLPModels.jl

Hello,

I am trying to solve a nonlinear optimization problem using NLPModels.jl. As seen from here, the model takes only the objective function and the constraints and compute the gradient and hessian using ForwardDiff. I wonder if there is an easy way to pass the gradient and hessian of the objective function manually.

1 Like