clscons_nnonzeros.cpp
Go to the documentation of this file.
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
128 gcg::ConsPartition* classifier = new gcg::ConsPartition(gcg, "nonzeros", (int) differentNNonzeros.size(), detprobdata->getNConss() );
138 text << "This class contains all constraints with " << differentNNonzeros[c] << " nonzero coefficients.";
147 SCIPverbMessage(origprob, SCIP_VERBLEVEL_HIGH, NULL, " Consclassifier \"%s\" yields a classification with %d different constraint classes \n", classifier->getName(), classifier->getNClasses() );
165 GCGincludeConsClassifier(gcg, CLSCONS_NAME, CLSCONS_DESC, CLSCONS_PRIORITY, CLSCONS_ENABLED, classifierdata,
class representing a partition of a set of constraints
class storing partialdecs and the problem matrix
Definition: class_conspartition.h:60
GCG_EXPORT void assignConsToClass(int consindex, int classindex)
Definition: class_conspartition.cpp:81
Definition: class_detprobdata.h:110
GCG_EXPORT int getNConss()
returns the number of variables considered in the detprobdata
Definition: class_detprobdata.cpp:850
GCG_EXPORT int getNVarsForCons(int consIndex)
returns the number of variables for a given constraint
Definition: class_detprobdata.cpp:908
GCG_EXPORT void addConsPartition(ConsPartition *partition)
adds a constraint partition if it is no duplicate of an existing constraint partition
Definition: class_detprobdata.cpp:553
GCG_EXPORT int getNClasses()
Definition: class_indexpartition.cpp:241
GCG_EXPORT const char * getName()
Definition: class_indexpartition.cpp:234
GCG_EXPORT void setClassDescription(int classindex, const char *desc)
Definition: class_indexpartition.cpp:366
GCG_EXPORT void setClassName(int classindex, const char *name)
Definition: class_indexpartition.cpp:374
SCIP_RETCODE GCGincludeConsClassifierNNonzeros(GCG *gcg)
Definition: clscons_nnonzeros.cpp:158
static GCG_DECL_CONSCLASSIFY(classifierClassify)
Definition: clscons_nnonzeros.cpp:81
classifies constraints according to their nonzero entries
DETPROBDATA * GCGconshdlrDecompGetDetprobdataPresolved(GCG *gcg)
help method to access detprobdata for transformed problem
Definition: cons_decomp.cpp:3976
DETPROBDATA * GCGconshdlrDecompGetDetprobdataOrig(GCG *gcg)
help method to access detprobdata for unpresolved problem
Definition: cons_decomp.cpp:3962
SCIP_RETCODE GCGincludeConsClassifier(GCG *gcg, const char *name, const char *description, int priority, SCIP_Bool enabled, GCG_CLASSIFIERDATA *classifierdata, GCG_DECL_FREECONSCLASSIFIER((*freeClassifier)),)
Definition: cons_decomp.cpp:2494
constraint handler for structure detection
C++ interface of cons_decomp.
#define SCIP_CALL(x)
void SCIPverbMessage(SCIP *scip, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...)
#define NULL
Definition: class_conspartition.cpp:44
various SCIP helper methods
Definition: struct_gcg.h:55
SCIP_VERBLEVEL_HIGH
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE