
Marika Karbstein
- Total activity 519
- Last activity
- Member since
- Following 1 user
- Followed by 1 user
- Votes 2
- Subscriptions 255
Comments
Recent activity by Marika Karbstein-
Why do you think the problem in this specific case occurs when accessing the variable values?As I said, there are several issues with your code.You must handle exceptions properly! Then, you can se...
-
This is difficult to analyze. You need to provide more information.Setting all variables to 0 in the "IIS" satisfies all constraints. So, this is not an IIS.Your addGenConstrPow call does not look ...
-
It is not enough to only catch the optimize call.When testing your code, it happens that solution attributes are accessed for an infeasible or unbounded model. Before accessing the X attribute, you...
-
Hi Zhen, You should catch the exception as it is done in the Gurobi Examples, see, e.g., mip1_c++.cpp.I hope this already helps. If not please share the Gurobi log output. Best,Marika
-
Can you give more details? In which cases is the optimal solution not found?What do you mean by "force the model to find the optimal"? Does this help for all instances?
-
It sounds like your lazy constraint cut off the optimal solution. Did you make sure that this is not the case?What happens if you set the optimal solution as a MIP start?
-
Hi Jerry, Indeed, coefficients of 1e+34 are a bad idea.Gurobi also prints a warning in the log, which is discussed in the KB article What does "Model contains large matrix coefficient range" mean? ...
-
Both models, as you posted them, result in the same optimal objective value of 13. I tested with Gurobi Version 12.0.0.If I change the objective sense to "Minimize", the optimal objective value is ...
-
Hi Caroline, We have a KB article about How do I determine why my model is infeasible?Do you have any troubles with the proposed approaches? Best regards,Marika
-
Thanks for the additional information.Please note that the Matrix Python API is especially for models already given in matrix notation. It is not efficient to use mVars mixed with term-based notati...