Scippy

GCG

Branch-and-Price & Column Generation for Everyone

cons_decomp.cpp File Reference

Detailed Description

constraint handler for structure detection

Author
Martin Bergner
Christian Puchert
Michael Bastubbe
Hanna Franzen
William Ma
Erik Muehmer

This constraint handler will run all registered structure detectors in a loop. They will find partial decompositions in a loop iteration until the decompositions are full or the maximum number of detection rounds is reached.

Definition in file cons_decomp.cpp.

#include <cassert>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <deque>
#include <iomanip>
#include <sstream>
#include <utility>
#include <regex>
#include <vector>
#include <list>
#include <scip/clock.h>
#include <scip/pub_cons.h>
#include <scip/pub_misc.h>
#include <scip/type_paramset.h>
#include <scip/scipdefplugins.h>
#include "gcg/class_partialdecomp.h"
#include "gcg/class_detprobdata.h"
#include "gcg/miscvisualization.h"
#include "gcg/scip_misc.h"
#include "gcg/relax_gcg.h"
#include "gcg/decomp.h"
#include "gcg/cons_decomp.hpp"
#include "gcg/cons_decomp.h"
#include "gcg/struct_consclassifier.h"
#include "gcg/struct_varclassifier.h"
#include "gcg/struct_decomp.h"
#include "gcg/struct_score.h"

Go to the source code of this file.

Data Structures

struct  SCIP_ConshdlrData
 
struct  sort_pred
 

Macros

#define CONSHDLR_NAME   "decomp"
 
#define CONSHDLR_DESC   "constraint handler for structure detection"
 
#define CONSHDLR_ENFOPRIORITY   0
 
#define CONSHDLR_CHECKPRIORITY   0
 
#define CONSHDLR_EAGERFREQ   -1
 
#define CONSHDLR_NEEDSCONS   FALSE
 
#define DEFAULT_ENABLED   TRUE
 
#define DEFAULT_BLOCKNUMBERCANDSMEDIANVARSPERCONS   FALSE
 
#define DEFAULT_MAXDETECTIONROUNDS   1
 
#define DEFAULT_MAXDETECTIONTIME   600
 
#define DEFAULT_POSTPROCESS   TRUE
 
#define DEFAULT_MAXNCLASSESLARGEPROBS   5
 
#define DEFAULT_MAXNCLASSES   9
 
#define DEFAULT_MAXNCLASSESFORNBLOCKCANDIDATES   18
 
#define DEFAULT_ENABLEORIGDETECTION   TRUE
 
#define DEFAULT_ALLOWPARTITIONDUPLICATES   FALSE
 
#define DEFAULT_CLASSIFY   TRUE
 
#define DEFAULT_ENABLEORIGCLASSIFICATION   TRUE
 
#define DEFAULT_BENDERSONLYCONTSUBPR   FALSE
 
#define DEFAULT_BENDERSONLYBINMASTER   FALSE
 
#define DEFAULT_LEVENSHTEIN_MAXMATRIXHALFPERIMETER   10000
 
#define AGGRESSIVE_LEVENSHTEIN_MAXMATRIXHALFPERIMETER   80000
 
#define FAST_LEVENSHTEIN_MAXMATRIXHALFPERIMETER   2000
 
#define DEFAULT_DETECTBENDERS   FALSE
 
#define DEFAULT_SCORE   "spfwh"
 

Enumerations

enum  weightinggpresolvedoriginaldecomps {
  NO_MODIF = 0 ,
  FRACTION_OF_NNONZEROS ,
  FRACTION_OF_NROWS ,
  FAVOUR_PRESOLVED
}
 

Functions

static SCIP_CONSHDLRDATA * getConshdlrdata (GCG *gcg)
 local function to get the conshdlr data of the current conshdlr More...
 
static SCIP_RETCODE addPartialdec (GCG *gcg, PARTIALDECOMP *partialdec)
 local method to handle store a partialdec in the correct detprobdata More...
 
PARTIALDECOMP * GCGconshdlrDecompGetPartialdecFromID (GCG *gcg, int partialdecid)
 local method to find a partialdec for a given id or NULL if no partialdec with such id is found More...
 
static SCIP_RETCODE partialdecVecToIdArray (std::vector< PARTIALDECOMP * > &partialdecs, int **idlist, int *listlength)
 translates a vector of PARTIALDECOMP pointers into an array of their ids More...
 
static std::vector< PARTIALDECOMP * > getSelectedPartialdecs (GCG *gcg, std::vector< PARTIALDECOMP * > &selectedpartialdecs)
 gets all selected partialdecs More...
 
static void getFinishedPartialdecs (GCG *gcg, std::vector< PARTIALDECOMP * > &finishedpartialdecs)
 gets vector of all finished partialdecs More...
 
static SCIP_RETCODE unselectAllPartialdecs (GCG *gcg)
 
static PARTIALDEC_DETECTION_DATA * createPartialdecDetectionData (gcg::DETPROBDATA *detprobdata, PARTIALDECOMP *partialdec)
 initializes a new detection data structure More...
 
static SCIP_RETCODE resetDetprobdata (GCG *gcg, SCIP_Bool original)
 resets/creates the detprobdata for the given problem More...
 
static SCIP_RETCODE deletePartialdecDetectionData (SCIP *scip, PARTIALDEC_DETECTION_DATA *data)
 delets the detection data structure More...
 
static SCIP_Retcode detect (GCG *gcg, gcg::DETPROBDATA *detprobdata)
 constructs partialdecs using the registered detectors More...
 
static SCIP_DECL_CONSINIT (consInitDecomp)
 initialization method of constraint handler (called after problem was transformed) More...
 
static SCIP_DECL_CONSEXIT (consExitDecomp)
 deinitialization method of constraint handler (called before transformed problem is freed) More...
 
static SCIP_DECL_CONSFREE (consFreeDecomp)
 destructor of constraint handler to free constraint handler data (called when SCIP is exiting) More...
 
static SCIP_DECL_CONSENFORELAX (consEnforeDecomp)
 
static SCIP_DECL_CONSENFOLP (consEnfolpDecomp)
 
static SCIP_DECL_CONSENFOPS (consEnfopsDecomp)
 
static SCIP_DECL_CONSCHECK (consCheckDecomp)
 
static SCIP_DECL_CONSLOCK (consLockDecomp)
 
static int findGenericConsname (SCIP *scip, int startcount, char *consname, int namelength)
 finds a non duplicate constraint name of the form c_{a} with minimal natural number {a} More...
 
static SCIP_RETCODE createPartialdecFromDecomp (GCG *gcg, GCG_DECOMP *decomp, PARTIALDECOMP **newpartialdec)
 creates a partialdec for a given decomposition More...
 
static SCIP_RETCODE createDecompFromPartialdec (GCG *gcg, PARTIALDECOMP *partialdec, GCG_DECOMP **newdecomp)
 creates a decomposition GCG_DECOMP structure for a given partialdec More...
 
static void sortPartialdecs (GCG *gcg)
 sorts all registered partialdecs according to score, descending More...
 
SCIP_Real GCGconshdlrDecompAdaptScore (GCG *gcg, SCIP_Real oldscore)
 method to adapt score for orig decomps More...
 
static void reduceConsclasses (GCG *gcg, gcg::DETPROBDATA *detprobdata)
 adds constraint partitions with a reduced number of classes More...
 
static void reduceVarclasses (GCG *gcg, gcg::DETPROBDATA *detprobdata)
 adds variable partitions with a reduced number of classes More...
 
static SCIP_RETCODE setDetectionEnabled (GCG *gcg, SCIP_Bool quiet, SCIP_Bool enabled)
 sets detection/enabled setting More...
 
static SCIP_RETCODE setDetectionDefault (GCG *gcg, SCIP_CONSHDLRDATA *conshdlrdata, SCIP_Bool quiet)
 resets the parameters to their default value More...
 
static SCIP_RETCODE setDetectionAggressive (GCG *gcg, SCIP_CONSHDLRDATA *conshdlrdata, SCIP_Bool quiet)
 sets the parameters to aggressive values More...
 
static SCIP_RETCODE setDetectionOff (GCG *gcg, SCIP_CONSHDLRDATA *conshdlrdata, SCIP_Bool quiet)
 disables detectors More...
 
static SCIP_RETCODE setDetectionFast (GCG *gcg, SCIP_CONSHDLRDATA *conshdlrdata, SCIP_Bool quiet)
 sets the parameters to fast values More...
 
static int gcd (int a, int b)
 method to calculate the greatest common divisor More...
 
static SCIP_DECL_PARAMCHGD (paramChgdScore)
 
SCIP_RETCODE GCGprintBlockcandidateInformation (GCG *gcg, FILE *file)
 
SCIP_RETCODE GCGprintCompleteDetectionTime (GCG *gcg, FILE *file)
 
SCIP_RETCODE GCGprintPartitionInformation (GCG *gcg, FILE *file)
 
SCIP_RETCODE GCGprintDecompInformation (GCG *gcg, FILE *file)
 
int GCGgetNDecomps (GCG *gcg)
 
char GCGdetectorGetChar (GCG_DETECTOR *detector)
 Gets the character of the detector. More...
 
GCG_DETECTORDATA * GCGdetectorGetData (GCG_DETECTOR *detector)
 returns the data of the provided detector More...
 
const char * GCGdetectorGetName (GCG_DETECTOR *detector)
 returns the name of the provided detector More...
 
SCIP_RETCODE GCGdetectStructure (GCG *gcg, SCIP_RESULT *result)
 interface method to detect the structure including presolving More...
 
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_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_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_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_DECOMP * GCGgetBestDecomp (GCG *gcg, SCIP_Bool printwarnings)
 Gets the best known decomposition. More...
 
PARTIALDECOMP * GCGgetPartialdecToWrite (GCG *gcg, SCIP_Bool transformed)
 
SCIP_Real GCGgetRemainingTime (GCG *gcg)
 returns the remaining time of scip that the decomposition may use More...
 
SCIP_RETCODE GCGincludeConsClassifier (GCG *gcg, const char *name, const char *description, int priority, SCIP_Bool enabled, GCG_CLASSIFIERDATA *classifierdata, GCG_DECL_FREECONSCLASSIFIER((*freeClassifier)),)
 
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)),)
 
SCIP_RETCODE GCGincludeVarClassifier (GCG *gcg, const char *name, const char *description, int priority, SCIP_Bool enabled, GCG_CLASSIFIERDATA *classifierdata, GCG_DECL_FREEVARCLASSIFIER((*freeClassifier)),)
 
char * GCGgetCurrentScoreShortname (GCG *gcg)
 Gets the shortname of the currently enabled score. More...
 
GCG_SCORE * GCGgetCurrentScore (GCG *gcg)
 Gets the currently enabled score. More...
 
SCIP_RETCODE GCGconshdlrDecompIncludeScore (GCG *gcg, const char *name, const char *shortname, const char *description, GCG_SCOREDATA *scoredata, GCG_DECL_SCOREFREE((*scorefree)),)
 
void GCGprintListOfDetectors (GCG *gcg)
 writes out a list of all detectors More...
 
SCIP_RETCODE GCGwriteAllDecomps (GCG *gcg, char *directory, char *extension, SCIP_Bool original, SCIP_Bool presolved)
 write out all known decompositions More...
 
