Close #127 (but need to open a new issue afterwards to use the appropriate functions from Ampl API)
Explanations: In NLPModels 0.18/0.19 we added the linear API, i.e. instead of calling cons! you could use cons_lin! and cons_nln to access the linear or nonlinear constraints.
Indices of the (non)linear constraints are available in the meta via nlp.meta.lin of size nlp.meta.nlin and nlp.meta.nln of size nlp.meta.nnln.
The same applies to the Jacobian and its product.
Close #127 (but need to open a new issue afterwards to use the appropriate functions from Ampl API)
Explanations: In NLPModels 0.18/0.19 we added the linear API, i.e. instead of calling
cons!
you could usecons_lin!
andcons_nln
to access the linear or nonlinear constraints. Indices of the (non)linear constraints are available in the meta vianlp.meta.lin
of sizenlp.meta.nlin
andnlp.meta.nln
of sizenlp.meta.nnln
. The same applies to the Jacobian and its product.