Generated on Wed Feb 7 10:28:46 2018 for Gecode by doxygen 1.6.3

Steiner Class Reference
[Example scripts (models)]

Example: Steiner triples More...

List of all members.

Public Types


Model variants.


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

Definition at line 52 of file steiner.cpp.

Member Enumeration Documentation

anonymous enum

Model variants.


Use simple relation constraint.


Use matching constraints.


Use sequence constraints.

Definition at line 55 of file steiner.cpp.

Constructor & Destructor Documentation

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

Actual model.

Definition at line 69 of file steiner.cpp.

Steiner::Steiner ( Steiner s  )  [inline]

Constructor for copying s.

Definition at line 141 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 135 of file steiner.cpp.

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

Copy during cloning.

Definition at line 146 of file steiner.cpp.

Member Data Documentation

Order of the Steiner problem.

Definition at line 61 of file steiner.cpp.

Number of Steiner triples.

Definition at line 63 of file steiner.cpp.

The steiner triples.

Definition at line 66 of file steiner.cpp.

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