bipartitegraph_def.h
Go to the documentation of this file.
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
65 * A constraint and a variable are adjacent if the variable appears in the constraint variable array.
121 /** @todo skip all variables that have a zero coeffient or where all coefficients add to zero */
162 std::vector<bool> varsBool(partialdec->getNVars(), false); /* true, if the var will be part of the graph */
163 std::vector<bool> conssBool(partialdec->getNConss(), false); /* true, if the cons will be part of the graph */
SCIP_VAR * w
virtual SCIP_RETCODE createFromMatrix(SCIP_CONS **conss, SCIP_VAR **vars, int nconss_, int nvars_)
Definition: bipartitegraph_def.h:70
BipartiteGraph(GCG *gcgstruct, Weights w)
Definition: bipartitegraph_def.h:45
virtual SCIP_RETCODE createFromPartialMatrix(DETPROBDATA *detprobdata, PARTIALDECOMP *partialdec)
Definition: bipartitegraph_def.h:153
Definition: class_detprobdata.h:110
GCG_EXPORT int getNVarsForCons(int consIndex)
returns the number of variables for a given constraint
Definition: class_detprobdata.cpp:908
GCG_EXPORT SCIP_VAR * getVar(int varIndex)
returns SCIP variable related to a variable index
Definition: class_detprobdata.cpp:1015
GCG_EXPORT std::vector< int > & getVarsForCons(int consIndex)
returns the variable indices of the coefficient matrix for a constraint
Definition: class_detprobdata.cpp:1023
GCG_EXPORT SCIP_CONS * getCons(int consIndex)
returns the SCIP constraint related to a constraint index
Definition: class_detprobdata.cpp:746
Definition: matrixgraph.h:55
GCG_EXPORT int getNOpenvars()
Gets size of vector containing variables not assigned yet.
Definition: class_partialdecomp.cpp:4509
GCG_EXPORT int getNOpenconss()
Gets size of vector containing constraints not assigned yet.
Definition: class_partialdecomp.cpp:4503
GCG_EXPORT std::vector< int > & getOpenconss()
Gets vector containing constraints not assigned yet.
Definition: class_partialdecomp.cpp:4558
GCG_EXPORT std::vector< int > & getOpenvars()
Gets vector containing variables not assigned yet.
Definition: class_partialdecomp.cpp:4564
Definition: weights.h:43
#define SCIP_Bool
#define SCIP_CALL(x)
SCIP_STAGE SCIPgetStage(SCIP *scip)
SCIP_RETCODE SCIPgetConsNVars(SCIP *scip, SCIP_CONS *cons, int *nvars, SCIP_Bool *success)
SCIP_RETCODE SCIPgetConsVars(SCIP *scip, SCIP_CONS *cons, SCIP_VAR **vars, int varssize, SCIP_Bool *success)
#define SCIPallocBufferArray(scip, ptr, num)
#define SCIPfreeBufferArray(scip, ptr)
SCIP_VAR * SCIPvarGetProbvar(SCIP_VAR *var)
int SCIPvarGetProbindex(SCIP_VAR *var)
#define NULL
Definition: class_conspartition.cpp:44
various SCIP helper methods
Definition: struct_gcg.h:55
int TCLIQUE_WEIGHT
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE
SCIP_STAGE_TRANSFORMED