Hi,
Something's not clear to me about the features you can request from a JuMP model (
:Grad,
:Jac, etc.). I'm looking at the example at
where only :Grad is requested. My understanding is that that means other features are simply not available, e.g., evaluating the Jacobian or Hessian. That seems to be correct regarding the Hessian:
julia> MathProgBase.hesslag_structure(d)
ERROR: Hessian computations were not requested on the call to MathProgBase.initialize.
in hesslag_structure(::JuMP.NLPEvaluator) at /Users/dpo/.julia/v0.5/JuMP/src/nlp.jl:977
but JuMP seems happy trying to set up the Jacobian structure:
julia> MathProgBase.jac_structure(d)
(Int64[],Int64[])
(the problem I link to above doesn't have constraints but the same happens with a constrained problem). In fact:
julia> MathProgBase.features_available(d)
5-element Array{Symbol,1}:
:Grad
:Jac
:ExprGraph
:Hess
:HessVec
What am I missing?
Thanks!