Skip to main content

Different results using different stopping criteria

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    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?.
  • Silke Horn
    Gurobi Staff Gurobi Staff
    1. With different parameter settings, Gurobi will take different paths through the search tree. Hence it may find different solutions at different points in time. You can see from your logs that this is happening here. (By experimenting with the Seed parameter, you can see even more different paths.)
    2. How are the expressions defined? In your first run, Gurobi finishes with status 9 (time limit reached), in the second one with status 2 (optimal solution found). Some attributes may only be available when an optimal solution has been found.
    3. You can query the incumbent objective value and the best known bound by using the model attributes ObjVal and ObjBound.
    0

Post is closed for comments.