Detailed Description
methods for storing priced cols (based on SCIP's separation storage)
Definition in file pricestore_gcg.h.
#include "scip/def.h"#include "blockmemshell/memory.h"#include "scip/type_implics.h"#include "scip/type_retcode.h"#include "scip/type_set.h"#include "scip/type_stat.h"#include "scip/type_event.h"#include "scip/type_lp.h"#include "scip/type_prob.h"#include "scip/type_tree.h"#include "scip/type_reopt.h"#include "scip/type_branch.h"#include "gcg/pub_colpool.h"#include "gcg/pub_gcgcol.h"#include "gcg/type_pricestore_gcg.h"Go to the source code of this file.
Function Documentation
◆ GCGpricestoreCreate()
| GCG_EXPORT SCIP_RETCODE GCGpricestoreCreate | ( | GCG * | gcg, |
| GCG_PRICESTORE ** | pricestore, | ||
| SCIP_Real | efficiacyfac, | ||
| SCIP_Real | objparalfac, | ||
| SCIP_Real | orthofac, | ||
| SCIP_Real | mincolorth, | ||
| GCG_EFFICIACYCHOICE | efficiacychoice, | ||
| int | hashtablesize ) |
creates price storage
- Parameters
-
gcg GCG data structure pricestore pointer to store price storage efficiacyfac factor of -redcost/norm in score function objparalfac factor of objective parallelism in score function orthofac factor of orthogonalities in score function mincolorth minimal orthogonality of columns to add (with respect to columns added in the current round) efficiacychoice choice to base efficiacy on hashtablesize size of hashtable
Definition at line 117 of file pricestore_gcg.c.
References assert(), GCGgetMasterprob(), GCGgetNPricingprobs(), GCGpricestoreCreate(), i, masterprob, and SCIP_CALL().
Referenced by ObjPricerGcg::createPricestore(), and GCGpricestoreCreate().
◆ GCGpricestoreFree()
| GCG_EXPORT SCIP_RETCODE GCGpricestoreFree | ( | GCG_PRICESTORE ** | pricestore | ) |
frees price storage
- Parameters
-
pricestore pointer to store price storage
Definition at line 184 of file pricestore_gcg.c.
References assert(), GCGpricestoreFree(), and i.
Referenced by GCGpricestoreFree(), and SCIP_DECL_PRICEREXITSOL().
◆ GCGpricestoreStartFarkas()
| GCG_EXPORT void GCGpricestoreStartFarkas | ( | GCG_PRICESTORE * | pricestore | ) |
informs price storage, that Farkas pricing starts now
- Parameters
-
pricestore price storage
Definition at line 218 of file pricestore_gcg.c.
References assert(), GCGpricestoreStartFarkas(), GCG_PriceStore::infarkas, and GCG_PriceStore::ncolstotal.
Referenced by GCGpricestoreStartFarkas(), and SCIP_DECL_PRICERFARKAS().
◆ GCGpricestoreEndFarkas()
| GCG_EXPORT void GCGpricestoreEndFarkas | ( | GCG_PRICESTORE * | pricestore | ) |
informs price storage, that Farkas pricing is now finished
- Parameters
-
pricestore price storage
Definition at line 229 of file pricestore_gcg.c.
References assert(), GCGpricestoreEndFarkas(), GCG_PriceStore::infarkas, and GCG_PriceStore::ncolstotal.
Referenced by GCGpricestoreEndFarkas(), and SCIP_DECL_PRICERREDCOST().
◆ GCGpricestoreStartForceCols()
| GCG_EXPORT void GCGpricestoreStartForceCols | ( | GCG_PRICESTORE * | pricestore | ) |
informs price storage, that the following cols should be used in any case
- Parameters
-
pricestore price storage
Definition at line 240 of file pricestore_gcg.c.
References assert(), GCG_PriceStore::forcecols, and GCGpricestoreStartForceCols().
Referenced by GCGpricestoreStartForceCols().
◆ GCGpricestoreEndForceCols()
| GCG_EXPORT void GCGpricestoreEndForceCols | ( | GCG_PRICESTORE * | pricestore | ) |
informs price storage, that the following cols should no longer be used in any case
- Parameters
-
pricestore price storage
Definition at line 251 of file pricestore_gcg.c.
References assert(), GCG_PriceStore::forcecols, and GCGpricestoreEndForceCols().
Referenced by GCGpricestoreEndForceCols().
◆ GCGpricestoreAddCol()
| GCG_EXPORT SCIP_RETCODE GCGpricestoreAddCol | ( | GCG_PRICESTORE * | pricestore, |
| GCG_COL * | col, | ||
| SCIP_Bool | forcecol, | ||
| SCIP_Bool | fromcolpool, | ||
| SCIP_Bool * | added ) |
adds col to price storage; if the col should be forced to enter the LP, an infinite score has to be used
adds col to price storage; if the col should be forced to enter the LP, an infinite score will be used
- Parameters
-
pricestore price storage col priced col forcecol should the col be forced to enter the LP? fromcolpool is column from colpool added pointer to var that indicates whether the col was added
Definition at line 314 of file pricestore_gcg.c.
References assert(), GCG_PriceStore::cols, GCG_PriceStore::colssize, GCG_PriceStore::forcecols, GCG_PriceStore::gcg, GCG_SET_LOCK, GCG_UNSET_LOCK, GCGcolComputeDualObjPara(), GCGcolComputeNorm(), GCGcolIsEq(), GCGfreeGcgCol(), GCGgetNActiveMastersepacuts(), GCGpricestoreAddCol(), GCGpricingVarGetOrigvars(), GCGvarIsInferredPricing(), GCGvarIsPricing(), GCG_PriceStore::hashtable, i, GCG_PriceStore::masterprob, GCG_PriceStore::ncols, GCG_PriceStore::ncolsfound, GCG_PriceStore::ncolsfoundround, GCG_PriceStore::ncolstotal, GCG_PriceStore::nforcedcols, GCG_Col::nvars, GCG_PriceStore::objparalfac, GCG_PriceStore::objparallelisms, GCG_PriceStore::orthogonalities, GCG_Col::pos, pricestoreEnsureColsMem(), pricestoreFindEqualCol(), pricestoreGetArrayIndex(), GCG_Col::pricingprob, SCIP_CALL(), SCIPdebugMessage(), GCG_PriceStore::scores, sol, GCG_Col::vals, var, and GCG_Col::vars.
Referenced by ObjPricerGcg::addColToPricestore(), and GCGpricestoreAddCol().
◆ GCGpricestoreApplyCols()
| GCG_EXPORT SCIP_RETCODE GCGpricestoreApplyCols | ( | GCG_PRICESTORE * | pricestore, |
| GCG_COLPOOL * | colpool, | ||
| SCIP_Bool | usecolpool, | ||
| int * | nfoundvars ) |
adds cols to priced vars and clears price storage
- Parameters
-
pricestore price storage colpool GCG column pool usecolpool use column pool? nfoundvars pointer to store number of variables that were added to the problem
Definition at line 675 of file pricestore_gcg.c.
References assert(), GCG_PriceStore::cols, computeScore(), GCG_PriceStore::gcg, GCGcolGetProbNr(), GCGcolGetRedcost(), GCGcolpoolAddCol(), GCGgetNPricingprobs(), GCGpricerGetMaxColsProb(), GCGpricerGetMaxColsRound(), GCGpricestoreApplyCols(), GCGpricestoreClearCols(), i, GCG_PriceStore::masterprob, masterprob, GCG_PriceStore::mincolorth, GCG_PriceStore::narrays, GCG_PriceStore::ncols, GCG_PriceStore::ncolstotal, GCG_PriceStore::nforcedcols, GCG_PriceStore::objparallelisms, GCG_PriceStore::orthogonalities, GCG_Col::pos, pricestoreApplyCol(), pricestoreDelCol(), pricestoreGetArrayIndex(), pricestoreGetBestCol(), SCIP_CALL(), SCIPdebugMessage(), SCIPfreeBufferArray(), and GCG_PriceStore::scores.
Referenced by GCGpricestoreApplyCols(), and ObjPricerGcg::pricingLoop().
◆ GCGpricestoreClearCols()
| GCG_EXPORT SCIP_RETCODE GCGpricestoreClearCols | ( | GCG_PRICESTORE * | pricestore | ) |
clears the price storage without adding the cols to priced vars
clears the price storage without adding the cols to the LP
- Parameters
-
pricestore price storage
Definition at line 820 of file pricestore_gcg.c.
References assert(), c, GCG_PriceStore::cols, GCG_PriceStore::colssize, GCGfreeGcgCol(), GCGpricestoreClearCols(), GCG_PriceStore::hashtable, i, GCG_PriceStore::infarkas, GCG_PriceStore::masterprob, GCG_PriceStore::narrays, GCG_PriceStore::ncols, GCG_PriceStore::ncolsfoundround, GCG_PriceStore::ncolstotal, GCG_PriceStore::nforcedcols, GCG_PriceStore::objparallelisms, GCG_PriceStore::orthogonalities, SCIP_CALL(), SCIPdebugMessage(), and GCG_PriceStore::scores.
Referenced by GCGpricestoreApplyCols(), and GCGpricestoreClearCols().
◆ GCGpricestoreGetCols()
| GCG_EXPORT GCG_COL ** GCGpricestoreGetCols | ( | GCG_PRICESTORE * | pricestore, |
| int | arrayindex ) |
get cols in the price storage
- Parameters
-
pricestore price storage arrayindex index of the arrays
Definition at line 866 of file pricestore_gcg.c.
References assert(), GCG_PriceStore::cols, and GCGpricestoreGetCols().
Referenced by GCGpricestoreGetCols(), and ObjPricerGcg::getBestCols().
◆ GCGpricestoreGetNCols()
| GCG_EXPORT int GCGpricestoreGetNCols | ( | GCG_PRICESTORE * | pricestore, |
| int | arrayindex ) |
get number of cols in the price storage
- Parameters
-
pricestore price storage arrayindex index of the arrays
Definition at line 877 of file pricestore_gcg.c.
References assert(), GCGpricestoreGetNCols(), and GCG_PriceStore::ncols.
Referenced by GCGpricestoreGetNCols(), and ObjPricerGcg::getBestCols().
◆ GCGpricestoreGetNColsTotal()
| GCG_EXPORT int GCGpricestoreGetNColsTotal | ( | GCG_PRICESTORE * | pricestore | ) |
get number of cols in the price storage
- Parameters
-
pricestore price storage
Definition at line 888 of file pricestore_gcg.c.
References assert(), GCGpricestoreGetNColsTotal(), and GCG_PriceStore::ncolstotal.
Referenced by GCGpricestoreGetNColsTotal(), and ObjPricerGcg::pricingLoop().
◆ GCGpricestoreGetNColsFound()
| GCG_EXPORT int GCGpricestoreGetNColsFound | ( | GCG_PRICESTORE * | pricestore | ) |
get total number of cols found so far
- Parameters
-
pricestore price storage
Definition at line 898 of file pricestore_gcg.c.
References assert(), GCGpricestoreGetNColsFound(), and GCG_PriceStore::ncolsfound.
Referenced by GCGpricestoreGetNColsFound().
◆ GCGpricestoreGetNColsFoundRound()
| GCG_EXPORT int GCGpricestoreGetNColsFoundRound | ( | GCG_PRICESTORE * | pricestore | ) |
get number of cols found so far in current price round
- Parameters
-
pricestore price storage
Definition at line 908 of file pricestore_gcg.c.
References assert(), GCGpricestoreGetNColsFoundRound(), and GCG_PriceStore::ncolsfoundround.
Referenced by GCGpricestoreGetNColsFoundRound().
◆ GCGpricestoreGetNColsApplied()
| GCG_EXPORT int GCGpricestoreGetNColsApplied | ( | GCG_PRICESTORE * | pricestore | ) |
get total number of cols applied to the LPs
- Parameters
-
pricestore price storage
Definition at line 918 of file pricestore_gcg.c.
References assert(), GCGpricestoreGetNColsApplied(), and GCG_PriceStore::ncolsapplied.
Referenced by GCGpricestoreGetNColsApplied().