clscons_gamssymbol.cpp
Go to the documentation of this file.
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
64 std::map<std::string, int>* constosymbol; /**< maps constraint name to the corresponding symbol index */
112 std::vector<int> classForCons( ncons, - 1 ); // [i] holds class index for constraint i -> indexing over detection internal constraint array!
123 // iterating over classdata->constosymbol and lookup constraints with getIndexForCons fails with assertion if constraint is not found -> should return error value?
167 gcg::ConsPartition* partition = new gcg::ConsPartition(scip, "gamssymbols", counterClasses, detprobdata->getNConss() );
177 text << "This class contains all constraints with gams symbol index" << symbolidxForClass[c] << ".";
186 SCIPverbMessage(scip, SCIP_VERBLEVEL_HIGH, NULL, " Consclassifier \"%s\" yields a classification with %d different constraint classes \n", partition->getName(), partition->getNClasses() );
224 SCIP_CALL( DECincludeConsClassifier(scip, DEC_CLASSIFIERNAME, DEC_DESC, DEC_PRIORITY, DEC_ENABLED, classifierdata, classifierFree, classifierClassify) );
int getNConss()
returns the number of variables considered in the detprobdata
Definition: class_detprobdata.cpp:796
DEC_CONSCLASSIFIER * DECfindConsClassifier(SCIP *scip, const char *name)
searches for the consclassifier with the given name and returns it or NULL if classifier is not found
Definition: cons_decomp.cpp:2806
constraint handler for structure detection
class representing a partition of a set of constraints
Definition: class_conspartition.h:53
DETPROBDATA * GCGconshdlrDecompGetDetprobdataOrig(SCIP *scip)
help method to access detprobdata for unpresolved problem
Definition: cons_decomp.cpp:5249
DEC_CLASSIFIERDATA * DECconsClassifierGetData(DEC_CONSCLASSIFIER *classifier)
returns the data of the provided consclassifier
Definition: cons_decomp.cpp:2562
SCIP_RETCODE SCIPincludeConsClassifierGamssymbol(SCIP *scip)
Definition: clscons_gamssymbol.cpp:214
Constraints which have the same symbol are put into same class.
various SCIP helper methods
static DEC_DECL_CONSCLASSIFY(classifierClassify)
Definition: clscons_gamssymbol.cpp:98
Definition: struct_consclassifier.h:43
std::map< std::string, int > * constosymbol
Definition: clscons_gamssymbol.cpp:64
static DEC_DECL_FREECONSCLASSIFIER(classifierFree)
Definition: clscons_gamssymbol.cpp:80
static SCIP_RETCODE partition(SCIP *scip, SCIP_VAR **J, int *Jsize, SCIP_Longint *priority, SCIP_VAR **F, int Fsize, SCIP_VAR **origvar, SCIP_Real *median)
Definition: branch_generic.c:832
SCIP_CONS * getCons(int consIndex)
returns the SCIP constraint related to a constraint index
Definition: class_detprobdata.cpp:698
SCIP_RETCODE DECconsClassifierGamssymbolAddEntry(DEC_CONSCLASSIFIER *classifier, SCIP_CONS *cons, int symbolIdx)
Definition: clscons_gamssymbol.cpp:197
C++ interface of cons_decomp.
Definition: class_detprobdata.h:106
DETPROBDATA * GCGconshdlrDecompGetDetprobdataPresolved(SCIP *scip)
help method to access detprobdata for transformed problem
Definition: cons_decomp.cpp:5263
const char * DECconsClassifierGetName(DEC_CONSCLASSIFIER *classifier)
returns the name of the provided classifier
Definition: cons_decomp.cpp:2571
void addConsPartition(ConsPartition *partition)
adds a constraint partition if it is no duplicate of an existing constraint partition
Definition: class_detprobdata.cpp:505
SCIP_RETCODE DECincludeConsClassifier(SCIP *scip, const char *name, const char *description, int priority, SCIP_Bool enabled, DEC_CLASSIFIERDATA *classifierdata, DEC_DECL_FREECONSCLASSIFIER((*freeClassifier)),)
Definition: cons_decomp.cpp:2992
class storing partialdecs and the problem matrix