pricer.c File Reference Detailed Descriptionmethods for variable pricers Definition in file pricer.c. #include <assert.h> #include <string.h> #include "scip/def.h" #include "scip/set.h" #include "scip/clock.h" #include "scip/paramset.h" #include "scip/lp.h" #include "scip/prob.h" #include "scip/pricestore.h" #include "scip/scip.h" #include "scip/pricer.h" #include "scip/pub_message.h" #include "scip/pub_misc.h" #include "scip/struct_pricer.h" Go to the source code of this file. Function Documentation
comparison method for sorting pricers w.r.t. to their name Definition at line 53 of file pricer.c. References SCIPpricerGetName().
method to call, when the priority of a pricer was changed Definition at line 63 of file pricer.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetData(), SCIPparamGetInt(), and SCIPsetPricerPriority().
copies the given pricer to a new scip
Definition at line 77 of file pricer.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, and SCIPpricerGetName(). Referenced by SCIP_DECL_PARAMCHGD().
creates a variable pricer To use the variable pricer for solving a problem, it first has to be activated with a call to SCIPactivatePricer().
Definition at line 99 of file pricer.c. References BMSallocMemory, BMSduplicateMemoryArray, FALSE, NULL, paramname, SCIP_ALLOC, SCIP_CALL, SCIP_CLOCKTYPE_DEFAULT, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPclockCreate(), SCIPsetAddIntParam(), and SCIPsnprintf(). Referenced by SCIPincludePricer(), and SCIPincludePricerBasic().
calls destructor and frees memory of variable pricer
Definition at line 160 of file pricer.c. References BMSfreeMemory, BMSfreeMemoryArray, NULL, SCIP_CALL, SCIP_OKAY, and SCIPclockFree().
initializes variable pricer
Definition at line 186 of file pricer.c. References SCIP_Pricer::active, SCIP_Pricer::initialized, SCIP_Pricer::name, SCIP_Pricer::ncalls, NULL, SCIP_Pricer::nvarsfound, SCIP_Pricer::pricerclock, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockReset(), SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, SCIP_Pricer::setuptime, and TRUE.
calls exit method of variable pricer
Definition at line 226 of file pricer.c. References SCIP_Pricer::active, FALSE, SCIP_Pricer::initialized, SCIP_Pricer::name, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, and SCIP_Pricer::setuptime. Referenced by SCIPsetInitPlugins().
informs variable pricer that the branch and bound process is being started
Definition at line 257 of file pricer.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIP_Pricer::setuptime. Referenced by SCIPsetInitprePlugins().
informs variable pricer that the branch and bound process data is being freed
Definition at line 281 of file pricer.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIP_Pricer::setuptime. Referenced by SCIPsetInitsolPlugins().
activates pricer such that it is called in LP solving loop
Definition at line 305 of file pricer.c. References SCIP_Pricer::active, FALSE, NULL, SCIP_OKAY, SCIP_STAGE_PROBLEM, and TRUE. Referenced by SCIPactivatePricer().
deactivates pricer such that it is no longer called in LP solving loop
Definition at line 325 of file pricer.c. References SCIP_Pricer::active, FALSE, NULL, SCIP_OKAY, and SCIP_STAGE_PROBLEM. Referenced by SCIPdeactivatePricer(), and SCIPfreeProb().
calls reduced cost pricing method of variable pricer
Definition at line 345 of file pricer.c. References SCIP_Pricer::active, SCIP_Pricer::name, SCIP_Pricer::ncalls, NULL, SCIP_Prob::nvars, SCIP_Pricer::nvarsfound, SCIP_Pricer::pricerclock, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIPdebugMessage. Referenced by SCIPpricerExec().
calls Farkas pricing method of variable pricer
Definition at line 385 of file pricer.c. References SCIP_Pricer::active, SCIP_Pricer::name, SCIP_Pricer::ncalls, NULL, SCIP_Prob::nvars, SCIP_Pricer::nvarsfound, SCIP_Pricer::pricerclock, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIPdebugMessage. Referenced by SCIPpricerExec().
depending on the LP's solution status, calls reduced cost or Farkas pricing method of variable pricer
Definition at line 424 of file pricer.c. References SCIP_Pricer::delay, FALSE, NULL, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_LPSOLSTAT_INFEASIBLE, SCIP_OKAY, SCIP_SUCCESS, SCIPlpGetSolstat(), SCIPpricerFarkas(), SCIPpricerRedcost(), SCIPpricestoreGetNVars(), and SCIPsetInfinity(). Referenced by SCIPpriceLoop().
gets user data of variable pricer
Definition at line 463 of file pricer.c. References NULL, and SCIP_Pricer::pricerdata. Referenced by SCIP_DECL_PRICERCOPY(), SCIP_DECL_PRICEREXIT(), SCIP_DECL_PRICEREXITSOL(), SCIP_DECL_PRICERFARKAS(), SCIP_DECL_PRICERFREE(), SCIP_DECL_PRICERINIT(), SCIP_DECL_PRICERINITSOL(), SCIP_DECL_PRICERREDCOST(), SCIPfindObjPricer(), and SCIPgetObjPricer().
sets user data of variable pricer; user has to free old data in advance!
Definition at line 473 of file pricer.c. References NULL, and SCIP_Pricer::pricerdata. Referenced by SCIP_DECL_PRICERFREE().
sets copy callback of pricer
Definition at line 484 of file pricer.c. References NULL. Referenced by SCIPsetPricerCopy().
sets destructor callback of pricer
Definition at line 495 of file pricer.c. References NULL. Referenced by SCIPsetPricerFree().
sets initialization callback of pricer
Definition at line 506 of file pricer.c. References NULL. Referenced by SCIPsetPricerInit().
sets deinitialization callback of pricer
Definition at line 517 of file pricer.c. References NULL. Referenced by SCIPsetPricerExit().
sets solving process initialization callback of pricer
Definition at line 528 of file pricer.c. References NULL. Referenced by SCIPsetPricerInitsol().
sets solving process deinitialization callback of pricer
Definition at line 539 of file pricer.c. References NULL. Referenced by SCIPsetPricerExitsol().
gets name of variable pricer
Definition at line 550 of file pricer.c. References SCIP_Pricer::name, and NULL. Referenced by printPricerStatistics(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_SORTPTRCOMP(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPpriceLoop(), SCIPpricerCopyInclude(), and SCIPsetFindReader().
gets description of variable pricer
Definition at line 560 of file pricer.c. References SCIP_Pricer::desc, and NULL. Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
gets priority of variable pricer
Definition at line 570 of file pricer.c. References NULL, and SCIP_Pricer::priority. Referenced by SCIP_DECL_DIALOGEXEC().
sets priority of variable pricer
Definition at line 580 of file pricer.c. References FALSE, NULL, and SCIP_Pricer::priority. Referenced by SCIPsetPricerPriority().
gets the number of times, the pricer was called and tried to find a variable with negative reduced costs
Definition at line 594 of file pricer.c. References SCIP_Pricer::ncalls, and NULL. Referenced by printPricerStatistics().
gets the number of variables with negative reduced costs found by this pricer
Definition at line 604 of file pricer.c. References NULL, and SCIP_Pricer::nvarsfound. Referenced by printPricerStatistics().
gets time in seconds used in this pricer for setting up for next stages
Definition at line 614 of file pricer.c. References NULL, SCIPclockGetTime(), and SCIP_Pricer::setuptime. Referenced by printPricerStatistics().
gets time in seconds used in this pricer
Definition at line 624 of file pricer.c. References NULL, SCIP_Pricer::pricerclock, and SCIPclockGetTime(). Referenced by printPricerStatistics().
enables or disables all clocks of
Definition at line 634 of file pricer.c. References NULL, SCIP_Pricer::pricerclock, SCIPclockEnableOrDisable(), and SCIP_Pricer::setuptime. Referenced by SCIPsetSetReoptimizationParams().
returns whether the given pricer is in use in the current problem
Definition at line 646 of file pricer.c. References SCIP_Pricer::active, and NULL. Referenced by SCIP_DECL_PARAMCHGD().
returns whether the pricer should be delayed until no other pricer finds a new variable
Definition at line 656 of file pricer.c. References SCIP_Pricer::delay, and NULL. Referenced by SCIP_DECL_DIALOGEXEC().
is variable pricer initialized?
Definition at line 666 of file pricer.c. References SCIP_Pricer::initialized, and NULL. |