Scippy

GCG

Branch-and-Price & Column Generation for Everyone

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()

GCG_EXPORT SCIP_RETCODE GCGincludeSolverKnapsack ( GCG *  gcg)

creates the knapsack solver for pricing problems and includes it in GCG

Parameters
gcgGCG data structure

Definition at line 544 of file solver_knapsack.c.

References GCGpricerIncludeSolver(), NULL, SCIP_CALL, SCIP_OKAY, SOLVER_DESC, SOLVER_EXACTENABLED, SOLVER_HEURENABLED, SOLVER_NAME, SOLVER_PRIORITY, solverExitKnapsack, solverExitsolKnapsack, solverFreeKnapsack, solverInitKnapsack, solverInitsolKnapsack, and solverUpdateKnapsack.

Referenced by GCGincludeMasterPlugins().

◆ 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 ABS, BMSclearMemoryArray, BMScopyMemoryArray, FALSE, GCG_PRICINGSTATUS_INFEASIBLE, GCG_PRICINGSTATUS_NOTAPPLICABLE, GCG_PRICINGSTATUS_OPTIMAL, GCG_PRICINGSTATUS_UNKNOWN, NULL, SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_LONGINT_FORMAT, SCIP_OBJSENSE_MINIMIZE, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPfloor(), SCIPfreeBufferArray, SCIPgetCapacityKnapsack(), SCIPgetConss(), SCIPgetLhsLinear(), SCIPgetNBinVars(), SCIPgetNConss(), SCIPgetNIntVars(), SCIPgetNVars(), SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetObjsense(), SCIPgetRhsLinear(), SCIPgetValsLinear(), SCIPgetVars(), SCIPgetVarsKnapsack(), SCIPgetVarsLinear(), SCIPgetWeightsKnapsack(), SCIPisEQ(), SCIPisGE(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLE(), SCIPisNegative(), SCIPsolveKnapsackApproximately(), SCIPsolveKnapsackExactly(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetNegatedVar(), SCIPvarGetObj(), SCIPvarGetUbLocal(), SCIPvarIsNegated(), SCIPwarningMessage(), and TRUE.

Referenced by solveBlockProblem(), and solveKnapsack().