Missing documentation for Model.getQ() method
AnsweredDear gurobi team,
I noticed by accident there's a Model.getQ() method in the Python API. Unfortunately, there's no docstring and the method is not listed on the official docs.
In [30]: ?m.getQ
Signature: m.getQ()
Docstring: <no docstring>
Type: method
The method seems to return the matrix Q of a quadratic objective x'Qx + c'x, so I guess it might be worth adding documentation for this really useful method with the next update. :-)
Best,
Jonathan
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?. -
Hi Jonathan,
The getQ() function is undocumented because it is not tested and does not follow the Gurobi standards. The intended way to retrieve the quadratic objective matrix is to use the getObjective function and work with the returned QuadExpr object. There are currently no plans regarding the getQ function.
Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments