dec_stairheur.cpp
Go to the documentation of this file.
40/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
63#define DEC_FREQCALLROUND 1 /**< frequency the detector gets called in detection loop ,ie it is called in round r if and only if minCallRound <= r <= maxCallRound AND (r - minCallRound) mod freqCallRound == 0 */
66#define DEC_FREQCALLROUNDORIGINAL 1 /**< frequency the detector gets called in detection loop while detecting the original problem */
67#define DEC_MAXCALLROUNDORIGINAL INT_MAX /**< last round the detector gets called while detecting the original problem */
68#define DEC_MINCALLROUNDORIGINAL 0 /**< first round the detector gets called while detecting the original problem */
74#define DEC_USEFULRECALL FALSE /**< is it useful to call this detector on a descendant of the propagated partialdec */
80#define DEFAULT_DESIREDBLOCKS 0 /**< value for the desired number of blocks (for all blocking types). Set to zero for self determination of block number */
84#define DEFAULT_MULTIPLEDECOMPS TRUE /**< Enables multiple decompositions for all enabled blocking types. Ranging from minblocks to maxblocks' */
85#define DEFAULT_MAXITERATIONSROC 1000000 /**< The maximum of iterations of the ROC-algorithm. -1 for no iteration limit */
95#define DWSOLVER_REFNAME(name, blocks, cons, dummy) "%s_%d_%d_%.1f_ref.txt", (name), (blocks), (cons), (dummy)
96#define GP_NAME(name, blocks, cons, dummy) "%s_%d_%d_%.1f_%d.gp", (name), (blocks), (cons), (dummy)
102/** A struct that contains 4 hashmaps, which maps variables and constraints to their position in the constraint matrix (Ax<=b) and vice versa */
128 int* jmax; /**< array, jmax[i]: the last nonzero entry among all rows prior to and including the i-th row */
129 int* minV; /**< array, minV[i]: number of linking variables corresponding to a partitioning after the i-th row */
131 int* hashmapindices; /**< array with integers running from 0 to maximum(nvars, ncons)+1 (for usage of hash maps) */
138 SCIP_Bool multipledecomps; /**< Enables multiple decompositions for all enabled blocking types. Ranging from minblocks to maxblocks */
180 * currently, all vars from the first column where a linking var appears until the end of the block are considered as linking vars, although there might be empty columns. This could be changed so that these empty columns are considered as subscipvars and not linking vars.
184 * For some instances the assertion regarding the consistency of the arrays ibegin and jbegin fails
285 /* careful: hashmapindex+1, because '0' is treated as an empty hashmap entry, which causes an error */
296 /* careful: hashmapindex+1, because '0' is treated as an empty hashmap entry, which causes an error */
299 SCIP_CALL( SCIPhashmapInsert(indexmap->indexcons, (void*) hashmapindex, (void*)(size_t) cons) );
301 SCIP_CALL( SCIPhashmapInsert(indexmap->consindex, (void*)(size_t) cons, (void*) hashmapindex) );
411 fprintf(output, "set terminal pdf\nset output \"%s\"\nunset xtics\nunset ytics\nunset border\nset pointsize 0.05\nset xrange [0:%i]\nset yrange[%i:0]\nplot '%s' lt 0 pt 5 notitle", pdffile, SCIPgetNVars(scip), nconss, datafile);
416/** creates a data and a gnuplot file for the graph representing the array minV (number of linking variables).
469 for( it1 = detectordata->blockedAfterrow->begin(); it1 != detectordata->blockedAfterrow->end(); ++it1 )
477 fprintf(output, "set terminal pdf\nset output \"%s\"\nset style line 1 lt 1 lc rgb \"black\"\nplot '%s' title '# verb. Variablen' ls 1 with lines, \\\n '%s' lt 0 pt 4 with points title \"Blockgrenze\"", pdffile, datafile, blockingfile);
513 SCIP_CALL( SCIPallocMemoryArray(scip, &detectordata->hashmapindices, (size_t)MAX(nvars, nconss) + 1) );
614 probindices[j] = *(int*) SCIPhashmapGetImage(varindex, (void*)(size_t)detprobdata->getVarsForCons(cons)[j]);
661 vector<vector<int> > &rowindices, /**< A vector with the row indices (achieved from calling rowindices_vector() ) */
695 * It also works for the column ordering. In this case the terms row<->column have to be exchanged.
697 * @return A vector with the new row order. E.g. (2 3 1) means the second row comes first now, and so on. */
819 SCIP_CALL( createRowindexList(scip, partialdec, detprobdata, detectordata, inputmap->indexcons, inputmap->varindex, rowindices) );
841 SCIP_CALL( SCIPhashmapSetImage(outputmap->consindex, (void*)(size_t) cons, (void*) hashmapindex) );
845 SCIP_CALL( SCIPhashmapSetImage(outputmap->indexcons, (void*) hashmapindex, (void*)(size_t) cons) );
849 for( it1 = columnorder.begin(), i = 0; it1 != columnorder.end() &&i < (size_t) nvars; ++i, ++it1 )
859 SCIP_CALL( SCIPhashmapSetImage(outputmap->varindex, (void*)(size_t) var, (void*) hashmapindex) );
863 SCIP_CALL( SCIPhashmapSetImage(outputmap->indexvar, (void*) hashmapindex, (void*)(size_t) var) );
920 SCIP_CALL( rankOrderClusteringIteration(scip, partialdec, detprobdata, detectordata, detectordata->indexmap, indexmap_permuted) );
923 SCIP_CALL( createRowindexList(scip, partialdec, detprobdata, detectordata, indexmap_permuted->indexcons, indexmap_permuted->varindex, rowindices) );
959/** finds rows with local minima regarding the number of linking variables and stores them in detectordata->rowsWithConstrictions */
973 if( detectordata->minV[i] < detectordata->minV[i-1] && detectordata->minV[i] < detectordata->minV[i+1] )
999 int cons = (int)(size_t) SCIPhashmapGetImage(detectordata->indexmap->indexcons, (void*) hashmapindex);
1002 SCIP_CALL( SCIPhashmapInsert(detectordata->constoblock, (void*)(size_t) cons, (void*) (size_t) (detectordata->hashmapindices[block])) );
1017 return std::max_element(detectordata->iend + (from_row), detectordata->iend+((size_t)to_row + 1))-detectordata->iend; /*lint !e712*/
1020/** returns the column index of the first nonzero entry in 'row'. Rows start counting at 1, not 0. */
1050 last_column_prev_block = getMaxColIndex(detectordata, prev_block_first_row, prev_block_last_row);
1055/** this functions looks for rows to block at, which creates block of size min_block_size or bigger
1057 * @return Iterator pointing to a node which contains a suitable row for blocking; If the iterator points after the last element, no candidate was found
1061 vector<int>::iterator it_constrictions, /**< Iterator pointing to a vector of constraints (detectordata->rowsWithConstrictions) */
1074 /* does a blocking to the next row forming a constriction comprise more rows than min_block_size */
1086 * @return Iterator pointing to a node which contains a suitable row for blocking; If the iterator points after the last element, no row was found
1091 vector<int>::iterator it_constrictions, /**< Iterator pointing to a vector of constraints (detectordata->rowsWithConstrictions) */
1108 it_constrictions = findBlockingCandidate(it_constrictions, it_vector, min_block_size, prev_block_last_row);
1118 if( isValidBlocking(detectordata, prev_block_first_row, prev_block_last_row, *it_constrictions) )
1188 if( ! detectordata->blockingassoonaspossible && ! detectordata->staticblocking &&! detectordata->dynamicblocking )
1223 min_block_size = (int) SCIPround(scip, ((SCIP_Real)partialdec->getNOpenconss()) / (2.0 * tau ));
1226 for( it1 = nextRowToBlockAt(detectordata, it1, detectordata->rowsWithConstrictions, min_block_size, prev_block_first_row, prev_block_last_row);
1228 it1 = nextRowToBlockAt(detectordata, it1, detectordata->rowsWithConstrictions, min_block_size, prev_block_first_row, prev_block_last_row) )
1234 SCIPdebugMessage("vars in block: %i - %i, linking vars: %i - %i\n", max_col_index_im1+1, max_col_index_i, min_col_index_ip1, max_col_index_i);
1237 SCIP_CALL( assignConsToBlock(scip, partialdec, detectordata, block, prev_block_last_row + 1, current_row) );
1247 /* assign the remaining (< M/2tau) cons and vars to the last block; no new linking vars are added */
1249 SCIPdebugMessage("last time: vars in block: %i - %i, linking vars: %i - %i\n", max_col_index_im1+1, nvars, nvars+1, nvars);
1251 SCIP_CALL( assignConsToBlock(scip, partialdec, detectordata, block, prev_block_last_row + 1, SCIPgetNConss(scip)) );
1298 SCIPdebugMessage("Blocking from %d to %d in block %d",prev_block_last_row + 1, current_row, block);
1299 SCIP_CALL( assignConsToBlock(scip, partialdec, detectordata, block, prev_block_last_row + 1, current_row) );
1308 SCIPdebugMessage("last time: assignVarsToBlock: block, from_row, to_row: %i, %i, %i\n", block, prev_block_last_row + 1, SCIPgetNConss(scip));
1310 SCIP_CALL( assignConsToBlock(scip, partialdec, detectordata, block, prev_block_last_row + 1, nconss) );
1359 SCIP_CALL( SCIPhashmapCreate(&(detectordata->constoblock), SCIPblkmem(scip), SCIPgetNConss(scip)) );
1406 SCIPdebugMessage("detectordata->enablemultipledecomps = 0. detectordata->desiredblocks == 0. Calculating tau = %i\n", tau);
1435 SCIPdebugMessage("detectordata->enablemultipledecomps = %ud.\n", detectordata->multipledecomps);
1458 SCIP_CALL(detectiondata->newpartialdecs[*nnewpartialdecs]->assignPartialdecFromConstoblock(detectordata->constoblock, detectordata->blocks) );
1482 SCIP_CALL(detectiondata->newpartialdecs[*nnewpartialdecs]->assignPartialdecFromConstoblock(detectordata->constoblock, detectordata->blocks) );
1509 SCIPdebugMessage("nconssperblock = %i, dec = %i\n", detectordata->nconssperblock, *nnewpartialdecs);
1517 SCIP_CALL(detectiondata->newpartialdecs[*nnewpartialdecs]->assignPartialdecFromConstoblock(detectordata->constoblock, detectordata->blocks) );
1537 SCIPdebugMessage("detectordata->blockingassoonaspossible = %ud. \n", detectordata->blockingassoonaspossible);
1558 SCIP_CALL(detectiondata->newpartialdecs[*nnewpartialdecs]->assignPartialdecFromConstoblock(detectordata->constoblock, detectordata->blocks) );
1580 SCIP_CALL(detectiondata->newpartialdecs[*nnewpartialdecs]->assignPartialdecFromConstoblock(detectordata->constoblock, detectordata->blocks) );
1691 SCIPwarningMessage(scip, "WRITEALLOUTPUT in detector stairheur is not implemented for partialdecs.\n");
1716 SCIP_CALL( SCIPallocMemoryArray(origprob, &(partialdecdetectiondata->newpartialdecs), nPartialdecs) );
1720 /* initialize hash maps for keeping track of variables and constraints and their corresponding indices after being permuted by the ROC2-algorithm */
1731 SCIP_CALL( createRowindexList(origprob, partialdec, partialdecdetectiondata->detprobdata, detectordata, detectordata->indexmap->indexcons, detectordata->indexmap->varindex, rowindices) );
1745 SCIP_CALL( rankOrderClustering(scip, partialdec, partialdecdetectiondata->detprobdata, detectordata, detectordata->maxiterationsROC, &ROC_iterations) );
1748 //if( ROC_iterations < detectordata->maxiterationsROC || detectordata->maxiterationsROC == -1 )
1753 SCIP_CALL( rankOrderClustering(origprob, partialdec, partialdecdetectiondata->detprobdata, detectordata, detectordata->maxiterationsROC, NULL) );
1774 SCIP_CALL( blocking(origprob, detectordata, partialdec, partialdecdetectiondata, temptime, nPartialdecs, result) );
1778 SCIPverbMessage(origprob, SCIP_VERBLEVEL_NORMAL, NULL, " found %d partialdecs.\n", partialdecdetectiondata->nnewpartialdecs);
1787 SCIP_CALL( SCIPreallocMemoryArray(origprob, &(partialdecdetectiondata->newpartialdecs), partialdecdetectiondata->nnewpartialdecs) );
1867 SCIP_CALL( GCGincludeDetector(gcg, DEC_NAME, DEC_DECCHAR, DEC_DESC, DEC_FREQCALLROUND, DEC_MAXCALLROUND, DEC_MINCALLROUND, DEC_FREQCALLROUNDORIGINAL, DEC_MAXCALLROUNDORIGINAL, DEC_MINCALLROUNDORIGINAL, DEC_PRIORITY, DEC_ENABLED, DEC_ENABLEDFINISHING, DEC_ENABLEDPOSTPROCESSING, DEC_SKIP, DEC_USEFULRECALL,
1868 detectordata, detectorFreeStairheur, detectorInitStairheur, detectorExitStairheur, detectorPropagatePartialdecStairheur, detectorFinishPartialdecStairheur, detectorPostprocessPartialdecStairheur, setParamAggressiveStairheur, setParamDefaultStairheur, setParamFastStairheur) );
1878 SCIP_CALL( SCIPaddIntParam(origprob, "detection/detectors/stairheur/minblocks", "The minimal number of blocks",
1889 SCIP_CALL( SCIPaddBoolParam(origprob, "detection/detectors/stairheur/blockingassoonaspossible",
1893 "Enables multiple decompositions for all enabled blocking types. Ranging from minblocks to maxblocks",
class storing partialdecs and the problem matrix
class storing (potentially incomplete) decompositions
Definition: class_detprobdata.h:110
GCG_EXPORT int getNVarsForCons(int consIndex)
returns the number of variables for a given constraint
Definition: class_detprobdata.cpp:908
GCG_EXPORT std::vector< int > & getVarsForCons(int consIndex)
returns the variable indices of the coefficient matrix for a constraint
Definition: class_detprobdata.cpp:1023
GCG_EXPORT void refineToMaster()
refine partialdec with focus on master
Definition: class_partialdecomp.cpp:5178
GCG_EXPORT int getNOpenvars()
Gets size of vector containing variables not assigned yet.
Definition: class_partialdecomp.cpp:4509
GCG_EXPORT void addDetectorChainInfo(const char *decinfo)
add information about the detector chain
Definition: class_partialdecomp.cpp:482
GCG_EXPORT int getNOpenconss()
Gets size of vector containing constraints not assigned yet.
Definition: class_partialdecomp.cpp:4503
GCG_EXPORT bool isVarOpenvar(int var)
Checks whether the var is an open var.
Definition: class_partialdecomp.cpp:5048
GCG_EXPORT SCIP_RETCODE assignPartialdecFromConstoblock(SCIP_HASHMAP *constoblock, int additionalNBlocks)
assigns conss structure according to given hashmap
Definition: class_partialdecomp.cpp:1001
GCG_EXPORT void addClockTime(SCIP_Real clocktime)
adds detection time of one detector
Definition: class_partialdecomp.cpp:453
GCG_EXPORT std::vector< int > & getOpenconss()
Gets vector containing constraints not assigned yet.
Definition: class_partialdecomp.cpp:4558
GCG_EXPORT std::vector< int > & getOpenvars()
Gets vector containing variables not assigned yet.
Definition: class_partialdecomp.cpp:4564
GCG_EXPORT bool assignCurrentStairlinking()
assigns open vars to stairlinking if appropriate
Definition: class_partialdecomp.cpp:596
const char * GCGdetectorGetName(GCG_DETECTOR *detector)
returns the name of the provided detector
Definition: cons_decomp.cpp:2084
GCG_DETECTORDATA * GCGdetectorGetData(GCG_DETECTOR *detector)
returns the data of the provided detector
Definition: cons_decomp.cpp:2075
SCIP_RETCODE GCGincludeDetector(GCG *gcg, const char *name, const char decchar, const char *description, int freqCallRound, int maxCallRound, int minCallRound, int freqCallRoundOriginal, int maxCallRoundOriginal, int minCallRoundOriginal, int priority, SCIP_Bool enabled, SCIP_Bool enabledFinishing, SCIP_Bool enabledPostprocessing, SCIP_Bool skip, SCIP_Bool usefulRecall, GCG_DETECTORDATA *detectordata, GCG_DECL_FREEDETECTOR((*freeDetector)), GCG_DECL_INITDETECTOR((*initDetector)), GCG_DECL_EXITDETECTOR((*exitDetector)), GCG_DECL_PROPAGATEPARTIALDEC((*propagatePartialdecDetector)), GCG_DECL_FINISHPARTIALDEC((*finishPartialdecDetector)), GCG_DECL_POSTPROCESSPARTIALDEC((*postprocessPartialdecDetector)), GCG_DECL_SETPARAMAGGRESSIVE((*setParamAggressiveDetector)), GCG_DECL_SETPARAMDEFAULT((*setParamDefaultDetector)),)
Definition: cons_decomp.cpp:2547
constraint handler for structure detection
static SCIP_RETCODE blockingDynamic(SCIP *scip, gcg::PARTIALDECOMP *partialdec, GCG_DETECTORDATA *detectordata, int tau, int nvars)
Definition: dec_stairheur.cpp:1198
static SCIP_RETCODE createRowindexList(SCIP *scip, gcg::PARTIALDECOMP *partialdec, gcg::DETPROBDATA *detprobdata, GCG_DETECTORDATA *detectordata, SCIP_HASHMAP *indexcons, SCIP_HASHMAP *varindex, vector< vector< int > > &rowindices)
Definition: dec_stairheur.cpp:582
static vector< int > SCIPvectorCreateInt(int from, int to)
Definition: dec_stairheur.cpp:190
static void indexmapFree(SCIP *scip, INDEXMAP **indexmap)
Definition: dec_stairheur.cpp:256
static SCIP_Bool isValidBlocking(GCG_DETECTORDATA *detectordata, int prev_block_first_row, int prev_block_last_row, int block_at_row)
Definition: dec_stairheur.cpp:1035
static GCG_DECL_SETPARAMFAST(setParamAggressiveStairheur)
Definition: dec_stairheur.cpp:1800
static SCIP_RETCODE initData(SCIP *scip, gcg::PARTIALDECOMP *partialdec, GCG_DETECTORDATA *detectordata)
Definition: dec_stairheur.cpp:487
static SCIP_RETCODE createColumnindexList(SCIP *scip, gcg::PARTIALDECOMP *partialdec, vector< vector< int > > &rowindices, vector< vector< int > > &columnindices)
Definition: dec_stairheur.cpp:658
static SCIP_RETCODE rankOrderClustering(SCIP *scip, gcg::PARTIALDECOMP *partialdec, gcg::DETPROBDATA *detprobdata, GCG_DETECTORDATA *detectordata, int max_iterations, int *iterations)
Definition: dec_stairheur.cpp:871
static SCIP_RETCODE resetDetectordata(SCIP *scip, GCG_DETECTORDATA *detectordata)
Definition: dec_stairheur.cpp:1348
static GCG_DECL_INITDETECTOR(detectorInitStairheur)
Definition: dec_stairheur.cpp:1645
#define detectorPostprocessPartialdecStairheur
Definition: dec_stairheur.cpp:1796
static SCIP_RETCODE freeData(SCIP *scip, GCG_DETECTORDATA *detectordata)
Definition: dec_stairheur.cpp:529
static SCIP_RETCODE indexmapCreate(SCIP *scip, INDEXMAP **indexmap, int nconss, int nvars)
Definition: dec_stairheur.cpp:231
static SCIP_Bool arraysAreEqual(int *new_array, int *old_array, int num_elements)
Definition: dec_stairheur.cpp:768
static void checkParameterConsistency(SCIP *scip, GCG_DETECTORDATA *detectordata, SCIP_RESULT *result)
Definition: dec_stairheur.cpp:1171
static SCIP_RETCODE assignConsToBlock(SCIP *scip, gcg::PARTIALDECOMP *partialdec, GCG_DETECTORDATA *detectordata, int block, int first_cons, int last_cons)
Definition: dec_stairheur.cpp:984
static GCG_DECL_PROPAGATEPARTIALDEC(detectorPropagatePartialdecStairheur)
Definition: dec_stairheur.cpp:1670
static int calculateNdecompositions(GCG_DETECTORDATA *detectordata)
Definition: dec_stairheur.cpp:1134
static SCIP_RETCODE indexmapInit(INDEXMAP *indexmap, gcg::PARTIALDECOMP *partialdec, int *hashmapindices)
Definition: dec_stairheur.cpp:271
static vector< int > rowOrdering(SCIP *scip, vector< vector< int > > &columnindices, int nrows)
Definition: dec_stairheur.cpp:699
#define DEFAULT_BLOCKINGASSOONASPOSSIBLE
Definition: dec_stairheur.cpp:83
static int getMinColIndex(GCG_DETECTORDATA *detectordata, int row)
Definition: dec_stairheur.cpp:1022
static SCIP_RETCODE formIndexArray(int *begin, int *end, vector< vector< int > > &indices)
Definition: dec_stairheur.cpp:738
SCIP_RETCODE GCGincludeDetectorStairheur(GCG *gcg)
Definition: dec_stairheur.cpp:1853
#define detectorFinishPartialdecStairheur
Definition: dec_stairheur.cpp:1795
static vector< int >::iterator nextRowToBlockAt(GCG_DETECTORDATA *detectordata, vector< int >::iterator it_constrictions, vector< int > *it_vector, int min_block_size, int prev_block_first_row, int prev_block_last_row)
Definition: dec_stairheur.cpp:1089
static void SCIPvectorRearrange(vector< vector< int > > &l, vector< int > order)
Definition: dec_stairheur.cpp:212
static SCIP_RETCODE blockingStatic(SCIP *scip, gcg::PARTIALDECOMP *partialdec, GCG_DETECTORDATA *detectordata)
Definition: dec_stairheur.cpp:1274
static SCIP_RETCODE rowsWithConstriction(SCIP *scip, gcg::PARTIALDECOMP *partialdec, GCG_DETECTORDATA *detectordata)
Definition: dec_stairheur.cpp:961
static int getMaxColIndex(GCG_DETECTORDATA *detectordata, int from_row, int to_row)
Definition: dec_stairheur.cpp:1010
static SCIP_RETCODE blocking(SCIP *scip, GCG_DETECTORDATA *detectordata, gcg::PARTIALDECOMP *partialdec, PARTIALDEC_DETECTION_DATA *detectiondata, SCIP_Real time, int maxndecs, SCIP_RESULT *result)
Definition: dec_stairheur.cpp:1365
static vector< int >::iterator findBlockingCandidate(vector< int >::iterator it_constrictions, vector< int > *it_vector, int min_block_size, int prev_block_last_row)
Definition: dec_stairheur.cpp:1060
static SCIP_RETCODE rankOrderClusteringIteration(SCIP *scip, gcg::PARTIALDECOMP *partialdec, gcg::DETPROBDATA *detprobdata, GCG_DETECTORDATA *detectordata, INDEXMAP *inputmap, INDEXMAP *outputmap)
Definition: dec_stairheur.cpp:791
static GCG_DECL_FREEDETECTOR(detectorFreeStairheur)
Definition: dec_stairheur.cpp:1624
static SCIP_RETCODE blockingAsSoonAsPossible(SCIP *scip, GCG_DETECTORDATA *detectordata, int desired_blocks, int nvars)
Definition: dec_stairheur.cpp:1332
detector for staircase structures via ROC algorithms
#define SCIP_MAXSTRLEN
#define SCIP_Bool
#define MIN(x, y)
#define SCIP_Real
#define MAX(x, y)
#define SCIP_CALL_ABORT(x)
#define SCIP_CALL(x)
#define TRUE
#define FALSE
GCG interface methods.
const char * SCIPgetProbName(SCIP *scip)
SCIP_CONS ** SCIPgetConss(SCIP *scip)
int SCIPgetNVars(SCIP *scip)
int SCIPgetNConss(SCIP *scip)
void SCIPhashmapFree(SCIP_HASHMAP **hashmap)
void * SCIPhashmapGetImage(SCIP_HASHMAP *hashmap, void *origin)
SCIP_RETCODE SCIPhashmapInsert(SCIP_HASHMAP *hashmap, void *origin, void *image)
SCIP_RETCODE SCIPhashmapSetImage(SCIP_HASHMAP *hashmap, void *origin, void *image)
SCIP_RETCODE SCIPhashmapCreate(SCIP_HASHMAP **hashmap, BMS_BLKMEM *blkmem, int mapsize)
SCIP_Bool SCIPhashmapExists(SCIP_HASHMAP *hashmap, void *origin)
SCIP_RETCODE SCIPhashmapRemoveAll(SCIP_HASHMAP *hashmap)
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
void SCIPverbMessage(SCIP *scip, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...)
void SCIPwarningMessage(SCIP *scip, const char *formatstr,...)
SCIP_RETCODE SCIPaddIntParam(SCIP *scip, const char *name, const char *desc, int *valueptr, SCIP_Bool isadvanced, int defaultvalue, int minvalue, int maxvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_RETCODE SCIPaddBoolParam(SCIP *scip, const char *name, const char *desc, SCIP_Bool *valueptr, SCIP_Bool isadvanced, SCIP_Bool defaultvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_RETCODE SCIPsetBoolParam(SCIP *scip, const char *name, SCIP_Bool value)
SCIP_RETCODE SCIPgetConsNVars(SCIP *scip, SCIP_CONS *cons, int *nvars, SCIP_Bool *success)
SCIP_RETCODE SCIPgetConsVars(SCIP *scip, SCIP_CONS *cons, SCIP_VAR **vars, int varssize, SCIP_Bool *success)
#define SCIPreallocMemoryArray(scip, ptr, newnum)
BMS_BLKMEM * SCIPblkmem(SCIP *scip)
#define SCIPallocMemoryArray(scip, ptr, num)
#define SCIPallocClearBufferArray(scip, ptr, num)
#define SCIPallocMemory(scip, ptr)
#define SCIPfreeBufferArray(scip, ptr)
#define SCIPfreeMemoryArray(scip, ptr)
#define SCIPfreeMemory(scip, ptr)
SCIP_RETCODE SCIPcreateClock(SCIP *scip, SCIP_CLOCK **clck)
SCIP_RETCODE SCIPresetClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPstopClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPfreeClock(SCIP *scip, SCIP_CLOCK **clck)
SCIP_Real SCIPgetClockTime(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPstartClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_Real SCIPround(SCIP *scip, SCIP_Real val)
SCIP_VAR * SCIPvarGetProbvar(SCIP_VAR *var)
int SCIPsnprintf(char *t, int len, const char *s,...)
#define NULL
Definition: class_conspartition.cpp:44
public methods for working with decomposition structures
#define SCIPdebugMessage
#define SCIPdebugPrintf
various SCIP helper methods
Definition: dec_compgreedily.cpp:75
SCIP_Bool blockingassoonaspossible
Definition: dec_stairheur.cpp:137
vector< int > * rowsWithConstrictions
Definition: dec_stairheur.cpp:132
Definition: struct_gcg.h:55
Definition: dec_stairheur.cpp:104
interface data structure for the detector calling methods
Definition: class_detprobdata.h:746
gcg::PARTIALDECOMP ** newpartialdecs
Definition: class_detprobdata.h:749
structure information for decomposition information in GCG projects
SCIP_VERBLEVEL_NORMAL
SCIP_DIDNOTRUN
SCIP_DIDNOTFIND
SCIP_SUCCESS
enum SCIP_Result SCIP_RESULT
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE