float.hh
Go to the documentation of this file.
167 RandomAssignment(int n, const Gecode::FloatVal& d, int a0, Gecode::Support::RandomGenerator& rand);
234 void assign(const Assignment& a, MaybeType& sol, bool skip, Gecode::Support::RandomGenerator& rand);
388GECODE_TESTFLOAT_EXPORT std::ostream& operator<<(std::ostream& os, const Test::Float::Assignment& a);
Assignment(int n0, const Gecode::FloatVal &d0)
Initialize assignments for n0 variables and values d0.
Definition float.hpp:45
virtual void next(Gecode::Support::RandomGenerator &rand)=0
Move to next assignment.
virtual bool has_more(void) const =0
Test whether all assignments have been iterated.
virtual Gecode::FloatVal operator[](int i) const =0
Return value for variable i.
virtual void set(int i, const Gecode::FloatVal &val)=0
Set assignment to value val for variable i.
virtual void next(Gecode::Support::RandomGenerator &rand)
Move to next assignment.
Definition float.cpp:50
virtual bool has_more(void) const
Test whether all assignments have been iterated.
Definition float.hpp:64
virtual void set(int i, const Gecode::FloatVal &val)
Set assignment to value val for variable i.
Definition float.hpp:73
CpltAssignment(int n, const Gecode::FloatVal &d, Gecode::FloatNum s)
Initialize assignments for n variables and values d with step s.
Definition float.hpp:55
virtual bool has_more(void) const
Test whether all assignments have been iterated.
Definition float.hpp:94
virtual void set(int i, const Gecode::FloatVal &val)
Set assignment to value val for variable i.
Definition float.hpp:103
virtual void next(Gecode::Support::RandomGenerator &rand)
Move to next assignment.
Definition float.cpp:67
ExtAssignment(int n, const Gecode::FloatVal &d, Gecode::FloatNum s, const Test *pb, Gecode::Support::RandomGenerator &rand)
Initialize assignments for n variables and values d with step s.
Definition float.hpp:83
virtual void next(Gecode::Support::RandomGenerator &rand)
Move to next assignment.
Definition float.cpp:89
virtual Gecode::FloatVal operator[](int i) const
Return value for variable i.
Definition float.hpp:142
virtual void set(int i, const Gecode::FloatVal &val)
Set assignment to value val for variable i.
Definition float.hpp:147
RandomAssignment(int n, const Gecode::FloatVal &d, int a0, Gecode::Support::RandomGenerator &rand)
Initialize for a assignments for n variables and values d.
Definition float.hpp:131
Gecode::FloatNum randval(Gecode::Support::RandomGenerator &rand)
Definition float.hpp:113
int a
How many assignments still to be generated Generate new value according to domain.
Definition float.hh:162
virtual bool has_more(void) const
Test whether all assignments have been iterated.
Definition float.hpp:138
void bound(Gecode::Support::RandomGenerator &rand)
Assign a random variable to a random bound.
Definition float.cpp:288
void prune(int i, Gecode::Support::RandomGenerator &rand)
Prune some random values from variable i.
Definition float.cpp:332
Gecode::FloatNum cut(int *cutDirections)
Cut the bigger variable to an half sized interval. It returns the new size of the cut interval....
Definition float.cpp:303
bool matchAssignment(const Assignment &a) const
Test whether all variables match assignment a.
Definition float.cpp:211
void disable(void)
Disable propagators in space and compute fixpoint (make all idle).
Definition float.cpp:191
TestSpace(int n, Gecode::FloatVal &d, Gecode::FloatNum s, Test *t)
Create test space.
Definition float.cpp:143
virtual void dropUntil(const Assignment &a)
Add constraints to skip solutions to the a assignment.
Definition float.cpp:197
void assign(const Assignment &a, MaybeType &sol, bool skip, Gecode::Support::RandomGenerator &rand)
Assign all (or all but one, if skip is true) variables to values in a If assignment of a variable is ...
Definition float.cpp:270
void rel(int i, Gecode::FloatRelType frt, Gecode::FloatVal n)
Perform integer tell operation on x[i].
Definition float.cpp:244
int rms
Supported reification modes, encoded as a bit mask of 1 << Gecode::RM_*.
Definition float.hh:272
static MaybeType eq(Gecode::FloatVal x, Gecode::FloatVal y)
Whether x and y are equal.
Definition float.hpp:281
static MaybeType cmp(Gecode::FloatVal x, Gecode::FloatRelType r, Gecode::FloatVal y)
Compare x and y with respect to r.
Definition float.hpp:248
virtual bool extendAssignment(Assignment &a) const
Complete the current assignment to get a feasible one (which satisfies all constraint)....
Definition float.cpp:435
bool eqv(void) const
Test whether equivalence as reification mode is supported.
Definition float.hpp:161
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)=0
Post constraint.
static std::string str(Gecode::FloatRelType frt)
Map float relation to string.
Definition float.hpp:207
bool pmi(void) const
Test whether reverse implication as reification mode is supported.
Definition float.hpp:169
bool subsumed(const TestSpace &ts) const
Test if ts is subsumed or not (i.e. if there is no more propagator unless the assignment is an extend...
Definition float.cpp:441
virtual bool ignore(const Assignment &a) const
Whether to ignore assignment for reification.
Definition float.cpp:469
virtual MaybeType solution(const Assignment &) const =0
Check an interval assignment using MT_TRUE, MT_FALSE, or MT_MAYBE; see cmp().
bool imp(void) const
Test whether implication as reification mode is supported.
Definition float.hpp:165
LinearCongruentialGenerator< 2147483647, 48271, 44488, 3399 > RandomGenerator
Default values for linear congruential generator.
Definition random.hpp:183
MaybeType operator&(MaybeType a, MaybeType b)
Three-valued conjunction of MaybeType.
Definition float.hpp:291
std::basic_ostream< Char, Traits > & operator<<(std::basic_ostream< Char, Traits > &os, const Dictionary &d)
Print statistics summary.
Definition scowl.hpp:13625
