Detailed Description
private methods for working with pricing problems, to be used by the pricing controller only
Definition in file pricingprob.h.
#include "gcg/struct_pricingprob.h"#include "gcg/type_pricingprob.h"#include "gcg/pricer_gcg.h"#include "gcg/type_colpool.h"#include "gcg/type_pricestore_gcg.h"#include "gcg/type_pricingjob.h"#include "gcg/type_solver.h"Go to the source code of this file.
Functions | |
| SCIP_RETCODE | GCGpricingprobCreate (GCG *gcg, GCG_PRICINGPROB **pricingprob, SCIP *pricingscip, int probnr, int nroundscol) |
| void | GCGpricingprobFree (GCG *gcg, GCG_PRICINGPROB **pricingprob) |
| void | GCGpricingprobInitPricing (GCG_PRICINGPROB *pricingprob) |
| void | GCGpricingprobExitPricing (GCG_PRICINGPROB *pricingprob, int nroundscol) |
| SCIP_RETCODE | GCGpricingprobAddGenericBranchData (GCG *gcg, GCG_PRICINGPROB *pricingprob, SCIP_CONS *branchcons, SCIP_Real branchdual) |
| void | GCGpricingprobReset (GCG *gcg, GCG_PRICINGPROB *pricingprob) |
| void | GCGpricingprobUpdate (GCG *gcg, GCG_PRICINGPROB *pricingprob, GCG_PRICINGSTATUS status, SCIP_Real lowerbound, int nimpcols) |
| void | GCGpricingprobNextBranchcons (GCG_PRICINGPROB *pricingprob) |
| void | GCGpricingjobSetLowerbound (GCG_PRICINGJOB *pricingjob, SCIP_Real lowerbound) |
Function Documentation
◆ GCGpricingprobCreate()
| SCIP_RETCODE GCGpricingprobCreate | ( | GCG * | gcg, |
| GCG_PRICINGPROB ** | pricingprob, | ||
| SCIP * | pricingscip, | ||
| int | probnr, | ||
| int | nroundscol | ||
| ) |
create a pricing problem
- Parameters
-
gcg GCG data structure (master problem) pricingprob pricing problem to be created pricingscip SCIP data structure of the corresponding pricing problem probnr index of the corresponding pricing problem nroundscol number of previous pricing rounds for which the number of improving columns should be counted
Definition at line 52 of file pricingprob.c.
References GCG_PRICINGSTATUS_UNKNOWN, GCGgetMasterprob(), NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemory, SCIPallocClearBlockMemoryArray, SCIPcalcMemGrowSize(), SCIPinfinity(), and TRUE.
Referenced by gcg::Pricingcontroller::initSol().
◆ GCGpricingprobFree()
| void GCGpricingprobFree | ( | GCG * | gcg, |
| GCG_PRICINGPROB ** | pricingprob | ||
| ) |
free a pricing problem
- Parameters
-
gcg GCG data structure (master problem) pricingprob pricing problem to be freed
Definition at line 84 of file pricingprob.c.
References GCGgetMasterprob(), NULL, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArray, and SCIPfreeBlockMemoryArrayNull.
Referenced by gcg::Pricingcontroller::exitSol().
◆ GCGpricingprobInitPricing()
| void GCGpricingprobInitPricing | ( | GCG_PRICINGPROB * | pricingprob | ) |
initialize pricing problem at the beginning of the pricing round
- Parameters
-
pricingprob pricing problem structure
Definition at line 98 of file pricingprob.c.
References GCG_PricingProb::branchconsidx, GCG_PricingProb::consisadded, GCG_PricingProb::nbranchconss, GCG_PricingProb::nimpcols, and TRUE.
Referenced by gcg::Pricingcontroller::initPricing().
◆ GCGpricingprobExitPricing()
| void GCGpricingprobExitPricing | ( | GCG_PRICINGPROB * | pricingprob, |
| int | nroundscol | ||
| ) |
uninitialize pricing problem at the beginning of the pricing round
- Parameters
-
pricingprob pricing problem structure nroundscol number of previous pricing rounds for which the number of improving columns should be counted
Definition at line 110 of file pricingprob.c.
References GCG_PricingProb::ncolsround, and GCG_PricingProb::nimpcols.
Referenced by gcg::Pricingcontroller::exitPricing().
◆ GCGpricingprobAddGenericBranchData()
| SCIP_RETCODE GCGpricingprobAddGenericBranchData | ( | GCG * | gcg, |
| GCG_PRICINGPROB * | pricingprob, | ||
| SCIP_CONS * | branchcons, | ||
| SCIP_Real | branchdual | ||
| ) |
add generic branching data (constraint and dual value) to the current pricing problem
- Parameters
-
gcg GCG data structure (master problem) pricingprob pricing problem structure branchcons generic branching constraint branchdual corresponding dual solution value
Definition at line 125 of file pricingprob.c.
References GCG_PricingProb::branchconsidx, GCG_PricingProb::branchconss, GCG_PricingProb::branchconsssize, GCG_PricingProb::branchduals, GCGgetMasterprob(), GCG_PricingProb::nbranchconss, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPcalcMemGrowSize(), and SCIPreallocBlockMemoryArray.
◆ GCGpricingprobReset()
| void GCGpricingprobReset | ( | GCG * | gcg, |
| GCG_PRICINGPROB * | pricingprob | ||
| ) |
reset the pricing problem statistics for the current pricing round
- Parameters
-
gcg GCG data structure (master problem) pricingprob pricing problem structure
Definition at line 164 of file pricingprob.c.
References GCG_PricingProb::branchconsidx, GCG_PRICINGSTATUS_UNKNOWN, GCGgetMasterprob(), GCG_PricingProb::lowerbound, GCG_PricingProb::nbranchconss, GCG_PricingProb::nimpcols, GCG_PricingProb::nsolves, SCIPinfinity(), and GCG_PricingProb::status.
Referenced by gcg::Pricingcontroller::setupPriorityQueue().
◆ GCGpricingprobUpdate()
| void GCGpricingprobUpdate | ( | GCG * | gcg, |
| GCG_PRICINGPROB * | pricingprob, | ||
| GCG_PRICINGSTATUS | status, | ||
| SCIP_Real | lowerbound, | ||
| int | nimpcols | ||
| ) |
update solution information of a pricing problem
- Parameters
-
gcg GCG data structure (master problem) pricingprob pricing problem structure status status of last pricing job lowerbound new lower bound nimpcols number of new improving columns
Definition at line 178 of file pricingprob.c.
References GCG_PRICINGSTATUS_NOTAPPLICABLE, GCGgetMasterprob(), GCG_PricingProb::lowerbound, GCG_PricingProb::nimpcols, GCG_PricingProb::nsolves, SCIPisDualfeasGT(), and GCG_PricingProb::status.
Referenced by gcg::Pricingcontroller::updatePricingprob().
◆ GCGpricingprobNextBranchcons()
| void GCGpricingprobNextBranchcons | ( | GCG_PRICINGPROB * | pricingprob | ) |
add the information that the next branching constraint must be added
- Parameters
-
pricingprob pricing problem structure
Definition at line 264 of file pricingprob.c.
References GCG_PricingProb::branchconsidx, GCG_PricingProb::consisadded, FALSE, GCG_PRICINGSTATUS_UNKNOWN, and GCG_PricingProb::status.
Referenced by gcg::Pricingcontroller::pricingprobNextBranchcons().
◆ GCGpricingjobSetLowerbound()
| void GCGpricingjobSetLowerbound | ( | GCG_PRICINGJOB * | pricingjob, |
| SCIP_Real | lowerbound | ||
| ) |
set the lower bound of a pricing job
- Parameters
-
pricingjob pricing job lowerbound new lower bound