Generated on Thu Oct 26 14:25:52 2006 for Gecode by doxygen 1.4.7

StressElement Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


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 Spacecopy (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]

The actual problem.

Definition at line 43 of file stress-element.cc.

StressElement::StressElement ( bool  share,
StressElement s 
) [inline]

Constructor for cloning s.

Definition at line 64 of file stress-element.cc.


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]

Print solution.

Reimplemented from Example.

Definition at line 76 of file stress-element.cc.


Member Data Documentation

Variables.

Definition at line 40 of file stress-element.cc.


The documentation for this class was generated from the following file: