Different results solving the same problem twice with a for loop
Hi there,
I'm using MATLAB as my programming environment and Gurobi as my problem solver with YALMIP toolbox. I was trying to solve the same MILP problem twice in a for loop, and I got different results. The continuous variable had been added in the second process, and I had defined 2484 variables.
How could I solve this? Thank you very much.
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?. -
This is the log.
0 -
Hi Tianhao,
Is the only difference between the models that you add some continuous variables that aren't used in the constraints or objective? If so, does this still occur with Gurobi 9.0.2?
Thanks,
Eli
0 -
Hi Eli,
Actually I didn't add the continuous variables. The software add them itself. And I tried Gurobi 9.0.2, and the problem still exists.
0
Post is closed for comments.
Comments
4 comments