Loading...
Searching...
No Matches
rowgraph_weighted_def.h
Go to the documentation of this file.
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
141 /** @todo skip all variables that have a zero coeffient or where all coefficients add to zero */
237 vector<bool> varsBool(partialdec->getNVars(), false); /**< true, if the var will be part of the graph */
238 vector<bool> conssBool(partialdec->getNConss(), false); /**< true, if the cons will be part of the graph */
369double RowGraphWeighted<T>::calculateSimilarity(int _a, int _b, int _c, DISTANCE_MEASURE dist, WEIGHT_TYPE w_type, bool itself)
438 // If the post processing is enabled, remove the coliding conss, otherwise just set the partition
442 // for each column in the conss matrix we save labels of all the constraints where the variable appears
616SCIP_RETCODE RowGraphWeighted<GraphGCG>::postProcessForPartialGraph(gcg::DETPROBDATA* detprobdata, gcg::PARTIALDECOMP* partialdec, vector<int>& labels, bool enabled)
629 // If the post processing is enabled, remove the coliding conss, otherwise just set the partition
635 vector<bool> varsBool(partialdec->getNVars(), false); /* true, if the var will be part of the graph */
636 vector<bool> conssBool(partialdec->getNConss(), false); /* true, if the cons will be part of the graph */
690 // for each column in the conss matrix we save labels of all the constraints where the variable appears
841 // If the post processing is enabled, remove the coliding conss, otherwise just set the partition
847 // for each column in the conss matrix we save labels of all the constraints where the variable appears
895 /** @todo skip all variables that have a zero coeffient or where all coefficients add to zero */
1026SCIP_RETCODE RowGraphWeighted<GraphGCG>::postProcessStableSetForPartialGraph(gcg::DETPROBDATA* detprobdata, gcg::PARTIALDECOMP* partialdec, vector<int>& labels, bool enabled)
1042 // If the post processing is enabled, remove the coliding conss, otherwise just set the partition
1048 vector<bool> varsBool(partialdec->getNVars(), false); /**< true, if the var will be part of the graph */
1049 vector<bool> conssBool(partialdec->getNConss(), false); /**< true, if the cons will be part of the graph */
1104 // for each column in the conss matrix we save labels of all the constraints where the variable appears
1135 /** @todo skip all variables that have a zero coeffient or where all coefficients add to zero */
1236SCIP_RETCODE RowGraphWeighted<GraphGCG>::computePartitionDBSCAN(double eps, bool postprocenable)
1247SCIP_RETCODE RowGraphWeighted<GraphGCG>::computePartitionDBSCANForPartialGraph(gcg::DETPROBDATA* detprobdata, gcg::PARTIALDECOMP* partialdec, double eps, bool postprocenable)
1270SCIP_RETCODE RowGraphWeighted<GraphGCG>::computePartitionMSTForPartialGraph(gcg::DETPROBDATA* detprobdata, gcg::PARTIALDECOMP* partialdec, double eps, bool postprocenable)
1281SCIP_RETCODE RowGraphWeighted<GraphGCG>::computePartitionMCL(int& stoppedAfter, double inflatefactor, bool postprocenable)
1292SCIP_RETCODE RowGraphWeighted<GraphGCG>::computePartitionMCLForPartialGraph(gcg::DETPROBDATA* detprobdata, gcg::PARTIALDECOMP* partialdec, int& stoppedAfter, double inflatefactor, bool postprocenable)
SCIP_VAR * w
SCIP_VAR * a
SCIP_VAR ** b
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 std::vector< int > & getVarsForCons(int consIndex)
returns the variable indices of the coefficient matrix for a constraint
Definition class_detprobdata.cpp:1023
static std::vector< int > mst(Graph< GraphGCG > &graph, double cutoff, int minPts=4)
Definition graphalgorithms_def.h:261
static std::vector< int > mcl(Graph< GraphGCG > &graph, int &stoppedAfter, double inflatefac, int maxiters=25, int expandfac=2)
Definition graphalgorithms_def.h:435
static std::vector< int > dbscan(Graph< GraphGCG > &graph, double eps, int minPts=4)
Definition graphalgorithms_def.h:136
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
virtual SCIP_RETCODE computePartitionMCL(int &stoppedAfter, double inflatefactor, bool postprocenable)
virtual SCIP_RETCODE nonClustered(int &_non_cl)
Definition rowgraph_weighted_def.h:1310
virtual SCIP_RETCODE createFromPartialMatrix(DETPROBDATA *detprobdata, PARTIALDECOMP *partialdec, DISTANCE_MEASURE dist, WEIGHT_TYPE w_type)
Definition rowgraph_weighted_def.h:222
virtual ~RowGraphWeighted()
Definition rowgraph_weighted_def.h:69
static double calculateSimilarity(int a, int b, int c, DISTANCE_MEASURE dist, WEIGHT_TYPE w_type, bool itself)
Definition rowgraph_weighted_def.h:369
virtual SCIP_RETCODE computePartitionDBSCANForPartialGraph(gcg::DETPROBDATA *detprobdata, gcg::PARTIALDECOMP *partialdec, double eps, bool postprocenable)
virtual SCIP_RETCODE getNBlocks(int &_n_blocks)
Definition rowgraph_weighted_def.h:1303
virtual SCIP_RETCODE createFromMatrix(SCIP_CONS **conss, SCIP_VAR **vars, int nconss_, int nvars_, DISTANCE_MEASURE dist, WEIGHT_TYPE w_type)
Definition rowgraph_weighted_def.h:76
virtual SCIP_RETCODE computePartitionMSTForPartialGraph(gcg::DETPROBDATA *detprobdata, gcg::PARTIALDECOMP *partialdec, double eps, bool postprocenable)
virtual SCIP_RETCODE computePartitionMST(double eps, bool postprocenable)
virtual SCIP_RETCODE computePartitionDBSCAN(double eps, bool postprocenable)
virtual SCIP_RETCODE computePartitionMCLForPartialGraph(gcg::DETPROBDATA *detprobdata, gcg::PARTIALDECOMP *partialdec, int &stoppedAfter, double inflatefactor, bool postprocenable)
RowGraphWeighted(GCG *gcg, Weights w)
Definition rowgraph_weighted_def.h:58
virtual double getEdgeWeightPercentile(double q)
Definition rowgraph_weighted_def.h:1317
Definition weights.h:43
bool removeNode(int node, vector< int > &removed)
Definition priority_graph.h:80
#define SCIP_Bool
#define MIN(x, y)
#define TRUE
#define FALSE
Implementation of the graph which supports both node and edge weights.
several metrics for graphs
SCIP_STAGE SCIPgetStage(SCIP *scip)
SCIP_CONS ** SCIPgetConss(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)
SCIP_VAR * SCIPvarGetProbvar(SCIP_VAR *var)
int SCIPvarGetProbindex(SCIP_VAR *var)
static assert(heur !=NULL)
SCIP_CALL(SCIPgetExternBranchCands(origprob, &lpcands, &lpcandssol, NULL, &nlpcands, NULL, NULL, NULL, NULL))
SCIPfreeBufferArray(scip, &cycles)
#define NULL
Definition class_conspartition.cpp:44
real eps
A row graph where each row is a node and rows are adjacent if they share a variable....
int size
struct SCIP_Cons SCIP_CONS
SCIP_INVALIDCALL
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP
SCIP_STAGE_TRANSFORMED
struct SCIP_Var SCIP_VAR