43 using namespace Float;
50 postviewvalbrancher<FloatView,1,FloatNumBranch,2>
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);
84 postviewvalbrancher<FloatView,2,FloatNumBranch,2>
85 (home,xv,vs,vsc,bf,vvp);
91 postviewvalbrancher<FloatView,3,FloatNumBranch,2>
92 (home,xv,vs,vsc,bf,vvp);
98 postviewvalbrancher<FloatView,4,FloatNumBranch,2>
99 (home,xv,vs,vsc,bf,vvp);
115 using namespace Float;
116 if (home.
failed())
return;
121 postviewvalbrancher<FloatView,1,FloatNumBranch,1>
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);
155 postviewvalbrancher<FloatView,2,FloatNumBranch,1>
156 (home,xv,vs,vsc,bf,vvp);
162 postviewvalbrancher<FloatView,3,FloatNumBranch,1>
163 (home,xv,vs,vsc,bf,vvp);
169 postviewvalbrancher<FloatView,4,FloatNumBranch,1>
170 (home,xv,vs,vsc,bf,vvp);
Node * x
Pointer to corresponding Boolean expression node.
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.
FloatVarBranch FLOAT_VAR_NONE(void)
Select first unassigned variable.
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.
std::function< bool(const Space &home, FloatVar x, int i)> FloatBranchFilter
Branch filter function type for float variables.
void branch(Home home, SetVar x, SetValBranch vals, SetVarValPrint vvp)
Branch over x with value selection vals.
void assign(Home home, SetVar x, SetAssign vars, SetVarValPrint vvp)
Assign x with value selection vals.
ValSelCommitBase< FloatView, FloatNumBranch > * valselcommit(Space &home, const FloatValBranch &fvb)
Return value and commit for float views.
ViewSel< FloatView > * viewsel(Space &home, const FloatVarBranch &fvb)
Return view selectors for float views.