Test::Float::Linear::FloatVar Class Reference
[Linear constraints]
Test linear relation over float variables More...
Public Member Functions | |
FloatVar (const std::string &s, const Gecode::FloatVal &d, const Gecode::FloatValArgs &a0, Gecode::FloatRelType frt0, Gecode::FloatNum st) | |
Create and register test. | |
virtual MaybeType | solution (const Assignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::FloatVarArray &x) |
Post constraint on x. | |
virtual void | post (Gecode::Space &home, Gecode::FloatVarArray &x, Gecode::Reify r) |
Post reified constraint on x for r. | |
Protected Attributes | |
Gecode::FloatValArgs | a |
Coefficients. | |
Gecode::FloatRelType | frt |
Float relation type to propagate. |
Detailed Description
Test linear relation over float variables
Definition at line 123 of file linear.cpp.
Constructor & Destructor Documentation
Test::Float::Linear::FloatVar::FloatVar | ( | const std::string & | s, | |
const Gecode::FloatVal & | d, | |||
const Gecode::FloatValArgs & | a0, | |||
Gecode::FloatRelType | frt0, | |||
Gecode::FloatNum | st | |||
) | [inline] |
Create and register test.
Definition at line 131 of file linear.cpp.
Member Function Documentation
virtual MaybeType Test::Float::Linear::FloatVar::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Float::Linear::FloatVar::post | ( | Gecode::Space & | home, | |
Gecode::FloatVarArray & | x | |||
) | [inline, virtual] |
virtual void Test::Float::Linear::FloatVar::post | ( | Gecode::Space & | home, | |
Gecode::FloatVarArray & | x, | |||
Gecode::Reify | r | |||
) | [inline, virtual] |
Post reified constraint on x for r.
Reimplemented from Test::Float::Test.
Definition at line 177 of file linear.cpp.
Member Data Documentation
Gecode::FloatValArgs Test::Float::Linear::FloatVar::a [protected] |
Coefficients.
Definition at line 126 of file linear.cpp.
Float relation type to propagate.
Definition at line 128 of file linear.cpp.
The documentation for this class was generated from the following file:
- test/float/linear.cpp