Which values to select for branching first.
SetValBranch(Select s=SEL_MIN_INC)
Initialize with selection strategy s.
Select
Which value selection.
@ SEL_VAL_COMMIT
Select value according to user-defined functions.
@ SEL_MAX_INC
Include largest element.
@ SEL_MIN_EXC
Exclude smallest element.
@ SEL_RND_EXC
Exclude random element.
@ SEL_MIN_INC
Include smallest element.
@ SEL_MAX_EXC
Exclude largest element.
@ SEL_MED_EXC
Exclude median element (rounding downwards).
@ SEL_RND_INC
Include random element.
@ SEL_MED_INC
Include median element (rounding downwards).
Select s
Which value to select.
Select select(void) const
Return selection strategy.
std::function< int(const Space &home, SetVar x, int i)> SetBranchVal
Branch value function type for set variables.
std::function< void(Space &home, unsigned int a, SetVar x, int i, int n)> SetBranchCommit
Branch commit function type for set variables.
Gecode toplevel namespace
SetValBranch SET_VAL_MED_INC(void)
Include median element (rounding downwards).
SetValBranch SET_VAL_RND_INC(Rnd r)
Include random element.
SetValBranch SET_VAL_RND_EXC(Rnd r)
Exclude random element.
SetValBranch SET_VAL(SetBranchVal v, SetBranchCommit c=nullptr)
Select value as defined by the value function v and commit function c.
SetValBranch SET_VAL_MED_EXC(void)
Exclude median element (rounding downwards).
SetValBranch SET_VAL_MAX_INC(void)
Include largest element.
SetValBranch SET_VAL_MIN_INC(void)
Include smallest element.
SetValBranch SET_VAL_MAX_EXC(void)
Exclude largest element.
SetValBranch SET_VAL_MIN_EXC(void)
Exclude smallest element.