Detailed Description
methods for GCG pricing solvers
Definition in file solver.c.
#include "gcg/pub_solver.h"#include "gcg/solver.h"#include "gcg/struct_solver.h"#include "gcg/gcg.h"#include "gcg/pricer_gcg.h"#include <string.h>Go to the source code of this file.
Function Documentation
◆ GCGsolverCreate()
| SCIP_RETCODE GCGsolverCreate | ( | GCG * | gcg, |
| GCG_SOLVER ** | solver, | ||
| const char * | name, | ||
| const char * | desc, | ||
| int | priority, | ||
| SCIP_Bool | heurenabled, | ||
| SCIP_Bool | exactenabled, | ||
| GCG_DECL_SOLVERUPDATE((*solverupdate)) | , | ||
| GCG_DECL_SOLVERSOLVE((*solversolve)) | , | ||
| GCG_DECL_SOLVERSOLVEHEUR((*solveheur)) | , | ||
| GCG_DECL_SOLVERFREE((*solverfree)) | , | ||
| GCG_DECL_SOLVERINIT((*solverinit)) | , | ||
| GCG_DECL_SOLVEREXIT((*solverexit)) | , | ||
| GCG_DECL_SOLVERINITSOL((*solverinitsol)) | , | ||
| GCG_DECL_SOLVEREXITSOL((*solverexitsol)) | , | ||
| GCG_SOLVERDATA * | solverdata | ||
| ) |
creates a GCG pricing solver
- Parameters
-
gcg GCG data structure solver pointer to pricing solver data structure name name of solver desc description of solver priority priority of solver heurenabled flag to indicate whether heuristic solving method of the solver is enabled exactenabled flag to indicate whether exact solving method of the solver is enabled solverdata pricing solver data
Definition at line 64 of file solver.c.
References BMSduplicateMemoryArray, FALSE, GCGgetMasterprob(), GCGgetOrigprob(), NULL, SCIP_ALLOC, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPallocMemory, SCIPcreateCPUClock(), SCIPsnprintf(), and SCIPwarningMessage().
Referenced by GCGpricerIncludeSolver().
◆ GCGsolverFree()
| SCIP_RETCODE GCGsolverFree | ( | GCG * | gcg, |
| GCG_SOLVER ** | solver | ||
| ) |
calls destructor and frees memory of GCG pricing solver
- Parameters
-
gcg GCG data structure solver pointer to pricing solver data structure
Definition at line 152 of file solver.c.
References BMSfreeMemoryArray, GCGgetMasterprob(), NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeClock(), and SCIPfreeMemory.
◆ GCGsolverInit()
| SCIP_RETCODE GCGsolverInit | ( | GCG * | gcg, |
| GCG_SOLVER * | solver | ||
| ) |
initializes GCG pricing solver
- Parameters
-
gcg GCG data structure solver pricing solver
Definition at line 183 of file solver.c.
References GCGgetMasterprob(), GCG_Solver::heurfarkascalls, GCG_Solver::heurfarkasclock, GCG_Solver::heurredcostcalls, GCG_Solver::heurredcostclock, NULL, GCG_Solver::optfarkascalls, GCG_Solver::optfarkasclock, GCG_Solver::optredcostcalls, GCG_Solver::optredcostclock, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPgetBoolParam(), and SCIPresetClock().
◆ GCGsolverExit()
| SCIP_RETCODE GCGsolverExit | ( | GCG * | gcg, |
| GCG_SOLVER * | solver | ||
| ) |
◆ GCGsolverInitsol()
| SCIP_RETCODE GCGsolverInitsol | ( | GCG * | gcg, |
| GCG_SOLVER * | solver | ||
| ) |
◆ GCGsolverExitsol()
| SCIP_RETCODE GCGsolverExitsol | ( | GCG * | gcg, |
| GCG_SOLVER * | solver | ||
| ) |
◆ GCGsolverUpdate()
| SCIP_RETCODE GCGsolverUpdate | ( | GCG * | gcg, |
| SCIP * | pricingprob, | ||
| GCG_SOLVER * | solver, | ||
| int | probnr, | ||
| SCIP_Bool | varobjschanged, | ||
| SCIP_Bool | varbndschanged, | ||
| SCIP_Bool | consschanged | ||
| ) |
calls update method of GCG pricing solver
- Parameters
-
gcg GCG data structure pricingprob the pricing problem that should be solved solver pricing solver probnr number of the pricing problem varobjschanged have the objective coefficients changed? varbndschanged have the lower and upper bounds changed? consschanged have the constraints changed?
◆ GCGsolverSolve()
| SCIP_RETCODE GCGsolverSolve | ( | GCG * | gcg, |
| SCIP * | pricingprob, | ||
| GCG_SOLVER * | solver, | ||
| SCIP_Bool | redcost, | ||
| SCIP_Bool | heuristic, | ||
| int | probnr, | ||
| SCIP_Real | dualsolconv, | ||
| SCIP_Real * | lowerbound, | ||
| GCG_PRICINGSTATUS * | status, | ||
| SCIP_Bool * | solved | ||
| ) |
calls heuristic or exact solving method of GCG pricing solver
- Note
- This method has to be threadsafe!
- Parameters
-
gcg GCG data structure pricingprob the pricing problem that should be solved solver pricing solver redcost is reduced cost (TRUE) or Farkas (FALSE) pricing performed? heuristic shall the pricing problem be solved heuristically? probnr number of the pricing problem dualsolconv dual solution of the corresponding convexity constraint lowerbound pointer to store lower bound of pricing problem status pointer to store the returned pricing status solved pointer to store whether the solution method was called
Definition at line 293 of file solver.c.
References GCG_Solver::exactenabled, FALSE, GCG_PRICINGSTATUS_NOTAPPLICABLE, GCGgetMasterprob(), GCG_Solver::heurenabled, GCG_Solver::heurfarkascalls, GCG_Solver::heurfarkasclock, GCG_Solver::heurredcostcalls, GCG_Solver::heurredcostclock, NULL, GCG_Solver::optfarkascalls, GCG_Solver::optfarkasclock, GCG_Solver::optredcostcalls, GCG_Solver::optredcostclock, SCIP_CALL, SCIP_CALL_ABORT, SCIP_OKAY, SCIPstartClock(), SCIPstopClock(), and TRUE.
◆ GCGsolverGetData()
| GCG_SOLVERDATA * GCGsolverGetData | ( | GCG_SOLVER * | solver | ) |
gets user data of GCG pricing solver
- Parameters
-
solver pricing solver
Definition at line 400 of file solver.c.
References NULL, and GCG_Solver::solverdata.
Referenced by GCG_DECL_SOLVEREXITSOL(), GCG_DECL_SOLVERFREE(), GCG_DECL_SOLVERINITSOL(), GCG_DECL_SOLVERSOLVE(), GCG_DECL_SOLVERSOLVEHEUR(), GCG_DECL_SOLVERUPDATE(), and solverGcgPrepareNestedSolver().
◆ GCGsolverSetData()
| void GCGsolverSetData | ( | GCG_SOLVER * | solver, |
| GCG_SOLVERDATA * | solverdata | ||
| ) |
sets user data of GCG pricing solver
- Parameters
-
solver pricing solver solverdata pricing solver data
Definition at line 410 of file solver.c.
References NULL, and GCG_Solver::solverdata.
Referenced by GCG_DECL_SOLVERFREE().
◆ GCGsolverGetName()
| const char * GCGsolverGetName | ( | GCG_SOLVER * | solver | ) |
gets name of GCG pricing solver
- Parameters
-
solver pricing solver
Definition at line 421 of file solver.c.
References GCG_Solver::name, and NULL.
Referenced by gcg::Pricingcontroller::evaluatePricingjob(), GCGpricerPrintListOfSolvers(), GCGpricerPrintPricingStatistics(), and ObjPricerGcg::pricingLoop().
◆ GCGsolverGetDesc()
| const char * GCGsolverGetDesc | ( | GCG_SOLVER * | solver | ) |
gets description of GCG pricing solver
- Parameters
-
solver pricing solver
Definition at line 431 of file solver.c.
References GCG_Solver::desc, and NULL.
Referenced by GCGpricerPrintListOfSolvers().
◆ GCGsolverGetPriority()
| int GCGsolverGetPriority | ( | GCG_SOLVER * | solver | ) |
gets priority of GCG pricing solver
- Parameters
-
solver pricing solver
Definition at line 441 of file solver.c.
References NULL, and GCG_Solver::priority.
Referenced by GCGpricerPrintListOfSolvers(), and gcg::SCIP_DECL_SORTPTRCOMP().
◆ GCGsolverIsHeurEnabled()
| SCIP_Bool GCGsolverIsHeurEnabled | ( | GCG_SOLVER * | solver | ) |
gets whether heuristic solving method of GCG pricing solver is enabled
- Parameters
-
solver pricing solver
Definition at line 451 of file solver.c.
References GCG_Solver::heurenabled, NULL, and SCIP_Bool.
Referenced by GCGpricerPrintListOfSolvers(), GCGpricingjobNextSolver(), GCGpricingjobResetHeuristic(), GCGpricingjobResetSolver(), GCGpricingjobSetup(), and gcg::Pricingcontroller::initSol().
◆ GCGsolverIsExactEnabled()
| SCIP_Bool GCGsolverIsExactEnabled | ( | GCG_SOLVER * | solver | ) |
gets whether exact solving method of GCG pricing solver is enabled
- Parameters
-
solver pricing solver
Definition at line 461 of file solver.c.
References GCG_Solver::exactenabled, NULL, and SCIP_Bool.
Referenced by GCGpricerPrintListOfSolvers(), GCGpricingjobNextSolver(), GCGpricingjobResetSolver(), and gcg::Pricingcontroller::initSol().
◆ GCGsolverGetOptFarkasCalls()
| int GCGsolverGetOptFarkasCalls | ( | GCG_SOLVER * | solver | ) |
gets number of exact Farkas pricing calls of pricing solver
- Parameters
-
solver pricing solver
Definition at line 471 of file solver.c.
References NULL, and GCG_Solver::optfarkascalls.
Referenced by GCGpricerPrintPricingStatistics().
◆ GCGsolverGetOptRedcostCalls()
| int GCGsolverGetOptRedcostCalls | ( | GCG_SOLVER * | solver | ) |
gets number of exact reduced cost pricing calls of pricing solver
- Parameters
-
solver pricing solver
Definition at line 481 of file solver.c.
References NULL, and GCG_Solver::optredcostcalls.
Referenced by GCGpricerPrintPricingStatistics().
◆ GCGsolverGetHeurFarkasCalls()
| int GCGsolverGetHeurFarkasCalls | ( | GCG_SOLVER * | solver | ) |
gets number of heuristic Farkas pricing calls of pricing solver
- Parameters
-
solver pricing solver
Definition at line 491 of file solver.c.
References GCG_Solver::heurfarkascalls, and NULL.
Referenced by GCGpricerPrintPricingStatistics().
◆ GCGsolverGetHeurRedcostCalls()
| int GCGsolverGetHeurRedcostCalls | ( | GCG_SOLVER * | solver | ) |
gets number of heuristic reduced cost pricing calls of pricing solver
- Parameters
-
solver pricing solver
Definition at line 501 of file solver.c.
References GCG_Solver::heurredcostcalls, and NULL.
Referenced by GCGpricerPrintPricingStatistics().
◆ GCGsolverGetOptFarkasTime()
| SCIP_Real GCGsolverGetOptFarkasTime | ( | GCG * | gcg, |
| GCG_SOLVER * | solver | ||
| ) |
gets exact Farkas pricing time of pricing solver
- Parameters
-
gcg GCG data structure solver pricing solver
Definition at line 511 of file solver.c.
References GCGgetMasterprob(), NULL, GCG_Solver::optfarkasclock, SCIP_Real, and SCIPgetClockTime().
Referenced by GCGpricerPrintPricingStatistics().
◆ GCGsolverGetOptRedcostTime()
| SCIP_Real GCGsolverGetOptRedcostTime | ( | GCG * | gcg, |
| GCG_SOLVER * | solver | ||
| ) |
gets exact reduced cost pricing time of pricing solver
- Parameters
-
gcg GCG data structure solver pricing solver
Definition at line 523 of file solver.c.
References GCGgetMasterprob(), NULL, GCG_Solver::optredcostclock, SCIP_Real, and SCIPgetClockTime().
Referenced by GCGpricerPrintPricingStatistics().
◆ GCGsolverGetHeurFarkasTime()
| SCIP_Real GCGsolverGetHeurFarkasTime | ( | GCG * | gcg, |
| GCG_SOLVER * | solver | ||
| ) |
gets heuristic Farkas pricing time of pricing solver
- Parameters
-
gcg GCG data structure solver pricing solver
Definition at line 535 of file solver.c.
References GCGgetMasterprob(), GCG_Solver::heurfarkasclock, NULL, SCIP_Real, and SCIPgetClockTime().
Referenced by GCGpricerPrintPricingStatistics().
◆ GCGsolverGetHeurRedcostTime()
| SCIP_Real GCGsolverGetHeurRedcostTime | ( | GCG * | gcg, |
| GCG_SOLVER * | solver | ||
| ) |
gets heuristic reduced cost pricing time of pricing solver
- Parameters
-
gcg GCG data structure solver pricing solver
Definition at line 547 of file solver.c.
References GCGgetMasterprob(), GCG_Solver::heurredcostclock, NULL, SCIP_Real, and SCIPgetClockTime().
Referenced by GCGpricerPrintPricingStatistics().