QCP duals
AnsweredHi,
when retrieving duals of linear and quadratic constraints, I noticed that methods
GRBgetdblattr(element)
interpret the indices as the indices in the subset of only quadratic constraints, or, if I want a linear-constraint dual, similar. For a given constraint in the model, how can I determine whether it is linear or quadratic and, possibly, its index to be used? Or, what is an efficient way to obtain duals for all constraints (linear and quadratic)?
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Oh I think every constraint type has its own pool, there is no overall ordering of constraints. Resolved then.
0
Post is closed for comments.
Comments
2 comments