Test::Int::MiniModelLin::LinRelMixed Class Reference
[Minimal modeling constraints (linear constraints)]
Test linear relations over integer and Boolean variables More...
Public Member Functions | |
LinRelMixed (const LinInstr *l_lis0, const LinInstr *r_lis0, Gecode::IntRelType irt0, const std::string &s) | |
Create and register test. | |
virtual bool | solution (const Assignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
Post constraint on x. | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x, Gecode::BoolVar b) |
Post constraint on x for b. | |
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::IntRelType | irt |
Integer relation type to propagate. |
Detailed Description
Test linear relations over integer and Boolean variables
Definition at line 374 of file mm-lin.cpp.
Constructor & Destructor Documentation
Test::Int::MiniModelLin::LinRelMixed::LinRelMixed | ( | const LinInstr * | l_lis0, | |
const LinInstr * | r_lis0, | |||
Gecode::IntRelType | irt0, | |||
const std::string & | s | |||
) | [inline] |
Create and register test.
Definition at line 384 of file mm-lin.cpp.
Member Function Documentation
virtual bool Test::Int::MiniModelLin::LinRelMixed::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Int::MiniModelLin::LinRelMixed::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
virtual void Test::Int::MiniModelLin::LinRelMixed::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x, | |||
Gecode::BoolVar | b | |||
) | [inline, virtual] |
Post constraint on x for b.
Reimplemented from Test::Int::Test.
Definition at line 425 of file mm-lin.cpp.
Member Data Documentation
const LinInstr* Test::Int::MiniModelLin::LinRelMixed::l_lis [protected] |
Linear instruction sequence for left hand side.
Definition at line 377 of file mm-lin.cpp.
const LinInstr* Test::Int::MiniModelLin::LinRelMixed::r_lis [protected] |
Linear instruction sequence for right hand side.
Definition at line 379 of file mm-lin.cpp.
Integer relation type to propagate.
Definition at line 381 of file mm-lin.cpp.
The documentation for this class was generated from the following file:
- test/int/mm-lin.cpp (Revision: 10907)