Enforce a solution to see which constraints broke?
回答済みI currently have a model that 'should' always return a feasible solution, albeit it may be a bad one with high objective value (the task is to minimize the objective). For debugging purposes, is there a way to manually enforce a solution to the model to see which constraints would break?
0
-
正式なコメント
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?. -
I am not sure I understand: if the solution violates the constraints it is not feasible anymore, isn't it?
However, you can fix the upper and lower bounds of your variables to the values of the solution and then use feasRelax() or computeIIS() to compute the infeasibilities on that model. Please also see here for more details.
Sonja
0
投稿コメントは受け付けていません。
コメント
2件のコメント