Detailed Description
constraint handler for structure detection
This constraint handler manages the structure detection process. It will run all registered structure detectors in an iterative refinement scheme. Afterwards some post-processing detectors might be called.
Definition in file cons_decomp.h.
Go to the source code of this file.
Typedefs | |
| typedef struct PARTIALDECOMP_C | PARTIALDECOMP_C |
Functions | |
| GCG_EXPORT char | GCGdetectorGetChar (GCG_DETECTOR *detector) |
| Gets the character of the detector. More... | |
| GCG_EXPORT GCG_DETECTORDATA * | GCGdetectorGetData (GCG_DETECTOR *detector) |
| returns the data of the provided detector More... | |
| GCG_EXPORT const char * | GCGdetectorGetName (GCG_DETECTOR *detector) |
| returns the name of the provided detector More... | |
| GCG_EXPORT SCIP_RETCODE | GCGdetectStructure (GCG *gcg, SCIP_RESULT *result) |
| interface method to detect the structure including presolving More... | |
| GCG_EXPORT 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 More... | |
| GCG_EXPORT 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 More... | |
| GCG_EXPORT GCG_DETECTOR * | GCGfindDetector (GCG *gcg, const char *name) |
| searches for the detector with the given name and returns it or NULL if detector is not found More... | |
| GCG_EXPORT SCIP_Real | GCGconshdlrDecompAdaptScore (GCG *gcg, SCIP_Real oldscore) |
| method to adapt score for orig decomps More... | |
| GCG_SCORE * | GCGconshdlrDecompFindScore (GCG *gcg, const char *name) |
| searches for the score with the given name and returns it or NULL if score is not found More... | |
| GCG_SCORE * | GCGconshdlrDecompFindScoreByShortname (GCG *gcg, const char *shortname) |
| searches for the score with the given shortname and returns it or NULL if score is not found More... | |
| GCG_EXPORT GCG_DECOMP * | GCGgetBestDecomp (GCG *gcg, SCIP_Bool printwarnings) |
| Gets the best known decomposition. More... | |
| GCG_EXPORT SCIP_Real | GCGgetRemainingTime (GCG *gcg) |
| returns the remaining time of scip that the decomposition may use More... | |
| GCG_EXPORT SCIP_RETCODE | GCGincludeConsClassifier (GCG *gcg, const char *name, const char *description, int priority, SCIP_Bool enabled, GCG_CLASSIFIERDATA *classifierdata, GCG_DECL_FREECONSCLASSIFIER((*freeClassifier)), GCG_DECL_CONSCLASSIFY((*classify))) |
| includes one constraint classifier More... | |
| GCG_EXPORT 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)), GCG_DECL_SETPARAMFAST((*setParamFastDetector))) |
| includes one detector More... | |
| GCG_EXPORT SCIP_RETCODE | GCGincludeVarClassifier (GCG *gcg, const char *name, const char *description, int priority, SCIP_Bool enabled, GCG_CLASSIFIERDATA *classifierdata, GCG_DECL_FREEVARCLASSIFIER((*freeClassifier)), GCG_DECL_VARCLASSIFY((*classify))) |
| includes one variable classifier More... | |
| SCIP_RETCODE | GCGconshdlrDecompIncludeScore (GCG *gcg, const char *name, const char *shortname, const char *description, GCG_SCOREDATA *scoredata, GCG_DECL_SCOREFREE((*scorefree)), GCG_DECL_SCORECALC((*scorecalc))) |
| includes one score More... | |
| GCG_EXPORT void | GCGprintListOfDetectors (GCG *gcg) |
| writes out a list of all detectors More... | |
| GCG_EXPORT SCIP_RETCODE | GCGwriteAllDecomps (GCG *gcg, char *directory, char *extension, SCIP_Bool original, SCIP_Bool presolved) |
| write out all known decompositions More... | |
| GCG_EXPORT SCIP_RETCODE | GCGwriteSelectedDecomps (GCG *gcg, char *directory, char *extension) |
| writes all selected decompositions More... | |
| GCG_EXPORT void | GCGconshdlrDecompAddCandidatesNBlocks (GCG *gcg, SCIP_Bool origprob, int candidate) |
| adds a candidate for block number and counts how often a candidate is added More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompAddBasicPartialdec (GCG *gcg, SCIP_Bool presolved, PARTIALDECOMP_C **partialdecomp) |
| creates and adds a basic partialdecomp (all cons/vars are assigned to master) More... | |
| GCG_EXPORT int | GCGconshdlrDecompAddMatrixPartialdec (GCG *gcg, SCIP_Bool presolved) |
| creates a pure matrix partialdecomp (i.e. all cons/vars to one single block) More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompAddPreexistingDecomp (GCG *gcg, GCG_DECOMP *decomp) |
| adds a decomp that exists before the detection is called More... | |
| GCG_EXPORT void | GCGconshdlrDecompAddUserCandidatesNBlocks (GCG *gcg, int candidate) |
| adds a candidate for block size given by the user More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompArePricingprobsIdenticalForPartialdec (GCG *gcg, PARTIALDECOMP_C *partialdecomp, int probnr1, int probnr2, SCIP_Bool *identical) |
| checks if two pricing problems are identical based on information from detection More... | |
| GCG_EXPORT void | GCGconshdlrDecompCalcCandidatesNBlocks (GCG *gcg, SCIP_Bool transformed) |
| calculates and adds block size candidates using constraint classifications and variable classifications More... | |
| GCG_EXPORT SCIP_Bool | GCGconshdlrDecompCheckConsistency (GCG *gcg) |
| check whether partialdecs are consistent More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompClassify (GCG *gcg, SCIP_Bool transformed) |
| run classification of vars and cons More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompCreateVarmapForPartialdec (GCG *gcg, SCIP_HASHMAP **hashorig2pricingvar, PARTIALDECOMP_C *partialdecomp, int probnr1, int probnr2, SCIP *scip1, SCIP *scip2, SCIP_HASHMAP *varmap) |
| for two identical pricing problems a corresponding varmap is created More... | |
| GCG_EXPORT int | GCGconshdlrDecompDecreaseNCallsCreateDecomp (GCG *gcg) |
| decreases the counter for created decompositions and returns it More... | |
| GCG_EXPORT void | GCGconshdlrDecompDeregisterPartialdecs (GCG *gcg, SCIP_Bool original) |
| deregisters partialdecs in the conshdlr More... | |
| void | GCGconshdlrDecompFreeDetprobdata (GCG *gcg) |
| Frees Detprobdata of the original and transformed/presolved problem. More... | |
| GCG_EXPORT void | GCGconshdlrDecompFreeOrigOnExit (GCG *gcg, SCIP_Bool free) |
| sets freeing of detection data of original problem during exit to true More... | |
| GCG_EXPORT int | GCGconshdlrDecompGetBlockNumberCandidate (GCG *gcg, int index) |
| returns block number user candidate with given index More... | |
| GCG_EXPORT SCIP_Real | GCGconshdlrDecompGetCompleteDetectionTime (GCG *gcg) |
| returns the total detection time More... | |
| GCG_EXPORT GCG_DECOMP ** | GCGconshdlrDecompGetDecomps (GCG *gcg) |
| returns an array containing all decompositions More... | |
| GCG_EXPORT GCG_DETECTOR ** | GCGconshdlrDecompGetDetectors (GCG *gcg) |
| Gets an array of all detectors. More... | |
| GCG_SCORE ** | GCGconshdlrDecompGetScores (GCG *gcg) |
| Gets an array of all scores. More... | |
| GCG_EXPORT char * | GCGgetCurrentScoreShortname (GCG *gcg) |
| Gets the shortname of the currently enabled score. More... | |
| GCG_EXPORT GCG_SCORE * | GCGgetCurrentScore (GCG *gcg) |
| Gets the currently enabled score. More... | |
| GCG_EXPORT GCG_CONSCLASSIFIER ** | GCGconshdlrDecompGetConsClassifiers (GCG *gcg) |
| gets an array of all constraint classifier More... | |
| GCG_EXPORT GCG_VARCLASSIFIER ** | GCGconshdlrDecompGetVarClassifiers (GCG *gcg) |
| gets an array of all variable classifier More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompGetFinishedPartialdecsList (GCG *gcg, int **idlist, int *listlength) |
| Gets a list of ids of the current partialdecs that are finished. More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompGetPartialdecsList (GCG *gcg, int **idlist, int *listlength) |
| Gets a list of ids of the current partialdecs. More... | |
| GCG_EXPORT int | GCGconshdlrDecompGetNBlockNumberCandidates (GCG *gcg) |
| returns the number of block candidates given by the user More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNBlocks (PARTIALDECOMP_C *partialdecomp) |
| gets block number of partialdec More... | |
| GCG_EXPORT int | GCGconshdlrDecompGetNDecomps (GCG *gcg) |
| gets the number of decompositions (= amount of finished partialdecs) More... | |
| GCG_EXPORT int | GCGconshdlrDecompGetNDetectors (GCG *gcg) |
| Gets the number of all detectors. More... | |
| int | GCGconshdlrDecompGetNScores (GCG *gcg) |
| Gets the number of all scores. More... | |
| GCG_EXPORT int | GCGconshdlrDecompGetNConsClassifiers (GCG *gcg) |
| Gets the number of all constraint classifiers. More... | |
| GCG_EXPORT int | GCGconshdlrDecompGetNVarClassifiers (GCG *gcg) |
| Gets the number of all variable classifiers. More... | |
| GCG_EXPORT int | GCGconshdlrDecompGetNextPartialdecID (GCG *gcg) |
| Gets the next partialdec id managed by cons_decomp. More... | |
| GCG_EXPORT int | GCGconshdlrDecompGetNFormerDetectionConssForID (GCG *gcg, int id) |
| gets number of active constraints during the detection of the decomp with given id More... | |
| GCG_EXPORT SCIP_Bool | GCGconshdlrDecompPartialdecAggregationInformationCalculated (PARTIALDECOMP_C *partialdecomp) |
| returns whether aggregation information has been calculated for a partialdec More... | |
| GCG_EXPORT void | GCGconshdlrDecompPartialdecCalcAggregationInformation (PARTIALDECOMP_C *partialdecomp, SCIP_Bool ignoreDetectionLimits) |
| calculates aggregation information for a partialdec More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNEquivalenceClasses (PARTIALDECOMP_C *partialdecomp) |
| gets number of equivalence classes of partialdec More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetReprBlockForEqClass (PARTIALDECOMP_C *partialdecomp, int eqclass) |
| gets the representative block of a equivalence class of partialdec More... | |
| GCG_EXPORT const int * | GCGconshdlrDecompPartialdecGetBlocksForEqClass (PARTIALDECOMP_C *partialdecomp, int eqclass) |
| gets the blocks of a equivalence class of partialdec More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNBlocksForEqClass (PARTIALDECOMP_C *partialdecomp, int eqclass) |
| gets the number of blocks of a equivalence class of partialdec More... | |
| GCG_EXPORT const int * | GCGconshdlrDecompPartialdecGetRepVarMap (PARTIALDECOMP_C *partialdecomp, int eqclass, int eqclassblock) |
| Returns a vector that maps probvar indices of a block contained in an equivalence class to the probvar indices of the representative block of the class. More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNLinkingVars (PARTIALDECOMP_C *partialdecomp) |
| gets number of linking variables of partialdec More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNMasterConss (PARTIALDECOMP_C *partialdecomp) |
| gets number of master constraints of partialdec More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNMasterVars (PARTIALDECOMP_C *partialdecomp) |
| gets number of master variables of partialdec More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNOpenConss (PARTIALDECOMP_C *partialdecomp) |
| gets number of open constraints of partialdec More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNOpenVars (PARTIALDECOMP_C *partialdecomp) |
| gets number of open variables of partialdec More... | |
| GCG_EXPORT SCIP_VAR * | GCGconshdlrDecompPartialdecGetOrigVarForBlock (PARTIALDECOMP_C *partialdecomp, int block, int blockvarindex) |
| returns the original variable for a block and index More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNVarsForBlock (PARTIALDECOMP_C *partialdecomp, int block) |
| gets the number of variables of a block More... | |
| GCG_EXPORT unsigned int | GCGconshdlrDecompGetNFinishedPartialdecsOrig (GCG *gcg) |
| Gets the number of finished partialdecs available for the original problem. More... | |
| GCG_EXPORT unsigned int | GCGconshdlrDecompGetNFinishedPartialdecsTransformed (GCG *gcg) |
| Gets the number of finished partialdecs available for the transformed problem. More... | |
| GCG_EXPORT unsigned int | GCGconshdlrDecompGetNOpenPartialdecsOrig (GCG *gcg) |
| Gets the number of open partialdecs available for the original problem. More... | |
| GCG_EXPORT unsigned int | GCGconshdlrDecompGetNOpenPartialdecsTransformed (GCG *gcg) |
| Gets the number of open partialdecs available for the transformed problem. More... | |
| GCG_EXPORT unsigned int | GCGconshdlrDecompGetNPartialdecs (GCG *gcg) |
| Gets the number of all partialdecs. More... | |
| GCG_EXPORT unsigned int | GCGconshdlrDecompGetNPartialdecsOrig (GCG *gcg) |
| Gets the number of partialdecs available for the original problem. More... | |
| GCG_EXPORT unsigned int | GCGconshdlrDecompGetNPartialdecsTransformed (GCG *gcg) |
| Gets the number of partialdecs available for the transformed problem. More... | |
| GCG_EXPORT int | GCGconshdlrDecompPartialdecGetNStairlinkingVars (PARTIALDECOMP_C *partialdecomp) |
| gets number of stairlinking variables of partialdec More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompGetPartialdecFromID (GCG *gcg, int partialdecid, PARTIALDECOMP_C **partialdecomp) |
| Gets wrapped PARTIALDECOMP with given id. More... | |
| GCG_EXPORT SCIP_Real | GCGconshdlrDecompGetPartialdecScore (PARTIALDECOMP_C *partialdecomp) |
| gets score of partialdec More... | |
| GCG_EXPORT SCIP_CLOCK * | GCGconshdlrDecompGetScoreClock (GCG *gcg) |
| gets the clock tracking the score computation time More... | |
| GCG_EXPORT SCIP_Real | GCGconshdlrDecompGetScoreTotalTime (GCG *gcg) |
| gets total score computation time More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompGetSelectedPartialdecs (GCG *gcg, int **idlist, int *listlength) |
| Gets a list of ids of all currently selected partialdecs. More... | |
| GCG_EXPORT int | GCGconshdlrDecompIncreaseNCallsCreateDecomp (GCG *gcg) |
| counts up the counter for created decompositions and returns it More... | |
| GCG_EXPORT SCIP_Bool | GCGconshdlrDecompPartialdecIsPresolved (PARTIALDECOMP_C *partialdecomp) |
| gets whether partialdec is presolved More... | |
| GCG_EXPORT SCIP_Bool | GCGconshdlrDecompPartialdecIsSelected (PARTIALDECOMP_C *partialdececomp) |
| gets whether partialdec is selected More... | |
| GCG_EXPORT SCIP_Bool | GCGconshdlrDecompOrigDetprobdataExists (GCG *gcg) |
| returns whether or not a detprobdata structure for the original problem exists More... | |
| GCG_EXPORT SCIP_Bool | GCGconshdlrDecompOrigPartialdecExists (GCG *gcg) |
| returns whether or not an original decompositions exists in the data structures More... | |
| GCG_EXPORT SCIP_Bool | GCGconshdlrDecompPresolvedDetprobdataExists (GCG *gcg) |
| returns whether or not a detprobdata structure for the presolved problem exists More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompPrintDetectorStatistics (GCG *gcg, FILE *file) |
| display statistics about detectors More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompPrintScoreStatistics (GCG *gcg, FILE *file) |
| display statistics about scores More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompSelectPartialdec (PARTIALDECOMP_C *partialdecomp, SCIP_Bool select) |
| selects/unselects a partialdecomp More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompSetDetection (GCG *gcg, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet) |
| sets detector parameters values More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompTranslateNBestOrigPartialdecs (GCG *gcg, int n, SCIP_Bool completeGreedily, SCIP_Bool translateSymmetry) |
| translates n best unpresolved partialdec to a complete presolved one More... | |
| GCG_EXPORT SCIP_RETCODE | GCGconshdlrDecompTranslateOrigPartialdecs (GCG *gcg) |
| translates unpresolved partialdec to a complete presolved one More... | |
| GCG_EXPORT SCIP_Bool | GCGdetectionTookPlace (GCG *gcg, SCIP_Bool original) |
| GCG_EXPORT SCIP_RETCODE | SCIPconshdlrDecompRepairConsNames (GCG *gcg) |
| GCG_EXPORT SCIP_RETCODE | GCGincludeConshdlrDecomp (GCG *gcg) |
| creates the constraint handler for decomp and includes it in SCIP More... | |
Typedef Documentation
◆ PARTIALDECOMP_C
| typedef struct PARTIALDECOMP_C PARTIALDECOMP_C |
Definition at line 59 of file cons_decomp.h.
Function Documentation
◆ GCGdetectorGetChar()
| GCG_EXPORT char GCGdetectorGetChar | ( | GCG_DETECTOR * | detector | ) |
Gets the character of the detector.
- Returns
- detector character
- Parameters
-
detector pointer to detector
Definition at line 2064 of file cons_decomp.cpp.
References GCG_Detector::decchar, and NULL.
Referenced by gcg::PARTIALDECOMP::buildDecChainString(), and gcg::GCGdialogShowLegend().
◆ GCGdetectorGetData()
| GCG_EXPORT GCG_DETECTORDATA * GCGdetectorGetData | ( | GCG_DETECTOR * | detector | ) |
returns the data of the provided detector
- Returns
- data of the provided detector
- Parameters
-
detector Detector data structure
Definition at line 2075 of file cons_decomp.cpp.
References GCG_Detector::decdata, and NULL.
Referenced by GCG_DECL_EXITDETECTOR(), GCG_DECL_FINISHPARTIALDEC(), GCG_DECL_FREEDETECTOR(), GCG_DECL_INITDETECTOR(), and GCG_DECL_PROPAGATEPARTIALDEC().
◆ GCGdetectorGetName()
| GCG_EXPORT const char * GCGdetectorGetName | ( | GCG_DETECTOR * | detector | ) |
returns the name of the provided detector
- Returns
- name of the given detector
- Parameters
-
detector detector data structure
Definition at line 2084 of file cons_decomp.cpp.
References GCG_Detector::name, and NULL.
Referenced by detect(), gcg::PARTIALDECOMP::displayInfo(), GCG_DECL_EXITDETECTOR(), GCG_DECL_FREEDETECTOR(), GCG_DECL_INITDETECTOR(), GCG_DECL_SETPARAMAGGRESSIVE(), GCG_DECL_SETPARAMDEFAULT(), GCG_DECL_SETPARAMFAST(), gcg::GCGdialogShowLegend(), GCGprintDecompInformation(), writePartialdec(), and writeTexPartialdecStatistics().
◆ GCGdetectStructure()
| GCG_EXPORT SCIP_RETCODE GCGdetectStructure | ( | GCG * | gcg, |
| SCIP_RESULT * | result | ||
| ) |
interface method to detect the structure including presolving
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure result Result pointer to indicate whether some structure was found
Definition at line 2093 of file cons_decomp.cpp.
References gcg::DETPROBDATA::addCandidatesNBlocksNVotes(), gcg::DETPROBDATA::addPartialdecToOpen(), gcg::DETPROBDATA::candidatesNBlocks, SCIP_ConshdlrData::completedetectionclock, detect(), SCIP_ConshdlrData::detectorclock, SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, SCIP_ConshdlrData::enabled, FALSE, gcg::DETPROBDATA::freeTemporaryData(), GCG_DECMODE_ORIGINAL, GCGconshdlrDecompCalcCandidatesNBlocks(), GCGconshdlrDecompClassify(), GCGconshdlrDecompGetCompleteDetectionTime(), GCGgetDecompositionMode(), GCGgetOrigprob(), getConshdlrdata(), gcg::DETPROBDATA::getNFinishedPartialdecs(), gcg::DETPROBDATA::getOpenPartialdecs(), SCIP_ConshdlrData::hasrun, SCIP_ConshdlrData::hasrunoriginal, NULL, gcg::DETPROBDATA::printBlockcandidateInformation(), resetDetprobdata(), SCIP_Bool, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_ERROR, SCIP_OKAY, SCIP_STAGE_INIT, SCIP_STAGE_PRESOLVED, SCIP_STAGE_TRANSFORMED, SCIP_SUCCESS, SCIP_VERBLEVEL_DIALOG, SCIP_VERBLEVEL_FULL, SCIP_VERBLEVEL_HIGH, SCIP_VERBLEVEL_NORMAL, SCIPdebugMessage, SCIPerrorMessage, SCIPgetBoolParam(), SCIPgetClockTime(), SCIPgetNConss(), SCIPgetNOrigConss(), SCIPgetNOrigVars(), SCIPgetNVars(), SCIPgetStage(), SCIPgetVerbLevel(), SCIPresetClock(), SCIPstartClock(), SCIPstopClock(), SCIPtransformProb(), SCIPverbMessage(), gcg::DETPROBDATA::sortFinishedForScore(), and TRUE.
Referenced by buildProblem(), GCGdetect(), and GCGsolve().
◆ GCGfindConsClassifier()
| GCG_EXPORT 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
- Returns
- consclassifier pointer or NULL if consclassifier with given name is not found
- Parameters
-
gcg GCG data structure name the name of the searched consclassifier
Definition at line 2279 of file cons_decomp.cpp.
References SCIP_ConshdlrData::consclassifiers, getConshdlrdata(), GCG_ConsClassifier::name, SCIP_ConshdlrData::nconsclassifiers, and NULL.
Referenced by GCG_DECL_CONSCLASSIFY().
◆ GCGfindVarClassifier()
| GCG_EXPORT 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
- Returns
- varclassifier pointer or NULL if varclassifier with given name is not found
- Parameters
-
gcg GCG data structure name the name of the searched varclassifier
Definition at line 2305 of file cons_decomp.cpp.
References getConshdlrdata(), GCG_VarClassifier::name, NULL, SCIP_ConshdlrData::nvarclassifiers, and SCIP_ConshdlrData::varclassifiers.
Referenced by GCG_DECL_VARCLASSIFY().
◆ GCGfindDetector()
| GCG_EXPORT GCG_DETECTOR * GCGfindDetector | ( | GCG * | gcg, |
| const char * | name | ||
| ) |
searches for the detector with the given name and returns it or NULL if detector is not found
- Returns
- detector pointer or NULL if detector with given name is not found
- Parameters
-
gcg GCG data structure name the name of the searched detector
Definition at line 2331 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detectors, getConshdlrdata(), GCG_Detector::name, SCIP_ConshdlrData::ndetectors, and NULL.
Referenced by GCGincludeDetector().
◆ GCGconshdlrDecompAdaptScore()
| GCG_EXPORT SCIP_Real GCGconshdlrDecompAdaptScore | ( | GCG * | gcg, |
| SCIP_Real | oldscore | ||
| ) |
method to adapt score for orig decomps
- Returns
- new score
- Returns
- new score
- Parameters
-
gcg GCG data structure oldscore current score (to be updated)
Definition at line 1528 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, FAVOUR_PRESOLVED, FRACTION_OF_NNONZEROS, FRACTION_OF_NROWS, GCGgetOrigprob(), getConshdlrdata(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNNonzeros(), NULL, SCIP_CALL, SCIP_Real, and SCIPgetIntParam().
◆ GCGconshdlrDecompFindScore()
searches for the score with the given name and returns it or NULL if score is not found
- Returns
- score pointer or NULL if score with given name is not found
Definition at line 2357 of file cons_decomp.cpp.
References getConshdlrdata(), GCG_Score::name, SCIP_ConshdlrData::nscores, NULL, and SCIP_ConshdlrData::scores.
Referenced by GCG_DECL_SCORECALC(), GCGconshdlrDecompAddPreexisitingPartialDec(), GCGfindScore(), GCGprintDecompInformation(), and gcg::PARTIALDECOMP::getMaxWhiteScore().
◆ GCGconshdlrDecompFindScoreByShortname()
searches for the score with the given shortname and returns it or NULL if score is not found
- Returns
- score pointer or NULL if score with given shortname is not found
Definition at line 2385 of file cons_decomp.cpp.
References getConshdlrdata(), SCIP_ConshdlrData::nscores, NULL, SCIP_ConshdlrData::scores, and GCG_Score::shortname.
Referenced by GCGfindScoreByShortname().
◆ GCGgetBestDecomp()
| GCG_EXPORT GCG_DECOMP * GCGgetBestDecomp | ( | GCG * | gcg, |
| SCIP_Bool | printwarnings | ||
| ) |
Gets the best known decomposition.
- Note
- caller has to free returned GCG_DECOMP
- Returns
- the decomposition if available and NULL otherwise
- Parameters
-
gcg GCG data structure printwarnings should warnings pre printed
Definition at line 2413 of file cons_decomp.cpp.
References createDecompFromPartialdec(), FALSE, GCGconshdlrDecompChooseCandidatesFromSelected(), GCGgetOrigprob(), gcg::PARTIALDECOMP::isAssignedToOrigProb(), gcg::PARTIALDECOMP::isComplete(), NULL, SCIP_STAGE_PROBLEM, and SCIPgetStage().
Referenced by GCGsolve(), GCGwriteDecompositionData(), initRelaxator(), SCIP_DECL_DIALOGEXEC(), and writeREFFile().
◆ GCGgetRemainingTime()
| GCG_EXPORT SCIP_Real GCGgetRemainingTime | ( | GCG * | gcg | ) |
returns the remaining time of scip that the decomposition may use
- Returns
- remaining time that the decompositon may use
- Parameters
-
gcg GCG data structure
Definition at line 2480 of file cons_decomp.cpp.
References GCGgetOrigprob(), NULL, SCIP_CALL_ABORT, SCIP_Real, SCIPgetRealParam(), SCIPgetSolvingTime(), and SCIPisInfinity().
Referenced by callMetis().
◆ GCGincludeConsClassifier()
| GCG_EXPORT SCIP_RETCODE GCGincludeConsClassifier | ( | GCG * | gcg, |
| const char * | name, | ||
| const char * | description, | ||
| int | priority, | ||
| SCIP_Bool | enabled, | ||
| GCG_CLASSIFIERDATA * | classifierdata, | ||
| GCG_DECL_FREECONSCLASSIFIER((*freeClassifier)) | , | ||
| GCG_DECL_CONSCLASSIFY((*classify)) | |||
| ) |
includes one constraint classifier
- Returns
- scip return code
- Parameters
-
gcg GCG data structure name name of the classifier description describing main idea of this classifier priority priority of the classifier enabled whether the classifier should be enabled by default classifierdata classifierdata the associated classifier data (or NULL)
◆ GCGincludeDetector()
| GCG_EXPORT 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)) | , | ||
| GCG_DECL_SETPARAMFAST((*setParamFastDetector)) | |||
| ) |
includes one detector
- Returns
- scip return code
- Parameters
-
gcg GCG data structure name name of the detector decchar char that is used in detector chain history for this detector description describing main idea of this detector freqCallRound frequency the detector gets called in detection loop, i.e. it is called in round r if and only if minCallRound <= r <= maxCallRound AND (r - minCallRound) mod freqCallRound == 0 maxCallRound last detection round the detector gets called minCallRound first round the detector gets called (offset in detection loop) freqCallRoundOriginal frequency the detector gets called in detection loop while detecting of the original problem maxCallRoundOriginal last round the detector gets called while detecting of the original problem minCallRoundOriginal first round the detector gets called (offset in detection loop) while detecting of the original problem priority priority of the detector enabled whether the detector should be enabled by default enabledFinishing whether the finishing should be enabled enabledPostprocessing whether the postprocessing should be enabled skip whether the detector should be skipped if others found structure usefulRecall is it useful to call this detector on a descendant of the propagated partialdec detectordata the associated detector data (or NULL)
◆ GCGincludeVarClassifier()
| GCG_EXPORT SCIP_RETCODE GCGincludeVarClassifier | ( | GCG * | gcg, |
| const char * | name, | ||
| const char * | description, | ||
| int | priority, | ||
| SCIP_Bool | enabled, | ||
| GCG_CLASSIFIERDATA * | classifierdata, | ||
| GCG_DECL_FREEVARCLASSIFIER((*freeClassifier)) | , | ||
| GCG_DECL_VARCLASSIFY((*classify)) | |||
| ) |
includes one variable classifier
- Returns
- scip return code
- Parameters
-
gcg GCG data structure name name of the classifier description description of the classifier priority priority how early classifier is invoked enabled whether the classifier should be enabled by default classifierdata classifierdata the associated classifier data (or NULL)
◆ GCGconshdlrDecompIncludeScore()
| SCIP_RETCODE GCGconshdlrDecompIncludeScore | ( | GCG * | gcg, |
| const char * | name, | ||
| const char * | shortname, | ||
| const char * | description, | ||
| GCG_SCOREDATA * | scoredata, | ||
| GCG_DECL_SCOREFREE((*scorefree)) | , | ||
| GCG_DECL_SCORECALC((*scorecalc)) | |||
| ) |
includes one score
- Returns
- scip return code
- Parameters
-
gcg GCG data structure name name of the score shortname shortname of the score description description of the score scoredata scoredata the associated score data (or NULL)
◆ GCGprintListOfDetectors()
| GCG_EXPORT void GCGprintListOfDetectors | ( | GCG * | gcg | ) |
writes out a list of all detectors
- Parameters
-
gcg GCG data structure
Definition at line 2864 of file cons_decomp.cpp.
References GCG_Detector::decchar, GCG_Detector::description, SCIP_ConshdlrData::detectors, GCG_Detector::enabled, GCGgetOrigprob(), getConshdlrdata(), GCG_Detector::name, SCIP_ConshdlrData::ndetectors, NULL, GCG_Detector::priority, and SCIPdialogMessage().
Referenced by SCIP_DECL_DIALOGEXEC().
◆ GCGwriteAllDecomps()
| GCG_EXPORT SCIP_RETCODE GCGwriteAllDecomps | ( | GCG * | gcg, |
| char * | directory, | ||
| char * | extension, | ||
| SCIP_Bool | original, | ||
| SCIP_Bool | presolved | ||
| ) |
write out all known decompositions
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure directory directory for decompositions extension the file extension for the export original should decomps for original problem be written presolved should decomps for preoslved problem be written
Definition at line 2893 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdatapres, FALSE, GCGgetOrigprob(), GCGgetVisualizationFilename(), getConshdlrdata(), getFinishedPartialdecs(), gcg::DETPROBDATA::getNFinishedPartialdecs(), gcg::PARTIALDECOMP::isAssignedToOrigProb(), NULL, SCIP_ConshdlrData::partialdectowrite, SCIP_CALL, SCIP_CALL_QUIET, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPgetIntParam(), SCIPsnprintf(), SCIPwarningMessage(), SCIPwriteOrigProblem(), and SCIPwriteTransProblem().
Referenced by writeAllDecompositions().
◆ GCGwriteSelectedDecomps()
| GCG_EXPORT SCIP_RETCODE GCGwriteSelectedDecomps | ( | GCG * | gcg, |
| char * | directory, | ||
| char * | extension | ||
| ) |
writes all selected decompositions
- Returns
- scip return code
- Parameters
-
gcg GCG data structure directory directory for decompositions extension extension for decompositions
Definition at line 2964 of file cons_decomp.cpp.
References FALSE, GCGgetOrigprob(), GCGgetVisualizationFilename(), getConshdlrdata(), getSelectedPartialdecs(), NULL, SCIP_ConshdlrData::partialdecs, SCIP_ConshdlrData::partialdectowrite, SCIP_CALL_QUIET, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPsnprintf(), SCIPwarningMessage(), SCIPwriteOrigProblem(), and SCIPwriteTransProblem().
Referenced by writeSelectedDecompositions().
◆ GCGconshdlrDecompAddCandidatesNBlocks()
| GCG_EXPORT void GCGconshdlrDecompAddCandidatesNBlocks | ( | GCG * | gcg, |
| SCIP_Bool | origprob, | ||
| int | candidate | ||
| ) |
adds a candidate for block number and counts how often a candidate is added
- Parameters
-
gcg GCG data structure origprob which DETPROBDATA that should be modified candidate proposed amount of blocks
Definition at line 3035 of file cons_decomp.cpp.
References gcg::DETPROBDATA::candidatesNBlocks, SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, GCGgetOrigprob(), getConshdlrdata(), NULL, SCIP_VERBLEVEL_FULL, and SCIPverbMessage().
Referenced by GCGconshdlrDecompCalcCandidatesNBlocks(), and reorderPermutations().
◆ GCGconshdlrDecompAddBasicPartialdec()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompAddBasicPartialdec | ( | GCG * | gcg, |
| SCIP_Bool | presolved, | ||
| PARTIALDECOMP_C ** | partialdecomp | ||
| ) |
creates and adds a basic partialdecomp (all cons/vars are assigned to master)
- Returns
- SCIP_RETCODE
- Parameters
-
gcg GCG data structure presolved create basic partialdecomp for presolved if true, otherwise for original partialdecomp pointer to the C pointer of the created partialdecomp
Definition at line 3019 of file cons_decomp.cpp.
References addPartialdec(), gcg::PARTIALDECOMP::assignOpenConssToMaster(), gcg::PARTIALDECOMP::prepare(), SCIP_CALL, SCIP_OKAY, and gcg::PARTIALDECOMP::setNBlocks().
Referenced by initRelaxator().
◆ GCGconshdlrDecompAddMatrixPartialdec()
| GCG_EXPORT int GCGconshdlrDecompAddMatrixPartialdec | ( | GCG * | gcg, |
| SCIP_Bool | presolved | ||
| ) |
creates a pure matrix partialdecomp (i.e. all cons/vars to one single block)
matrix is added to list of all partialdecs
- Returns
- id of matrix partialdec
- Parameters
-
gcg GCG data structure presolved create matrix for presolved if true, otherwise for original
Definition at line 3068 of file cons_decomp.cpp.
References gcg::DETPROBDATA::addPartialdecToFinishedUnchecked(), SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, gcg::PARTIALDECOMP::fixConsToBlock(), gcg::PARTIALDECOMP::fixVarToBlock(), GCGconshdlrDecompOrigDetprobdataExists(), GCGconshdlrDecompPresolvedDetprobdataExists(), getConshdlrdata(), gcg::PARTIALDECOMP::getID(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNVars(), NULL, resetDetprobdata(), gcg::PARTIALDECOMP::setNBlocks(), and gcg::PARTIALDECOMP::sort().
Referenced by GCGgetPartialdecToWrite(), and GCGWriteGpDecompMatrix().
◆ GCGconshdlrDecompAddPreexistingDecomp()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompAddPreexistingDecomp | ( | GCG * | gcg, |
| GCG_DECOMP * | decomp | ||
| ) |
adds a decomp that exists before the detection is called
- Note
- this method should only be called if there is no partialdec for this decomposition
- Returns
- scip return code
- Parameters
-
gcg GCG data structure decomp decomposition data structure
Definition at line 3112 of file cons_decomp.cpp.
References createPartialdecFromDecomp(), GCGconshdlrDecompAddPreexisitingPartialDec(), GCGgetOrigprob(), GCG_Decomp::presolved, SCIP_CALL, SCIP_ERROR, SCIP_OKAY, SCIP_STAGE_PRESOLVED, SCIPerrorMessage, and SCIPgetStage().
Referenced by readRef().
◆ GCGconshdlrDecompAddUserCandidatesNBlocks()
| GCG_EXPORT void GCGconshdlrDecompAddUserCandidatesNBlocks | ( | GCG * | gcg, |
| int | candidate | ||
| ) |
adds a candidate for block size given by the user
- Parameters
-
gcg GCG data structure candidate candidate for block size
Definition at line 3264 of file cons_decomp.cpp.
References GCGgetOrigprob(), getConshdlrdata(), NULL, SCIP_STAGE_PROBLEM, SCIP_VERBLEVEL_DIALOG, SCIPdialogMessage(), SCIPgetStage(), SCIPverbMessage(), and SCIP_ConshdlrData::userblocknrcandidates.
Referenced by SCIP_DECL_DIALOGEXEC().
◆ GCGconshdlrDecompArePricingprobsIdenticalForPartialdec()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompArePricingprobsIdenticalForPartialdec | ( | GCG * | gcg, |
| PARTIALDECOMP_C * | partialdecomp, | ||
| int | probnr1, | ||
| int | probnr2, | ||
| SCIP_Bool * | identical | ||
| ) |
checks if two pricing problems are identical based on information from detection
- Returns
- scip return code
- Parameters
-
gcg GCG data structure partialdecomp partial decompostion for which the pricing problems are checked for identity probnr1 index of first block to check probnr2 index of second block to check identical bool pointer to score the result of the check
References SCIP_Bool.
◆ GCGconshdlrDecompCalcCandidatesNBlocks()
| GCG_EXPORT void GCGconshdlrDecompCalcCandidatesNBlocks | ( | GCG * | gcg, |
| SCIP_Bool | transformed | ||
| ) |
calculates and adds block size candidates using constraint classifications and variable classifications
- Parameters
-
gcg GCG data structure transformed whether to find the candidates for the transformed problem, otherwise the original
Definition at line 3319 of file cons_decomp.cpp.
References SCIP_ConshdlrData::blocknumbercandsmedianvarspercons, gcg::DETPROBDATA::conspartitioncollection, SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, gcd(), GCGconshdlrDecompAddCandidatesNBlocks(), GCGgetOrigprob(), getConshdlrdata(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNVars(), gcg::DETPROBDATA::getNVarsForCons(), gcg::DETPROBDATA::isAssignedToOrigProb(), SCIP_ConshdlrData::maxnclassesfornblockcandidates, gcg::DETPROBDATA::nblockscandidatescalctime, NULL, partition(), SCIP_Bool, SCIP_VERBLEVEL_HIGH, SCIPcreateClock(), SCIPfreeClock(), SCIPgetClockTime(), SCIPstartClock(), SCIPstopClock(), SCIPverbMessage(), and gcg::DETPROBDATA::varpartitioncollection.
Referenced by GCGdetectStructure(), and writeCls().
◆ GCGconshdlrDecompCheckConsistency()
| GCG_EXPORT SCIP_Bool GCGconshdlrDecompCheckConsistency | ( | GCG * | gcg | ) |
check whether partialdecs are consistent
Checks whether 1) the predecessors of all finished partialdecs in both detprobdatas can be found 2) selected list is synchron with selected information in partialdecs 3) selected exists is synchronized with selected list
- Returns
- true if partialdec information is consistent
- Parameters
-
gcg GCG data structure *
Definition at line 3443 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, FALSE, GCGconshdlrDecompGetPartialdecFromID(), GCGgetOrigprob(), gcg::PARTIALDECOMP::getAncestorID(), getConshdlrdata(), gcg::DETPROBDATA::getFinishedPartialdec(), gcg::PARTIALDECOMP::getID(), gcg::PARTIALDECOMP::getNAncestors(), gcg::DETPROBDATA::getNFinishedPartialdecs(), NULL, SCIP_Bool, SCIPwarningMessage(), and TRUE.
Referenced by GCGconshdlrDecompChooseCandidatesFromSelected(), GCGprintDecompInformation(), and GCGsolve().
◆ GCGconshdlrDecompClassify()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompClassify | ( | GCG * | gcg, |
| SCIP_Bool | transformed | ||
| ) |
run classification of vars and cons
- Returns
- scip return code
- Parameters
-
gcg GCG data structure transformed whether to classify the transformed problem, otherwise the original
Definition at line 3576 of file cons_decomp.cpp.
References gcg::DETPROBDATA::classificationtime, SCIP_ConshdlrData::consclassifiers, SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, SCIP_ConshdlrData::gcg, GCGgetOrigprob(), getConshdlrdata(), GCG_ConsClassifier::name, GCG_VarClassifier::name, SCIP_ConshdlrData::nconsclassifiers, SCIP_ConshdlrData::nvarclassifiers, reduceConsclasses(), reduceVarclasses(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPcreateClock(), SCIPfreeClock(), SCIPgetBoolParam(), SCIPgetClockTime(), SCIPsnprintf(), SCIPstartClock(), SCIPstopClock(), and SCIP_ConshdlrData::varclassifiers.
Referenced by GCGdetectStructure(), and writeCls().
◆ GCGconshdlrDecompCreateVarmapForPartialdec()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompCreateVarmapForPartialdec | ( | GCG * | gcg, |
| SCIP_HASHMAP ** | hashorig2pricingvar, | ||
| PARTIALDECOMP_C * | partialdecomp, | ||
| int | probnr1, | ||
| int | probnr2, | ||
| SCIP * | scip1, | ||
| SCIP * | scip2, | ||
| SCIP_HASHMAP * | varmap | ||
| ) |
for two identical pricing problems a corresponding varmap is created
- Parameters
-
scip scip data structure hashorig2pricingvar mapping from orig to pricingvar partialdecomp partial decompostion for which the pricing problems are checked for identity probnr1 index of first block probnr2 index of second block scip1 subscip of first block scip2 subscip of second block varmap mapping from orig to pricingvar
- Returns
- scip return code
◆ GCGconshdlrDecompDecreaseNCallsCreateDecomp()
| GCG_EXPORT int GCGconshdlrDecompDecreaseNCallsCreateDecomp | ( | GCG * | gcg | ) |
decreases the counter for created decompositions and returns it
- Returns
- number of created decompositions that was recently decreased
- Parameters
-
gcg GCG data structure *
Definition at line 3742 of file cons_decomp.cpp.
References getConshdlrdata(), SCIP_ConshdlrData::ncallscreatedecomp, and NULL.
Referenced by GCGdecompFree().
◆ GCGconshdlrDecompDeregisterPartialdecs()
| GCG_EXPORT void GCGconshdlrDecompDeregisterPartialdecs | ( | GCG * | gcg, |
| SCIP_Bool | original | ||
| ) |
deregisters partialdecs in the conshdlr
Use this function for deletion of ALL the partialdecs.
- Parameters
-
gcg GCG data structure original iff TRUE the status with respect to the original problem is returned
Definition at line 3755 of file cons_decomp.cpp.
References getConshdlrdata(), gcg::PARTIALDECOMP::isAssignedToOrigProb(), and SCIP_ConshdlrData::partialdecs.
Referenced by gcg::DETPROBDATA::~DETPROBDATA().
◆ GCGconshdlrDecompFreeDetprobdata()
| void GCGconshdlrDecompFreeDetprobdata | ( | GCG * | gcg | ) |
Frees Detprobdata of the original and transformed/presolved problem.
- Note
- Does not free Detprobdata of the original problem if GCGconshdlrDecompFreeOrigOnExit is set to false.
- Parameters
-
gcg GCG data structure
Definition at line 3810 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, FALSE, SCIP_ConshdlrData::freeorig, getConshdlrdata(), SCIP_ConshdlrData::hasrunoriginal, and NULL.
Referenced by freeBlockMemory(), and SCIP_DECL_CONSEXIT().
◆ GCGconshdlrDecompFreeOrigOnExit()
| GCG_EXPORT void GCGconshdlrDecompFreeOrigOnExit | ( | GCG * | gcg, |
| SCIP_Bool | free | ||
| ) |
sets freeing of detection data of original problem during exit to true
used before calling SCIPfreeTransform(), set to true to revoke presolving (e.g. if unpresolved decomposition is used, and transformation is not successful)
- Parameters
-
gcg GCG data structure free whether to free orig data
Definition at line 3831 of file cons_decomp.cpp.
References SCIP_ConshdlrData::freeorig, getConshdlrdata(), and NULL.
Referenced by GCG_DECL_SOLVERUPDATE(), and solveProblem().
◆ GCGconshdlrDecompGetBlockNumberCandidate()
| GCG_EXPORT int GCGconshdlrDecompGetBlockNumberCandidate | ( | GCG * | gcg, |
| int | index | ||
| ) |
returns block number user candidate with given index
- Parameters
-
scip SCIP data structure index index of block number user candidate that should be returned
- Returns
- block number user candidate with given index
Definition at line 3843 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, and SCIP_ConshdlrData::userblocknrcandidates.
Referenced by gcg::DETPROBDATA::getSortedCandidatesNBlocks().
◆ GCGconshdlrDecompGetCompleteDetectionTime()
| GCG_EXPORT SCIP_Real GCGconshdlrDecompGetCompleteDetectionTime | ( | GCG * | gcg | ) |
returns the total detection time
- Parameters
-
scip SCIP data structure
- Returns
- total detection time
Definition at line 3856 of file cons_decomp.cpp.
References SCIP_ConshdlrData::completedetectionclock, GCGgetOrigprob(), getConshdlrdata(), NULL, SCIP_Real, and SCIPgetClockTime().
Referenced by GCGdetectStructure(), and GCGprintCompleteDetectionTime().
◆ GCGconshdlrDecompGetDecomps()
| GCG_EXPORT GCG_DECOMP ** GCGconshdlrDecompGetDecomps | ( | GCG * | gcg | ) |
returns an array containing all decompositions
Updates the decomp decomposition structure by converting all finished partialdecs into decompositions and replacing the old list in the conshdlr.
- Returns
- decomposition array
- Parameters
-
gcg GCG data structure
Definition at line 3871 of file cons_decomp.cpp.
References createDecompFromPartialdec(), SCIP_ConshdlrData::decomps, GCGconshdlrDecompGetNDecomps(), GCGdecompFree(), GCGgetOrigprob(), getConshdlrdata(), SCIP_ConshdlrData::ndecomps, NULL, SCIP_ConshdlrData::partialdecs, SCIP_CALL_ABORT, SCIPallocBlockMemoryArray, SCIPfreeBlockMemoryArray, and sortPartialdecs().
◆ GCGconshdlrDecompGetDetectors()
| GCG_EXPORT GCG_DETECTOR ** GCGconshdlrDecompGetDetectors | ( | GCG * | gcg | ) |
Gets an array of all detectors.
- Returns
- array of detectors
- Parameters
-
gcg GCG data structure
Definition at line 3917 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detectors, getConshdlrdata(), and NULL.
Referenced by gcg::GCGdialogShowLegend().
◆ GCGconshdlrDecompGetScores()
Gets an array of all scores.
- Returns
- array of scores
Definition at line 3928 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, and SCIP_ConshdlrData::scores.
Referenced by gcg::PARTIALDECOMP::displayInfo(), gcg::GCGdialogChangeScore(), GCGgetScores(), and gcg::PARTIALDECOMP::PARTIALDECOMP().
◆ GCGgetCurrentScoreShortname()
| GCG_EXPORT char * GCGgetCurrentScoreShortname | ( | GCG * | gcg | ) |
Gets the shortname of the currently enabled score.
- Returns
- the shortname of the currently enabled score
Definition at line 2783 of file cons_decomp.cpp.
References SCIP_ConshdlrData::currscore, getConshdlrdata(), and NULL.
Referenced by GCGgetCurrentScore().
◆ GCGgetCurrentScore()
| GCG_EXPORT GCG_SCORE * GCGgetCurrentScore | ( | GCG * | gcg | ) |
Gets the currently enabled score.
- Returns
- the currently enabled score
Definition at line 2796 of file cons_decomp.cpp.
References GCGgetCurrentScoreShortname(), getConshdlrdata(), SCIP_ConshdlrData::nscores, NULL, SCIP_ConshdlrData::scores, and GCG_Score::shortname.
Referenced by GCGconshdlrDecompChooseCandidatesFromSelected(), gcg::GCGdialogShowLegend(), gcg::GCGdialogShowMenu(), gcg::GCGdialogSortBy(), gcg::PARTIALDECOMP::getScore(), gcg::DETPROBDATA::sortFinishedForScore(), writeTexPartialdecStatistics(), and writeTexTitlepage().
◆ GCGconshdlrDecompGetConsClassifiers()
| GCG_EXPORT GCG_CONSCLASSIFIER ** GCGconshdlrDecompGetConsClassifiers | ( | GCG * | gcg | ) |
gets an array of all constraint classifier
- Returns
- array of constraint classifier
- Parameters
-
gcg GCG data structure
Definition at line 3940 of file cons_decomp.cpp.
References SCIP_ConshdlrData::consclassifiers, getConshdlrdata(), and NULL.
Referenced by SCIP_DECL_DIALOGEXEC().
◆ GCGconshdlrDecompGetVarClassifiers()
| GCG_EXPORT GCG_VARCLASSIFIER ** GCGconshdlrDecompGetVarClassifiers | ( | GCG * | gcg | ) |
gets an array of all variable classifier
- Returns
- array of variable classifier
Definition at line 3951 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, and SCIP_ConshdlrData::varclassifiers.
Referenced by SCIP_DECL_DIALOGEXEC().
◆ GCGconshdlrDecompGetFinishedPartialdecsList()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompGetFinishedPartialdecsList | ( | GCG * | gcg, |
| int ** | idlist, | ||
| int * | listlength | ||
| ) |
Gets a list of ids of the current partialdecs that are finished.
- Note
- recommendation: when in doubt plan for as many ids as partialdecs
- See also
- GCGconshdlrDecompGetNPartialdecs
- Returns
- scip return code
- Parameters
-
gcg GCG data structure idlist id list to output to listlength length of output list
Definition at line 3990 of file cons_decomp.cpp.
References getFinishedPartialdecs(), partialdecVecToIdArray(), and SCIP_OKAY.
Referenced by reportAllDecompositions().
◆ GCGconshdlrDecompGetPartialdecsList()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompGetPartialdecsList | ( | GCG * | gcg, |
| int ** | idlist, | ||
| int * | listlength | ||
| ) |
Gets a list of ids of the current partialdecs.
- Note
- recommendation: when in doubt plan for as many ids as partialdecs
- See also
- GCGconshdlrDecompGetNPartialdecs
- Returns
- scip return code
- Parameters
-
gcg GCG data structure idlist id list to output to listlength length of output list
Definition at line 4004 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, SCIP_ConshdlrData::partialdecs, partialdecVecToIdArray(), and SCIP_OKAY.
◆ GCGconshdlrDecompGetNBlockNumberCandidates()
| GCG_EXPORT int GCGconshdlrDecompGetNBlockNumberCandidates | ( | GCG * | gcg | ) |
returns the number of block candidates given by the user
- Returns
- number of block candidates given by the user
- Parameters
-
gcg GCG data structure
Definition at line 4018 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, and SCIP_ConshdlrData::userblocknrcandidates.
Referenced by gcg::DETPROBDATA::getSortedCandidatesNBlocks().
◆ GCGconshdlrDecompPartialdecGetNBlocks()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNBlocks | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets block number of partialdec
- Returns
- block number of partialdec
- Parameters
-
partialdecomp partialdec
Definition at line 4029 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNBlocks(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompGetNDecomps()
| GCG_EXPORT int GCGconshdlrDecompGetNDecomps | ( | GCG * | gcg | ) |
gets the number of decompositions (= amount of finished partialdecs)
- Returns
- number of decompositions
- Parameters
-
gcg GCG data structure
Definition at line 4040 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, and SCIP_ConshdlrData::partialdecs.
Referenced by GCGconshdlrDecompGetDecomps(), GCGgetNDecomps(), reportAllDecompositions(), writeAllDecompositions(), writeSelectedDecompositions(), and writeTexTitlepage().
◆ GCGconshdlrDecompGetNDetectors()
| GCG_EXPORT int GCGconshdlrDecompGetNDetectors | ( | GCG * | gcg | ) |
Gets the number of all detectors.
- Returns
- number of detectors
- Parameters
-
gcg GCG data structure
Definition at line 4061 of file cons_decomp.cpp.
References getConshdlrdata(), SCIP_ConshdlrData::ndetectors, and NULL.
Referenced by gcg::GCGdialogShowLegend().
◆ GCGconshdlrDecompGetNScores()
| int GCGconshdlrDecompGetNScores | ( | GCG * | gcg | ) |
Gets the number of all scores.
- Returns
- number of scores
- Parameters
-
gcg GCG data structure
Definition at line 4091 of file cons_decomp.cpp.
References getConshdlrdata(), SCIP_ConshdlrData::nscores, and NULL.
Referenced by gcg::PARTIALDECOMP::displayInfo(), gcg::GCGdialogChangeScore(), GCGgetNScores(), and gcg::PARTIALDECOMP::PARTIALDECOMP().
◆ GCGconshdlrDecompGetNConsClassifiers()
| GCG_EXPORT int GCGconshdlrDecompGetNConsClassifiers | ( | GCG * | gcg | ) |
Gets the number of all constraint classifiers.
- Returns
- number of constraint classifiers
- Parameters
-
gcg GCG data structure
Definition at line 4071 of file cons_decomp.cpp.
References getConshdlrdata(), SCIP_ConshdlrData::nconsclassifiers, and NULL.
Referenced by SCIP_DECL_DIALOGEXEC().
◆ GCGconshdlrDecompGetNVarClassifiers()
| GCG_EXPORT int GCGconshdlrDecompGetNVarClassifiers | ( | GCG * | gcg | ) |
Gets the number of all variable classifiers.
- Returns
- number of variable classifiers
Definition at line 4081 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, and SCIP_ConshdlrData::nvarclassifiers.
Referenced by SCIP_DECL_DIALOGEXEC().
◆ GCGconshdlrDecompGetNextPartialdecID()
| GCG_EXPORT int GCGconshdlrDecompGetNextPartialdecID | ( | GCG * | gcg | ) |
Gets the next partialdec id managed by cons_decomp.
- Returns
- the next partialdec id managed by cons_decomp
- Parameters
-
gcg GCG data structure *
Definition at line 4102 of file cons_decomp.cpp.
References GCGconshdlrDecompGetPartialdecFromID(), getConshdlrdata(), NULL, and SCIP_ConshdlrData::partialdeccounter.
Referenced by gcg::PARTIALDECOMP::PARTIALDECOMP().
◆ GCGconshdlrDecompGetNFormerDetectionConssForID()
| GCG_EXPORT int GCGconshdlrDecompGetNFormerDetectionConssForID | ( | GCG * | gcg, |
| int | id | ||
| ) |
gets number of active constraints during the detection of the decomp with given id
Gets the number of constraints that were active while detecting the decomposition originating from the partialdec with the given id, this method is used to decide if the problem has changed since detection, if so the aggregation information needs to be recalculated
- Note
- if the partialdec is not complete the function returns -1
- Returns
- number of constraints that were active while detecting the decomposition
- Parameters
-
gcg GCG data structure id id of the partialdec the information is asked for
Definition at line 4117 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, and SCIP_ConshdlrData::partialdecsbyid.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecAggregationInformationCalculated()
| GCG_EXPORT SCIP_Bool GCGconshdlrDecompPartialdecAggregationInformationCalculated | ( | PARTIALDECOMP_C * | partialdecomp | ) |
returns whether aggregation information has been calculated for a partialdec
- Returns
- bool that indicates whether aggregation information has been calculated
- Parameters
-
partialdecomp partialdec
Definition at line 4137 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::aggInfoCalculated(), NULL, and SCIP_Bool.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecCalcAggregationInformation()
| GCG_EXPORT void GCGconshdlrDecompPartialdecCalcAggregationInformation | ( | PARTIALDECOMP_C * | partialdecomp, |
| SCIP_Bool | ignoreDetectionLimits | ||
| ) |
calculates aggregation information for a partialdec
- Parameters
-
partialdecomp partialdec ignoreDetectionLimits Set to true if computation should ignore detection limits. This parameter is ignored if the patched bliss version is not present.
Definition at line 4147 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::calcAggregationInformation(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecGetNEquivalenceClasses()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNEquivalenceClasses | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets number of equivalence classes of partialdec
- Returns
- number of equivalence classes of partialdec
- Parameters
-
partialdecomp partialdec
Definition at line 4158 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNEquivalenceClasses(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecGetReprBlockForEqClass()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetReprBlockForEqClass | ( | PARTIALDECOMP_C * | partialdecomp, |
| int | eqclass | ||
| ) |
gets the representative block of a equivalence class of partialdec
- Returns
- representative block
- Parameters
-
partialdecomp partialdec eqclass id of the equivalence class
Definition at line 4168 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getReprBlockForEqClass(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecGetBlocksForEqClass()
| GCG_EXPORT const int * GCGconshdlrDecompPartialdecGetBlocksForEqClass | ( | PARTIALDECOMP_C * | partialdecomp, |
| int | eqclass | ||
| ) |
gets the blocks of a equivalence class of partialdec
- Returns
- representative block
- Parameters
-
partialdecomp partialdec eqclass id of the equivalence class
Definition at line 4179 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getBlocksForEqClass(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecGetNBlocksForEqClass()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNBlocksForEqClass | ( | PARTIALDECOMP_C * | partialdecomp, |
| int | eqclass | ||
| ) |
gets the number of blocks of a equivalence class of partialdec
- Returns
- representative block
- Parameters
-
partialdecomp partialdec eqclass id of the equivalence class
Definition at line 4190 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getBlocksForEqClass(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecGetRepVarMap()
| GCG_EXPORT const int * GCGconshdlrDecompPartialdecGetRepVarMap | ( | PARTIALDECOMP_C * | partialdecomp, |
| int | eqclass, | ||
| int | eqclassblock | ||
| ) |
Returns a vector that maps probvar indices of a block contained in an equivalence class to the probvar indices of the representative block of the class.
- Returns
- representative block
- Parameters
-
partialdecomp partialdec eqclass id of the equivalence class eqclassblock index of block (with respect to eqclass)
Definition at line 4201 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getRepVarmap(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecGetNLinkingVars()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNLinkingVars | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets number of linking variables of partialdec
- Returns
- number of linking variables of partialdec
- Parameters
-
partialdecomp partialdec
Definition at line 4213 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNLinkingvars(), and NULL.
◆ GCGconshdlrDecompPartialdecGetNMasterConss()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNMasterConss | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets number of master constraints of partialdec
- Returns
- number of master constraints of partialdec
- Parameters
-
partialdecomp partialdec
Definition at line 4224 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNMasterconss(), and NULL.
◆ GCGconshdlrDecompPartialdecGetNMasterVars()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNMasterVars | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets number of master variables of partialdec
- Returns
- number of master variables of partialdec
- Parameters
-
partialdecomp partialdec
Definition at line 4235 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNMastervars(), and NULL.
◆ GCGconshdlrDecompPartialdecGetNOpenConss()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNOpenConss | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets number of open constraints of partialdec
- Returns
- total number of open constraints of partialdec
- Parameters
-
partialdecomp partialdec
Definition at line 4246 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNOpenconss(), and NULL.
◆ GCGconshdlrDecompPartialdecGetNOpenVars()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNOpenVars | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets number of open variables of partialdec
- Returns
- total number of open variables of partialdec
- Parameters
-
partialdecomp partialdec
Definition at line 4257 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNOpenvars(), and NULL.
◆ GCGconshdlrDecompPartialdecGetOrigVarForBlock()
| GCG_EXPORT SCIP_VAR * GCGconshdlrDecompPartialdecGetOrigVarForBlock | ( | PARTIALDECOMP_C * | partialdecomp, |
| int | block, | ||
| int | blockvarindex | ||
| ) |
returns the original variable for a block and index
- Returns
- corresponding original variable
- Parameters
-
partialdecomp partialdec block id of the block blockvarindex index of var in block
Definition at line 4268 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getDetprobdata(), gcg::DETPROBDATA::getVar(), gcg::PARTIALDECOMP::getVarsForBlock(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompPartialdecGetNVarsForBlock()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNVarsForBlock | ( | PARTIALDECOMP_C * | partialdecomp, |
| int | block | ||
| ) |
gets the number of variables of a block
- Returns
- representative block
- Parameters
-
partialdecomp partialdec block id of the block
Definition at line 4280 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNVarsForBlock(), and NULL.
Referenced by checkIdenticalBlocks().
◆ GCGconshdlrDecompGetNFinishedPartialdecsOrig()
| GCG_EXPORT unsigned int GCGconshdlrDecompGetNFinishedPartialdecsOrig | ( | GCG * | gcg | ) |
Gets the number of finished partialdecs available for the original problem.
- Returns
- number of partialdecs
- Parameters
-
gcg GCG data structure
Definition at line 4291 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdataorig, getConshdlrdata(), gcg::DETPROBDATA::getNFinishedPartialdecs(), and NULL.
◆ GCGconshdlrDecompGetNFinishedPartialdecsTransformed()
| GCG_EXPORT unsigned int GCGconshdlrDecompGetNFinishedPartialdecsTransformed | ( | GCG * | gcg | ) |
Gets the number of finished partialdecs available for the transformed problem.
- Returns
- number of partialdecs
- Parameters
-
gcg GCG data structure
Definition at line 4305 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdatapres, getConshdlrdata(), gcg::DETPROBDATA::getNFinishedPartialdecs(), and NULL.
Referenced by GCGsolve().
◆ GCGconshdlrDecompGetNOpenPartialdecsOrig()
| GCG_EXPORT unsigned int GCGconshdlrDecompGetNOpenPartialdecsOrig | ( | GCG * | gcg | ) |
Gets the number of open partialdecs available for the original problem.
- Returns
- number of partialdecs
- Parameters
-
gcg GCG data structure
Definition at line 4319 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdataorig, getConshdlrdata(), gcg::DETPROBDATA::getNOpenPartialdecs(), and NULL.
◆ GCGconshdlrDecompGetNOpenPartialdecsTransformed()
| GCG_EXPORT unsigned int GCGconshdlrDecompGetNOpenPartialdecsTransformed | ( | GCG * | gcg | ) |
Gets the number of open partialdecs available for the transformed problem.
- Returns
- number of partialdecs
- Parameters
-
gcg GCG data structure
Definition at line 4333 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdatapres, getConshdlrdata(), gcg::DETPROBDATA::getNOpenPartialdecs(), and NULL.
◆ GCGconshdlrDecompGetNPartialdecs()
| GCG_EXPORT unsigned int GCGconshdlrDecompGetNPartialdecs | ( | GCG * | gcg | ) |
Gets the number of all partialdecs.
- Returns
- number of Partialdecs
- Parameters
-
gcg GCG data structure
Definition at line 4347 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, and SCIP_ConshdlrData::partialdecs.
Referenced by gcg::GCGdialogSetNEntires(), gcg::updatePartialdecList(), and writeTexTitlepage().
◆ GCGconshdlrDecompGetNPartialdecsOrig()
| GCG_EXPORT unsigned int GCGconshdlrDecompGetNPartialdecsOrig | ( | GCG * | gcg | ) |
Gets the number of partialdecs available for the original problem.
- Returns
- number of partialdecs
- Parameters
-
gcg GCG data structure
Definition at line 4358 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdataorig, getConshdlrdata(), gcg::DETPROBDATA::getNPartialdecs(), and NULL.
◆ GCGconshdlrDecompGetNPartialdecsTransformed()
| GCG_EXPORT unsigned int GCGconshdlrDecompGetNPartialdecsTransformed | ( | GCG * | gcg | ) |
Gets the number of partialdecs available for the transformed problem.
- Returns
- number of partialdecs
- Parameters
-
gcg GCG data structure
Definition at line 4372 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdatapres, getConshdlrdata(), gcg::DETPROBDATA::getNPartialdecs(), and NULL.
◆ GCGconshdlrDecompPartialdecGetNStairlinkingVars()
| GCG_EXPORT int GCGconshdlrDecompPartialdecGetNStairlinkingVars | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets number of stairlinking variables of partialdec
- Returns
- total number of stairlinking variables of partialdec
- Parameters
-
partialdecomp partialdec
Definition at line 4386 of file cons_decomp.cpp.
References gcg::PARTIALDECOMP::getNTotalStairlinkingvars(), and NULL.
◆ GCGconshdlrDecompGetPartialdecFromID()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompGetPartialdecFromID | ( | GCG * | gcg, |
| int | partialdecid, | ||
| PARTIALDECOMP_C ** | partialdecomp | ||
| ) |
Gets wrapped PARTIALDECOMP with given id.
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure partialdecid id of PARTIALDECOMP partialdecomp pointer to C wrapper pointer for PARTIALDECOMP
Definition at line 4408 of file cons_decomp.cpp.
References GCGconshdlrDecompGetPartialdecFromID(), and SCIP_OKAY.
◆ GCGconshdlrDecompGetPartialdecScore()
| GCG_EXPORT SCIP_Real GCGconshdlrDecompGetPartialdecScore | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets score of partialdec
- Returns
- score in respect to current score type
- Parameters
-
partialdecomp partialdec
References SCIP_Real.
◆ GCGconshdlrDecompGetScoreClock()
| GCG_EXPORT SCIP_CLOCK * GCGconshdlrDecompGetScoreClock | ( | GCG * | gcg | ) |
gets the clock tracking the score computation time
- Returns
- pointer to a clock object
- Parameters
-
gcg GCG data structure
Definition at line 3245 of file cons_decomp.cpp.
References getConshdlrdata(), and SCIP_ConshdlrData::scoreclock.
Referenced by gcg::PARTIALDECOMP::getScore().
◆ GCGconshdlrDecompGetScoreTotalTime()
| GCG_EXPORT SCIP_Real GCGconshdlrDecompGetScoreTotalTime | ( | GCG * | gcg | ) |
gets total score computation time
- Returns
- total score computation time
- Parameters
-
gcg GCG data structure
Definition at line 3254 of file cons_decomp.cpp.
References GCGgetOrigprob(), getConshdlrdata(), SCIP_Real, SCIPgetClockTime(), and SCIP_ConshdlrData::scoreclock.
Referenced by GCGconshdlrDecompPrintScoreStatistics().
◆ GCGconshdlrDecompGetSelectedPartialdecs()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompGetSelectedPartialdecs | ( | GCG * | gcg, |
| int ** | idlist, | ||
| int * | listlength | ||
| ) |
Gets a list of ids of all currently selected partialdecs.
- Returns
- list of partialdecs
- Parameters
-
gcg GCG data structure idlist id list to output to listlength length of output list
Definition at line 4434 of file cons_decomp.cpp.
References getSelectedPartialdecs(), and SCIP_OKAY.
◆ GCGconshdlrDecompIncreaseNCallsCreateDecomp()
| GCG_EXPORT int GCGconshdlrDecompIncreaseNCallsCreateDecomp | ( | GCG * | gcg | ) |
counts up the counter for created decompositions and returns it
- Returns
- number of created decompositions that was recently increased
- Parameters
-
gcg GCG data structure *
Definition at line 4456 of file cons_decomp.cpp.
References getConshdlrdata(), SCIP_ConshdlrData::ncallscreatedecomp, and NULL.
Referenced by GCGdecompCreate().
◆ GCGconshdlrDecompPartialdecIsPresolved()
| GCG_EXPORT SCIP_Bool GCGconshdlrDecompPartialdecIsPresolved | ( | PARTIALDECOMP_C * | partialdecomp | ) |
gets whether partialdec is presolved
- Returns
- true iff partialdec is presolved
- Parameters
-
partialdecomp partialdec
References SCIP_Bool.
◆ GCGconshdlrDecompPartialdecIsSelected()
| GCG_EXPORT SCIP_Bool GCGconshdlrDecompPartialdecIsSelected | ( | PARTIALDECOMP_C * | partialdececomp | ) |
gets whether partialdec is selected
- Returns
- true iff partialdec is selected
- Parameters
-
partialdececomp partialdec
References SCIP_Bool.
◆ GCGconshdlrDecompOrigDetprobdataExists()
| GCG_EXPORT SCIP_Bool GCGconshdlrDecompOrigDetprobdataExists | ( | GCG * | gcg | ) |
returns whether or not a detprobdata structure for the original problem exists
- Returns
- true iff an original detprobdata exists
- Parameters
-
gcg GCG data structure
Definition at line 4491 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdataorig, FALSE, getConshdlrdata(), NULL, SCIP_Bool, and TRUE.
Referenced by GCGconshdlrDecompAddMatrixPartialdec(), and GCGconshdlrDecompGetDetprobdataOrig().
◆ GCGconshdlrDecompOrigPartialdecExists()
| GCG_EXPORT SCIP_Bool GCGconshdlrDecompOrigPartialdecExists | ( | GCG * | gcg | ) |
returns whether or not an original decompositions exists in the data structures
- Returns
- true iff an origial decomposition exist
- Parameters
-
gcg GCG data structure
Definition at line 4505 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdataorig, FALSE, getConshdlrdata(), gcg::DETPROBDATA::getNPartialdecs(), NULL, and SCIP_Bool.
Referenced by GCGsolve().
◆ GCGconshdlrDecompPresolvedDetprobdataExists()
| GCG_EXPORT SCIP_Bool GCGconshdlrDecompPresolvedDetprobdataExists | ( | GCG * | gcg | ) |
returns whether or not a detprobdata structure for the presolved problem exists
- Returns
- true iff a presolved detprobdata exists
- Parameters
-
gcg GCG data structure
Definition at line 4519 of file cons_decomp.cpp.
References SCIP_ConshdlrData::detprobdatapres, FALSE, getConshdlrdata(), NULL, SCIP_Bool, and TRUE.
Referenced by GCGconshdlrDecompAddMatrixPartialdec(), and GCGconshdlrDecompGetDetprobdataPresolved().
◆ GCGconshdlrDecompPrintDetectorStatistics()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompPrintDetectorStatistics | ( | GCG * | gcg, |
| FILE * | file | ||
| ) |
display statistics about detectors
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure file output file or NULL for standard output
Definition at line 4533 of file cons_decomp.cpp.
References GCG_Detector::dectime, SCIP_ConshdlrData::detectors, GCGgetOrigprob(), getConshdlrdata(), GCG_Detector::name, GCG_Detector::ncompletedecomps, GCG_Detector::ndecomps, SCIP_ConshdlrData::ndetectors, NULL, SCIP_OKAY, SCIPgetMessagehdlr(), and SCIPmessageFPrintInfo().
Referenced by GCGprintStatistics().
◆ GCGconshdlrDecompPrintScoreStatistics()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompPrintScoreStatistics | ( | GCG * | gcg, |
| FILE * | file | ||
| ) |
display statistics about scores
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure file output file or NULL for standard output
Definition at line 4555 of file cons_decomp.cpp.
References GCGconshdlrDecompGetScoreTotalTime(), GCGgetOrigprob(), SCIP_OKAY, SCIPgetMessagehdlr(), and SCIPmessageFPrintInfo().
Referenced by GCGprintStatistics().
◆ GCGconshdlrDecompSelectPartialdec()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompSelectPartialdec | ( | PARTIALDECOMP_C * | partialdecomp, |
| SCIP_Bool | select | ||
| ) |
selects/unselects a partialdecomp
- Returns
- SCIP return code
- Parameters
-
partialdecomp partialdecomp select select/unselect
Definition at line 4584 of file cons_decomp.cpp.
References SCIP_INVALIDDATA, SCIP_OKAY, and gcg::PARTIALDECOMP::setSelected().
Referenced by initRelaxator().
◆ GCGconshdlrDecompSetDetection()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompSetDetection | ( | GCG * | gcg, |
| SCIP_PARAMSETTING | paramsetting, | ||
| SCIP_Bool | quiet | ||
| ) |
sets detector parameters values
sets detector parameters values to
- SCIP_PARAMSETTING_DEFAULT which are the default values of all detector parameters
- SCIP_PARAMSETTING_FAST such that the time spend for detection is decreased
- SCIP_PARAMSETTING_AGGRESSIVE such that the detectors produce more decompositions
- SCIP_PARAMSETTING_OFF which turns off all detection
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure paramsetting parameter settings quiet should the parameter be set quiet (no output)
Definition at line 4598 of file cons_decomp.cpp.
References getConshdlrdata(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_PARAMSETTING_AGGRESSIVE, SCIP_PARAMSETTING_DEFAULT, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, SCIPerrorMessage, setDetectionAggressive(), setDetectionDefault(), setDetectionFast(), and setDetectionOff().
Referenced by SCIP_DECL_DIALOGEXEC().
◆ GCGconshdlrDecompTranslateNBestOrigPartialdecs()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompTranslateNBestOrigPartialdecs | ( | GCG * | gcg, |
| int | n, | ||
| SCIP_Bool | completeGreedily, | ||
| SCIP_Bool | translateSymmetry | ||
| ) |
translates n best unpresolved partialdec to a complete presolved one
- Parameters
-
scip SCIP data structure n number of partialdecs that should be translated completeGreedily whether or not to complete the decomposition greedily translateSymmetry whether or not to translate symmetry information
- Returns
- SCIP return code
Definition at line 4629 of file cons_decomp.cpp.
References addPartialdec(), gcg::PARTIALDECOMP::completeGreedily(), SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, FALSE, GCGconshdlrDecompChooseCandidatesFromSelected(), getConshdlrdata(), gcg::DETPROBDATA::getNFinishedPartialdecs(), gcg::DETPROBDATA::getNOpenPartialdecs(), gcg::PARTIALDECOMP::isComplete(), MIN, NULL, resetDetprobdata(), SCIP_CALL, SCIP_OKAY, gcg::DETPROBDATA::translatePartialdecs(), and TRUE.
Referenced by solveProblem().
◆ GCGconshdlrDecompTranslateOrigPartialdecs()
| GCG_EXPORT SCIP_RETCODE GCGconshdlrDecompTranslateOrigPartialdecs | ( | GCG * | gcg | ) |
translates unpresolved partialdec to a complete presolved one
- Parameters
-
gcg GCG data structure
- Returns
- SCIP return code
Definition at line 4680 of file cons_decomp.cpp.
References addPartialdec(), SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, FALSE, GCGgetOrigprob(), getConshdlrdata(), gcg::DETPROBDATA::getNFinishedPartialdecs(), gcg::DETPROBDATA::getNOpenPartialdecs(), NULL, resetDetprobdata(), SCIP_CALL, SCIP_OKAY, SCIPgetIntParam(), gcg::DETPROBDATA::translatePartialdecs(), and TRUE.
Referenced by GCGpresolve().
◆ GCGdetectionTookPlace()
| GCG_EXPORT SCIP_Bool GCGdetectionTookPlace | ( | GCG * | gcg, |
| SCIP_Bool | original | ||
| ) |
Gets whether the detection already took place
- Returns
- true if detection took place, false otherwise
- Parameters
-
gcg GCG data structure original iff TRUE the status with respect to the original problem is returned
Definition at line 4722 of file cons_decomp.cpp.
References getConshdlrdata(), SCIP_ConshdlrData::hasrun, SCIP_ConshdlrData::hasrunoriginal, NULL, SCIP_Bool, and TRUE.
Referenced by GCGdetect(), GCGprintCompleteDetectionStatistics(), and GCGsolve().
◆ SCIPconshdlrDecompRepairConsNames()
| GCG_EXPORT SCIP_RETCODE SCIPconshdlrDecompRepairConsNames | ( | GCG * | gcg | ) |
method to eliminate duplicate constraint names and name unnamed constraints
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure
Definition at line 4734 of file cons_decomp.cpp.
References SCIP_ConshdlrData::consnamesalreadyrepaired, findGenericConsname(), GCGgetOrigprob(), getConshdlrdata(), NULL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_STAGE_PROBLEM, SCIPchgConsName(), SCIPconsGetName(), SCIPdebugMessage, SCIPgetConss(), SCIPgetNConss(), SCIPgetStage(), SCIPwarningMessage(), and TRUE.
Referenced by GCGtransformProb().
◆ GCGincludeConshdlrDecomp()
| GCG_EXPORT SCIP_RETCODE GCGincludeConshdlrDecomp | ( | GCG * | gcg | ) |
creates the constraint handler for decomp and includes it in SCIP
- Returns
- scip return code
- Parameters
-
gcg GCG data structure
Definition at line 4795 of file cons_decomp.cpp.
References SCIP_ConshdlrData::allowpartitionduplicates, SCIP_ConshdlrData::bendersonlybinmaster, SCIP_ConshdlrData::bendersonlycontsubpr, SCIP_ConshdlrData::blocknumbercandsmedianvarspercons, SCIP_ConshdlrData::classify, SCIP_ConshdlrData::completedetectionclock, SCIP_ConshdlrData::consclassifierpriorities, SCIP_ConshdlrData::consclassifiers, CONSHDLR_CHECKPRIORITY, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, SCIP_ConshdlrData::consnamesalreadyrepaired, SCIP_ConshdlrData::currscore, SCIP_ConshdlrData::decomps, DEFAULT_ALLOWPARTITIONDUPLICATES, DEFAULT_BENDERSONLYBINMASTER, DEFAULT_BENDERSONLYCONTSUBPR, DEFAULT_BLOCKNUMBERCANDSMEDIANVARSPERCONS, DEFAULT_CLASSIFY, DEFAULT_DETECTBENDERS, DEFAULT_ENABLED, DEFAULT_ENABLEORIGCLASSIFICATION, DEFAULT_ENABLEORIGDETECTION, DEFAULT_MAXDETECTIONROUNDS, DEFAULT_MAXDETECTIONTIME, DEFAULT_MAXNCLASSES, DEFAULT_MAXNCLASSESFORNBLOCKCANDIDATES, DEFAULT_MAXNCLASSESLARGEPROBS, DEFAULT_POSTPROCESS, DEFAULT_SCORE, SCIP_ConshdlrData::detectbenders, SCIP_ConshdlrData::detectorclock, SCIP_ConshdlrData::detectors, SCIP_ConshdlrData::detprobdataorig, SCIP_ConshdlrData::detprobdatapres, SCIP_ConshdlrData::enabled, SCIP_ConshdlrData::enableorigclassification, SCIP_ConshdlrData::enableorigdetection, FALSE, SCIP_ConshdlrData::finishingdetectors, SCIP_ConshdlrData::freeorig, SCIP_ConshdlrData::gcg, GCGgetOrigprob(), SCIP_ConshdlrData::hasrun, SCIP_ConshdlrData::hasrunoriginal, SCIP_ConshdlrData::maxdetectiontime, SCIP_ConshdlrData::maxnclassesfornblockcandidates, SCIP_ConshdlrData::maxnclassesperpartition, SCIP_ConshdlrData::maxnclassesperpartitionforlargeprobs, SCIP_ConshdlrData::maxndetectionrounds, SCIP_ConshdlrData::ncallscreatedecomp, SCIP_ConshdlrData::nconsclassifiers, SCIP_ConshdlrData::ndecomps, SCIP_ConshdlrData::ndetectors, SCIP_ConshdlrData::nfinishingdetectors, NO_MODIF, SCIP_ConshdlrData::npostprocessingdetectors, SCIP_ConshdlrData::npropagatingdetectors, SCIP_ConshdlrData::nscores, NULL, SCIP_ConshdlrData::nvarclassifiers, SCIP_ConshdlrData::partialdeccounter, SCIP_ConshdlrData::partialdecs, SCIP_ConshdlrData::partialdecsbyid, SCIP_ConshdlrData::partialdectowrite, SCIP_ConshdlrData::postprocess, SCIP_ConshdlrData::postprocessingdetectors, SCIP_ConshdlrData::priorities, SCIP_ConshdlrData::propagatingdetectors, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPaddStringParam(), SCIPallocMemory, SCIPcreateClock(), SCIPincludeConshdlrBasic(), SCIPsetConshdlrEnforelax(), SCIPsetConshdlrExit(), SCIPsetConshdlrFree(), SCIPsetConshdlrInit(), SCIP_ConshdlrData::scoreclock, SCIP_ConshdlrData::scores, TRUE, SCIP_ConshdlrData::userblocknrcandidates, SCIP_ConshdlrData::varclassifierpriorities, SCIP_ConshdlrData::varclassifiers, and SCIP_ConshdlrData::weightinggpresolvedoriginaldecomps.
Referenced by GCGincludeGcgPlugins().