SCIP_RETCODE GCGwriteSelectedDecomps (GCG *gcg, char *directory, char *extension)
 writes all selected decompositions More...
 
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...
 
void GCGconshdlrDecompAddCandidatesNBlocks (GCG *gcg, SCIP_Bool origprob, int candidate)
 adds a candidate for block number and counts how often a candidate is added More...
 
int GCGconshdlrDecompAddMatrixPartialdec (GCG *gcg, SCIP_Bool presolved)
 creates a pure matrix partialdecomp (i.e. all cons/vars to one single block) More...
 
SCIP_RETCODE GCGconshdlrDecompAddPreexistingDecomp (GCG *gcg, GCG_DECOMP *decomp)
 adds a decomp that exists before the detection is called More...
 
SCIP_RETCODE GCGconshdlrDecompAddPreexisitingPartialDec (GCG *gcg, PARTIALDECOMP *partialdec)
 adds a preexisting partial dec to be considered at the beginning of the detection More...
 
SCIP_RETCODE GCGconshdlrDecompAddPreexisitingPartialDec (GCG *gcg, gcg::PARTIALDECOMP *partialdec, SCIP_Bool addpartialdec)
 adds a preexisting partial dec to be considered at the beginning of the detection More...
 
SCIP_CLOCK * GCGconshdlrDecompGetScoreClock (GCG *gcg)
 gets the clock tracking the score computation time More...
 
SCIP_Real GCGconshdlrDecompGetScoreTotalTime (GCG *gcg)
 gets total score computation time More...
 
void GCGconshdlrDecompAddUserCandidatesNBlocks (GCG *gcg, int candidate)
 adds a candidate for block size given by the user More...
 
SCIP_RETCODE GCGconshdlrDecompArePricingprobsIdenticalForPartialdec (SCIP *scip, PARTIALDECOMP_C *partialdecomp, int probnr1, int probnr2, SCIP_Bool *identical)
 
void GCGconshdlrDecompCalcCandidatesNBlocks (GCG *gcg, SCIP_Bool transformed)
 calculates and adds block size candidates using constraint classifications and variable classifications More...
 
SCIP_Bool GCGconshdlrDecompCheckConsistency (GCG *gcg)
 check whether partialdecs are consistent More...
 
SCIP_RETCODE GCGconshdlrDecompChooseCandidatesFromSelected (GCG *gcg, std::vector< std::pair< gcg::PARTIALDECOMP *, SCIP_Real > > &candidates, SCIP_Bool original, SCIP_Bool printwarnings)
 
SCIP_RETCODE GCGconshdlrDecompClassify (GCG *gcg, SCIP_Bool transformed)
 run classification of vars and cons More...
 
SCIP_RETCODE GCGconshdlrDecompCreateVarmapForPartialdec (SCIP *scip, SCIP_HASHMAP **hashorig2pricingvar, PARTIALDECOMP_C *partialdecomp, int probnr1, int probnr2, SCIP *scip1, SCIP *scip2, SCIP_HASHMAP *varmap)
 
int GCGconshdlrDecompDecreaseNCallsCreateDecomp (GCG *gcg)
 decreases the counter for created decompositions and returns it More...
 
void GCGconshdlrDecompDeregisterPartialdecs (GCG *gcg, SCIP_Bool original)
 deregisters partialdecs in the conshdlr More...
 
void GCGconshdlrDecompDeregisterPartialdec (GCG *gcg, PARTIALDECOMP *partialdec)
 deregisters a partialdec in the conshdlr More...
 
void GCGconshdlrDecompFreeDetprobdata (GCG *gcg)
 Frees Detprobdata of the original and transformed/presolved problem. More...
 
void GCGconshdlrDecompFreeOrigOnExit (GCG *gcg, SCIP_Bool free)
 sets freeing of detection data of original problem during exit to true More...
 
int GCGconshdlrDecompGetBlockNumberCandidate (GCG *gcg, int index)
 returns block number user candidate with given index More...
 
SCIP_Real GCGconshdlrDecompGetCompleteDetectionTime (GCG *gcg)
 returns the total detection time More...
 
GCG_DECOMP ** GCGconshdlrDecompGetDecomps (GCG *gcg)
 returns an array containing all decompositions More...
 
std::string GCGconshdlrDecompPartialdecGetDetectorHistory (PARTIALDECOMP_C *partialdecomp)
 
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_CONSCLASSIFIER ** GCGconshdlrDecompGetConsClassifiers (GCG *gcg)
 gets an array of all constraint classifier More...
 
GCG_VARCLASSIFIER ** GCGconshdlrDecompGetVarClassifiers (GCG *gcg)
 gets an array of all variable classifier More...
 
DETPROBDATA * GCGconshdlrDecompGetDetprobdataOrig (GCG *gcg)
 help method to access detprobdata for unpresolved problem More...
 
DETPROBDATA * GCGconshdlrDecompGetDetprobdataPresolved (GCG *gcg)
 help method to access detprobdata for transformed problem More...
 
SCIP_RETCODE GCGconshdlrDecompGetFinishedPartialdecsList (GCG *gcg, int **idlist, int *listlength)
 Gets a list of ids of the current partialdecs that are finished. More...
 
SCIP_RETCODE GCGconshdlrDecompGetPartialdecsList (GCG *gcg, int **idlist, int *listlength)
 Gets a list of ids of the current partialdecs. More...
 
int GCGconshdlrDecompGetNBlockNumberCandidates (GCG *gcg)
 returns the number of block candidates given by the user More...
 
int GCGconshdlrDecompPartialdecGetNBlocks (PARTIALDECOMP_C *partialdecomp)
 gets block number of partialdec More...
 
int GCGconshdlrDecompGetNDecomps (GCG *gcg)
 gets the number of decompositions (= amount of finished partialdecs) More...
 
int GCGconshdlrDecompGetNDetectors (GCG *gcg)
 Gets the number of all detectors. More...
 
int GCGconshdlrDecompGetNConsClassifiers (GCG *gcg)
 Gets the number of all constraint classifiers. More...
 
int GCGconshdlrDecompGetNVarClassifiers (GCG *gcg)
 Gets the number of all variable classifiers. More...
 
int GCGconshdlrDecompGetNScores (GCG *gcg)
 Gets the number of all scores. More...
 
int GCGconshdlrDecompGetNextPartialdecID (GCG *gcg)
 Gets the next partialdec id managed by cons_decomp. More...
 
int GCGconshdlrDecompGetNFormerDetectionConssForID (GCG *gcg, int id)
 gets number of active constraints during the detection of the decomp with given id More...
 
SCIP_Bool GCGconshdlrDecompPartialdecAggregationInformationCalculated (PARTIALDECOMP_C *partialdecomp)
 returns whether aggregation information has been calculated for a partialdec More...
 
void GCGconshdlrDecompPartialdecCalcAggregationInformation (PARTIALDECOMP_C *partialdecomp, SCIP_Bool ignoreDetectionLimits)
 calculates aggregation information for a partialdec More...
 
int GCGconshdlrDecompPartialdecGetNEquivalenceClasses (PARTIALDECOMP_C *partialdecomp)
 gets number of equivalence classes of partialdec More...
 
int GCGconshdlrDecompPartialdecGetReprBlockForEqClass (PARTIALDECOMP_C *partialdecomp, int eqclass)
 gets the representative block of a equivalence class of partialdec More...
 
const int * GCGconshdlrDecompPartialdecGetBlocksForEqClass (PARTIALDECOMP_C *partialdecomp, int eqclass)
 gets the blocks of a equivalence class of partialdec More...
 
int GCGconshdlrDecompPartialdecGetNBlocksForEqClass (PARTIALDECOMP_C *partialdecomp, int eqclass)
 gets the number of blocks of a equivalence class of partialdec More...
 
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...
 
int GCGconshdlrDecompPartialdecGetNLinkingVars (PARTIALDECOMP_C *partialdecomp)
 gets number of linking variables of partialdec More...
 
int GCGconshdlrDecompPartialdecGetNMasterConss (PARTIALDECOMP_C *partialdecomp)
 gets number of master constraints of partialdec More...
 
int GCGconshdlrDecompPartialdecGetNMasterVars (PARTIALDECOMP_C *partialdecomp)
 gets number of master variables of partialdec More...
 
int GCGconshdlrDecompPartialdecGetNOpenConss (PARTIALDECOMP_C *partialdecomp)
 gets number of open constraints of partialdec More...
 
int GCGconshdlrDecompPartialdecGetNOpenVars (PARTIALDECOMP_C *partialdecomp)
 gets number of open variables of partialdec More...
 
SCIP_VAR * GCGconshdlrDecompPartialdecGetOrigVarForBlock (PARTIALDECOMP_C *partialdecomp, int block, int blockvarindex)
 returns the original variable for a block and index More...
 
int GCGconshdlrDecompPartialdecGetNVarsForBlock (PARTIALDECOMP_C *partialdecomp, int block)
 gets the number of variables of a block More...
 
unsigned int GCGconshdlrDecompGetNFinishedPartialdecsOrig (GCG *gcg)
 Gets the number of finished partialdecs available for the original problem. More...
 
unsigned int GCGconshdlrDecompGetNFinishedPartialdecsTransformed (GCG *gcg)
 Gets the number of finished partialdecs available for the transformed problem. More...
 
unsigned int GCGconshdlrDecompGetNOpenPartialdecsOrig (GCG *gcg)
 Gets the number of open partialdecs available for the original problem. More...
 
unsigned int GCGconshdlrDecompGetNOpenPartialdecsTransformed (GCG *gcg)
 Gets the number of open partialdecs available for the transformed problem. More...
 
unsigned int GCGconshdlrDecompGetNPartialdecs (GCG *gcg)
 Gets the number of all partialdecs. More...
 
unsigned int GCGconshdlrDecompGetNPartialdecsOrig (GCG *gcg)
 Gets the number of partialdecs available for the original problem. More...
 
unsigned int GCGconshdlrDecompGetNPartialdecsTransformed (GCG *gcg)
 Gets the number of partialdecs available for the transformed problem. More...
 
int GCGconshdlrDecompPartialdecGetNStairlinkingVars (PARTIALDECOMP_C *partialdecomp)
 gets number of stairlinking variables of partialdec More...
 
std::vector< PARTIALDECOMP * > * GCGconshdlrDecompGetPartialdecs (GCG *gcg)
 gets vector of all partialdecs More...
 
SCIP_RETCODE GCGconshdlrDecompGetPartialdecFromID (GCG *gcg, int partialdecid, PARTIALDECOMP_C **partialdecomp)
 Gets wrapped PARTIALDECOMP with given id. More...
 
SCIP_Real GCGconshdlrDecompPartialdecGetScore (PARTIALDECOMP_C *partialdecomp)
 
SCIP_RETCODE GCGconshdlrDecompGetSelectedPartialdecs (GCG *gcg, int **idlist, int *listlength)
 Gets a list of ids of all currently selected partialdecs. More...
 
int GCGconshdlrDecompIncreaseNCallsCreateDecomp (GCG *gcg)
 counts up the counter for created decompositions and returns it More...
 
SCIP_Bool GCGconshdlrDecompIsPresolved (PARTIALDECOMP_C *partialdecomp)
 
SCIP_Bool GCGconshdlrDecompIsSelected (PARTIALDECOMP_C *partialdecomp)
 
SCIP_Bool GCGconshdlrDecompOrigDetprobdataExists (GCG *gcg)
 returns whether or not a detprobdata structure for the original problem exists More...
 
SCIP_Bool GCGconshdlrDecompOrigPartialdecExists (GCG *gcg)
 returns whether or not an original decompositions exists in the data structures More...
 
SCIP_Bool GCGconshdlrDecompPresolvedDetprobdataExists (GCG *gcg)
 returns whether or not a detprobdata structure for the presolved problem exists More...
 
SCIP_RETCODE GCGconshdlrDecompPrintDetectorStatistics (GCG *gcg, FILE *file)
 display statistics about detectors More...
 
SCIP_RETCODE GCGconshdlrDecompPrintScoreStatistics (GCG *gcg, FILE *file)
 display statistics about scores More...
 
void GCGconshdlrDecompRegisterPartialdec (GCG *gcg, PARTIALDECOMP *partialdec)
 registers a partialdec in the conshdlr More...
 
SCIP_RETCODE GCGconshdlrDecompSelectPartialdec (PARTIALDECOMP_C *partialdecomp, SCIP_Bool select)
 selects/unselects a partialdecomp More...
 
SCIP_RETCODE GCGconshdlrDecompSetDetection (GCG *gcg, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet)
 sets detector parameters values More...
 
SCIP_RETCODE GCGconshdlrDecompTranslateNBestOrigPartialdecs (GCG *gcg, int n, SCIP_Bool completeGreedily, SCIP_Bool translateSymmetry)
 translates n best unpresolved partialdec to a complete presolved one More...
 
SCIP_RETCODE GCGconshdlrDecompTranslateOrigPartialdecs (GCG *gcg)
 translates unpresolved partialdec to a complete presolved one More...
 
SCIP_Bool GCGdetectionTookPlace (GCG *gcg, SCIP_Bool original)
 
SCIP_RETCODE SCIPconshdlrDecompRepairConsNames (GCG *gcg)
 
SCIP_RETCODE GCGincludeConshdlrDecomp (GCG *gcg)
 creates the constraint handler for decomp and includes it in SCIP More...
 

Macro Definition Documentation

◆ CONSHDLR_NAME

#define CONSHDLR_NAME   "decomp"

name of constraint handler

Definition at line 81 of file cons_decomp.cpp.

◆ CONSHDLR_DESC

#define CONSHDLR_DESC   "constraint handler for structure detection"

description of constraint handler

Definition at line 82 of file cons_decomp.cpp.

◆ CONSHDLR_ENFOPRIORITY

#define CONSHDLR_ENFOPRIORITY   0

priority of the constraint handler for constraint enforcing

Definition at line 83 of file cons_decomp.cpp.

◆ CONSHDLR_CHECKPRIORITY

#define CONSHDLR_CHECKPRIORITY   0

priority of the constraint handler for checking feasibility

Definition at line 84 of file cons_decomp.cpp.

◆ CONSHDLR_EAGERFREQ

#define CONSHDLR_EAGERFREQ   -1

frequency for using all instead of only the useful constraints in separation, propagation and enforcement, -1 for no eager evaluations, 0 for first only

Definition at line 86 of file cons_decomp.cpp.

◆ CONSHDLR_NEEDSCONS

#define CONSHDLR_NEEDSCONS   FALSE

should the constraint handler be skipped, if no constraints are available?

Definition at line 87 of file cons_decomp.cpp.

◆ DEFAULT_ENABLED

#define DEFAULT_ENABLED   TRUE

indicates whether detection is enabled

Definition at line 89 of file cons_decomp.cpp.

◆ DEFAULT_BLOCKNUMBERCANDSMEDIANVARSPERCONS

#define DEFAULT_BLOCKNUMBERCANDSMEDIANVARSPERCONS   FALSE

should for block number candidates calculation the medianvarspercons calculation be considered

Definition at line 91 of file cons_decomp.cpp.

◆ DEFAULT_MAXDETECTIONROUNDS

#define DEFAULT_MAXDETECTIONROUNDS   1

maximal number of detection rounds

Definition at line 93 of file cons_decomp.cpp.

◆ DEFAULT_MAXDETECTIONTIME

#define DEFAULT_MAXDETECTIONTIME   600

maximum detection time in seconds

Definition at line 94 of file cons_decomp.cpp.

◆ DEFAULT_POSTPROCESS

#define DEFAULT_POSTPROCESS   TRUE

indicates whether to postprocess full decompositions

Definition at line 95 of file cons_decomp.cpp.

◆ DEFAULT_MAXNCLASSESLARGEPROBS

#define DEFAULT_MAXNCLASSESLARGEPROBS   5

maximum number of classes allowed for large (nvars+nconss > 50000) MIPs for detectors, partitions with more classes are reduced to the maximum number of classes

Definition at line 96 of file cons_decomp.cpp.

◆ DEFAULT_MAXNCLASSES

#define DEFAULT_MAXNCLASSES   9

maximum number of classes allowed for detectors, partitions with more classes are reduced to the maximum number of classes

Definition at line 97 of file cons_decomp.cpp.

◆ DEFAULT_MAXNCLASSESFORNBLOCKCANDIDATES

#define DEFAULT_MAXNCLASSESFORNBLOCKCANDIDATES   18

maximum number of classes a partition can have to be used for voting nblockcandidates

Definition at line 98 of file cons_decomp.cpp.

◆ DEFAULT_ENABLEORIGDETECTION

#define DEFAULT_ENABLEORIGDETECTION   TRUE

indicates whether to start detection for the original problem

Definition at line 99 of file cons_decomp.cpp.

◆ DEFAULT_ALLOWPARTITIONDUPLICATES

#define DEFAULT_ALLOWPARTITIONDUPLICATES   FALSE

if false each new (conss- and vars-) partitions is checked for being a duplicate of an existing one, if so it is not added and NBOT statistically recognized

Definition at line 103 of file cons_decomp.cpp.

◆ DEFAULT_CLASSIFY

#define DEFAULT_CLASSIFY   TRUE

indicates whether classification is enabled

Definition at line 104 of file cons_decomp.cpp.

◆ DEFAULT_ENABLEORIGCLASSIFICATION

#define DEFAULT_ENABLEORIGCLASSIFICATION   TRUE

indicates whether to start detection for the original problem

Definition at line 105 of file cons_decomp.cpp.

◆ DEFAULT_BENDERSONLYCONTSUBPR

#define DEFAULT_BENDERSONLYCONTSUBPR   FALSE

indicates whether only decomposition with only continuous variables in the subproblems should be searched

Definition at line 107 of file cons_decomp.cpp.

◆ DEFAULT_BENDERSONLYBINMASTER

#define DEFAULT_BENDERSONLYBINMASTER   FALSE

indicates whether only decomposition with only binary variables in the master should be searched

Definition at line 108 of file cons_decomp.cpp.

◆ DEFAULT_LEVENSHTEIN_MAXMATRIXHALFPERIMETER

#define DEFAULT_LEVENSHTEIN_MAXMATRIXHALFPERIMETER   10000

deactivate levenshtein constraint classifier if nrows + ncols exceeds this value for emphasis default

Definition at line 110 of file cons_decomp.cpp.

◆ AGGRESSIVE_LEVENSHTEIN_MAXMATRIXHALFPERIMETER

#define AGGRESSIVE_LEVENSHTEIN_MAXMATRIXHALFPERIMETER   80000

deactivate levenshtein constraint classifier if nrows + ncols exceeds this value for emphasis aggressive

Definition at line 111 of file cons_decomp.cpp.

◆ FAST_LEVENSHTEIN_MAXMATRIXHALFPERIMETER

#define FAST_LEVENSHTEIN_MAXMATRIXHALFPERIMETER   2000

deactivate levenshtein constraint classifier if nrows + ncols exceeds this value for emphasis fast

Definition at line 112 of file cons_decomp.cpp.

◆ DEFAULT_DETECTBENDERS

#define DEFAULT_DETECTBENDERS   FALSE

indicates whether benders detection mode is enabled

Definition at line 114 of file cons_decomp.cpp.

◆ DEFAULT_SCORE

#define DEFAULT_SCORE   "spfwh"

score shortname that is activated

Definition at line 116 of file cons_decomp.cpp.

Enumeration Type Documentation

◆ weightinggpresolvedoriginaldecomps

parameter how to modify scores when comparing decompositions for original and presolved problem (which might differ in size)

Enumerator
NO_MODIF 

no modification

FRACTION_OF_NNONZEROS 

scores are weighted according to ratio of number nonzeros, the more the worse

FRACTION_OF_NROWS 

scores are weighted according to ratio of number rows, the more the worse

FAVOUR_PRESOLVED 

decompositions for presolved problems are always favoured over decompositions of original problem

Definition at line 195 of file cons_decomp.cpp.

Function Documentation

◆ getConshdlrdata()

static SCIP_CONSHDLRDATA * getConshdlrdata ( GCG *  gcg)
static

local function to get the conshdlr data of the current conshdlr

Returns
the conshdlrdata iff it exists, else NULL
Note
returns NULL iff conshdlr or its data does not exist
Parameters
gcgSCIP data structure

Definition at line 227 of file cons_decomp.cpp.

References CONSHDLR_NAME, GCGgetOrigprob(), NULL, SCIPconshdlrGetData(), SCIPerrorMessage, and SCIPfindConshdlr().

