Partition Heuristic
AnsweredI want to test the new "Partition Heuristic".
When setting the parameter Partition (http://www.gurobi.com/documentation/8.1/refman/partition.html#attr:Partition) the following was not clear to me:
Short question: What is the default value for the Partition parameter?
Longer question: Let's say i have 7 different days. I also have a class of variables Y(i) for each day... Monday has variables Y(1), Tuesday has variables Y(2) and so on...
Then all vars in Y(1) will get Partition=1, all vars in Y(2) will get Partition 2, and so on...
But I also have some global / day-independent variables. When I don't set a Partition parameter for these variables, will they be excluded (Partition = -1) or included (Partition = 0) for every sub-MIP?
What I want is more the second: For example: Only focus on monday (and all global) variables and "ignore" the other days for this moment.
Would be nice (for me) if this is the default and I don't have to care for the other variables and yet-to-come variables...
Thanks,
Gerwin
-
Hi Gerwin,
The default value for the partition attribute is -1, so any variable for which its partition attribute is not set will be excluded in all sub-problems. Thanks for pointing out the gap in the docs.
Best,
Daniel
0 -
Hello Daniel,
thanks for the clear answer.
Best,
Gerwin0
Please sign in to leave a comment.
Comments
2 comments