How do I acces inactive constraints in Gurobi?
AnsweredI would like to know whether it is possible to call as an attribute the constraints that have not been used (inactive constraints) in the optimization.
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 Simion,
The Slack attribute is what you are looking for. If it is \(>0\), then the constraint is not active in the given solution point. Please note that all values are computed with a tolerance so it is better to check for \(>\epsilon>0\).
Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments