Loading...
Searching...
No Matches
clscons_gamsdomain.cpp
Go to the documentation of this file.
31 * @brief Classifies by domains from which constraints are created TODO: what is together in one class?
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
65 std::map<std::string, std::set<int>>* constodomain; /**< maps constraint name to the corresponding set of domain indices */
112 std::vector<int> classForCons( ncons, - 1 ); // [i] holds class index for constraint i -> indexing over detection internal constraint array!
166 gcg::ConsPartition* partition = new gcg::ConsPartition(gcg, "gamsdomain", counterClasses, detprobdata->getNConss() );
191 SCIPverbMessage(GCGgetOrigprob(gcg), SCIP_VERBLEVEL_HIGH, NULL, " Consclassifier \"%s\" yields a classification with %d different constraint classes \n", partition->getName(), partition->getNClasses() );
236 SCIP_CALL( GCGincludeConsClassifier(gcg, CLSCONS_NAME, CLSCONS_DESC, CLSCONS_PRIORITY, CLSCONS_ENABLED, classifierdata, classifierFree, classifierClassify) );
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:910
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 GCGconsClassifierGamsdomainAddEntry(GCG_CONSCLASSIFIER *classifier, SCIP_CONS *cons, int symDomIdx[], int *symDim)
Definition clscons_gamsdomain.cpp:203
SCIP_RETCODE GCGincludeConsClassifierGamsdomain(GCG *gcg)
Definition clscons_gamsdomain.cpp:226
Classifies by domains from which constraints are created TODO: what is together in one class?
GCG_CONSCLASSIFIER * GCGfindConsClassifier(GCG *gcg, 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:2279
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.
void SCIPverbMessage(SCIP *scip, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...)
GCG_CLASSIFIERDATA * GCGconsClassifierGetData(GCG_CONSCLASSIFIER *consClassifier)
Definition clscons.c:46
const char * GCGconsClassifierGetName(GCG_CONSCLASSIFIER *consClassifier)
Definition clscons.c:67
const char * SCIPconsGetName(SCIP_CONS *cons)
#define SCIPallocMemory(scip, ptr)
SCIPfreeMemory(GCGgetOrigprob(gcg), &divingdata)
static assert(heur !=NULL)
SCIP_CALL(SCIPgetExternBranchCands(origprob, &lpcands, &lpcandssol, NULL, &nlpcands, NULL, NULL, NULL, NULL))
#define NULL
Definition class_conspartition.cpp:44
various SCIP helper methods
std::map< std::string, std::set< int > > * constodomain
Definition clscons_gamsdomain.cpp:65
struct SCIP_Cons SCIP_CONS
#define GCG_DECL_FREECONSCLASSIFIER(x)
Definition type_consclassifier.h:52
SCIP_VERBLEVEL_HIGH
enum SCIP_Retcode SCIP_RETCODE