Loading...
Searching...
No Matches
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 */
GCG_EXPORT SCIP_RETCODE GCGdecompSetDetectorChainString(GCG *gcg, GCG_DECOMP *decomp, const char *detectorchainstring)
Definition decomp.c:1730
void GCGdecompSetConsindex(GCG_DECOMP *decomp, SCIP_HASHMAP *consindex)
Definition decomp.c:1273
SCIP_Real * GCGdecompGetDetectorClockTimes(GCG_DECOMP *decomp)
Definition decomp.c:1721
SCIP_RETCODE GCGdetermineConsBlock(GCG *gcg, GCG_DECOMP *decomp, SCIP_CONS *cons, int *block)
Definition decomp.c:4100
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorPctConssToBlock(GCG_DECOMP *decomp)
Definition decomp.c:1886
void GCGdecompSetPresolved(GCG_DECOMP *decomp, SCIP_Bool presolved)
Definition decomp.c:724
void GCGdecompSetMaxWhiteScore(GCG *gcg, GCG_DECOMP *decdecomp, SCIP_Real maxwhitescore)
Definition decomp.c:3296
GCG_DETECTOR ** GCGdecompGetDetectorChain(GCG_DECOMP *decomp)
Definition decomp.c:1626
void GCGdecompSetDetector(GCG_DECOMP *decomp, GCG_DETECTOR *detector)
Definition decomp.c:1605
SCIP_VAR *** GCGdecompGetStairlinkingvars(GCG_DECOMP *decomp)
Definition decomp.c:1173
SCIP_VAR ** GCGdecompGetLinkingvars(GCG_DECOMP *decomp)
Definition decomp.c:1056
SCIP_RETCODE GCGcreateBasicDecomp(GCG *gcg, GCG_DECOMP **decomp, SCIP_Bool solveorigprob)
Definition decomp.c:2418
SCIP_RETCODE GCGdecompCheckConsistency(GCG *gcg, GCG_DECOMP *decdecomp)
Definition decomp.c:2297
SCIP_RETCODE GCGcreateDecompFromMasterconss(GCG *gcg, GCG_DECOMP **decomp, SCIP_CONS **masterconss, int nmasterconss)
Definition decomp.c:2748
void GCGdecompSetVarindex(GCG_DECOMP *decomp, SCIP_HASHMAP *varindex)
Definition decomp.c:1253
SCIP_CONS *** GCGdecompGetSubscipconss(GCG_DECOMP *decomp)
Definition decomp.c:924
SCIP_HASHMAP * GCGdecompGetConstoblock(GCG_DECOMP *decomp)
Definition decomp.c:1243
SCIP_RETCODE GCGprintDecompStatistics(GCG *gcg, FILE *file, GCG_DECOMP *decomp)
Definition decomp.c:3827
SCIP_Real * GCGdecompGetDetectorPctConssToBorder(GCG_DECOMP *decomp)
Definition decomp.c:1816
SCIP_Bool GCGdecompositionsAreEqual(GCG *gcg, GCG_DECOMP *decomp1, GCG_DECOMP *decomp2)
Definition decomp.c:3990
SCIP_RETCODE GCGdecompSetType(GCG_DECOMP *decomp, GCG_DECTYPE type)
Definition decomp.c:659
SCIP_RETCODE GCGdecompAddRemainingConss(GCG *gcg, GCG_DECOMP *decdecomp)
Definition decomp.c:2206
SCIP_RETCODE GCGfilloutDecompFromConstoblock(GCG *gcg, GCG_DECOMP *decomp, SCIP_HASHMAP *constoblock, int nblocks, SCIP_Bool staircase)
Definition decomp.c:1479
SCIP_RETCODE GCGdecompTryAssignMasterconssToNewPricing(GCG *gcg, GCG_DECOMP *decomp, GCG_DECOMP **newdecomp, int *transferred)
Definition decomp.c:4279
SCIP_RETCODE GCGdecompCreate(GCG *gcg, GCG_DECOMP **decdecomp)
Definition decomp.c:480
SCIP_RETCODE GCGdecompSetSubscipvars(GCG *gcg, GCG_DECOMP *decomp, SCIP_VAR ***subscipvars, int *nsubscipvars)
Definition decomp.c:767
SCIP_Real * GCGdecompGetDetectorPctVarsFromOpen(GCG_DECOMP *decomp)
Definition decomp.c:1924
SCIP_RETCODE GCGdecompRemoveDeletedConss(GCG *gcg, GCG_DECOMP *decdecomp)
Definition decomp.c:2148
SCIP_RETCODE GCGcreatePolishedDecomp(GCG *gcg, GCG_DECOMP *decomp, GCG_DECOMP **newdecomp)
Definition decomp.c:4337
SCIP_RETCODE GCGfilloutDecompFromHashmaps(GCG *gcg, GCG_DECOMP *decomp, SCIP_HASHMAP *vartoblock, SCIP_HASHMAP *constoblock, int nblocks, SCIP_Bool staircase)
Definition decomp.c:1293
SCIP_CONS ** GCGdecompGetLinkingconss(GCG_DECOMP *decomp)
Definition decomp.c:985
void GCGdecompSetNNewBlocks(GCG *gcg, GCG_DECOMP *decomp, int *nNewBlocks)
Definition decomp.c:1970
void GCGgetLinkingVarsData(GCG *gcg, GCG_DECOMP *decomp, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
Definition decomp.c:2922
SCIP_RETCODE GCGdecompTryAssignMasterconssToExistingPricing(GCG *gcg, GCG_DECOMP *decomp, int *transferred)
Definition decomp.c:4229
GCG_EXPORT char * GCGdecompGetDetectorChainString(GCG *gcg, GCG_DECOMP *decomp)
Definition decomp.c:1745
SCIP_RETCODE GCGdecompSetLinkingvars(GCG *gcg, GCG_DECOMP *decomp, SCIP_VAR **linkingvars, int nlinkingvars, int nfixedlinkingvars, int nmastervars)
Definition decomp.c:1007
int GCGdecompGetNTotalStairlinkingvars(GCG_DECOMP *decomp)
Definition decomp.c:1192
void GCGdecompSetVartoblock(GCG_DECOMP *decomp, SCIP_HASHMAP *vartoblock)
Definition decomp.c:1209
SCIP_RETCODE GCGdecompSetStairlinkingvars(GCG *gcg, GCG_DECOMP *decomp, SCIP_VAR ***stairlinkingvars, int *nstairlinkingvars)
Definition decomp.c:1101
void GCGdecompSetDetectorPctVarsToBorder(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctVarsToBorder)
Definition decomp.c:1754
SCIP_HASHMAP * GCGdecompGetVartoblock(GCG_DECOMP *decomp)
Definition decomp.c:1221
SCIP_HASHMAP * GCGdecompGetConsindex(GCG_DECOMP *decomp)
Definition decomp.c:1284
void GCGdecompSetDetectorPctConssFromOpen(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctConssFromOpen)
Definition decomp.c:1932
SCIP_RETCODE GCGdecompSetSubscipconss(GCG *gcg, GCG_DECOMP *decomp, SCIP_CONS ***subscipconss, int *nsubscipconss)
Definition decomp.c:857
SCIP_RETCODE GCGdecompSetLinkingconss(GCG *gcg, GCG_DECOMP *decomp, SCIP_CONS **linkingconss, int nlinkingconss)
Definition decomp.c:942
void GCGdecompSetDetectorPctVarsFromOpen(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctVarsFromOpen)
Definition decomp.c:1895
void GCGdecompSetDetectorPctVarsToBlock(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctVarsToBlock)
Definition decomp.c:1824
SCIP_Real GCGdecompGetMaxwhiteScore(GCG_DECOMP *decomp)
Definition decomp.c:713
SCIP_RETCODE GCGdecompEvaluateDecomposition(GCG *gcg, GCG_DECOMP *decdecomp, DEC_SCORES *score)
Definition decomp.c:3331
void GCGdecompSetDetectorClockTimes(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *detectorClockTimes)
Definition decomp.c:1694
SCIP_Real * GCGdecompGetDetectorPctVarsToBlock(GCG_DECOMP *decomp)
Definition decomp.c:1850
SCIP_VAR *** GCGdecompGetSubscipvars(GCG_DECOMP *decomp)
Definition decomp.c:837
void GCGdecompSetDetectorPctConssToBlock(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctConssToBlock)
Definition decomp.c:1858
void GCGdecompSetDetectorPctConssToBorder(GCG *gcg, GCG_DECOMP *decomp, SCIP_Real *pctConssToBorder)
Definition decomp.c:1788
SCIP_RETCODE GCGpermuteDecomp(GCG *gcg, GCG_DECOMP *decomp, SCIP_RANDNUMGEN *randnumgen)
Definition decomp.c:4384
SCIP_Real * GCGdecompGetDetectorPctConssFromOpen(GCG_DECOMP *decomp)
Definition decomp.c:1962
int GCGfilterSimilarDecompositions(GCG *gcg, GCG_DECOMP **decs, int ndecs)
Definition decomp.c:4057
int GCGdecompGetNFixedLinkingvars(GCG_DECOMP *decomp)
Definition decomp.c:1077
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
void GCGgetSubproblemVarsData(GCG *gcg, GCG_DECOMP *decomp, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars, int nproblems)
Definition decomp.c:2873
SCIP_RETCODE GCGdecompMoveLinkingConsToPricing(GCG *gcg, GCG_DECOMP *decomp, int consindex, int block)
Definition decomp.c:4192
int * GCGdecompGetNStairlinkingvars(GCG_DECOMP *decomp)
Definition decomp.c:1182
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
int GCGdecompGetDetectorChainSize(GCG_DECOMP *decomp)
Definition decomp.c:1663
SCIP_Real GCGdecompGetMaxWhiteScore(GCG *gcg, GCG_DECOMP *decdecomp)
Definition decomp.c:3313
SCIP_RETCODE GCGdecompTransform(GCG *gcg, GCG_DECOMP *decomp)
Definition decomp.c:2005
void GCGdecompSetConstoblock(GCG_DECOMP *decomp, SCIP_HASHMAP *constoblock)
Definition decomp.c:1231
GCG_EXPORT SCIP_Real * GCGdecompGetDetectorPctVarsToBorder(GCG_DECOMP *decomp)
Definition decomp.c:1780
common defines and data types used in all packages of GCG
#define SCIP_Bool
#define SCIP_Real
Definition class_conspartition.cpp:44
Definition pub_decomp.h:63
struct SCIP_Cons SCIP_CONS
type definitions for decomposition information in GCG projects
type definitions for detectors in GCG projects
struct SCIP_HashMap SCIP_HASHMAP
struct SCIP_RandNumGen SCIP_RANDNUMGEN
enum SCIP_Retcode SCIP_RETCODE
struct SCIP_Var SCIP_VAR