StressElement Class Reference
[Scripts for stress tests]
Inherits Example.
Detailed Description
Example: Stress test for element constraint (involving integers)This stress test is an adaption of the benchmark for element posted by Neng-Fa Zhou for B-Prolog, November, 2005.
Definition at line 49 of file stress-element.cc.
Public Member Functions | |
StressElement (const Options &) | |
The actual problem. | |
StressElement (bool share, StressElement &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (std::ostream &os) |
Print solution. | |
Protected Attributes | |
IntVarArray | x |
Variables. | |
Static Protected Attributes | |
static const int | n = 15 |
Number of elements in array. | |
static const int | m = 90 |
Largest number. | |
static const int | p [n] = {16,35,90,42,88,6,40,42,64,48,46,5,90,29,70} |
Array arguments. |
Constructor & Destructor Documentation
StressElement::StressElement | ( | const Options & | ) | [inline] |
StressElement::StressElement | ( | bool | share, | |
StressElement & | s | |||
) | [inline] |
Member Function Documentation
virtual Space* StressElement::copy | ( | bool | share | ) | [inline, virtual] |
Perform copying during cloning.
Implements Gecode::Space.
Definition at line 87 of file stress-element.cc.
virtual void StressElement::print | ( | std::ostream & | os | ) | [inline, virtual] |
Member Data Documentation
const int StressElement::n = 15 [static, protected] |
const int StressElement::m = 90 [static, protected] |
const int StressElement::p = {16,35,90,42,88,6,40,42,64,48,46,5,90,29,70} [static, protected] |
IntVarArray StressElement::x [protected] |
The documentation for this class was generated from the following file:
- examples/stress-element.cc (Revision: 5524)