Loading...
Searching...
No Matches
clscons_consnamenonumbers.cpp
Go to the documentation of this file.
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
50#define CLSCONS_DESC "constraint names (remove digits; check for identity)" /**< short description of classification*/
166 classifier = new gcg::ConsPartition(gcg, "consnames", (int) nameClasses.size(), detprobdata->getNConss());
183 SCIPverbMessage(origprob, SCIP_VERBLEVEL_HIGH, NULL, " Consclassifier \"%s\" yields a classification with %d different constraint classes \n", classifier->getName(), classifier->getNClasses());
199 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 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 SCIP_CONS * getCons(int consIndex)
returns the SCIP constraint related to a constraint index
Definition class_detprobdata.cpp:746
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 GCGincludeConsClassifierForConsnamesDigitFreeIdentical(GCG *gcg)
Definition clscons_consnamenonumbers.cpp:193
classifies constraints according to names (without digits)
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)),)
includes one constraint classifier
Definition cons_decomp.cpp:2494
constraint handler for structure detection
C++ interface of cons_decomp.
#define SCIP_MAXSTRLEN
void SCIPverbMessage(SCIP *scip, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...)
const char * SCIPconsGetName(SCIP_CONS *cons)
SCIP_CALL(SCIPgetExternBranchCands(origprob, &lpcands, &lpcandssol, NULL, &nlpcands, NULL, NULL, NULL, NULL))
#define NULL
Definition class_conspartition.cpp:44
various SCIP helper methods
SCIP_VERBLEVEL_HIGH
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP