StressElement Class Reference
[Example scripts (models)]
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 37 of file stress-element.cc.
Public Member Functions | |
StressElement (const Options &opt) | |
The actual problem. | |
StressElement (bool share, StressElement &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (void) |
Print solution. | |
Protected Attributes | |
IntVarArray | x |
Variables. |
Constructor & Destructor Documentation
StressElement::StressElement | ( | const Options & | opt | ) | [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 70 of file stress-element.cc.
virtual void StressElement::print | ( | void | ) | [inline, virtual] |
Member Data Documentation
IntVarArray StressElement::x [protected] |
The documentation for this class was generated from the following file:
- examples/stress-element.cc (Revision: 3517)