Detailed Description
knapsack solver for pricing problems
Definition in file solver_knapsack.h.
Go to the source code of this file.
Functions | |
| GCG_EXPORT SCIP_RETCODE | GCGincludeSolverKnapsack (GCG *gcg) |
| GCG_EXPORT SCIP_RETCODE | GCGsolverKnapsackSolveKnapsack (SCIP_Bool exactly, SCIP *pricingprob, SCIP_Real *solval, GCG_PRICINGSTATUS *status, SCIP_VAR ***solvars, SCIP_Real **solvals, int *nsolvars) |
Function Documentation
◆ GCGincludeSolverKnapsack()
| GCG_EXPORT SCIP_RETCODE GCGincludeSolverKnapsack | ( | GCG * | gcg | ) |
creates the knapsack solver for pricing problems and includes it in GCG
- Parameters
-
gcg GCG data structure
Definition at line 544 of file solver_knapsack.c.
References GCGincludeSolverKnapsack(), GCGpricerIncludeSolver(), SCIP_CALL(), SOLVER_DESC, SOLVER_EXACTENABLED, SOLVER_HEURENABLED, SOLVER_NAME, SOLVER_PRIORITY, solverExitKnapsack, solverExitsolKnapsack, solverFreeKnapsack, solverInitKnapsack, solverInitsolKnapsack, and solverUpdateKnapsack.
Referenced by GCGincludeMasterPlugins(), and GCGincludeSolverKnapsack().
◆ GCGsolverKnapsackSolveKnapsack()
| GCG_EXPORT SCIP_RETCODE GCGsolverKnapsackSolveKnapsack | ( | SCIP_Bool | exactly, |
| SCIP * | pricingprob, | ||
| SCIP_Real * | solval, | ||
| GCG_PRICINGSTATUS * | status, | ||
| SCIP_VAR *** | solvars, | ||
| SCIP_Real ** | solvals, | ||
| int * | nsolvars ) |
- Parameters
-
exactly should the pricing problem be solved to optimality or heuristically? pricingprob pricing problem SCIP data structure solval pointer to store the solution objective value status pointer to store pricing problem status solvars pointer to store solution vars (will be allocated as buffer array and must be freed afterwards) solvals pointer to store solution vals (will be allocated as buffer array and must be freed afterwards) nsolvars pointer to store the number of solution vars
Definition at line 107 of file solver_knapsack.c.
References assert(), GCG_PRICINGSTATUS_INFEASIBLE, GCG_PRICINGSTATUS_NOTAPPLICABLE, GCG_PRICINGSTATUS_OPTIMAL, GCG_PRICINGSTATUS_UNKNOWN, GCGsolverKnapsackSolveKnapsack(), i, j, SCIP_CALL(), SCIPdebugMessage(), SCIPfreeBufferArray(), solval, and success.
Referenced by GCGsolverKnapsackSolveKnapsack(), solveBlockProblem(), and solveKnapsack().