Generated on Sat Feb 7 2015 02:01:54 for Gecode by doxygen 1.8.9.1
Test::Float::Linear::FloatFloat Class Reference

Test linear relation over float variables More...

Public Member Functions

 FloatFloat (const std::string &s, const Gecode::FloatVal &d, const Gecode::FloatValArgs &a0, Gecode::FloatRelType frt0, Gecode::FloatNum c0, Gecode::FloatNum st)
 Create and register test. More...
 
virtual MaybeType solution (const Assignment &x) const
 Test whether x is solution More...
 
virtual void post (Gecode::Space &home, Gecode::FloatVarArray &x)
 Post constraint on x. More...
 
virtual void post (Gecode::Space &home, Gecode::FloatVarArray &x, Gecode::Reify r)
 Post reified constraint on x for r. More...
 
- Public Member Functions inherited from Test::Float::Test
 Test (const std::string &s, int a, const Gecode::FloatVal &d, Gecode::FloatNum st, AssignmentType at, bool r)
 Constructor. More...
 
 Test (const std::string &s, int a, Gecode::FloatNum min, Gecode::FloatNum max, Gecode::FloatNum st, AssignmentType at, bool r)
 Constructor. More...
 
virtual Assignmentassignment (void) const
 Create assignment. More...
 
virtual bool extendAssignement (Assignment &a) const
 Complete the current assignment to get a feasible one (which satisfies all constraint). If such an assignment is computed, it returns true, false otherwise. More...
 
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 extended assigment. More...
 
virtual bool ignore (const Assignment &a) const
 Whether to ignore assignment for reification. More...
 
virtual bool run (void)
 Perform test. More...
 
bool flip (void)
 Flip a coin and return true or false randomly. More...
 
- Public Member Functions inherited from Test::Base
 Base (const std::string &s)
 Create and register test with name s. More...
 
const std::string & name (void) const
 Return name of test. More...
 
Basenext (void) const
 Return next test. More...
 
void next (Base *n)
 Set next test. More...
 
virtual ~Base (void)
 Destructor. More...
 

Protected Attributes

Gecode::FloatValArgs a
 Coefficients. More...
 
Gecode::FloatRelType frt
 Float relation type to propagate. More...
 
Gecode::FloatNum c
 Result. More...
 
- Protected Attributes inherited from Test::Float::Test
int arity
 Number of variables. More...
 
Gecode::FloatVal dom
 Domain of variables. More...
 
Gecode::FloatNum step
 Step for going to next solution. More...
 
AssignmentType assigmentType
 Gives the type of assignment to use. More...
 
bool reified
 Does the constraint also exist as reified constraint. More...
 
int rms
 Which reification modes are supported. More...
 
bool testsearch
 Whether to perform search test. More...
 
bool testfix
 Whether to perform fixpoint test. More...
 
bool testsubsumed
 Whether to test for subsumption. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Test::Float::Test
static std::string str (Gecode::FloatRelType frt)
 Map float relation to string. More...
 
static std::string str (Gecode::FloatNum f)
 Map floatNum to string. More...
 
static std::string str (Gecode::FloatVal f)
 Map floatVal to string. More...
 
static std::string str (const Gecode::FloatValArgs &f)
 Map float array to string. More...
 
static MaybeType cmp (Gecode::FloatVal x, Gecode::FloatRelType r, Gecode::FloatVal y)
 Compare x and y with respect to r. More...
 
static MaybeType eq (Gecode::FloatVal x, Gecode::FloatVal y)
 Whether x and y are equal. More...
 
- Static Public Member Functions inherited from Test::Base
static void sort (void)
 Sort tests alphabetically. More...
 
static Basetests (void)
 Return all tests. More...
 
static bool fixpoint (void)
 Throw a coin whether to compute a fixpoint. More...
 
- Static Public Attributes inherited from Test::Base
static Gecode::Support::RandomGenerator rand = Gecode::Support::RandomGenerator()
 Random number generator. More...
 
- Protected Member Functions inherited from Test::Float::Test
bool eqv (void) const
 Test whether equivalence as reification mode is supported. More...
 
bool imp (void) const
 Test whether implication as reification mode is supported. More...
 
bool pmi (void) const
 Test whether reverse implication as reification mode is supported. More...
 

Detailed Description

Test linear relation over float variables

Definition at line 63 of file linear.cpp.

Constructor & Destructor Documentation

Test::Float::Linear::FloatFloat::FloatFloat ( const std::string &  s,
const Gecode::FloatVal d,
const Gecode::FloatValArgs a0,
Gecode::FloatRelType  frt0,
Gecode::FloatNum  c0,
Gecode::FloatNum  st 
)
inline

Create and register test.

Definition at line 73 of file linear.cpp.

Member Function Documentation

virtual MaybeType Test::Float::Linear::FloatFloat::solution ( const Assignment x) const
inlinevirtual

Test whether x is solution

Implements Test::Float::Test.

Definition at line 87 of file linear.cpp.

virtual void Test::Float::Linear::FloatFloat::post ( Gecode::Space home,
Gecode::FloatVarArray x 
)
inlinevirtual

Post constraint on x.

Implements Test::Float::Test.

Definition at line 110 of file linear.cpp.

virtual void Test::Float::Linear::FloatFloat::post ( Gecode::Space home,
Gecode::FloatVarArray x,
Gecode::Reify  r 
)
inlinevirtual

Post reified constraint on x for r.

Reimplemented from Test::Float::Test.

Definition at line 117 of file linear.cpp.

Member Data Documentation

Gecode::FloatValArgs Test::Float::Linear::FloatFloat::a
protected

Coefficients.

Definition at line 66 of file linear.cpp.

Gecode::FloatRelType Test::Float::Linear::FloatFloat::frt
protected

Float relation type to propagate.

Definition at line 68 of file linear.cpp.

Gecode::FloatNum Test::Float::Linear::FloatFloat::c
protected

Result.

Definition at line 70 of file linear.cpp.


The documentation for this class was generated from the following file: