pub_decomp.h
Go to the documentation of this file.
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
68 SCIP_Real maxwhitescore; /**< score related to max white measure (i.e. fraction of white (nonblock and nonborder) matrix area ) */
113 SCIP_Real maxwhitescore /**< score related to max white measure (i.e. fraction of white (nonblock and nonborder) matrix area ) */
338 SCIP_HASHMAP* constoblock, /**< constraint to block hashmap, start with 1 for first block and nblocks+1 for linking constraints */
393 const char* detectorchainstring /**< string for the detector information working on that decomposition */
404/** sets the percentages of variables assigned to the border of the corresponding detectors (of the detector chain) on this decomposition */
412/** gets the percentages of variables assigned to the border of the corresponding detectors (of the detector chain) on this decomposition */
418/** sets the percentages of constraints assigned to the border of the corresponding detectors (of the detector chain) on this decomposition */
426/** gets the percentages of constraints assigned to the border of the corresponding detectors (of the detector chain) on this decomposition */
432/** sets the percentages of variables assigned to some block of the corresponding detectors (of the detector chain) on this decomposition */
440/** gets the percentages of variables assigned to some block of the corresponding detectors (of the detector chain) on this decomposition */
446/** sets the percentages of constraints assigned to some block of the corresponding detectors (of the detector chain) on this decomposition */
454/** gets the percentages of constraints assigned to some block of the corresponding detectors (of the detector chain) on this decomposition */
461/** sets the percentages of variables assigned to some block of the corresponding detectors (of the detector chain) on this decomposition */
469/** gets the percentages of variables assigned to some block of the corresponding detectors (of the detector chain) on this decomposition */
475/** sets the percentages of constraints assigned to some block of the corresponding detectors (of the detector chain) on this decomposition */
483/** gets the percentages of constraints assigned to some block of the corresponding detectors (of the detector chain) on this decomposition */
489/** sets the number of new blocks of the corresponding detectors (of the detector chain) on this decomposition */
497/** gets the number of new blocks corresponding detectors (of the detector chain) on this decomposition */
511 * Remove all those constraints that were removed from the problem after the decomposition had been created
555/** return the number of variables and binary, integer, implied integer, continuous variables of all subproblems */
560 int* nvars, /**< pointer to array of size nproblems to store number of subproblem vars or NULL */
561 int* nbinvars, /**< pointer to array of size nproblems to store number of binary subproblem vars or NULL */
562 int* nintvars, /**< pointer to array of size nproblems to store number of integer subproblem vars or NULL */
563 int* nimplvars, /**< pointer to array of size nproblems to store number of implied subproblem vars or NULL */
564 int* ncontvars, /**< pointer to array of size nproblems to store number of continuous subproblem vars or NULL */
568/** return the number of variables and binary, integer, implied integer, continuous variables of the master */
581 * returns the number of nonzeros of each column of the constraint matrix both in the subproblem and in the master
582 * @note For linking variables, the number of nonzeros in the subproblems corresponds to the number on nonzeros
587 * @pre This function assumes that constraints are partitioned in the decomp structure, no constraint is present in more than one block
605 * calculates the number of up and down locks of variables for a given decomposition in both the original problem and the pricingproblems
618 int** subsciplocksdown, /**< pointer to two dimensional array to store the down locks for the subproblems */
619 int** subsciplocksup, /**< pointer to two dimensional array to store the down locks for the subproblems */
634/** computes the score of the given decomposition based on the border, the average density score and the ratio of
712/** polish the decomposition and try to greedily assign master constraints to pricing problem where useful */
common defines and data types used in all packages of GCG
#define SCIP_Bool
#define SCIP_Real
Definition: class_conspartition.cpp:44
GCG_EXPORT void GCGdecompSetNNewBlocks(GCG *gcg, GCG_DECOMP *decomp, int *nNewBlocks)
Definition: decomp.c:1970
GCG_EXPORT SCIP_RETCODE GCGdecompSetDetectorChainString(GCG *gcg, GCG_DECOMP *decomp, const char *detectorchainstring)
Definition: decomp.c:1730
GCG_EXPORT SCIP_RETCODE GCGcreateDecompFromMasterconss(GCG *gcg, GCG_DECOMP **decomp, SCIP_CONS **conss, int nconss)
Definition: decomp.c:2748
GCG_EXPORT SCIP_RETCODE GCGgetVarLockData(GCG *gcg, GCG_DECOMP *decomp, SCIP_VAR **vars, int nvars, int nsubproblems, int **subsciplocksdown, int **subsciplocksup, int *masterlocksdown, int *masterlocksup)
Definition: decomp.c:3158
GCG_EXPORT SCIP_CONS ** GCGdecompGetLinkingconss(GCG_DECOMP *decomp)
Definition: decomp.c:985
GCG_EXPORT SCIP_RETCODE GCGdecompSetStairlinkingvars(GCG *gcg, GCG_DECOMP *decomp, SCIP_VAR ***stairlinkingvars, int *nstairlinkingvars)
Definition: decomp.c:1101
GCG_EXPORT void GCGdecompSetMaxWhiteScore(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real maxwhitescore)
Definition: decomp.c:3296
GCG_EXPORT void GCGdecompSetDetectorPctVarsFromOpen(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctVarsFromOpen)
Definition: decomp.c:1895
GCG_EXPORT SCIP_RETCODE GCGdecompTryAssignMasterconssToExistingPricing(GCG *gcg, GCG_DECOMP *decomp, int *transferred)
Definition: decomp.c:4229
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorPctConssToBlock(GCG_DECOMP *decomp)
Definition: decomp.c:1886
GCG_EXPORT SCIP_RETCODE GCGcreateBasicDecomp(GCG *gcg, GCG_DECOMP **decomp, SCIP_Bool solveorigprob)
Definition: decomp.c:2418
GCG_EXPORT SCIP_RETCODE GCGdecompTryAssignMasterconssToNewPricing(GCG *gcg, GCG_DECOMP *decomp, GCG_DECOMP **newdecomp, int *transferred)
Definition: decomp.c:4279
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorClockTimes(GCG_DECOMP *decomp)
Definition: decomp.c:1721
GCG_EXPORT int GCGdecompGetNLinkingconss(GCG_DECOMP *decomp)
Definition: decomp.c:995
GCG_EXPORT int * GCGdecompGetNSubscipconss(GCG_DECOMP *decomp)
Definition: decomp.c:933
GCG_EXPORT SCIP_RETCODE GCGdecompSetLinkingconss(GCG *gcg, GCG_DECOMP *decomp, SCIP_CONS **linkingconss, int nlinkingconss)
Definition: decomp.c:942
GCG_EXPORT SCIP_RETCODE GCGfilloutDecompFromHashmaps(GCG *gcg, GCG_DECOMP *decomp, SCIP_HASHMAP *vartoblock, SCIP_HASHMAP *constoblock, int nblocks, SCIP_Bool staircase)
Definition: decomp.c:1293
GCG_EXPORT void GCGdecompSetDetectorPctVarsToBlock(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctVarsToBlock)
Definition: decomp.c:1824
GCG_EXPORT SCIP_RETCODE GCGdecompMoveLinkingConsToPricing(GCG *gcg, GCG_DECOMP *decomp, int consindex, int block)
Definition: decomp.c:4192
GCG_EXPORT int * GCGdecompGetNSubscipvars(GCG_DECOMP *decomp)
Definition: decomp.c:847
GCG_EXPORT void GCGdecompSetNBlocks(GCG_DECOMP *decomp, int nblocks)
Definition: decomp.c:745
GCG_EXPORT void GCGgetSubproblemVarsData(GCG *gcg, GCG_DECOMP *decomp, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars, int nproblems)
Definition: decomp.c:2873
GCG_EXPORT SCIP_RETCODE GCGdecompEvaluateDecomposition(GCG *gcg, GCG_DECOMP *decomp, DEC_SCORES *score)
Definition: decomp.c:3331
GCG_EXPORT void GCGdecompSetDetectorPctVarsToBorder(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctVarsToBorder)
Definition: decomp.c:1754
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorPctConssToBorder(GCG_DECOMP *decomp)
Definition: decomp.c:1816
GCG_EXPORT int GCGdecompGetPartialdecID(GCG_DECOMP *decomp)
Definition: decomp.c:1685
GCG_EXPORT SCIP_RETCODE GCGdecompRemoveDeletedConss(GCG *gcg, GCG_DECOMP *decomp)
Definition: decomp.c:2148
GCG_EXPORT void GCGdecompSetPresolved(GCG_DECOMP *decomp, SCIP_Bool presolved)
Definition: decomp.c:724
GCG_EXPORT void GCGdecompSetDetectorPctConssToBorder(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctConssToBorder)
Definition: decomp.c:1788
GCG_EXPORT void GCGdecompSetVartoblock(GCG_DECOMP *decomp, SCIP_HASHMAP *vartoblock)
Definition: decomp.c:1209
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorPctVarsFromOpen(GCG_DECOMP *decomp)
Definition: decomp.c:1924
GCG_EXPORT int * GCGdecompGetNNewBlocks(GCG_DECOMP *decomp)
Definition: decomp.c:1997
GCG_EXPORT void GCGdecompSetVarindex(GCG_DECOMP *decomp, SCIP_HASHMAP *varindex)
Definition: decomp.c:1253
GCG_EXPORT int GCGdecompGetNLinkingvars(GCG_DECOMP *decomp)
Definition: decomp.c:1066
GCG_EXPORT char * GCGdecompGetDetectorChainString(GCG *gcg, GCG_DECOMP *decomp)
Definition: decomp.c:1745
GCG_EXPORT int GCGdecompGetNFixedLinkingvars(GCG_DECOMP *decomp)
Definition: decomp.c:1077
GCG_EXPORT SCIP_RETCODE GCGdecompFree(GCG *gcg, GCG_DECOMP **decomp)
Definition: decomp.c:541
GCG_EXPORT SCIP_RETCODE GCGpermuteDecomp(GCG *gcg, GCG_DECOMP *decomp, SCIP_RANDNUMGEN *randnumgen)
Definition: decomp.c:4384
GCG_EXPORT SCIP_RETCODE GCGdecompCreate(GCG *gcg, GCG_DECOMP **decomp)
Definition: decomp.c:480
GCG_EXPORT SCIP_RETCODE GCGgetDensityData(GCG *gcg, GCG_DECOMP *decomp, SCIP_VAR **vars, int nvars, SCIP_CONS **conss, int nconss, int *varsubproblemdensity, int *varmasterdensity, int *conssubproblemdensity, int *consmasterdensity)
Definition: decomp.c:2972
GCG_EXPORT void GCGdecompSetConsindex(GCG_DECOMP *decomp, SCIP_HASHMAP *consindex)
Definition: decomp.c:1273
GCG_EXPORT int GCGdecompGetNTotalStairlinkingvars(GCG_DECOMP *decomp)
Definition: decomp.c:1192
GCG_EXPORT SCIP_Real GCGdecompGetMaxWhiteScore(GCG *gcg, GCG_DECOMP *decomp)
Definition: decomp.c:3313
GCG_EXPORT int GCGdecompGetDetectorChainSize(GCG_DECOMP *decomp)
Definition: decomp.c:1663
GCG_EXPORT SCIP_RETCODE GCGdecompAddRemainingConss(GCG *gcg, GCG_DECOMP *decomp)
Definition: decomp.c:2206
GCG_EXPORT SCIP_CONS *** GCGdecompGetSubscipconss(GCG_DECOMP *decomp)
Definition: decomp.c:924
GCG_EXPORT SCIP_Real GCGdecompGetMaxwhiteScore(GCG_DECOMP *decomp)
Definition: decomp.c:713
GCG_EXPORT GCG_DETECTOR * GCGdecompGetDetector(GCG_DECOMP *decomp)
Definition: decomp.c:1616
GCG_EXPORT void GCGdecompSetDetectorClockTimes(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *detectorClockTimes)
Definition: decomp.c:1694
GCG_EXPORT GCG_DETECTOR ** GCGdecompGetDetectorChain(GCG_DECOMP *decomp)
Definition: decomp.c:1626
GCG_EXPORT SCIP_HASHMAP * GCGdecompGetConstoblock(GCG_DECOMP *decomp)
Definition: decomp.c:1243
GCG_EXPORT SCIP_VAR ** GCGdecompGetLinkingvars(GCG_DECOMP *decomp)
Definition: decomp.c:1056
GCG_EXPORT SCIP_RETCODE GCGprintDecompStatistics(GCG *gcg, FILE *file, GCG_DECOMP *decomp)
Definition: decomp.c:3827
GCG_EXPORT SCIP_RETCODE GCGdetermineConsBlock(GCG *gcg, GCG_DECOMP *decomp, SCIP_CONS *cons, int *block)
Definition: decomp.c:4100
GCG_EXPORT void GCGdecompSetDetector(GCG_DECOMP *decomp, GCG_DETECTOR *detector)
Definition: decomp.c:1605
GCG_EXPORT SCIP_Bool GCGdecompGetPresolved(GCG_DECOMP *decomp)
Definition: decomp.c:735
GCG_EXPORT SCIP_HASHMAP * GCGdecompGetVarindex(GCG_DECOMP *decomp)
Definition: decomp.c:1264
GCG_EXPORT SCIP_HASHMAP * GCGdecompGetVartoblock(GCG_DECOMP *decomp)
Definition: decomp.c:1221
GCG_EXPORT SCIP_RETCODE GCGdecompSetSubscipvars(GCG *gcg, GCG_DECOMP *decomp, SCIP_VAR ***subscipvars, int *nsubscipvars)
Definition: decomp.c:767
GCG_EXPORT SCIP_RETCODE GCGdecompCheckConsistency(GCG *gcg, GCG_DECOMP *decomp)
Definition: decomp.c:2297
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorPctConssFromOpen(GCG_DECOMP *decomp)
Definition: decomp.c:1962
GCG_EXPORT SCIP_RETCODE GCGdecompSetLinkingvars(GCG *gcg, GCG_DECOMP *decomp, SCIP_VAR **linkingvars, int nlinkingvars, int nfixedlinkingvars, int nmastervars)
Definition: decomp.c:1007
GCG_EXPORT void GCGdecompSetDetectorPctConssFromOpen(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctConssToBorder)
Definition: decomp.c:1932
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorPctVarsToBlock(GCG_DECOMP *decomp)
Definition: decomp.c:1850
GCG_EXPORT SCIP_RETCODE GCGdecompTransform(GCG *gcg, GCG_DECOMP *decomp)
Definition: decomp.c:2005
GCG_EXPORT SCIP_RETCODE GCGfilloutDecompFromConstoblock(GCG *gcg, GCG_DECOMP *decomp, SCIP_HASHMAP *constoblock, int nblocks, SCIP_Bool staircase)
Definition: decomp.c:1479
GCG_EXPORT void GCGdecompSetDetectorPctConssToBlock(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctConssToBlock)
Definition: decomp.c:1858
GCG_EXPORT SCIP_VAR *** GCGdecompGetSubscipvars(GCG_DECOMP *decomp)
Definition: decomp.c:837
GCG_EXPORT int * GCGdecompGetNStairlinkingvars(GCG_DECOMP *decomp)
Definition: decomp.c:1182
GCG_EXPORT SCIP_RETCODE GCGdecompSetSubscipconss(GCG *gcg, GCG_DECOMP *decomp, SCIP_CONS ***subscipconss, int *nsubscipconss)
Definition: decomp.c:857
GCG_EXPORT SCIP_RETCODE GCGcreatePolishedDecomp(GCG *gcg, GCG_DECOMP *decomp, GCG_DECOMP **newdecomp)
Definition: decomp.c:4337
GCG_EXPORT void GCGgetLinkingVarsData(GCG *gcg, GCG_DECOMP *decomp, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
Definition: decomp.c:2922
GCG_EXPORT SCIP_Bool GCGdecompositionsAreEqual(GCG *gcg, GCG_DECOMP *decomp1, GCG_DECOMP *decomp2)
Definition: decomp.c:3990
GCG_EXPORT int GCGdecompGetNMastervars(GCG_DECOMP *decomp)
Definition: decomp.c:1089
GCG_EXPORT void GCGdecompSetConstoblock(GCG_DECOMP *decomp, SCIP_HASHMAP *constoblock)
Definition: decomp.c:1231
GCG_EXPORT SCIP_HASHMAP * GCGdecompGetConsindex(GCG_DECOMP *decomp)
Definition: decomp.c:1284
GCG_EXPORT SCIP_RETCODE GCGdecompSetType(GCG_DECOMP *decomp, GCG_DECTYPE type)
Definition: decomp.c:659
GCG_EXPORT int GCGfilterSimilarDecompositions(GCG *gcg, GCG_DECOMP **decs, int ndecs)
Definition: decomp.c:4057
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorPctVarsToBorder(GCG_DECOMP *decomp)
Definition: decomp.c:1780
GCG_EXPORT SCIP_VAR *** GCGdecompGetStairlinkingvars(GCG_DECOMP *decomp)
Definition: decomp.c:1173
Definition: pub_decomp.h:63
Definition: struct_decomp.h:53
Definition: struct_detector.h:47
Definition: struct_gcg.h:55
type definitions for decomposition information in GCG projects
type definitions for detectors in GCG projects
enum SCIP_Retcode SCIP_RETCODE