Test::Float::MiniModelLin::LinRel Class Reference
[Minimal modeling constraints (linear constraints)]
Test linear relations over float variables More...
Public Member Functions | |
LinRel (const LinInstr *l_lis0, const LinInstr *r_lis0, Gecode::FloatRelType frt0, const std::string &s) | |
Create and register test. | |
virtual bool | solution (const Int::Assignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
Post constraint on x. | |
Protected Attributes | |
const LinInstr * | l_lis |
Linear instruction sequence for left hand side. | |
const LinInstr * | r_lis |
Linear instruction sequence for right hand side. | |
Gecode::FloatRelType | frt |
Float relation type to propagate. |
Detailed Description
Test linear relations over float variables
Definition at line 118 of file mm-lin.cpp.
Constructor & Destructor Documentation
Test::Float::MiniModelLin::LinRel::LinRel | ( | const LinInstr * | l_lis0, | |
const LinInstr * | r_lis0, | |||
Gecode::FloatRelType | frt0, | |||
const std::string & | s | |||
) | [inline] |
Create and register test.
Definition at line 128 of file mm-lin.cpp.
Member Function Documentation
virtual bool Test::Float::MiniModelLin::LinRel::solution | ( | const Int::Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Float::MiniModelLin::LinRel::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
Member Data Documentation
const LinInstr* Test::Float::MiniModelLin::LinRel::l_lis [protected] |
Linear instruction sequence for left hand side.
Definition at line 121 of file mm-lin.cpp.
const LinInstr* Test::Float::MiniModelLin::LinRel::r_lis [protected] |
Linear instruction sequence for right hand side.
Definition at line 123 of file mm-lin.cpp.
Float relation type to propagate.
Definition at line 125 of file mm-lin.cpp.
The documentation for this class was generated from the following file:
- test/float/mm-lin.cpp