Skip to main content

Problem with number of solutions

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Eli Towle
    • Gurobi Staff

    With the default value of the PoolSearchMode parameter (0), Gurobi tries to find an optimal solution to the model. The number of solutions Gurobi finds while searching for an optimal solution is no indication of how many feasible solutions exist. Additionally, different versions of Gurobi may take different paths to solve the problem, which can result in the solver finding different numbers of feasible solutions, or even different optimal solutions if multiple exist.

    Are you interested in finding more feasible solutions? If so, set the PoolSearchMode parameter to 1 to direct Gurobi to try finding \(n\) feasible solutions, or to 2 to direct Gurobi to try finding the best \( n \) feasible solutions (where \( n \) is equal to the value of the PoolSolutions parameter).

    0

Post is closed for comments.