GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
solver_knapsack.h File Reference

Detailed Description

knapsack solver for pricing problems

Author
Gerald Gamrath

Definition in file solver_knapsack.h.

#include "scip/scip.h"
#include "gcg/gcg.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()

◆ 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
exactlyshould the pricing problem be solved to optimality or heuristically?
pricingprobpricing problem SCIP data structure
solvalpointer to store the solution objective value
statuspointer to store pricing problem status
solvarspointer to store solution vars (will be allocated as buffer array and must be freed afterwards)
solvalspointer to store solution vals (will be allocated as buffer array and must be freed afterwards)
nsolvarspointer 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().