colpool.c
Go to the documentation of this file.
33 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
47 #define GCG_HASHSIZE_COLPOOLS_SMALL 100 /**< size of hash table in col pools for small problems */
115 /* TODO: Improve hash function (but then we would have to store additional values for each col) */
116 keyval = SCIPhashFour(SCIPrealHashCode(col->nvars > 0 ? col->vals[0] : 0.0), col->probnr, col->nvars,
142 SCIP_CALL( SCIPreallocBlockMemoryArray(colpool->scip, &colpool->cols, colpool->colssize, newsize) );
162 int agelimit /**< maximum age a col can reach before it is deleted from the pool (-1 fpr no limit) */
207 SCIPverbMessage(scip, SCIP_VERBLEVEL_NORMAL, NULL, "Pricing time in colpool = %f sec\n", GCGcolpoolGetTime(*colpool));
373 SCIPdebugMessage("separating%s col pool %p with %d cols, beginning with col %d\n", ( sol == NULL ) ? "" : " solution from", (void*)colpool, colpool->ncols, firstunproc);
SCIP_Longint GCGcolpoolGetNColsFound(GCG_COLPOOL *colpool)
Definition: colpool.c:548
SCIP_RETCODE GCGcolpoolDelCol(GCG_COLPOOL *colpool, GCG_COL *col, SCIP_Bool freecol)
Definition: colpool.c:328
void GCGcolUpdateRedcost(GCG_COL *gcgcol, SCIP_Real redcost, SCIP_Bool growold)
Definition: gcgcol.c:375
int GCGpricestoreGetNCols(GCG_PRICESTORE *pricestore)
Definition: pricestore_gcg.c:719
Definition: struct_gcgcol.h:50
static SCIP_RETCODE colpoolEnsureColsMem(GCG_COLPOOL *colpool, int num)
Definition: colpool.c:130
public methods for working with gcg columns
SCIP_RETCODE GCGcolpoolUpdateRedcost(GCG_COLPOOL *colpool)
Definition: colpool.c:451
datastructures for storing priced cols
GCG variable pricer.
static SCIP_RETCODE colpoolDelCol(GCG_COLPOOL *colpool, GCG_COL *col, SCIP_Bool freecol)
Definition: colpool.c:223
internal methods for storing cols in a col pool
SCIP_RETCODE GCGpricestoreAddCol(SCIP *scip, GCG_PRICESTORE *pricestore, GCG_COL *col, SCIP_Bool forcecol)
Definition: pricestore_gcg.c:243
Definition: struct_pricestore_gcg.h:52
Definition: struct_colpool.h:51
SCIP_RETCODE GCGcolpoolAddNewCol(GCG_COLPOOL *colpool, GCG_COL *col)
Definition: colpool.c:304
SCIP_RETCODE GCGcolpoolAddCol(GCG_COLPOOL *colpool, GCG_COL *col, SCIP_Bool *success)
Definition: colpool.c:281
SCIP_RETCODE GCGcolpoolFree(SCIP *scip, GCG_COLPOOL **colpool)
Definition: colpool.c:195
SCIP_RETCODE GCGcolpoolUpdateNode(GCG_COLPOOL *colpool)
Definition: colpool.c:429
SCIP_Real GCGcomputeRedCostGcgCol(SCIP *scip, SCIP_Bool infarkas, GCG_COL *gcgcol, SCIP_Real *objvalptr)
Definition: pricer_gcg.cpp:3266
data structures for storing cols in a col pool
SCIP_RETCODE GCGcolpoolPrice(SCIP *scip, GCG_COLPOOL *colpool, GCG_PRICESTORE *pricestore, SCIP_SOL *sol, SCIP_Bool *foundvars)
Definition: colpool.c:352
SCIP_RETCODE GCGcolpoolCreate(SCIP *scip, GCG_COLPOOL **colpool, int agelimit)
Definition: colpool.c:159
methods for storing priced cols (based on SCIP's separation storage)
SCIP_RETCODE GCGcomputeColMastercoefs(SCIP *scip, GCG_COL *gcgcol)
Definition: pricer_gcg.cpp:3246