GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches

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 assert(), GCG_Colpool::cols, and GCGcolpoolGetCols().

Referenced by GCGcolpoolGetCols(), and 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 assert(), GCGcolpoolGetNCols(), and GCG_Colpool::ncols.

Referenced by GCGcolpoolGetNCols(), and 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 assert(), GCGcolpoolGetMaxNCols(), and GCG_Colpool::maxncols.

Referenced by GCGcolpoolGetMaxNCols().

◆ 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 assert(), GCGcolpoolGetTime(), GCG_Colpool::poolclock, and GCG_Colpool::scip.

Referenced by GCGcolpoolFree(), and GCGcolpoolGetTime().

◆ 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 assert(), GCGcolpoolGetNCalls(), and GCG_Colpool::ncalls.

Referenced by GCGcolpoolGetNCalls().

◆ 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 assert(), GCGcolpoolGetNColsFound(), and GCG_Colpool::ncolsfound.

Referenced by GCGcolpoolGetNColsFound().

◆ 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 assert(), GCG_HASHSIZE_COLPOOLS, GCG_HASHSIZE_COLPOOLS_SMALL, GCG_USESMALLTABLES, GCGcolpoolCreate(), GCGgetMasterprob(), and SCIP_CALL().

Referenced by ObjPricerGcg::createColpool(), and GCGcolpoolCreate().

◆ 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 assert(), GCGcolpoolClear(), GCGcolpoolFree(), GCGcolpoolGetTime(), SCIP_CALL(), and SCIPfreeMemory().

Referenced by GCGcolpoolFree(), and 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 assert(), colpoolDelCol(), GCG_Colpool::cols, GCGcolpoolClear(), i, GCG_Colpool::ncols, and SCIP_CALL().

Referenced by GCGcolpoolClear(), 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 assert(), GCGcolpoolAddCol(), GCGcolpoolAddNewCol(), GCGfreeGcgCol(), GCG_Colpool::hashtable, GCG_Col::pos, and SCIP_CALL().

Referenced by GCGcolpoolAddCol(), and 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 assert(), colpoolEnsureColsMem(), GCG_Colpool::cols, GCGcolpoolAddNewCol(), GCG_Colpool::hashtable, GCG_Colpool::maxncols, GCG_Colpool::ncols, GCG_Col::pos, and SCIP_CALL().

Referenced by GCGcolpoolAddCol(), and GCGcolpoolAddNewCol().

◆ 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 assert(), colpoolDelCol(), GCGcolpoolDelCol(), GCG_Colpool::hashtable, and SCIP_CALL().

Referenced by GCGcolpoolDelCol().

◆ 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 assert(), GCGcolpoolClear(), GCGcolpoolUpdateNode(), GCG_Colpool::nodenr, GCG_Colpool::scip, and SCIP_CALL().

Referenced by GCGcolpoolUpdateNode(), and 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 GCG_Colpool::gcg, GCGcolpoolGetCols(), GCGcolpoolGetNCols(), GCGcolpoolUpdateRedcost(), GCGcolUpdateRedcost(), GCGcomputeColMastercoefs(), GCGcomputeRedCostGcgCol(), i, GCG_Colpool::infarkas, and SCIP_CALL().

Referenced by GCGcolpoolUpdateRedcost(), and 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 GCGcolpoolStartFarkas(), and GCG_Colpool::infarkas.

Referenced by GCGcolpoolStartFarkas(), and 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 GCGcolpoolEndFarkas(), and GCG_Colpool::infarkas.

Referenced by GCGcolpoolEndFarkas(), and SCIP_DECL_PRICERREDCOST().

◆ GCGcolpoolPrice()

GCG_EXPORT SCIP_RETCODE GCGcolpoolPrice ( GCG_COLPOOL * colpool,
SCIP_SOL * sol,
int * nfoundvars )

prices cols of the col pool

Parameters
colpoolcol pool
solsolution to be separated (or NULL for LP-solution)
nfoundvarspointer to store the result of the separation call

Definition at line 288 of file colpool.c.

References GCG_Col::age, GCG_Colpool::agelimit, assert(), c, colpoolDelCol(), GCG_Colpool::cols, GCG_Colpool::firstunprocessed, GCG_Colpool::firstunprocessedsol, GCG_Colpool::gcg, GCGcolGetRedcost(), GCGcolIsAged(), GCGcolpoolPrice(), GCGpricerAddColResult(), GCG_Colpool::ncalls, GCG_Colpool::ncols, GCG_Colpool::ncolsfound, GCG_Colpool::poolclock, GCG_Col::pos, GCG_Colpool::scip, SCIP_CALL(), SCIPdebugMessage(), and sol.

Referenced by GCGcolpoolPrice(), and ObjPricerGcg::pricingLoop().

◆ GCGcolpoolPropagateGlobalBounds()