Scippy

GCG

Branch-and-Price & Column Generation for Everyone

Detailed Description

Functions

GCG_EXPORT GCG_COL ** GCGcolpoolGetCols (GCG_COLPOOL *colpool)
 
GCG_EXPORT int GCGcolpoolGetNCols (GCG_COLPOOL *colpool)
 
GCG_EXPORT int GCGcolpoolGetMaxNCols (GCG_COLPOOL *colpool)
 
GCG_EXPORT SCIP_Real GCGcolpoolGetTime (GCG_COLPOOL *colpool)
 
GCG_EXPORT SCIP_Longint GCGcolpoolGetNCalls (GCG_COLPOOL *colpool)
 
GCG_EXPORT SCIP_Longint GCGcolpoolGetNColsFound (GCG_COLPOOL *colpool)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolCreate (GCG *gcg, GCG_COLPOOL **colpool, int agelimit)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolFree (GCG_COLPOOL **colpool)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolClear (GCG_COLPOOL *colpool)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolAddCol (GCG_COLPOOL *colpool, GCG_COL *col, SCIP_Bool freeduplicate)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolAddNewCol (GCG_COLPOOL *colpool, GCG_COL *col)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolDelCol (GCG_COLPOOL *colpool, GCG_COL *col, SCIP_Bool freecol)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolUpdateNode (GCG_COLPOOL *colpool)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolUpdateRedcost (GCG_COLPOOL *colpool)
 
GCG_EXPORT void GCGcolpoolStartFarkas (GCG_COLPOOL *colpool)
 
GCG_EXPORT void GCGcolpoolEndFarkas (GCG_COLPOOL *colpool)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolPrice (GCG_COLPOOL *colpool, SCIP_SOL *sol, int *nfoundvars)
 
GCG_EXPORT SCIP_RETCODE GCGcolpoolPropagateGlobalBounds (GCG_COLPOOL *colpool)
 

Function Documentation

◆ GCGcolpoolGetCols()

GCG_EXPORT GCG_COL ** GCGcolpoolGetCols ( GCG_COLPOOL *  colpool)

gets array of cols in the col pool

Parameters
colpoolcol pool

Definition at line 427 of file colpool.c.

References GCG_Colpool::cols, and NULL.

Referenced by GCGcolpoolUpdateRedcost().

◆ GCGcolpoolGetNCols()

GCG_EXPORT int GCGcolpoolGetNCols ( GCG_COLPOOL *  colpool)

get number of cols in the col pool

gets number of cols in the col pool

Parameters
colpoolcol pool

Definition at line 437 of file colpool.c.

References GCG_Colpool::ncols, and NULL.

Referenced by GCGcolpoolUpdateRedcost().

◆ GCGcolpoolGetMaxNCols()

GCG_EXPORT int GCGcolpoolGetMaxNCols ( GCG_COLPOOL *  colpool)

get maximum number of cols that were stored in the col pool at the same time

gets maximum number of cols that were stored in the col pool at the same time

Parameters
colpoolcol pool

Definition at line 447 of file colpool.c.

References GCG_Colpool::maxncols, and NULL.

◆ GCGcolpoolGetTime()

GCG_EXPORT SCIP_Real GCGcolpoolGetTime ( GCG_COLPOOL *  colpool)

gets time in seconds used for pricing cols from the pool

gets time in seconds used for separating cols from the pool

Parameters
colpoolcol pool

Definition at line 457 of file colpool.c.

References NULL, GCG_Colpool::poolclock, GCG_Colpool::scip, SCIP_Real, and SCIPgetClockTime().

Referenced by GCGcolpoolFree().

◆ GCGcolpoolGetNCalls()

GCG_EXPORT SCIP_Longint GCGcolpoolGetNCalls ( GCG_COLPOOL *  colpool)

get number of times, the col pool was separated

Parameters
colpoolcol pool

Definition at line 467 of file colpool.c.

References GCG_Colpool::ncalls, NULL, and SCIP_Longint.

◆ GCGcolpoolGetNColsFound()

GCG_EXPORT SCIP_Longint GCGcolpoolGetNColsFound ( GCG_COLPOOL *  colpool)

get total number of cols that were priced from the col pool

get total number of cols that were separated from the col pool

Parameters
colpoolcol pool

Definition at line 477 of file colpool.c.

References GCG_Colpool::ncolsfound, NULL, and SCIP_Longint.

◆ GCGcolpoolCreate()

GCG_EXPORT SCIP_RETCODE GCGcolpoolCreate ( GCG *  gcg,
GCG_COLPOOL **  colpool,
int  agelimit 
)

creates col pool

Parameters
gcgGCG data structure
colpoolpointer to store col pool
agelimitmaximum age a col can reach before it is deleted from the pool (-1 fpr no limit)

Definition at line 89 of file colpool.c.

References FALSE, GCG_HASHSIZE_COLPOOLS, GCG_HASHSIZE_COLPOOLS_SMALL, GCG_USESMALLTABLES, GCGgetMasterprob(), NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, SCIPblkmem(), SCIPcreateClock(), and SCIPhashtableCreate().

Referenced by ObjPricerGcg::createColpool().

◆ GCGcolpoolFree()

GCG_EXPORT SCIP_RETCODE GCGcolpoolFree ( GCG_COLPOOL **  colpool)

frees col pool

Parameters
colpoolpointer to store col pool

Definition at line 127 of file colpool.c.

References GCGcolpoolClear(), GCGcolpoolGetTime(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_VERBLEVEL_NORMAL, SCIPfreeBlockMemoryArrayNull, SCIPfreeClock(), SCIPfreeMemory, SCIPhashtableFree(), and SCIPverbMessage().

Referenced by SCIP_DECL_PRICEREXITSOL().

◆ GCGcolpoolClear()

GCG_EXPORT SCIP_RETCODE GCGcolpoolClear ( GCG_COLPOOL *  colpool)

removes all cols from the col pool

removes all rows from the col pool

Parameters
colpoolcol pool

Definition at line 196 of file colpool.c.

References colpoolDelCol(), GCG_Colpool::cols, GCG_Colpool::ncols, NULL, SCIP_CALL, SCIP_OKAY, and TRUE.

Referenced by GCGcolpoolFree(), and GCGcolpoolUpdateNode().

◆ GCGcolpoolAddCol()

GCG_EXPORT SCIP_RETCODE GCGcolpoolAddCol ( GCG_COLPOOL *  colpool,
GCG_COL *  col,
SCIP_Bool  freeduplicate 
)

if not already existing, adds col to col pool and captures it

Parameters
colpoolcol pool
colcolumn to add
freeduplicateshouldl the col be freed if it is a duplicate?

Definition at line 215 of file colpool.c.

References GCGcolpoolAddNewCol(), GCGfreeGcgCol(), GCG_Colpool::hashtable, NULL, GCG_Col::pos, SCIP_CALL, SCIP_OKAY, and SCIPhashtableRetrieve().

Referenced by GCGpricestoreApplyCols().

◆ GCGcolpoolAddNewCol()

GCG_EXPORT SCIP_RETCODE GCGcolpoolAddNewCol ( GCG_COLPOOL *  colpool,
GCG_COL *  col 
)

adds col to col pool and captures it; doesn't check for multiple cols

adds row to col pool and captures it; doesn't check for multiple cols

Parameters
colpoolcol pool
colcolumn to add

Definition at line 239 of file colpool.c.

References colpoolEnsureColsMem(), GCG_Colpool::cols, GCG_Colpool::hashtable, MAX, GCG_Colpool::maxncols, GCG_Colpool::ncols, NULL, GCG_Col::pos, SCIP_CALL, SCIP_OKAY, and SCIPhashtableInsert().

Referenced by GCGcolpoolAddCol().

◆ GCGcolpoolDelCol()

GCG_EXPORT SCIP_RETCODE GCGcolpoolDelCol ( GCG_COLPOOL *  colpool,
GCG_COL *  col,
SCIP_Bool  freecol 
)

removes the col from the col pool

removes the LP row from the col pool

Parameters
colpoolcol pool
colcol to remove
freecolshould the col be freed?

Definition at line 264 of file colpool.c.

References colpoolDelCol(), GCG_Colpool::hashtable, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, and SCIPhashtableRetrieve().

◆ GCGcolpoolUpdateNode()

GCG_EXPORT SCIP_RETCODE GCGcolpoolUpdateNode ( GCG_COLPOOL *  colpool)

update node at which columns of column pool are feasible

Parameters
colpoolcol pool

Definition at line 358 of file colpool.c.

References GCGcolpoolClear(), GCG_Colpool::nodenr, NULL, GCG_Colpool::scip, SCIP_CALL, SCIP_NODETYPE_PROBINGNODE, SCIP_OKAY, SCIPgetCurrentNode(), SCIPnodeGetNumber(), and SCIPnodeGetType().

Referenced by ObjPricerGcg::pricingLoop().

◆ GCGcolpoolUpdateRedcost()

GCG_EXPORT SCIP_RETCODE GCGcolpoolUpdateRedcost ( GCG_COLPOOL *  colpool)

update reduced cost of columns in column pool

update reduced cost and compute master coefs of columns in column pool

Parameters
colpoolcol pool

Definition at line 380 of file colpool.c.

References FALSE, GCG_Colpool::gcg, GCGcolpoolGetCols(), GCGcolpoolGetNCols(), GCGcolUpdateRedcost(), GCGcomputeColMastercoefs(), GCGcomputeRedCostGcgCol(), GCG_Colpool::infarkas, NULL, SCIP_CALL, SCIP_OKAY, and SCIP_Real.

Referenced by ObjPricerGcg::pricingLoop().

◆ GCGcolpoolStartFarkas()

GCG_EXPORT void GCGcolpoolStartFarkas ( GCG_COLPOOL *  colpool)

gets number of cols in the col pool

Parameters
colpoolcol pool

Definition at line 410 of file colpool.c.

References GCG_Colpool::infarkas, and TRUE.

Referenced by SCIP_DECL_PRICERFARKAS().

◆ GCGcolpoolEndFarkas()

GCG_EXPORT void GCGcolpoolEndFarkas ( GCG_COLPOOL *  colpool)

gets number of cols in the col pool

Parameters
colpoolcol pool

Definition at line 418 of file colpool.c.

References FALSE, and GCG_Colpool::infarkas.

Referenced by SCIP_DECL_PRICERREDCOST().

◆ GCGcolpoolPrice()

◆ GCGcolpoolPropagateGlobalBounds()