In above model, I wish to extract the coefficient of x[3]^2, which will be -3. I am not building the model myself, but rather reading it from an .nlp file, so even though the constraint can written with less parentheses, when I read in the model, the constraint will have a form like above.
The type of constraint is “ConstraintRef{Model, MathOptInterface.ConstraintIndex{MathOptInterface.ScalarNonlinearFunction, MathOptInterface.LessThan{Float64}}, ScalarShape}”.