Test::Int::GCC::VarSome Class Reference
[Counting constraints (global cardinality)]
Test for variable cardinality for some cardinality values More...
Public Member Functions | |
VarSome (std::string s, int n0, int min, int max, Gecode::IntConLevel icl) | |
Create and register test. | |
virtual bool | solution (const Assignment &x) const |
Test whether x is solution | |
virtual Assignment * | assignment (void) const |
Create and register initial assignment. | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &xy) |
Post constraint on xy. | |
Protected Attributes | |
int | n |
Number of non-cardinality variables. | |
Static Protected Attributes | |
static const int | randomArity = 7 |
Arity beyond which to use randomized tests. |
Detailed Description
Test for variable cardinality for some cardinality values
Definition at line 232 of file gcc.cpp.
Constructor & Destructor Documentation
Test::Int::GCC::VarSome::VarSome | ( | std::string | s, | |
int | n0, | |||
int | min, | |||
int | max, | |||
Gecode::IntConLevel | icl | |||
) | [inline] |
Member Function Documentation
virtual bool Test::Int::GCC::VarSome::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual Assignment* Test::Int::GCC::VarSome::assignment | ( | void | ) | const [inline, virtual] |
Create and register initial assignment.
Reimplemented from Test::Int::Test.
virtual void Test::Int::GCC::VarSome::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | xy | |||
) | [inline, virtual] |
Member Data Documentation
int Test::Int::GCC::VarSome::n [protected] |
const int Test::Int::GCC::VarSome::randomArity = 7 [static, protected] |
The documentation for this class was generated from the following file:
- test/int/gcc.cpp (Revision: 10684)