Inherits
Example.
List of all members.
Detailed Description
Example: Independent Sets in a Graph
Definition at line 63 of file ind-set.cc.
|
Public Member Functions |
| IndSet (const Options &opt) |
| Actual model.
|
| IndSet (bool share, IndSet &s) |
| Constructor for cloning s.
|
virtual Space * | copy (bool share) |
| Copy during cloning.
|
virtual void | print (void) |
| Print solution.
|
void | constrain (Space *s) |
| Add constraint for next better solution.
|
Protected Attributes |
const Graph & | g |
| Graph used.
|
BoolVarArray | v |
| Whether vertex included in independent set.
|
IntVar | k |
| How many elements has indipendent set.
|
Constructor & Destructor Documentation
IndSet::IndSet |
( |
const Options & |
opt |
) |
[inline] |
IndSet::IndSet |
( |
bool |
share, |
|
|
IndSet & |
s | |
|
) |
| | [inline] |
Constructor for cloning s.
Definition at line 85 of file ind-set.cc.
Member Function Documentation
virtual Space* IndSet::copy |
( |
bool |
share |
) |
[inline, virtual] |
virtual void IndSet::print |
( |
void |
|
) |
[inline, virtual] |
void IndSet::constrain |
( |
Space * |
s |
) |
[inline] |
Add constraint for next better solution.
Definition at line 107 of file ind-set.cc.
Member Data Documentation
Whether vertex included in independent set.
Definition at line 68 of file ind-set.cc.
How many elements has indipendent set.
Definition at line 70 of file ind-set.cc.
The documentation for this class was generated from the following file: