All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pricestore.c File Reference Detailed Descriptionmethods for storing priced variables Definition in file pricestore.c. #include <assert.h> #include "scip/def.h" #include "scip/set.h" #include "scip/clock.h" #include "scip/lp.h" #include "scip/var.h" #include "scip/prob.h" #include "scip/tree.h" #include "scip/pricestore.h" #include "scip/pub_message.h" #include "scip/struct_pricestore.h" Go to the source code of this file. Function Documentation
resizes vars and score arrays to be able to store at least num entries
Definition at line 45 of file pricestore.c. References BMSreallocMemoryArray, NULL, SCIP_ALLOC, SCIP_OKAY, SCIPsetCalcMemGrowSize(), SCIP_Pricestore::scores, SCIP_Pricestore::vars, and SCIP_Pricestore::varssize. Referenced by SCIPpricestoreAddVar().
resizes bdviolvars arrays to be able to store at least num entries
Definition at line 70 of file pricestore.c. References SCIP_Pricestore::bdviolvars, SCIP_Pricestore::bdviolvarslb, SCIP_Pricestore::bdviolvarssize, SCIP_Pricestore::bdviolvarsub, BMSreallocMemoryArray, NULL, SCIP_ALLOC, SCIP_OKAY, and SCIPsetCalcMemGrowSize(). Referenced by SCIPpricestoreAddBdviolvar().
creates pricing storage
Definition at line 96 of file pricestore.c. References BMSallocMemory, FALSE, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_CLOCKTYPE_DEFAULT, SCIP_OKAY, and SCIPclockCreate(). Referenced by initSolve().
frees pricing storage
Definition at line 125 of file pricestore.c. References BMSfreeMemory, BMSfreeMemoryArrayNull, NULL, SCIP_OKAY, and SCIPclockFree(). Referenced by freeSolve().
informs pricing storage, that the setup of the initial LP starts now
Definition at line 146 of file pricestore.c. References SCIP_Pricestore::initiallp, NULL, SCIP_Pricestore::nvars, and TRUE. Referenced by initLP().
informs pricing storage, that the setup of the initial LP is now finished
Definition at line 158 of file pricestore.c. References FALSE, SCIP_Pricestore::initiallp, NULL, and SCIP_Pricestore::nvars. Referenced by initLP().
adds variable to pricing storage and capture it
Definition at line 170 of file pricestore.c. References SCIP_Pricestore::initiallp, NULL, SCIP_Pricestore::nvars, SCIP_Pricestore::nvarsfound, pricestoreEnsureVarsMem(), SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPdebugMessage, SCIPerrorMessage, SCIPsetGetPriceMaxvars(), SCIPvarCapture(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarRelease(), SCIP_Pricestore::scores, SCIP_Pricestore::vars, and SCIP_Pricestore::varssize. Referenced by addBoundViolated(), initLP(), SCIPaddPricedVar(), and SCIPpricestoreAddProbVars().
adds variable where zero violates the bounds to pricing storage, capture it
Definition at line 243 of file pricestore.c. References SCIP_Pricestore::bdviolvars, SCIP_Pricestore::bdviolvarslb, SCIP_Pricestore::bdviolvarssize, SCIP_Pricestore::bdviolvarsub, SCIP_Pricestore::initiallp, SCIP_Pricestore::naddedbdviolvars, SCIP_Pricestore::nbdviolvars, NULL, SCIP_Pricestore::nvarsfound, pricestoreEnsureBdviolvarsMem(), SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPsetIsNegative(), SCIPsetIsPositive(), SCIPvarCapture(), SCIPvarChgLbLocal(), SCIPvarChgUbLocal(), SCIPvarGetLbLocal(), SCIPvarGetName(), and SCIPvarGetUbLocal(). Referenced by addBoundViolated().
adds given problem variable to pricing storage, if zero is not best bound w.r.t. objective function
Definition at line 299 of file pricestore.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPpricestoreAddBdviolvar(), SCIPpricestoreAddVar(), SCIPsetIsNegative(), SCIPsetIsPositive(), SCIPsetIsZero(), SCIPtreeGetCurrentDepth(), SCIPvarGetBestBoundLocal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetObj(), SCIPvarGetUbLocal(), and TRUE. Referenced by SCIPpricestoreAddProbVars().
adds problem variables with negative reduced costs to pricing storage
Definition at line 345 of file pricestore.c. References addBoundViolated(), SCIP_Col::len, SCIP_Col::lpipos, SCIP_Col::lppos, SCIP_Prob::ncolvars, SCIP_Pricestore::nprobpricings, SCIP_Pricestore::nprobvarsfound, NULL, SCIP_Prob::nvars, SCIP_Pricestore::probpricingtime, SCIP_Bool, SCIP_CALL, SCIP_LPSOLSTAT_INFEASIBLE, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_COLUMN, SCIPclockStart(), SCIPclockStop(), SCIPcolGetFarkasValue(), SCIPcolGetFeasibility(), SCIPcolGetNNonz(), SCIPcolIsInLP(), SCIPdebugMessage, SCIPlpGetNCols(), SCIPlpGetSolstat(), SCIPpricestoreAddVar(), SCIPsetGetPriceMaxvars(), SCIPsetIsNegative(), SCIPsetIsPositive(), SCIPtreeGetCurrentDepth(), SCIPtreeHasCurrentNodeLP(), SCIPvarGetCol(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), SCIP_Lp::solved, SCIP_Col::var, and SCIP_Prob::vars. Referenced by SCIPpriceLoop().
adds priced variables to the LP
Definition at line 474 of file pricestore.c. References SCIP_Pricestore::bdviolvars, SCIP_Pricestore::bdviolvarslb, SCIP_Pricestore::bdviolvarsub, SCIP_Pricestore::initiallp, SCIP_Col::lppos, SCIP_Pricestore::naddedbdviolvars, SCIP_Pricestore::nbdviolvars, NULL, SCIP_Var::nuses, SCIP_Pricestore::nvars, SCIP_Pricestore::nvarsapplied, SCIP_CALL, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPdebugMessage, SCIPlpAddCol(), SCIPlpGetNCols(), SCIPpricestoreGetNVars(), SCIPtreeGetCurrentDepth(), SCIPtreeIsFocusNodeLPConstructed(), SCIPvarColumn(), SCIPvarGetCol(), SCIPvarGetName(), SCIPvarGetProbindex(), SCIPvarGetStatus(), SCIPvarRelease(), SCIP_Pricestore::scores, and SCIP_Pricestore::vars. Referenced by initLP(), and SCIPpriceLoop().
reset variables' bounds violated by zero to its original value
Definition at line 563 of file pricestore.c. References SCIP_Pricestore::bdviolvars, SCIP_Pricestore::bdviolvarslb, SCIP_Pricestore::bdviolvarsub, SCIP_Pricestore::naddedbdviolvars, SCIP_Var::name, SCIP_Pricestore::nbdviolvars, NULL, SCIP_Pricestore::nvars, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPvarChgLbLocal(), SCIPvarChgUbLocal(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and SCIPvarRelease(). Referenced by SCIPpriceLoop().
gets number of variables in pricing storage
Definition at line 603 of file pricestore.c. References SCIP_Pricestore::naddedbdviolvars, SCIP_Pricestore::nbdviolvars, NULL, and SCIP_Pricestore::nvars. Referenced by SCIPgetNPricevars(), SCIPpriceLoop(), SCIPpricerExec(), and SCIPpricestoreApplyVars().
gets number of variables in pricing storage whose bounds must be reset
Definition at line 614 of file pricestore.c. References SCIP_Pricestore::naddedbdviolvars, SCIP_Pricestore::nbdviolvars, and NULL. Referenced by SCIPpriceLoop().
gets time needed to price existing problem variables
Definition at line 625 of file pricestore.c. References NULL, SCIP_Pricestore::probpricingtime, and SCIPclockGetTime(). Referenced by printPricerStatistics().
gets total number of calls to problem variable pricing
Definition at line 635 of file pricestore.c. References SCIP_Pricestore::nprobpricings, and NULL. Referenced by printPricerStatistics().
gets total number of times, a problem variable was priced in
Definition at line 645 of file pricestore.c. References SCIP_Pricestore::nprobvarsfound, and NULL. Referenced by printPricerStatistics().
get total number of variables found so far in pricing
Definition at line 655 of file pricestore.c. References NULL, and SCIP_Pricestore::nvarsfound. Referenced by SCIPgetNPricevarsFound().
get total number of variables priced into the LP so far
Definition at line 665 of file pricestore.c. References NULL, and SCIP_Pricestore::nvarsapplied. Referenced by SCIPgetNPricevarsApplied(). |