StressMin Class Reference
[Scripts for stress tests]
Example: Stress test for the minimum constraint More...
Public Member Functions | |
StressMin (const SizeOptions &opt) | |
The actual problem. | |
StressMin (bool share, StressMin &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
Protected Attributes | |
const int | n |
Size of problem. | |
IntVarArray | x |
Variables. |
Detailed Description
Example: Stress test for the minimum constraint
Definition at line 49 of file stress-min.cpp.
Constructor & Destructor Documentation
StressMin::StressMin | ( | const SizeOptions & | opt | ) | [inline] |
The actual problem.
Definition at line 57 of file stress-min.cpp.
StressMin::StressMin | ( | bool | share, | |
StressMin & | s | |||
) | [inline] |
Constructor for cloning s.
Definition at line 71 of file stress-min.cpp.
Member Function Documentation
virtual Space* StressMin::copy | ( | bool | share | ) | [inline, virtual] |
Perform copying during cloning.
Definition at line 77 of file stress-min.cpp.
virtual void StressMin::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Definition at line 83 of file stress-min.cpp.
Member Data Documentation
const int StressMin::n [protected] |
Size of problem.
Definition at line 52 of file stress-min.cpp.
IntVarArray StressMin::x [protected] |
Variables.
Definition at line 54 of file stress-min.cpp.
The documentation for this class was generated from the following file:
- examples/stress-min.cpp (Revision: 9095)