Loading...
Searching...
No Matches
clsvar_objvaluesigns.cpp
Go to the documentation of this file.
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
96 gcg::VarPartition* classifier= new gcg::VarPartition(gcg, "varobjvalsigns", 3, detprobdata->getNVars() ); /* new VarPartition */
101 classifier->setClassDescription( 0, "This class contains all variables with objective function value zero." );
104 classifier->setClassDescription( 1, "This class contains all variables with positive objective function value." );
107 classifier->setClassDescription( 2, "This class contains all variables with negative objective function value." );
133 SCIPverbMessage(origprob, SCIP_VERBLEVEL_HIGH, NULL, " Varclassifier \"%s\" yields a classification with %d different variable classes\n", classifier->getName(), classifier->getNClasses()) ;
150 SCIP_CALL( GCGincludeVarClassifier(gcg, CLSVAR_NAME, CLSVAR_DESC, CLSVAR_PRIORITY, CLSVAR_ENABLED, classifierdata, classifierFree, classifierClassify) );
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 int removeEmptyClasses()
Definition class_indexpartition.cpp:314
GCG_EXPORT void setClassName(int classindex, const char *name)
Definition class_indexpartition.cpp:374
Definition class_varpartition.h:61
GCG_EXPORT void setClassDecompInfo(int classindex, VAR_DECOMPINFO decompInfo)
Definition class_varpartition.cpp:222
GCG_EXPORT void assignVarToClass(int varindex, int classindex)
Definition class_varpartition.cpp:81
SCIP_RETCODE GCGincludeVarClassifierObjValueSigns(GCG *gcg)
Definition clsvar_objvaluesigns.cpp:144
classifies variables according to their objective function value signs
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_Real
void SCIPverbMessage(SCIP *scip, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...)
SCIP_Bool SCIPisPositive(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisZero(SCIP *scip, SCIP_Real val)
SCIP_Real SCIPvarGetObj(SCIP_VAR *var)
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
SCIP_VERBLEVEL_HIGH
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP