Generated on Fri Oct 19 11:25:42 2018 for Gecode by doxygen 1.6.3

Steiner Class Reference
[Example scripts (models)]

Example: Steiner triples More...

List of all members.

Public Types

enum  { MODEL_NONE, MODEL_MATCHING, MODEL_SEQ }
 

Model variants.

More...

Public Member Functions

 Steiner (const SizeOptions &opt)
 Actual model.
virtual void print (std::ostream &os) const
 Print solution.
 Steiner (Steiner &s)
 Constructor for copying s.
virtual Spacecopy (void)
 Copy during cloning.

Public Attributes

int n
 Order of the Steiner problem.
int noOfTriples
 Number of Steiner triples.
SetVarArray triples
 The steiner triples.

Detailed Description

Example: Steiner triples

See also problem 044 at http://www.csplib.org/.

Definition at line 48 of file steiner.cpp.


Member Enumeration Documentation

anonymous enum

Model variants.

Enumerator:
MODEL_NONE 

Use simple relation constraint.

MODEL_MATCHING 

Use matching constraints.

MODEL_SEQ 

Use sequence constraints.

Definition at line 51 of file steiner.cpp.


Constructor & Destructor Documentation

Steiner::Steiner ( const SizeOptions opt  )  [inline]

Actual model.

Definition at line 65 of file steiner.cpp.

Steiner::Steiner ( Steiner s  )  [inline]

Constructor for copying s.

Definition at line 139 of file steiner.cpp.


Member Function Documentation

virtual void Steiner::print ( std::ostream &  os  )  const [inline, virtual]

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 133 of file steiner.cpp.

virtual Space* Steiner::copy ( void   )  [inline, virtual]

Copy during cloning.

Definition at line 144 of file steiner.cpp.


Member Data Documentation

Order of the Steiner problem.

Definition at line 57 of file steiner.cpp.

Number of Steiner triples.

Definition at line 59 of file steiner.cpp.

The steiner triples.

Definition at line 62 of file steiner.cpp.


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