Detailed Description
public methods for GCG pricing solvers
private methods for GCG pricing solvers
Definition in file solver.h.
Go to the source code of this file.
Function Documentation
◆ GCGsolverCreate()
| GCG_EXPORT 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 - update method for solver - solving method for solver - heuristic solving method for solver - free method of solver - init method of solver - exit method of solver - initsol method of solver - exitsol method of solver solverdata pricing solver data
Definition at line 64 of file solver.c.
References assert(), GCG_DECL_SOLVEREXIT, GCG_DECL_SOLVEREXITSOL, GCG_DECL_SOLVERFREE, GCG_DECL_SOLVERINIT, GCG_DECL_SOLVERINITSOL, GCG_DECL_SOLVERSOLVE, GCG_DECL_SOLVERSOLVEHEUR, GCG_DECL_SOLVERUPDATE, GCGgetMasterprob(), GCGgetOrigprob(), GCGsolverCreate(), masterprob, and SCIP_CALL().
Referenced by GCGpricerIncludeSolver(), and GCGsolverCreate().
◆ GCGsolverFree()
| GCG_EXPORT 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 assert(), GCGgetMasterprob(), GCGsolverFree(), masterprob, SCIP_CALL(), and SCIPfreeMemory().
Referenced by GCGsolverFree().
◆ GCGsolverInit()
| GCG_EXPORT 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 assert(), GCGgetMasterprob(), GCGsolverInit(), GCG_Solver::heurfarkascalls, GCG_Solver::heurfarkasclock, GCG_Solver::heurredcostcalls, GCG_Solver::heurredcostclock, masterprob, GCG_Solver::optfarkascalls, GCG_Solver::optfarkasclock, GCG_Solver::optredcostcalls, GCG_Solver::optredcostclock, and SCIP_CALL().
Referenced by GCGsolverInit().
◆ GCGsolverExit()
| GCG_EXPORT SCIP_RETCODE GCGsolverExit | ( | GCG * | gcg, |
| GCG_SOLVER * | solver ) |
calls exit method of GCG pricing solver
- Parameters
-
gcg GCG data structure solver pricing solver
Definition at line 218 of file solver.c.
References assert(), GCGsolverExit(), and SCIP_CALL().
Referenced by GCGsolverExit().
◆ GCGsolverInitsol()
| GCG_EXPORT SCIP_RETCODE GCGsolverInitsol | ( | GCG * | gcg, |
| GCG_SOLVER * | solver ) |
calls solving process initialization method of GCG pricing solver
- Parameters
-
gcg GCG data structure solver pricing solver
Definition at line 235 of file solver.c.
References assert(), GCGsolverInitsol(), and SCIP_CALL().
Referenced by GCGsolverInitsol().
◆ GCGsolverExitsol()
| GCG_EXPORT SCIP_RETCODE GCGsolverExitsol | ( | GCG * | gcg, |
| GCG_SOLVER * | solver ) |
calls solving process deinitialization method of GCG pricing solver
- Parameters
-
gcg GCG data structure solver pricing solver
Definition at line 252 of file solver.c.
References assert(), GCGsolverExitsol(), and SCIP_CALL().
Referenced by GCGsolverExitsol().
◆ GCGsolverUpdate()
| GCG_EXPORT 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?
Definition at line 269 of file solver.c.
References assert(), GCGsolverUpdate(), and SCIP_CALL().
Referenced by GCGsolverUpdate().
◆ GCGsolverSolve()
| GCG_EXPORT 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
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 assert(), GCG_Solver::exactenabled, GCG_PRICINGSTATUS_NOTAPPLICABLE, GCGgetMasterprob(), GCGsolverSolve(), GCG_Solver::heurenabled, GCG_Solver::heurfarkascalls, GCG_Solver::heurfarkasclock, GCG_Solver::heurredcostcalls, GCG_Solver::heurredcostclock, masterprob, GCG_Solver::optfarkascalls, GCG_Solver::optfarkasclock, GCG_Solver::optredcostcalls, GCG_Solver::optredcostclock, and SCIP_CALL().
Referenced by GCGsolverSolve().