Detailed Description
Function Documentation
◆ GCGcolpoolGetCols()
| GCG_EXPORT GCG_COL ** GCGcolpoolGetCols | ( | GCG_COLPOOL * | colpool | ) |
gets array of cols in the col pool
- Parameters
-
colpool col 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
-
colpool col 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
-
colpool col 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
-
colpool col 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
-
colpool col 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
-
colpool col 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
-
gcg GCG data structure colpool pointer to store col pool agelimit maximum 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
-
colpool pointer 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
-
colpool col 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
-
colpool col pool col column to add freeduplicate shouldl 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
-
colpool col pool col column 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
-
colpool col pool col col to remove freecol should 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
-
colpool col 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
-
colpool col 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
-
colpool col 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
-
colpool col pool
Definition at line 418 of file colpool.c.
References FALSE, and GCG_Colpool::infarkas.
Referenced by SCIP_DECL_PRICERREDCOST().
◆ GCGcolpoolPrice()
| GCG_EXPORT SCIP_RETCODE GCGcolpoolPrice | ( | GCG_COLPOOL * | colpool, |
| SCIP_SOL * | sol, | ||
| int * | nfoundvars | ||
| ) |
prices cols of the col pool
- Parameters
-
colpool col pool sol solution to be separated (or NULL for LP-solution) nfoundvars pointer to store the result of the separation call
Definition at line 288 of file colpool.c.
References GCG_Col::age, GCG_Colpool::agelimit, colpoolDelCol(), GCG_Colpool::cols, FALSE, GCG_Colpool::firstunprocessed, GCG_Colpool::firstunprocessedsol, GCG_Colpool::gcg, GCGcolGetRedcost(), GCGcolIsAged(), GCGpricerAddColResult(), GCG_Colpool::ncalls, GCG_Colpool::ncols, GCG_Colpool::ncolsfound, NULL, GCG_Colpool::poolclock, GCG_Col::pos, GCG_Colpool::scip, SCIP_Bool, SCIP_CALL, SCIP_NODETYPE_PROBINGNODE, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPgetCurrentNode(), SCIPisDualfeasNegative(), SCIPnodeGetType(), SCIPstartClock(), SCIPstopClock(), and TRUE.
Referenced by ObjPricerGcg::pricingLoop().
◆ GCGcolpoolPropagateGlobalBounds()
| GCG_EXPORT SCIP_RETCODE GCGcolpoolPropagateGlobalBounds | ( | GCG_COLPOOL * | colpool | ) |
removes cols that violate global bounds
- Parameters
-
colpool col pool
Definition at line 486 of file colpool.c.
References colpoolDelCol(), GCG_Colpool::cols, GCGpricingVarGetNOrigvars(), GCGpricingVarGetOrigvars(), GCGvarIsPricing(), GCG_Colpool::ncols, NULL, GCG_Col::nvars, GCG_Col::pricingprob, SCIP_OKAY, SCIPisFeasGT(), SCIPisFeasLT(), SCIPvarGetLbGlobal(), SCIPvarGetUbGlobal(), TRUE, GCG_Col::vals, and GCG_Col::vars.
Referenced by SCIP_DECL_CONSPROP().