-
How do I know which variables correspond with the indices of the Jacobian and Hessian (returned from methods such as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @NLaws ! Sorry for the late reply. You had the right intuition, the order of the variables is the same as JuMP.all_variables. The order of constraints might be slightly different, the linear ones appear first, and then the nonlinear ones. We should probably add more facilities to access the variables from the NLP model version of JuMP using the names given in the model. I opened two issues following your question: |
Beta Was this translation helpful? Give feedback.
Hi @NLaws ! Sorry for the late reply. You had the right intuition, the order of the variables is the same as JuMP.all_variables. The order of constraints might be slightly different, the linear ones appear first, and then the nonlinear ones.
We should probably add more facilities to access the variables from the NLP model version of JuMP using the names given in the model. I opened two issues following your question: