47 using namespace Float;
54 postviewvalbrancher<FloatView,1,FloatNumBranch,2>
63 using namespace Float;
65 vars.
a.expand(home,x);
69 vars.
b.expand(home,x);
73 vars.
c.expand(home,x);
77 vars.
d.expand(home,x);
79 branch(home,x,vars.
a,vals,bf,vvp);
88 postviewvalbrancher<FloatView,2,FloatNumBranch,2>
89 (home,xv,vs,vsc,bf,vvp);
95 postviewvalbrancher<FloatView,3,FloatNumBranch,2>
96 (home,xv,vs,vsc,bf,vvp);
102 postviewvalbrancher<FloatView,4,FloatNumBranch,2>
103 (home,xv,vs,vsc,bf,vvp);
118 using namespace Float;
119 if (home.
failed())
return;
124 postviewvalbrancher<FloatView,1,FloatNumBranch,1>
131 assign(home, xv, fa,
nullptr, vvp);
Combine variable selection criteria for tie-breaking.
Which values to select for branching first.
void branch(Home home, const FloatVarArgs &x, FloatVarBranch vars, FloatValBranch vals, FloatBranchFilter bf, FloatVarValPrint vvp)
Branch over x with variable selection vars and value selection vals.
Abstract class for view selection.
void expand(Home home, const FloatVarArgs &x)
Expand AFC, action, and CHB.
Which variable to select for branching.
FloatVarBranch FLOAT_VAR_NONE(void)
Select first unassigned variable.
Base class for value selection and commit.
Select the first unassigned view.
bool failed(void) const
Check whether corresponding space is failed.
ViewSel< FloatView > * viewsel(Space &home, const FloatVarBranch &fvb)
Return view selectors for float views.
Random (uniform, for tie breaking)
std::function< bool(const Space &home, FloatVar x, int i)> FloatBranchFilter
Branch filter function type for float variables.
VarBranch a
Branching criteria to try in order.
Which values to select for assignment.
Post propagator for SetVar x
std::function< void(const Space &home, const Brancher &b, unsigned int a, FloatVar x, int i, const FloatNumBranch &n, std::ostream &o)> FloatVarValPrint
Function type for explaining branching alternatives for float variables.
Gecode toplevel namespace
void assign(Home home, const FloatVarArgs &x, FloatAssign fa, FloatBranchFilter bf, FloatVarValPrint vvp)
Assign all x with value selection vals.
Home class for posting propagators
ValSelCommitBase< FloatView, FloatNumBranch > * valselcommit(Space &home, const FloatValBranch &fvb)
Return value and commit for float views.