Steiner Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: Steiner triplesSee also problem 044 at http://www.csplib.org/.
Definition at line 49 of file steiner.cc.
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) |
Print solution. | |
Steiner (bool share, Steiner &s) | |
Constructor for copying s. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
Public Attributes | |
int | n |
Order of the Steiner problem. | |
int | noOfTriples |
Number of Steiner triples. | |
SetVarArray | triples |
The steiner triples. |
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 53 of file steiner.cc.
Constructor & Destructor Documentation
Steiner::Steiner | ( | const SizeOptions & | opt | ) | [inline] |
Steiner::Steiner | ( | bool | share, | |
Steiner & | s | |||
) | [inline] |
Member Function Documentation
virtual void Steiner::print | ( | std::ostream & | os | ) | [inline, virtual] |
virtual Space* Steiner::copy | ( | bool | share | ) | [inline, virtual] |
Member Data Documentation
int Steiner::n |
The documentation for this class was generated from the following file:
- examples/steiner.cc (Revision: 6428)