Scippy

GCG

Branch-and-Price & Column Generation for Everyone

gcg::RowGraph< T > Class Template Reference

Detailed Description

template<class T>
class gcg::RowGraph< T >

Definition at line 46 of file rowgraph.h.

#include <rowgraph.h>

Public Member Functions

 RowGraph (GCG *gcg, Weights w)
 
virtual ~RowGraph ()
 
virtual SCIP_RETCODE createDecompFromPartition (GCG_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 (GCG *gcgstruct, Weights w)
 
virtual ~MatrixGraph ()
 
virtual SCIP_RETCODE writeToFile (int fd, SCIP_Bool writeweights)
 
virtual SCIP_RETCODE createDecompFromPartition (GCG_DECOMP **decomp)
 
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 createFromMatrix (SCIP_CONS **conss, SCIP_VAR **vars, int nconss_, int nvars_)
 
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 >
GCG * gcg
 
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()

template<class T >
gcg::RowGraph< T >::RowGraph ( GCG *  gcg,
Weights  w 
)
Parameters
gcgGCG data structure
wweights for the given graph

Definition at line 47 of file rowgraph_def.h.

References gcg::RowGraph< T >::graph, gcg::MatrixGraph< T >::graphiface, gcg::MatrixGraph< T >::name, and w.

◆ ~RowGraph()

template<class T >
gcg::RowGraph< T >::~RowGraph
virtual

Definition at line 57 of file rowgraph_def.h.

Member Function Documentation

◆ createDecompFromPartition()

template<class T >
SCIP_RETCODE gcg::RowGraph< T >::createDecompFromPartition ( GCG_DECOMP **  decomp)
virtual

◆ createPartialdecFromPartition()

template<class T >
SCIP_RETCODE gcg::RowGraph< T >::createPartialdecFromPartition ( PARTIALDECOMP *  oldpartialdec,
PARTIALDECOMP **  firstpartialdec,
PARTIALDECOMP **  secondpartialdec,
DETPROBDATA *  detprobdata 
)
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
oldpartialdecpartialdec which should be amplifies
firstpartialdecpointer to buffer the new partialdec amplified by dint of the graph (can be NULL)
secondpartialdecpointer to buffer the new partialdec whose border is amplified by dint of the graph (can be NULL)
detprobdatadatprobdata the partialdecs correspond to

Reimplemented from gcg::MatrixGraph< T >.

Definition at line 134 of file rowgraph_def.h.

References BMSclearMemoryArray, FALSE, GCGgetOrigprob(), gcg::PARTIALDECOMP::getNConss(), gcg::PARTIALDECOMP::getNOpenconss(), gcg::PARTIALDECOMP::getNOpenvars(), gcg::DETPROBDATA::getNVarsForCons(), gcg::PARTIALDECOMP::getOpenconss(), gcg::PARTIALDECOMP::getOpenvars(), gcg::DETPROBDATA::getVarsForCons(), NULL, partition(), SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPallocBufferArray, SCIPblkmem(), SCIPdebugMessage, SCIPfreeBufferArray, SCIPhashmapCreate(), SCIPhashmapFree(), SCIPhashmapInsert(), and TRUE.

Referenced by GCG_DECL_PROPAGATEPARTIALDEC().

◆ createFromMatrix()

template<class T >
SCIP_RETCODE gcg::RowGraph< T >::createFromMatrix ( SCIP_CONS **  conss,
SCIP_VAR **  vars,
int  nconss_,
int  nvars_ 
)
virtual
Parameters
conssconstraints for which graph should be created
varsvariables for which graph should be created
nconss_number of constraints
nvars_number of variables

Reimplemented from gcg::MatrixGraph< T >.

Definition at line 252 of file rowgraph_def.h.

References FALSE, GCGgetOrigprob(), GCGisVarRelevant(), MAX, MIN, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_TRANSFORMED, SCIPallocBufferArray, SCIPfreeBufferArray, SCIPgetConsNVars(), SCIPgetConsVars(), SCIPgetStage(), SCIPvarGetProbindex(), SCIPvarGetProbvar(), and TRUE.

Field Documentation

◆ graph

template<class T >
gcg::Graph<T> gcg::RowGraph< T >::graph
protected

Definition at line 49 of file rowgraph.h.

Referenced by gcg::RowGraph< T >::RowGraph().