Skip to main content

PoolSearchMode = 2 return the same solutions



1 comment

  • Mario Ruthmair
    Gurobi Staff Gurobi Staff

    Hi Israel,

    PoolSearchMode=2 with PoolSolutions=10 implies that you get the 10 best solutions. But there could be multiple solutions with the same objective value, just differing in the variable values. I guess if you take a look at the variable values, all those solutions will be different.

    If those solutions differ only in variables that are not relevant to you (e.g., helper variables for modeling the problem), then you could set the variable attribute PoolIgnore for those helper variables. Then, you will obtain solutions that differ in the relevant decision variables.

    Best regards,


Please sign in to leave a comment.