70 operator bool(
void)
const;
102 template<
class Char,
class Traits>
103 std::basic_ostream<Char,Traits>&
121 AFC::operator bool(
void)
const {
129 if ((
d < 0.0) || (
d > 1.0))
131 static_cast<Space&>(home).afc_decay(
d);
137 if ((
d < 0.0) || (
d > 1.0))
139 static_cast<Space&>(home).afc_decay(
d);
161 if ((
d < 0.0) || (
d > 1.0))
172 template<
class Char,
class Traits>
173 std::basic_ostream<Char,Traits>&
177 return os <<
"AFC(no information available)";
void init(Home home, const VarArgArray< Var > &x, double d)
Initialize for views x and decay factor d.
void afc_decay(double d)
Set AFC decay factor to d
AFC(void)
Construct as not yet intialized.
struct Gecode::@579::NNF::@61::@63 a
For atomic nodes.
Class for AFC (accumulated failure count) management.
int n
Number of negative literals for node type.
unsigned int size(I &i)
Size of all ranges of range iterator i.
int size(void) const
Return number of AFC values.
#define GECODE_KERNEL_EXPORT
void decay(Space &home, double d)
Set decay factor to d.
static const AFC def
Default (empty) AFC information.
Post propagator for SetVar x
Archive & operator<<(Archive &e, FloatNumBranch nl)
Gecode toplevel namespace
Argument array for variables.
void update(Space &home, bool share, AFC &a)
Updating during cloning.
AFC & operator=(const AFC &a)
Assignment operator.
Exception: illegal decay factor
Home class for posting propagators