Query which lazy constraints have been enforced
回答済みGurobi currently allows the user to specify that certain constraints added to the model should be treated as lazy constraints. For example, in the Python API, the user can set "c.lazy = 1", where c belongs to "model.getConstrs()". According to the documentation, these constraints are removed from the model and added to the lazy constraint pool.
My question is, after solving the model, is it possible to query Gurobi which of these lazy constraints have been pulled back into the model? The "c.lazy" attribute unfortunately doesn't seem to provide this information.
Even if there is no attribute to query this directly, is it possible to get this information in any other way, for example, by exporting model?
-
正式なコメント
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?. -
We currently don't provide this information and I don't see a way to export it from the solver. The only thing you can see is the number of lazy constraints that are active in the end. This number is printed int the "Cutting planes" summary at the end of the solving run.
Best,
Sonja
0
投稿コメントは受け付けていません。
コメント
2件のコメント