Generated on Tue May 22 09:40:50 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 48 of file steiner.cpp.

Member Enumeration Documentation

anonymous enum

Model variants.


Use simple relation constraint.


Use matching constraints.


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 137 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 131 of file steiner.cpp.

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

Copy during cloning.

Definition at line 142 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: