43 using namespace Float;
59 using namespace Float;
61 vars.
a.expand(home,
x);
65 vars.
b.expand(home,
x);
69 vars.
c.expand(home,
x);
73 vars.
d.expand(home,
x);
85 (home,xv,vs,vsc,bf,vvp);
92 (home,xv,vs,vsc,bf,vvp);
99 (home,xv,vs,vsc,bf,vvp);
115 using namespace Float;
116 if (home.
failed())
return;
130 using namespace Float;
131 if (home.
failed())
return;
132 vars.
a.expand(home,
x);
136 vars.
b.expand(home,
x);
140 vars.
c.expand(home,
x);
144 vars.
d.expand(home,
x);
156 (home,xv,vs,vsc,bf,vvp);
163 (home,xv,vs,vsc,bf,vvp);
170 (home,xv,vs,vsc,bf,vvp);
Which values to select for assignment.
Which values to select for branching first.
Which variable to select for branching.
void expand(Home home, const FloatVarArgs &x)
Expand AFC, action, and CHB.
@ SEL_NONE
First unassigned.
@ SEL_RND
Random (uniform, for tie breaking)
Home class for posting propagators
bool failed(void) const
Check whether corresponding space is failed.
Combine variable selection criteria for tie-breaking.
VarBranch a
Branching criteria to try in order.
Base class for value selection and commit.
Select the first unassigned view.
Abstract class for view selection.
std::function< bool(const Space &home, FloatVar x, int i)> FloatBranchFilter
Branch filter function type for float variables.
void assign(Home home, const FloatVarArgs &x, FloatVarBranch vars, FloatAssign vals, FloatBranchFilter bf=nullptr, FloatVarValPrint vvp=nullptr)
Assign all x with variable selection vars and value selection vals.
void branch(Home home, const FloatVarArgs &x, FloatVarBranch vars, FloatValBranch vals, FloatBranchFilter bf=nullptr, FloatVarValPrint vvp=nullptr)
Branch over x with variable selection vars and value selection vals.
ViewSel< IntView > * viewsel(Space &home, const IntVarBranch &ivb)
Return view selectors for integer views.
ValSelCommitBase< IntView, int > * valselcommit(Space &home, const IntValBranch &ivb)
Return value and commit for integer views.
Gecode toplevel namespace
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.
void postviewvalbrancher(Home home, ViewArray< View > &x, ViewSel< View > *vs[n], ValSelCommitBase< View, Val > *vsc, BranchFilter< typename View::VarType > bf, VarValPrint< typename View::VarType, Val > vvp)
Post view value brancher.
FloatVarBranch FLOAT_VAR_NONE(void)
Select first unassigned variable.
Post propagator for SetVar x