Detailed Description
class gcg::ColumnGraph< T >
Definition at line 45 of file columngraph.h.
#include <columngraph.h>
Public Member Functions | |
| ColumnGraph (GCG *gcg, Weights w) | |
| virtual | ~ColumnGraph () |
| virtual SCIP_RETCODE | createDecompFromPartition (GCG_DECOMP **decomp) |
| virtual SCIP_RETCODE | createFromMatrix (SCIP_CONS **conss, SCIP_VAR **vars, int nconss_, int nvars_) |
| Public Member Functions inherited from gcg::MatrixGraph< T > | |
| MatrixGraph (GCG *gcgstruct, Weights w) | |
| virtual | ~MatrixGraph () |
| virtual SCIP_RETCODE | writeToFile (int fd, SCIP_Bool writeweights) |
| virtual SCIP_RETCODE | createPartialdecFromPartition (PARTIALDECOMP *oldpartialdec, PARTIALDECOMP **firstpartialdec, PARTIALDECOMP **secondpartialdec, DETPROBDATA *detprobdata) |
| virtual SCIP_RETCODE | readPartition (const char *filename) |
| void | setDummynodes (int dummynodes_) |
| int | getDummynodes () const |
| virtual std::vector< int > | getPartition () |
| virtual SCIP_RETCODE | createFromPartialMatrix (DETPROBDATA *detprobdata, PARTIALDECOMP *partialdec) |
| virtual int | getNNonzeroes () const |
Additional Inherited Members | |
| Data Fields inherited from gcg::MatrixGraph< T > | |
| std::string | name |
| Protected Attributes inherited from gcg::MatrixGraph< T > | |
| GCG * | gcg |
| int | nconss |
| int | nvars |
| int | dummynodes |
| Weights | weights |
| GraphInterface * | graphiface |
| int | nnonzeroes |
Constructor & Destructor Documentation
◆ ColumnGraph()
| gcg::ColumnGraph< T >::ColumnGraph | ( | GCG * | gcg, |
| Weights | w ) |
- Parameters
-
gcg GCG data structure w weights for the given graph
Definition at line 48 of file columngraph_def.h.
References gcg::MatrixGraph< T >::graphiface, gcg::MatrixGraph< T >::MatrixGraph(), and gcg::MatrixGraph< T >::name.
◆ ~ColumnGraph()
|
virtual |
Definition at line 58 of file columngraph_def.h.
Member Function Documentation
◆ createDecompFromPartition()
|
virtual |
- Parameters
-
decomp decomposition structure to generate
Reimplemented from gcg::MatrixGraph< T >.
Definition at line 64 of file columngraph_def.h.
References GCGdecompCreate(), GCGfilloutDecompFromConstoblock(), GCGgetOrigprob(), i, gcg::MatrixGraph< T >::nconss, SCIP_CALL(), SCIPdebugMessage(), and SCIPfreeBufferArray().
◆ createFromMatrix()
|
virtual |
- Parameters
-
conss constraints for which graph should be created vars variables for which graph should be created nconss_ number of constraints nvars_ number of variables
Reimplemented from gcg::MatrixGraph< T >.
Definition at line 118 of file columngraph_def.h.
References assert(), GCGgetOrigprob(), GCGisVarRelevant(), i, j, gcg::MatrixGraph< T >::nconss, gcg::MatrixGraph< T >::nvars, SCIP_CALL(), SCIPfreeBufferArray(), success, vars, and gcg::MatrixGraph< T >::weights.