Referenced by addPartialdec(), detect(), GCGconshdlrDecompAdaptScore(), GCGconshdlrDecompAddCandidatesNBlocks(), GCGconshdlrDecompAddMatrixPartialdec(), GCGconshdlrDecompAddPreexisitingPartialDec(), GCGconshdlrDecompAddUserCandidatesNBlocks(), GCGconshdlrDecompCalcCandidatesNBlocks(), GCGconshdlrDecompCheckConsistency(), GCGconshdlrDecompChooseCandidatesFromSelected(), GCGconshdlrDecompClassify(), GCGconshdlrDecompDecreaseNCallsCreateDecomp(), GCGconshdlrDecompDeregisterPartialdec(), GCGconshdlrDecompDeregisterPartialdecs(), GCGconshdlrDecompFindScore(), GCGconshdlrDecompFindScoreByShortname(), GCGconshdlrDecompFreeDetprobdata(), GCGconshdlrDecompFreeOrigOnExit(), GCGconshdlrDecompGetBlockNumberCandidate(), GCGconshdlrDecompGetCompleteDetectionTime(), GCGconshdlrDecompGetConsClassifiers(), GCGconshdlrDecompGetDecomps(), GCGconshdlrDecompGetDetectors(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGconshdlrDecompGetNBlockNumberCandidates(), GCGconshdlrDecompGetNConsClassifiers(), GCGconshdlrDecompGetNDecomps(), GCGconshdlrDecompGetNDetectors(), GCGconshdlrDecompGetNextPartialdecID(), GCGconshdlrDecompGetNFinishedPartialdecsOrig(), GCGconshdlrDecompGetNFinishedPartialdecsTransformed(), GCGconshdlrDecompGetNFormerDetectionConssForID(), GCGconshdlrDecompGetNOpenPartialdecsOrig(), GCGconshdlrDecompGetNOpenPartialdecsTransformed(), GCGconshdlrDecompGetNPartialdecs(), GCGconshdlrDecompGetNPartialdecsOrig(), GCGconshdlrDecompGetNPartialdecsTransformed(), GCGconshdlrDecompGetNScores(), GCGconshdlrDecompGetNVarClassifiers(), GCGconshdlrDecompGetPartialdecFromID(), GCGconshdlrDecompGetPartialdecs(), GCGconshdlrDecompGetPartialdecsList(), GCGconshdlrDecompGetScoreClock(), GCGconshdlrDecompGetScores(), GCGconshdlrDecompGetScoreTotalTime(), GCGconshdlrDecompGetVarClassifiers(), GCGconshdlrDecompIncludeScore(), GCGconshdlrDecompIncreaseNCallsCreateDecomp(), GCGconshdlrDecompOrigDetprobdataExists(), GCGconshdlrDecompOrigPartialdecExists(), GCGconshdlrDecompPresolvedDetprobdataExists(), GCGconshdlrDecompPrintDetectorStatistics(), GCGconshdlrDecompRegisterPartialdec(), GCGconshdlrDecompSetDetection(), GCGconshdlrDecompTranslateNBestOrigPartialdecs(), GCGconshdlrDecompTranslateOrigPartialdecs(), GCGdetectionTookPlace(), GCGdetectStructure(), GCGfindConsClassifier(), GCGfindDetector(), GCGfindVarClassifier(), GCGgetCurrentScore(), GCGgetCurrentScoreShortname(), GCGgetPartialdecToWrite(), GCGincludeConsClassifier(), GCGincludeDetector(), GCGincludeVarClassifier(), GCGprintBlockcandidateInformation(), GCGprintListOfDetectors(), GCGprintPartitionInformation(), GCGwriteAllDecomps(), GCGwriteSelectedDecomps(), getFinishedPartialdecs(), getSelectedPartialdecs(), reduceConsclasses(), reduceVarclasses(), resetDetprobdata(), SCIPconshdlrDecompRepairConsNames(), sortPartialdecs(), and unselectAllPartialdecs().

◆ addPartialdec()

◆ GCGconshdlrDecompGetPartialdecFromID() [1/2]

PARTIALDECOMP * GCGconshdlrDecompGetPartialdecFromID ( GCG *  scip,
int  partialdecid 
)

local method to find a partialdec for a given id or NULL if no partialdec with such id is found

Returns
partialdec pointer of partialdec with given id or NULL if it does not exist
Note
returns NULL if no partialdec by this id is known
Parameters
gcgGCG data structure
partialdecidpartialdec id

Definition at line 281 of file cons_decomp.cpp.

References getConshdlrdata(), NULL, and SCIP_ConshdlrData::partialdecsbyid.

Referenced by buildProblem(), checkIdenticalBlocks(), GCG_DECL_SCORECALC(), GCGconshdlrDecompCheckConsistency(), GCGconshdlrDecompChooseCandidatesFromSelected(), GCGconshdlrDecompGetNextPartialdecID(), GCGconshdlrDecompGetPartialdecFromID(), GCGgetPartialdecToWrite(), GCGWriteGpDecompMatrix(), GCGwriteGpVisualizationFormat(), GCGwriteTexReport(), and GCGwriteTexVisualization().

◆ partialdecVecToIdArray()

static SCIP_RETCODE partialdecVecToIdArray ( std::vector< PARTIALDECOMP * > &  partialdecs,
int **  idlist,
int *  listlength 
)
static

translates a vector of PARTIALDECOMP pointers into an array of their ids

Returns
SCIP return code
Parameters
partialdecsvector of partialdecs (input)
idlistarray of ids (output)
listlengthlength of id array (output)

Definition at line 302 of file cons_decomp.cpp.

References SCIP_OKAY.

Referenced by GCGconshdlrDecompGetFinishedPartialdecsList(), and GCGconshdlrDecompGetPartialdecsList().

◆ getSelectedPartialdecs()

static std::vector< PARTIALDECOMP * > getSelectedPartialdecs ( GCG *  gcg,
std::vector< PARTIALDECOMP * > &  selectedpartialdecs 
)
static

gets all selected partialdecs

Returns
vector of all selected partialdecs
Parameters
gcgGCG data structure
selectedpartialdecsvector of partialdecs (input)

Definition at line 322 of file cons_decomp.cpp.

References getConshdlrdata(), and SCIP_ConshdlrData::partialdecs.

Referenced by GCGconshdlrDecompChooseCandidatesFromSelected(), GCGconshdlrDecompGetSelectedPartialdecs(), and GCGwriteSelectedDecomps().

◆ getFinishedPartialdecs()

static void getFinishedPartialdecs ( GCG *  gcg,
std::vector< PARTIALDECOMP * > &  finishedpartialdecs 
)
static

gets vector of all finished partialdecs

Parameters
gcgGCG data structure
finishedpartialdecswill contain finished partialdecs

Definition at line 345 of file cons_decomp.cpp.

References getConshdlrdata(), and SCIP_ConshdlrData::partialdecs.

Referenced by GCGconshdlrDecompGetFinishedPartialdecsList(), GCGprintDecompInformation(), and GCGwriteAllDecomps().

◆ unselectAllPartialdecs()

static SCIP_RETCODE unselectAllPartialdecs ( GCG *  gcg)
static

method to unselect all decompositions, called in consexit, and when the partialdeclist is updated (especially if new (partial ones) are added )

Returns
SCIP return code
Parameters
gcgGCG data structure

Definition at line 367 of file cons_decomp.cpp.

References getConshdlrdata(), SCIP_ConshdlrData::partialdecs, and SCIP_OKAY.

Referenced by SCIP_DECL_CONSEXIT().

◆ createPartialdecDetectionData()

static PARTIALDEC_DETECTION_DATA * createPartialdecDetectionData ( gcg::DETPROBDATA *  detprobdata,
PARTIALDECOMP *  partialdec 
)
static

initializes a new detection data structure

Returns
new detection data structure
Parameters
detprobdatadetprobdata to point to
partialdecpartialdec to pass to detector

Definition at line 389 of file cons_decomp.cpp.

References Partialdec_Detection_Data::detprobdata, Partialdec_Detection_Data::nnewpartialdecs, and Partialdec_Detection_Data::workonpartialdec.

Referenced by detect().

◆ resetDetprobdata()

◆ deletePartialdecDetectionData()

static SCIP_RETCODE deletePartialdecDetectionData ( SCIP *  scip,
PARTIALDEC_DETECTION_DATA *  data 
)
static

delets the detection data structure

frees all relevant data within the construct before deleting the main structure

Returns
SCIP return code
Parameters
scipSCIP data structure
datadata to delete

Definition at line 446 of file cons_decomp.cpp.

References Partialdec_Detection_Data::newpartialdecs, Partialdec_Detection_Data::nnewpartialdecs, NULL, SCIP_OKAY, SCIPfreeMemoryArrayNull, and Partialdec_Detection_Data::workonpartialdec.

Referenced by detect().

◆ detect()

static SCIP_Retcode detect ( GCG *  gcg,
gcg::DETPROBDATA *  detprobdata 
)
static

constructs partialdecs using the registered detectors

Takes the current partialdecs in the detprobdata as root, propagates, finishes and postprocesses in rounds.

Returns
user has to free partialdecs
Parameters
gcgGCG data structure
detprobdatadetprobdata for problem the detection should be performed on

Definition at line 468 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::addDecChangesFromAncestor(), gcg::DETPROBDATA::addPartialdecToAncestor(), gcg::DETPROBDATA::addPartialdecToFinished(), gcg::DETPROBDATA::addPartialdecToOpen(), createPartialdecDetectionData(), GCG_Detector::dectime, gcg::PARTIALDECOMP::deleteEmptyBlocks(), deletePartialdecDetectionData(), Partialdec_Detection_Data::detectiontime, SCIP_ConshdlrData::detectorclock, SCIP_ConshdlrData::detectors, GCG_Detector::enabled, GCG_Detector::enabledFinishing, GCG_Detector::enabledPostprocessing, SCIP_ConshdlrData::finishingdetectors, GCGdetectorGetName(), GCGgetOrigprob(), getConshdlrdata(), gcg::PARTIALDECOMP::getDetectorchain(), gcg::DETPROBDATA::getFinishedPartialdecs(), gcg::DETPROBDATA::getNFinishedPartialdecs(), gcg::DETPROBDATA::getOpenPartialdecs(), gcg::PARTIALDECOMP::isComplete(), gcg::PARTIALDECOMP::isPropagatedBy(), SCIP_ConshdlrData::maxdetectiontime, GCG_Detector::ncompletedecomps, GCG_Detector::ndecomps, SCIP_ConshdlrData::ndetectors, Partialdec_Detection_Data::newpartialdecs, SCIP_ConshdlrData::nfinishingdetectors, Partialdec_Detection_Data::nnewpartialdecs, SCIP_ConshdlrData::npostprocessingdetectors, SCIP_ConshdlrData::npropagatingdetectors, NULL, SCIP_ConshdlrData::postprocess, SCIP_ConshdlrData::postprocessingdetectors, gcg::DETPROBDATA::postprocessingtime, gcg::PARTIALDECOMP::prepare(), SCIP_ConshdlrData::propagatingdetectors, SCIP_CALL, SCIP_CALL_ABORT, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_VERBLEVEL_FULL, SCIP_VERBLEVEL_HIGH, SCIPcreateClock(), SCIPfreeClock(), SCIPgetClockTime(), SCIPgetIntParam(), SCIPstartClock(), SCIPstopClock(), SCIPverbMessage(), gcg::PARTIALDECOMP::setDetectorFinished(), gcg::PARTIALDECOMP::setDetectorPropagated(), gcg::PARTIALDECOMP::setFinishedByFinisher(), and GCG_Detector::usefulRecall.

Referenced by GCGdetectStructure().

◆ SCIP_DECL_CONSINIT()

static SCIP_DECL_CONSINIT ( consInitDecomp  )
static

◆ SCIP_DECL_CONSEXIT()

◆ SCIP_DECL_CONSFREE()

◆ SCIP_DECL_CONSENFORELAX()

static SCIP_DECL_CONSENFORELAX ( consEnforeDecomp  )
static

constraint enforcing method of constraint handler for LP solutions

Definition at line 901 of file cons_decomp.cpp.

References SCIP_FEASIBLE, and SCIP_OKAY.

◆ SCIP_DECL_CONSENFOLP()

static SCIP_DECL_CONSENFOLP ( consEnfolpDecomp  )
static

constraint enforcing method of constraint handler for LP solutions

Definition at line 910 of file cons_decomp.cpp.

References SCIP_FEASIBLE, and SCIP_OKAY.

◆ SCIP_DECL_CONSENFOPS()

static SCIP_DECL_CONSENFOPS ( consEnfopsDecomp  )
static

constraint enforcing method of constraint handler for pseudo solutions

Definition at line 919 of file cons_decomp.cpp.

References SCIP_FEASIBLE, and SCIP_OKAY.

◆ SCIP_DECL_CONSCHECK()

static SCIP_DECL_CONSCHECK ( consCheckDecomp  )
static

feasibility check method of constraint handler for integral solutions

Definition at line 928 of file cons_decomp.cpp.

References SCIP_FEASIBLE, and SCIP_OKAY.

◆ SCIP_DECL_CONSLOCK()

static SCIP_DECL_CONSLOCK ( consLockDecomp  )
static

variable rounding lock method of constraint handler

Definition at line 938 of file cons_decomp.cpp.

References SCIP_OKAY.

◆ findGenericConsname()

static int findGenericConsname ( SCIP *  scip,
int  startcount,
char *  consname,
int  namelength 
)
static

finds a non duplicate constraint name of the form c_{a} with minimal natural number {a}

Returns
id of constraint
Parameters
scipSCIP data structure
startcountnatural number, lowest candidate number to test
consnamechar pointer to store the new non-duplicate name
namelengthmax length of the name

Definition at line 949 of file cons_decomp.cpp.

References NULL, SCIP_MAXSTRLEN, SCIPfindCons(), SCIPsnprintf(), and TRUE.

Referenced by SCIPconshdlrDecompRepairConsNames().

◆ createPartialdecFromDecomp()

static SCIP_RETCODE createPartialdecFromDecomp ( GCG *  gcg,
GCG_DECOMP *  decomp,
PARTIALDECOMP **  newpartialdec 
)
static

creates a partialdec for a given decomposition

Returns
SCIP return code
Parameters
gcgGCG data structure
decompdecomposition the partialdec is created for
newpartialdecthe new partialdec created from the decomp

Definition at line 981 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::addClockTime(), gcg::PARTIALDECOMP::addNNewBlocks(), gcg::PARTIALDECOMP::addPctConssFromFree(), gcg::PARTIALDECOMP::addPctConssToBlock(), gcg::PARTIALDECOMP::addPctConssToBorder(), gcg::PARTIALDECOMP::addPctVarsFromFree(), gcg::PARTIALDECOMP::addPctVarsToBlock(), gcg::PARTIALDECOMP::addPctVarsToBorder(), b, gcg::PARTIALDECOMP::fixConsToBlock(), gcg::PARTIALDECOMP::fixConsToMaster(), gcg::PARTIALDECOMP::fixVarToBlock(), gcg::PARTIALDECOMP::fixVarToLinking(), gcg::PARTIALDECOMP::fixVarToMaster(), gcg::PARTIALDECOMP::fixVarToStairlinking(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGdecompCheckConsistency(), GCGdecompGetConstoblock(), GCGdecompGetDetectorChain(), GCGdecompGetDetectorChainSize(), GCGdecompGetDetectorClockTimes(), GCGdecompGetDetectorPctConssFromOpen(), GCGdecompGetDetectorPctConssToBlock(), GCGdecompGetDetectorPctConssToBorder(), GCGdecompGetDetectorPctVarsFromOpen(), GCGdecompGetDetectorPctVarsToBlock(), GCGdecompGetDetectorPctVarsToBorder(), GCGdecompGetLinkingconss(), GCGdecompGetNBlocks(), GCGdecompGetNLinkingconss(), GCGdecompGetNNewBlocks(), GCGdecompGetNStairlinkingvars(), GCGdecompGetStairlinkingvars(), GCGdecompGetVartoblock(), gcg::DETPROBDATA::getCons(), gcg::DETPROBDATA::getIndexForCons(), gcg::DETPROBDATA::getIndexForVar(), gcg::PARTIALDECOMP::getNBlocks(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNVars(), gcg::DETPROBDATA::getVar(), gcg::PARTIALDECOMP::isComplete(), gcg::PARTIALDECOMP::isVarStairlinkingvar(), NULL, GCG_Decomp::presolved, gcg::PARTIALDECOMP::reorderBlocksForStairlinkingVars(), SCIP_OKAY, SCIPhashmapGetImage(), SCIPvarGetProbvar(), gcg::PARTIALDECOMP::setDetectorPropagated(), gcg::PARTIALDECOMP::setNBlocks(), and gcg::PARTIALDECOMP::sort().

Referenced by GCGconshdlrDecompAddPreexistingDecomp().

◆ createDecompFromPartialdec()

static SCIP_RETCODE createDecompFromPartialdec ( GCG *  gcg,
PARTIALDECOMP *  partialdec,
GCG_DECOMP **  newdecomp 
)
static

creates a decomposition GCG_DECOMP structure for a given partialdec

Returns
scip return code
Parameters
gcgGCG data structure
partialdecpartialdec the decomposition is created for
newdecompthe new decomp created from the partialdec

Definition at line 1096 of file cons_decomp.cpp.

References b, gcg::PARTIALDECOMP::buildDecChainString(), gcg::PARTIALDECOMP::checkConsistency(), FALSE, GCG_DECTYPE_ARROWHEAD, GCG_DECTYPE_BORDERED, GCG_DECTYPE_DIAGONAL, GCG_DECTYPE_STAIRCASE, GCG_DECTYPE_UNKNOWN, GCGdecompAddRemainingConss(), GCGdecompCheckConsistency(), GCGdecompCreate(), GCGdecompGetNLinkingconss(), GCGdecompGetNLinkingvars(), GCGdecompSetConsindex(), GCGdecompSetConstoblock(), GCGdecompSetDetector(), GCGdecompSetDetectorChain(), GCGdecompSetDetectorChainString(), GCGdecompSetDetectorClockTimes(), GCGdecompSetDetectorPctConssFromOpen(), GCGdecompSetDetectorPctConssToBlock(), GCGdecompSetDetectorPctConssToBorder(), GCGdecompSetDetectorPctVarsFromOpen(), GCGdecompSetDetectorPctVarsToBlock(), GCGdecompSetDetectorPctVarsToBorder(), GCGdecompSetLinkingconss(), GCGdecompSetLinkingvars(), GCGdecompSetMaxWhiteScore(), GCGdecompSetNBlocks(), GCGdecompSetNNewBlocks(), GCGdecompSetPartialdecID(), GCGdecompSetPresolved(), GCGdecompSetStairlinkingvars(), GCGdecompSetSubscipconss(), GCGdecompSetSubscipvars(), GCGdecompSetType(), GCGdecompSetVarindex(), GCGdecompSetVartoblock(), GCGgetOrigprob(), GCGisConsGCGCons(), gcg::PARTIALDECOMP::getConssForBlock(), gcg::PARTIALDECOMP::getDetectorchain(), gcg::PARTIALDECOMP::getDetectorClockTimes(), gcg::PARTIALDECOMP::getDetprobdata(), gcg::PARTIALDECOMP::getID(), gcg::PARTIALDECOMP::getLinkingvars(), gcg::PARTIALDECOMP::getMasterconss(), gcg::PARTIALDECOMP::getMastervars(), gcg::PARTIALDECOMP::getMaxWhiteScore(), gcg::PARTIALDECOMP::getNBlocks(), gcg::PARTIALDECOMP::getNConss(), gcg::PARTIALDECOMP::getNConssForBlock(), gcg::PARTIALDECOMP::getNDetectors(), gcg::PARTIALDECOMP::getNLinkingvars(), gcg::PARTIALDECOMP::getNMasterconss(), gcg::PARTIALDECOMP::getNMastervars(), gcg::PARTIALDECOMP::getNNewBlocksVector(), gcg::PARTIALDECOMP::getNStairlinkingvars(), gcg::PARTIALDECOMP::getNTotalStairlinkingvars(), gcg::PARTIALDECOMP::getNVars(), gcg::PARTIALDECOMP::getNVarsForBlock(), gcg::DETPROBDATA::getOrigVarsFixedZero(), gcg::PARTIALDECOMP::getPctConssFromFreeVector(), gcg::PARTIALDECOMP::getPctConssToBlockVector(), gcg::PARTIALDECOMP::getPctConssToBorderVector(), gcg::PARTIALDECOMP::getPctVarsFromFreeVector(), gcg::PARTIALDECOMP::getPctVarsToBlockVector(), gcg::PARTIALDECOMP::getPctVarsToBorderVector(), gcg::DETPROBDATA::getRelevantConss(), gcg::DETPROBDATA::getRelevantVars(), gcg::PARTIALDECOMP::getStairlinkingvars(), gcg::PARTIALDECOMP::getVarsForBlock(), gcg::PARTIALDECOMP::isAssignedToOrigProb(), NULL, SCIP_Bool, SCIP_CALL, SCIP_CALL_ABORT, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_VERBLEVEL_NORMAL, SCIPallocBufferArray, SCIPblkmem(), SCIPconsGetName(), SCIPconsIsDeleted(), SCIPconsIsObsolete(), SCIPdebugMessage, SCIPfreeBufferArrayNull, SCIPgetConss(), SCIPgetNConss(), SCIPgetNVars(), SCIPgetTransformedCons(), SCIPgetVars(), SCIPhashmapCreate(), SCIPhashmapExists(), SCIPhashmapGetImage(), SCIPhashmapInsert(), SCIPvarGetName(), SCIPvarGetProbvar(), SCIPverbMessage(), and TRUE.

Referenced by GCGconshdlrDecompGetDecomps(), and GCGgetBestDecomp().

◆ sortPartialdecs()

static void sortPartialdecs ( GCG *  gcg)
static

sorts all registered partialdecs according to score, descending

Parameters
gcgGCG data structure

Definition at line 1513 of file cons_decomp.cpp.

References a, b, getConshdlrdata(), NULL, and SCIP_ConshdlrData::partialdecs.

Referenced by GCGconshdlrDecompGetDecomps().

◆ GCGconshdlrDecompAdaptScore()

SCIP_Real GCGconshdlrDecompAdaptScore ( GCG *  gcg,
SCIP_Real  oldscore 
)

method to adapt score for orig decomps

Returns
new score
Parameters
gcgGCG data structure
oldscorecurrent 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().

◆ reduceConsclasses()

static void reduceConsclasses ( GCG *  gcg,
gcg::DETPROBDATA *  detprobdata 
)
static

◆ reduceVarclasses()

static void reduceVarclasses ( GCG *  gcg,
gcg::DETPROBDATA *  detprobdata 
)
static

◆ setDetectionEnabled()

static SCIP_RETCODE setDetectionEnabled ( GCG *  gcg,
SCIP_Bool  quiet,
SCIP_Bool  enabled 
)
static

sets detection/enabled setting

Returns
SCIP return code
Parameters
gcgSCIP data structure
quietshould the parameter be set quietly (no output)
enabledshould the detection be enabled

Definition at line 1632 of file cons_decomp.cpp.

References GCGgetOrigprob(), NULL, SCIP_CALL, SCIP_OKAY, SCIPinfoMessage(), and SCIPsetBoolParam().

Referenced by setDetectionAggressive(), setDetectionDefault(), setDetectionFast(), and setDetectionOff().

◆ setDetectionDefault()

static SCIP_RETCODE setDetectionDefault ( GCG *  gcg,
SCIP_CONSHDLRDATA *  conshdlrdata,
SCIP_Bool  quiet 
)
static

◆ setDetectionAggressive()

static SCIP_RETCODE setDetectionAggressive ( GCG *  gcg,
SCIP_CONSHDLRDATA *  conshdlrdata,
SCIP_Bool  quiet 
)
static

sets the parameters to aggressive values

Returns
SCIP return code
Parameters
gcgSCIP data structure
conshdlrdataconstraint handler data structure
quietshould the parameter be set quiet (no output)

Definition at line 1714 of file cons_decomp.cpp.

References AGGRESSIVE_LEVENSHTEIN_MAXMATRIXHALFPERIMETER, SCIP_ConshdlrData::detectors, FALSE, SCIP_ConshdlrData::gcg, GCGgetOrigprob(), GCG_Detector::name, SCIP_ConshdlrData::ndetectors, NULL, SCIP_Bool, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_STAGE_PROBLEM, SCIP_VERBLEVEL_HIGH, SCIPgetBoolParam(), SCIPgetNConss(), SCIPgetNVars(), SCIPgetStage(), SCIPsetBoolParam(), SCIPsetIntParam(), SCIPsnprintf(), SCIPverbMessage(), setDetectionEnabled(), and TRUE.

Referenced by GCGconshdlrDecompSetDetection().

◆ setDetectionOff()

static SCIP_RETCODE setDetectionOff ( GCG *  gcg,
SCIP_CONSHDLRDATA *  conshdlrdata,
SCIP_Bool  quiet 
)
static

disables detectors

Returns
SCIP return code
Parameters
gcgSCIP data structure
conshdlrdataconstraint handler data structure
quietshould the parameter be set quiet (no output)

Definition at line 1776 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detectors, FALSE, GCGgetOrigprob(), GCG_Detector::name, SCIP_ConshdlrData::ndetectors, NULL, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPinfoMessage(), SCIPsetBoolParam(), SCIPsnprintf(), and setDetectionEnabled().

Referenced by GCGconshdlrDecompSetDetection().

◆ setDetectionFast()

static SCIP_RETCODE setDetectionFast ( GCG *  gcg,
SCIP_CONSHDLRDATA *  conshdlrdata,
SCIP_Bool  quiet 
)
static

◆ gcd()

static int gcd ( int  a,
int  b 
)
static

method to calculate the greatest common divisor

Returns
greatest common divisor
Parameters
afirst value
bsecond value

Definition at line 1897 of file cons_decomp.cpp.

References a, b, and gcd().

Referenced by gcd(), and GCGconshdlrDecompCalcCandidatesNBlocks().

◆ SCIP_DECL_PARAMCHGD()

◆ GCGgetNDecomps()

int GCGgetNDecomps ( GCG *  gcg)

Definition at line 2056 of file cons_decomp.cpp.

References GCGconshdlrDecompGetNDecomps().

◆ GCGdetectorGetChar()

char GCGdetectorGetChar ( GCG_DETECTOR *  detector)

Gets the character of the detector.

Returns
detector character
Parameters
detectorpointer 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_DETECTORDATA * GCGdetectorGetData ( GCG_DETECTOR *  detector)

returns the data of the provided detector

Returns
data of the provided detector
Parameters
detectorDetector 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()

const char * GCGdetectorGetName ( GCG_DETECTOR *  detector)

◆ GCGdetectStructure()

SCIP_RETCODE GCGdetectStructure ( GCG *  gcg,
SCIP_RESULT *  result 
)

interface method to detect the structure including presolving

Returns
SCIP return code
Parameters
gcgGCG data structure
resultResult 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_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
gcgGCG data structure
namethe 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_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
gcgGCG data structure
namethe 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_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
gcgGCG data structure
namethe 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().

◆ GCGconshdlrDecompFindScore()

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

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()

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

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_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
gcgGCG data structure
printwarningsshould 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().

◆ GCGgetPartialdecToWrite()

◆ GCGgetRemainingTime()

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
gcgGCG 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()

◆ GCGincludeDetector()

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 at line 2547 of file cons_decomp.cpp.

References BMSduplicateMemoryArray, GCG_Detector::decchar, GCG_Detector::decdata, GCG_Detector::dectime, GCG_Detector::description, SCIP_ConshdlrData::detectors, GCG_Detector::enabled, GCG_Detector::enabledFinishing, GCG_Detector::enabledPostprocessing, FALSE, SCIP_ConshdlrData::finishingdetectors, GCG_Detector::freqCallRound, GCG_Detector::freqCallRoundOriginal, GCGfindDetector(), GCGgetOrigprob(), getConshdlrdata(), GCG_Detector::maxCallRound, GCG_Detector::maxCallRoundOriginal, GCG_Detector::minCallRound, GCG_Detector::minCallRoundOriginal, GCG_Detector::name, GCG_Detector::ncompletedecomps, GCG_Detector::ndecomps, SCIP_ConshdlrData::ndetectors, SCIP_ConshdlrData::nfinishingdetectors, SCIP_ConshdlrData::npostprocessingdetectors, SCIP_ConshdlrData::npropagatingdetectors, NULL, GCG_Detector::overruleemphasis, SCIP_ConshdlrData::postprocessingdetectors, SCIP_ConshdlrData::priorities, GCG_Detector::priority, SCIP_ConshdlrData::propagatingdetectors, SCIP_ALLOC, SCIP_CALL, SCIP_ERROR, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPallocBlockMemory, SCIPdebugMessage, SCIPerrorMessage, SCIPreallocMemoryArray, SCIPsnprintf(), GCG_Detector::skip, and GCG_Detector::usefulRecall.

Referenced by GCGincludeDetectorCompgreedily(), GCGincludeDetectorConnected_noNewLinkingVars(), GCGincludeDetectorConnectedbase(), GCGincludeDetectorConsclass(), GCGincludeDetectorConstype(), GCGincludeDetectorDBSCAN(), GCGincludeDetectorDensemasterconss(), GCGincludeDetectorGeneralmastersetcover(), GCGincludeDetectorGeneralmastersetpack(), GCGincludeDetectorGeneralmastersetpart(), GCGincludeDetectorHcgpartition(), GCGincludeDetectorHrcgpartition(), GCGincludeDetectorHrgpartition(), GCGincludeDetectorIsomorphism(), GCGincludeDetectorMastersetcover(), GCGincludeDetectorMastersetpack(), GCGincludeDetectorMastersetpart(), GCGincludeDetectorMST(), GCGincludeDetectorNeighborhoodmaster(), GCGincludeDetectorPostprocess(), GCGincludeDetectorStaircaseLsp(), GCGincludeDetectorStairheur(), and GCGincludeDetectorVarclass().

◆ GCGincludeVarClassifier()

◆ GCGgetCurrentScoreShortname()

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()

◆ GCGconshdlrDecompIncludeScore()

SCIP_RETCODE GCGconshdlrDecompIncludeScore ( GCG *  gcg,
const char *  name,
const char *  shortname,
const char *  description,
GCG_SCOREDATA *  scoredata,
GCG_DECL_SCOREFREE((*scorefree))   
)

◆ GCGprintListOfDetectors()

void GCGprintListOfDetectors ( GCG *  gcg)

◆ GCGwriteAllDecomps()

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
gcgGCG data structure
directorydirectory for decompositions
extensionthe file extension for the export
originalshould decomps for original problem be written
presolvedshould 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()

SCIP_RETCODE GCGwriteSelectedDecomps ( GCG *  gcg,
char *  directory,
char *  extension 
)

writes all selected decompositions

Returns
scip return code
Parameters
gcgGCG data structure
directorydirectory for decompositions
extensionextension 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().

◆ GCGconshdlrDecompAddBasicPartialdec()

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
gcgGCG data structure
presolvedcreate basic partialdecomp for presolved if true, otherwise for original
partialdecomppointer 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().

◆ GCGconshdlrDecompAddCandidatesNBlocks()

void GCGconshdlrDecompAddCandidatesNBlocks ( GCG *  gcg,
SCIP_Bool  origprob,
int  candidate 
)

adds a candidate for block number and counts how often a candidate is added

Parameters
gcgGCG data structure
origprobwhich DETPROBDATA that should be modified
candidateproposed 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().

◆ GCGconshdlrDecompAddMatrixPartialdec()

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
gcgGCG data structure
presolvedcreate 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()

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
gcgGCG data structure
decompdecomposition 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().

◆ GCGconshdlrDecompAddPreexisitingPartialDec() [1/2]

SCIP_RETCODE GCGconshdlrDecompAddPreexisitingPartialDec ( GCG *  gcg,
gcg::PARTIALDECOMP *  partialdec 
)

adds a preexisting partial dec to be considered at the beginning of the detection

Note
refines the partialdec to be consistent, adds meta data/statistics, completes partial dec by assigning open conss to master if USERGIVEN::COMPLETED_CONSTOMASTER is set
Returns
SCIP return code
Parameters
gcgGCG data structure
partialdecpartial dec to add

Definition at line 3133 of file cons_decomp.cpp.

References FALSE, and GCGconshdlrDecompAddPreexisitingPartialDec().

Referenced by gcg::BLOCK_STRUCTURE::createPartialdec(), GCGconshdlrDecompAddPreexisitingPartialDec(), GCGconshdlrDecompAddPreexistingDecomp(), readBLKFile(), readDECFile(), and readJDec().

◆ GCGconshdlrDecompAddPreexisitingPartialDec() [2/2]

SCIP_RETCODE GCGconshdlrDecompAddPreexisitingPartialDec ( GCG *  gcg,
gcg::PARTIALDECOMP *  partialdec,
SCIP_Bool  addpartialdec 
)

◆ GCGconshdlrDecompGetScoreClock()

SCIP_CLOCK * GCGconshdlrDecompGetScoreClock ( GCG *  gcg)

gets the clock tracking the score computation time

Returns
pointer to a clock object
Parameters
gcgGCG data structure

Definition at line 3245 of file cons_decomp.cpp.

References getConshdlrdata(), and SCIP_ConshdlrData::scoreclock.

Referenced by gcg::PARTIALDECOMP::getScore().

◆ GCGconshdlrDecompGetScoreTotalTime()

SCIP_Real GCGconshdlrDecompGetScoreTotalTime ( GCG *  gcg)

gets total score computation time

Returns
total score computation time
Parameters
gcgGCG data structure

Definition at line 3254 of file cons_decomp.cpp.

References GCGgetOrigprob(), getConshdlrdata(), SCIP_Real, SCIPgetClockTime(), and SCIP_ConshdlrData::scoreclock.

Referenced by GCGconshdlrDecompPrintScoreStatistics().

◆ GCGconshdlrDecompAddUserCandidatesNBlocks()

void GCGconshdlrDecompAddUserCandidatesNBlocks ( GCG *  gcg,
int  candidate 
)

adds a candidate for block size given by the user

Parameters
gcgGCG data structure
candidatecandidate 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()

SCIP_RETCODE GCGconshdlrDecompArePricingprobsIdenticalForPartialdec ( SCIP *  scip,
PARTIALDECOMP_C *  partialdecomp,
int  probnr1,
int  probnr2,
SCIP_Bool *  identical 
)

◆ GCGconshdlrDecompCalcCandidatesNBlocks()

◆ GCGconshdlrDecompCheckConsistency()

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
gcgGCG 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().

◆ GCGconshdlrDecompChooseCandidatesFromSelected()

◆ GCGconshdlrDecompClassify()

◆ GCGconshdlrDecompCreateVarmapForPartialdec()

◆ GCGconshdlrDecompDecreaseNCallsCreateDecomp()

int GCGconshdlrDecompDecreaseNCallsCreateDecomp ( GCG *  gcg)

decreases the counter for created decompositions and returns it

Returns
number of created decompositions that was recently decreased
Parameters
gcgGCG data structure *

Definition at line 3742 of file cons_decomp.cpp.

References getConshdlrdata(), SCIP_ConshdlrData::ncallscreatedecomp, and NULL.

Referenced by GCGdecompFree().

◆ GCGconshdlrDecompDeregisterPartialdecs()

void GCGconshdlrDecompDeregisterPartialdecs ( GCG *  gcg,
SCIP_Bool  original 
)

deregisters partialdecs in the conshdlr

Use this function for deletion of ALL the partialdecs.

Parameters
gcgGCG data structure
originaliff 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().

◆ GCGconshdlrDecompDeregisterPartialdec()

void GCGconshdlrDecompDeregisterPartialdec ( GCG *  gcg,
gcg::PARTIALDECOMP *  partialdec 
)

deregisters a partialdec in the conshdlr

Use this function at deletion of the partialdec. The partialdec is not destroyed in this function, the conshdlr will not know that it exists.

Parameters
gcgGCG data structure
partialdecthe partialdec

Definition at line 3774 of file cons_decomp.cpp.

References getConshdlrdata(), gcg::PARTIALDECOMP::getID(), NULL, SCIP_ConshdlrData::partialdecs, and SCIP_ConshdlrData::partialdecsbyid.

Referenced by gcg::PARTIALDECOMP::~PARTIALDECOMP().

◆ 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
gcgGCG 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()

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
gcgGCG data structure
freewhether 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()

int GCGconshdlrDecompGetBlockNumberCandidate ( GCG *  gcg,
int  index 
)

returns block number user candidate with given index

Parameters
scipSCIP data structure
indexindex 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()

SCIP_Real GCGconshdlrDecompGetCompleteDetectionTime ( GCG *  gcg)

returns the total detection time

Parameters
scipSCIP 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_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
gcgGCG 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().

◆ GCGconshdlrDecompPartialdecGetDetectorHistory()

std::string GCGconshdlrDecompPartialdecGetDetectorHistory ( PARTIALDECOMP_C *  partialdecomp)

Definition at line 3904 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::buildDecChainString(), NULL, and SCIP_MAXSTRLEN.

◆ GCGconshdlrDecompGetDetectors()

GCG_DETECTOR ** GCGconshdlrDecompGetDetectors ( GCG *  gcg)

Gets an array of all detectors.

Returns
array of detectors
Parameters
gcgGCG data structure

Definition at line 3917 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detectors, getConshdlrdata(), and NULL.

Referenced by gcg::GCGdialogShowLegend().

◆ GCGconshdlrDecompGetScores()

GCG_SCORE ** GCGconshdlrDecompGetScores ( GCG *  gcg)

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().

◆ GCGconshdlrDecompGetConsClassifiers()

GCG_CONSCLASSIFIER ** GCGconshdlrDecompGetConsClassifiers ( GCG *  gcg)

gets an array of all constraint classifier

Returns
array of constraint classifier
Parameters
gcgGCG 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_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().

◆ GCGconshdlrDecompGetDetprobdataOrig()

DETPROBDATA * GCGconshdlrDecompGetDetprobdataOrig ( GCG *  gcg)

help method to access detprobdata for unpresolved problem

Returns
pointer to detprobdata in wrapper data structure
Parameters
gcgGCG data structure

Definition at line 3962 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detprobdataorig, GCGconshdlrDecompOrigDetprobdataExists(), getConshdlrdata(), NULL, and resetDetprobdata().

Referenced by buildProblem(), calculateDualvalsOptimalOrigLP(), createPartialdecFromDecomp(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_VARCLASSIFY(), gcg::PARTIALDECOMP::getDetprobdata(), shuffleDualvalsRandom(), and writeCls().

◆ GCGconshdlrDecompGetDetprobdataPresolved()

DETPROBDATA * GCGconshdlrDecompGetDetprobdataPresolved ( GCG *  gcg)

help method to access detprobdata for transformed problem

Returns
pointer to detprobdata in wrapper data structure
Parameters
gcgGCG data structure

Definition at line 3976 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detprobdatapres, GCGconshdlrDecompPresolvedDetprobdataExists(), getConshdlrdata(), NULL, and resetDetprobdata().

Referenced by calculateDualvalsOptimalOrigLP(), createPartialdecFromDecomp(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_VARCLASSIFY(), gcg::PARTIALDECOMP::getDetprobdata(), shuffleDualvalsRandom(), and writeCls().

◆ GCGconshdlrDecompGetFinishedPartialdecsList()

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
gcgGCG data structure
idlistid list to output to
listlengthlength of output list

Definition at line 3990 of file cons_decomp.cpp.

References getFinishedPartialdecs(), partialdecVecToIdArray(), and SCIP_OKAY.

Referenced by reportAllDecompositions().

◆ GCGconshdlrDecompGetPartialdecsList()

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
gcgGCG data structure
idlistid list to output to
listlengthlength of output list

Definition at line 4004 of file cons_decomp.cpp.

References getConshdlrdata(), NULL, SCIP_ConshdlrData::partialdecs, partialdecVecToIdArray(), and SCIP_OKAY.

◆ GCGconshdlrDecompGetNBlockNumberCandidates()

int GCGconshdlrDecompGetNBlockNumberCandidates ( GCG *  gcg)

returns the number of block candidates given by the user

Returns
number of block candidates given by the user
Parameters
gcgGCG data structure

Definition at line 4018 of file cons_decomp.cpp.

References getConshdlrdata(), NULL, and SCIP_ConshdlrData::userblocknrcandidates.

Referenced by gcg::DETPROBDATA::getSortedCandidatesNBlocks().

◆ GCGconshdlrDecompPartialdecGetNBlocks()

int GCGconshdlrDecompPartialdecGetNBlocks ( PARTIALDECOMP_C *  partialdecomp)

gets block number of partialdec

Returns
block number of partialdec
Parameters
partialdecomppartialdec

Definition at line 4029 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNBlocks(), and NULL.

Referenced by checkIdenticalBlocks().

◆ GCGconshdlrDecompGetNDecomps()

int GCGconshdlrDecompGetNDecomps ( GCG *  gcg)

gets the number of decompositions (= amount of finished partialdecs)

Returns
number of decompositions
Parameters
gcgGCG 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()

int GCGconshdlrDecompGetNDetectors ( GCG *  gcg)

Gets the number of all detectors.

Returns
number of detectors
Parameters
gcgGCG data structure

Definition at line 4061 of file cons_decomp.cpp.

References getConshdlrdata(), SCIP_ConshdlrData::ndetectors, and NULL.

Referenced by gcg::GCGdialogShowLegend().

◆ GCGconshdlrDecompGetNConsClassifiers()

int GCGconshdlrDecompGetNConsClassifiers ( GCG *  gcg)

Gets the number of all constraint classifiers.

Returns
number of constraint classifiers
Parameters
gcgGCG data structure

Definition at line 4071 of file cons_decomp.cpp.

References getConshdlrdata(), SCIP_ConshdlrData::nconsclassifiers, and NULL.

Referenced by SCIP_DECL_DIALOGEXEC().

◆ GCGconshdlrDecompGetNVarClassifiers()

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().

◆ GCGconshdlrDecompGetNScores()

int GCGconshdlrDecompGetNScores ( GCG *  gcg)

Gets the number of all scores.

Returns
number of scores
Parameters
gcgGCG 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().

◆ GCGconshdlrDecompGetNextPartialdecID()

int GCGconshdlrDecompGetNextPartialdecID ( GCG *  gcg)

Gets the next partialdec id managed by cons_decomp.

Returns
the next partialdec id managed by cons_decomp
Parameters
gcgGCG 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()

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
gcgGCG data structure
idid 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()

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
partialdecomppartialdec

Definition at line 4137 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::aggInfoCalculated(), NULL, and SCIP_Bool.

Referenced by checkIdenticalBlocks().

◆ GCGconshdlrDecompPartialdecCalcAggregationInformation()

void GCGconshdlrDecompPartialdecCalcAggregationInformation ( PARTIALDECOMP_C *  partialdecomp,
SCIP_Bool  ignoreDetectionLimits 
)

calculates aggregation information for a partialdec

Parameters
partialdecomppartialdec
ignoreDetectionLimitsSet 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()

int GCGconshdlrDecompPartialdecGetNEquivalenceClasses ( PARTIALDECOMP_C *  partialdecomp)

gets number of equivalence classes of partialdec

Returns
number of equivalence classes of partialdec
Parameters
partialdecomppartialdec

Definition at line 4158 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNEquivalenceClasses(), and NULL.

Referenced by checkIdenticalBlocks().

◆ GCGconshdlrDecompPartialdecGetReprBlockForEqClass()

int GCGconshdlrDecompPartialdecGetReprBlockForEqClass ( PARTIALDECOMP_C *  partialdecomp,
int  eqclass 
)

gets the representative block of a equivalence class of partialdec

Returns
representative block
Parameters
partialdecomppartialdec
eqclassid of the equivalence class

Definition at line 4168 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getReprBlockForEqClass(), and NULL.

Referenced by checkIdenticalBlocks().

◆ GCGconshdlrDecompPartialdecGetBlocksForEqClass()

const int * GCGconshdlrDecompPartialdecGetBlocksForEqClass ( PARTIALDECOMP_C *  partialdecomp,
int  eqclass 
)

gets the blocks of a equivalence class of partialdec

Returns
representative block
Parameters
partialdecomppartialdec
eqclassid of the equivalence class

Definition at line 4179 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getBlocksForEqClass(), and NULL.

Referenced by checkIdenticalBlocks().

◆ GCGconshdlrDecompPartialdecGetNBlocksForEqClass()

int GCGconshdlrDecompPartialdecGetNBlocksForEqClass ( PARTIALDECOMP_C *  partialdecomp,
int  eqclass 
)

gets the number of blocks of a equivalence class of partialdec

Returns
representative block
Parameters
partialdecomppartialdec
eqclassid of the equivalence class

Definition at line 4190 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getBlocksForEqClass(), and NULL.

Referenced by checkIdenticalBlocks().

◆ GCGconshdlrDecompPartialdecGetRepVarMap()

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
partialdecomppartialdec
eqclassid of the equivalence class
eqclassblockindex 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()

int GCGconshdlrDecompPartialdecGetNLinkingVars ( PARTIALDECOMP_C *  partialdecomp)

gets number of linking variables of partialdec

Returns
number of linking variables of partialdec
Parameters
partialdecomppartialdec

Definition at line 4213 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNLinkingvars(), and NULL.

◆ GCGconshdlrDecompPartialdecGetNMasterConss()

int GCGconshdlrDecompPartialdecGetNMasterConss ( PARTIALDECOMP_C *  partialdecomp)

gets number of master constraints of partialdec

Returns
number of master constraints of partialdec
Parameters
partialdecomppartialdec

Definition at line 4224 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNMasterconss(), and NULL.

◆ GCGconshdlrDecompPartialdecGetNMasterVars()

int GCGconshdlrDecompPartialdecGetNMasterVars ( PARTIALDECOMP_C *  partialdecomp)

gets number of master variables of partialdec

Returns
number of master variables of partialdec
Parameters
partialdecomppartialdec

Definition at line 4235 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNMastervars(), and NULL.

◆ GCGconshdlrDecompPartialdecGetNOpenConss()

int GCGconshdlrDecompPartialdecGetNOpenConss ( PARTIALDECOMP_C *  partialdecomp)

gets number of open constraints of partialdec

Returns
total number of open constraints of partialdec
Parameters
partialdecomppartialdec

Definition at line 4246 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNOpenconss(), and NULL.

◆ GCGconshdlrDecompPartialdecGetNOpenVars()

int GCGconshdlrDecompPartialdecGetNOpenVars ( PARTIALDECOMP_C *  partialdecomp)

gets number of open variables of partialdec

Returns
total number of open variables of partialdec
Parameters
partialdecomppartialdec

Definition at line 4257 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNOpenvars(), and NULL.

◆ GCGconshdlrDecompPartialdecGetOrigVarForBlock()

SCIP_VAR * GCGconshdlrDecompPartialdecGetOrigVarForBlock ( PARTIALDECOMP_C *  partialdecomp,
int  block,
int  blockvarindex 
)

returns the original variable for a block and index

Returns
corresponding original variable
Parameters
partialdecomppartialdec
blockid of the block
blockvarindexindex 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()

int GCGconshdlrDecompPartialdecGetNVarsForBlock ( PARTIALDECOMP_C *  partialdecomp,
int  block 
)

gets the number of variables of a block

Returns
representative block
Parameters
partialdecomppartialdec
blockid of the block

Definition at line 4280 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNVarsForBlock(), and NULL.

Referenced by checkIdenticalBlocks().

◆ GCGconshdlrDecompGetNFinishedPartialdecsOrig()

unsigned int GCGconshdlrDecompGetNFinishedPartialdecsOrig ( GCG *  gcg)

Gets the number of finished partialdecs available for the original problem.

Returns
number of partialdecs
Parameters
gcgGCG data structure

Definition at line 4291 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detprobdataorig, getConshdlrdata(), gcg::DETPROBDATA::getNFinishedPartialdecs(), and NULL.

◆ GCGconshdlrDecompGetNFinishedPartialdecsTransformed()

unsigned int GCGconshdlrDecompGetNFinishedPartialdecsTransformed ( GCG *  gcg)

Gets the number of finished partialdecs available for the transformed problem.

Returns
number of partialdecs
Parameters
gcgGCG 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()

unsigned int GCGconshdlrDecompGetNOpenPartialdecsOrig ( GCG *  gcg)

Gets the number of open partialdecs available for the original problem.

Returns
number of partialdecs
Parameters
gcgGCG data structure

Definition at line 4319 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detprobdataorig, getConshdlrdata(), gcg::DETPROBDATA::getNOpenPartialdecs(), and NULL.

◆ GCGconshdlrDecompGetNOpenPartialdecsTransformed()

unsigned int GCGconshdlrDecompGetNOpenPartialdecsTransformed ( GCG *  gcg)

Gets the number of open partialdecs available for the transformed problem.

Returns
number of partialdecs
Parameters
gcgGCG data structure

Definition at line 4333 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detprobdatapres, getConshdlrdata(), gcg::DETPROBDATA::getNOpenPartialdecs(), and NULL.

◆ GCGconshdlrDecompGetNPartialdecs()

unsigned int GCGconshdlrDecompGetNPartialdecs ( GCG *  gcg)

Gets the number of all partialdecs.

Returns
number of Partialdecs
Parameters
gcgGCG 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()

unsigned int GCGconshdlrDecompGetNPartialdecsOrig ( GCG *  gcg)

Gets the number of partialdecs available for the original problem.

Returns
number of partialdecs
Parameters
gcgGCG data structure

Definition at line 4358 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detprobdataorig, getConshdlrdata(), gcg::DETPROBDATA::getNPartialdecs(), and NULL.

◆ GCGconshdlrDecompGetNPartialdecsTransformed()

unsigned int GCGconshdlrDecompGetNPartialdecsTransformed ( GCG *  gcg)

Gets the number of partialdecs available for the transformed problem.

Returns
number of partialdecs
Parameters
gcgGCG data structure

Definition at line 4372 of file cons_decomp.cpp.

References SCIP_ConshdlrData::detprobdatapres, getConshdlrdata(), gcg::DETPROBDATA::getNPartialdecs(), and NULL.

◆ GCGconshdlrDecompPartialdecGetNStairlinkingVars()

int GCGconshdlrDecompPartialdecGetNStairlinkingVars ( PARTIALDECOMP_C *  partialdecomp)

gets number of stairlinking variables of partialdec

Returns
total number of stairlinking variables of partialdec
Parameters
partialdecomppartialdec

Definition at line 4386 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getNTotalStairlinkingvars(), and NULL.

◆ GCGconshdlrDecompGetPartialdecs()

std::vector< PARTIALDECOMP * > * GCGconshdlrDecompGetPartialdecs ( GCG *  gcg)

gets vector of all partialdecs

Returns
finished partialdecs
Parameters
gcgGCG data structure

Definition at line 4397 of file cons_decomp.cpp.

References getConshdlrdata(), NULL, and SCIP_ConshdlrData::partialdecs.

Referenced by gcg::updatePartialdecList().

◆ GCGconshdlrDecompGetPartialdecFromID() [2/2]

SCIP_RETCODE GCGconshdlrDecompGetPartialdecFromID ( GCG *  gcg,
int  partialdecid,
PARTIALDECOMP_C **  partialdecomp 
)

Gets wrapped PARTIALDECOMP with given id.

Returns
SCIP return code
Parameters
gcgGCG data structure
partialdecidid of PARTIALDECOMP
partialdecomppointer to C wrapper pointer for PARTIALDECOMP

Definition at line 4408 of file cons_decomp.cpp.

References GCGconshdlrDecompGetPartialdecFromID(), and SCIP_OKAY.

◆ GCGconshdlrDecompPartialdecGetScore()

SCIP_Real GCGconshdlrDecompPartialdecGetScore ( PARTIALDECOMP_C *  partialdecomp)

Definition at line 4423 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::getScore(), NULL, and SCIP_Real.

◆ GCGconshdlrDecompGetSelectedPartialdecs()

SCIP_RETCODE GCGconshdlrDecompGetSelectedPartialdecs ( GCG *  gcg,
int **  idlist,
int *  listlength 
)

Gets a list of ids of all currently selected partialdecs.

Returns
list of partialdecs
Parameters
gcgGCG data structure
idlistid list to output to
listlengthlength of output list

Definition at line 4434 of file cons_decomp.cpp.

References getSelectedPartialdecs(), and SCIP_OKAY.

◆ GCGconshdlrDecompIncreaseNCallsCreateDecomp()

int GCGconshdlrDecompIncreaseNCallsCreateDecomp ( GCG *  gcg)

counts up the counter for created decompositions and returns it

Returns
number of created decompositions that was recently increased
Parameters
gcgGCG data structure *

Definition at line 4456 of file cons_decomp.cpp.

References getConshdlrdata(), SCIP_ConshdlrData::ncallscreatedecomp, and NULL.

Referenced by GCGdecompCreate().

◆ GCGconshdlrDecompIsPresolved()

SCIP_Bool GCGconshdlrDecompIsPresolved ( PARTIALDECOMP_C *  partialdecomp)

Definition at line 4469 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::isAssignedToOrigProb(), NULL, and SCIP_Bool.

◆ GCGconshdlrDecompIsSelected()

SCIP_Bool GCGconshdlrDecompIsSelected ( PARTIALDECOMP_C *  partialdecomp)

Definition at line 4480 of file cons_decomp.cpp.

References gcg::PARTIALDECOMP::isSelected(), NULL, and SCIP_Bool.

◆ GCGconshdlrDecompOrigDetprobdataExists()

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
gcgGCG 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()

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
gcgGCG 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()

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
gcgGCG 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()

SCIP_RETCODE GCGconshdlrDecompPrintDetectorStatistics ( GCG *  gcg,
FILE *  file 
)

display statistics about detectors

Returns
SCIP return code
Parameters
gcgGCG data structure
fileoutput 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()

SCIP_RETCODE GCGconshdlrDecompPrintScoreStatistics ( GCG *  gcg,
FILE *  file 
)

display statistics about scores

Returns
SCIP return code
Parameters
gcgGCG data structure
fileoutput 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().

◆ GCGconshdlrDecompRegisterPartialdec()

void GCGconshdlrDecompRegisterPartialdec ( GCG *  gcg,
gcg::PARTIALDECOMP *  partialdec 
)

registers a partialdec in the conshdlr

Use this function at initialization of the partialdec. If the partialdec already exists in the conshdlr it is ignored.

Parameters
gcgGCG data structure
partialdecthe partialdec to register

Definition at line 4568 of file cons_decomp.cpp.

References getConshdlrdata(), gcg::PARTIALDECOMP::getID(), SCIP_ConshdlrData::partialdecs, and SCIP_ConshdlrData::partialdecsbyid.

Referenced by gcg::PARTIALDECOMP::PARTIALDECOMP().

◆ GCGconshdlrDecompSelectPartialdec()

SCIP_RETCODE GCGconshdlrDecompSelectPartialdec ( PARTIALDECOMP_C *  partialdecomp,
SCIP_Bool  select 
)

selects/unselects a partialdecomp

Returns
SCIP return code
Parameters
partialdecomppartialdecomp
selectselect/unselect

Definition at line 4584 of file cons_decomp.cpp.

References SCIP_INVALIDDATA, SCIP_OKAY, and gcg::PARTIALDECOMP::setSelected().

Referenced by initRelaxator().

◆ GCGconshdlrDecompSetDetection()

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
gcgGCG data structure
paramsettingparameter settings
quietshould 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()

SCIP_RETCODE GCGconshdlrDecompTranslateNBestOrigPartialdecs ( GCG *  gcg,
int  n,
SCIP_Bool  completeGreedily,
SCIP_Bool  translateSymmetry 
)

translates n best unpresolved partialdec to a complete presolved one

Parameters
scipSCIP data structure
nnumber of partialdecs that should be translated
completeGreedilywhether or not to complete the decomposition greedily
translateSymmetrywhether 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()

SCIP_RETCODE GCGconshdlrDecompTranslateOrigPartialdecs ( GCG *  gcg)

◆ GCGdetectionTookPlace()

SCIP_Bool GCGdetectionTookPlace ( GCG *  gcg,
SCIP_Bool  original 
)

Gets whether the detection already took place

Returns
true if detection took place, false otherwise
Parameters
gcgGCG data structure
originaliff 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()

SCIP_RETCODE SCIPconshdlrDecompRepairConsNames ( GCG *  gcg)

method to eliminate duplicate constraint names and name unnamed constraints

Returns
SCIP return code
Parameters
gcgGCG 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()

SCIP_RETCODE GCGincludeConshdlrDecomp ( GCG *  gcg)

creates the constraint handler for decomp and includes it in SCIP

Returns
scip return code
Parameters
gcgGCG 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().