PoolSearchMode = 2 return the same solutions
回答済みHi Devs,
Is there a setting that I could use for me not to get the same solutions when I use PoolSearchMode = 2?
Let say I set:
PoolSolution = 10
PoolSearchMode = 2
When I read the ObjVals from that pool, they are always the same.
How can I get 10 unique solutions?
-
正式なコメント
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. -
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,
Mario0
投稿コメントは受け付けていません。
コメント
2件のコメント