Loading...
Searching...
No Matches
clsvar_gamssymbol.cpp
Go to the documentation of this file.
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
64 std::map<std::string, int>* vartosymbol; /**< maps variable name to the corresponding symbol index */
110 std::vector<int> classForVar( nvar, - 1 ); // [i] holds class index for variable i -> indexing over detection internal variable array!
121 // iterating over classdata->vartosymbol and lookup variables with getIndexForVar fails with assertion if variable is not found -> should return error value?
163 gcg::VarPartition* partition = new gcg::VarPartition(gcg, "gamssymbols", counterClasses, detprobdata->getNVars() );
173 text << "This class contains all variables with gams symbol index" << symbolidxForClass[c] << ".";
182 SCIPverbMessage(GCGgetOrigprob(gcg), SCIP_VERBLEVEL_HIGH, NULL, " Varclassifier \"%s\" yields a classification with %d different variable classes \n", partition->getName(), partition->getNClasses() );
225 SCIP_CALL( GCGincludeVarClassifier(gcg, CLSVAR_NAME, CLSVAR_DESC, CLSVAR_PRIORITY, CLSVAR_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 storing partialdecs and the problem matrix
class representing a partition of a set of variables
Definition class_detprobdata.h:110
GCG_EXPORT int getNVars()
return the number of variables considered in the detprobdata
Definition class_detprobdata.cpp:902
GCG_EXPORT void addVarPartition(VarPartition *partition)
adds a variable partition if it is no duplicate of an existing variable partition
Definition class_detprobdata.cpp:637
GCG_EXPORT SCIP_VAR * getVar(int varIndex)
returns SCIP variable related to a variable index
Definition class_detprobdata.cpp:1015
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
Definition class_varpartition.h:61
GCG_EXPORT void assignVarToClass(int varindex, int classindex)
Definition class_varpartition.cpp:81
SCIP_RETCODE GCGincludeVarClassifierGamssymbol(GCG *gcg)
Definition clsvar_gamssymbol.cpp:215
SCIP_RETCODE GCGvarClassifierGamssymbolAddEntry(GCG_VARCLASSIFIER *classifier, SCIP_VAR *var, int symbolIdx)
Definition clsvar_gamssymbol.cpp:194
variables which have the same symbol are put into same class
GCG_VARCLASSIFIER * GCGfindVarClassifier(GCG *gcg, const char *name)
searches for the varclassifier with the given name and returns it or NULL if classifier is not found
Definition cons_decomp.cpp:2305
DETPROBDATA * GCGconshdlrDecompGetDetprobdataPresolved(GCG *gcg)
help method to access detprobdata for transformed problem
Definition cons_decomp.cpp:3976
SCIP_RETCODE GCGincludeVarClassifier(GCG *gcg, const char *name, const char *description, int priority, SCIP_Bool enabled, GCG_CLASSIFIERDATA *classifierdata, GCG_DECL_FREEVARCLASSIFIER((*freeClassifier)),)
includes one variable classifier
Definition cons_decomp.cpp:2730
DETPROBDATA * GCGconshdlrDecompGetDetprobdataOrig(GCG *gcg)
help method to access detprobdata for unpresolved problem
Definition cons_decomp.cpp:3962
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,...)
#define SCIPallocMemory(scip, ptr)
GCG_CLASSIFIERDATA * GCGvarClassifierGetData(GCG_VARCLASSIFIER *varClassifier)
Definition clsvar.c:46
const char * GCGvarClassifierGetName(GCG_VARCLASSIFIER *varClassifier)
Definition clsvar.c:67
const char * SCIPvarGetName(SCIP_VAR *var)
int SCIPsnprintf(char *t, int len, const char *s,...)
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, int > * vartosymbol
Definition clsvar_gamssymbol.cpp:64
SCIP_VERBLEVEL_HIGH
enum SCIP_Retcode SCIP_RETCODE
struct SCIP_Var SCIP_VAR