Detailed Description
template<class T>
class gcg::RowGraph< T >
Definition at line 45 of file rowgraph.h.
#include <rowgraph.h>
Public Member Functions | |
RowGraph (SCIP *scip, Weights w) | |
virtual | ~RowGraph () |
virtual SCIP_RETCODE | createDecompFromPartition (DEC_DECOMP **decomp) |
virtual SCIP_RETCODE | createPartialdecFromPartition (PARTIALDECOMP *oldpartialdec, PARTIALDECOMP **firstpartialdec, PARTIALDECOMP **secondpartialdec, DETPROBDATA *detprobdata) |
virtual SCIP_RETCODE | createFromMatrix (SCIP_CONS **conss, SCIP_VAR **vars, int nconss_, int nvars_) |
Public Member Functions inherited from gcg::MatrixGraph< T > | |
MatrixGraph (SCIP *scip, Weights w) | |
virtual | ~MatrixGraph () |
virtual SCIP_RETCODE | writeToFile (int fd, SCIP_Bool writeweights) |
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 |
Protected Attributes | |
gcg::Graph< T > | graph |
Protected Attributes inherited from gcg::MatrixGraph< T > | |
SCIP * | scip_ |
int | nconss |
int | nvars |
int | dummynodes |
Weights | weights |
GraphInterface * | graphiface |
int | nnonzeroes |
Additional Inherited Members | |
Data Fields inherited from gcg::MatrixGraph< T > | |
std::string | name |
Constructor & Destructor Documentation
◆ RowGraph()
gcg::RowGraph< T >::RowGraph | ( | SCIP * | scip, |
Weights | w | ||
) |
- Parameters
-
scip SCIP data structure w weights for the given graph
Definition at line 46 of file rowgraph_def.h.
References gcg::RowGraph< T >::graph, gcg::MatrixGraph< T >::graphiface, and gcg::MatrixGraph< T >::name.
◆ ~RowGraph()
|
virtual |
Definition at line 56 of file rowgraph_def.h.
Member Function Documentation
◆ createDecompFromPartition()
|
virtual |
- Parameters
-
decomp decomposition structure to generate
Reimplemented from gcg::MatrixGraph< T >.
Definition at line 62 of file rowgraph_def.h.
References DECdecompCreate(), DECfilloutDecompFromConstoblock(), and partition().
◆ createPartialdecFromPartition()
|
virtual |
amplifies a partialdec by dint of a graph created with open constraints and open variables of the partialdec
stores the conss included by the graph
< true, if the cons will be part of the graph
- Parameters
-
oldpartialdec partialdec which should be amplifies firstpartialdec pointer to buffer the new partialdec amplified by dint of the graph secondpartialdec pointer to buffer the new partialdec whose border is amplified by dint of the graph detprobdata datprobdata the partialdecs correspond to
Reimplemented from gcg::MatrixGraph< T >.
Definition at line 131 of file rowgraph_def.h.
References gcg::PARTIALDECOMP::getNConss(), gcg::PARTIALDECOMP::getNOpenconss(), gcg::PARTIALDECOMP::getNOpenvars(), gcg::DETPROBDATA::getNVarsForCons(), gcg::PARTIALDECOMP::getOpenconss(), gcg::PARTIALDECOMP::getOpenvars(), gcg::DETPROBDATA::getVarsForCons(), and partition().
Referenced by DEC_DECL_PROPAGATEPARTIALDEC().
◆ 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 243 of file rowgraph_def.h.
References GCGisVarRelevant().
Field Documentation
◆ graph
|
protected |
Definition at line 48 of file rowgraph.h.
Referenced by gcg::RowGraph< T >::RowGraph().