GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches

Detailed Description

mip solver for pricing problems

Author
Gerald Gamrath

Definition in file solver_mip.h.

#include "scip/scip.h"
#include "gcg/gcg.h"

Go to the source code of this file.

Functions

GCG_EXPORT SCIP_RETCODE GCGincludeSolverMip (GCG *gcg)
GCG_EXPORT GCG_PRICINGSTATUS getPricingstatus (SCIP *pricingprob)
GCG_EXPORT SCIP_RETCODE createColumnFromRay (GCG *gcg, SCIP *pricingprob, SCIP *subproblem, SCIP_HASHMAP *varmap, int probnr, GCG_COL **newcol)
GCG_EXPORT SCIP_RETCODE getColumnsFromPricingprob (GCG *gcg, SCIP *pricingprob, SCIP *subproblem, SCIP_HASHMAP *varmap, int probnr, SCIP_Bool checksols)

Function Documentation

◆ GCGincludeSolverMip()

◆ getPricingstatus()

GCG_EXPORT GCG_PRICINGSTATUS getPricingstatus ( SCIP * pricingprob)

get the status of the pricing problem

Parameters
pricingprobpricing problem SCIP data structure

Definition at line 592 of file solver_mip.c.

References assert(), GCG_PRICINGSTATUS_INFEASIBLE, GCG_PRICINGSTATUS_OPTIMAL, GCG_PRICINGSTATUS_SOLVERLIMIT, GCG_PRICINGSTATUS_UNBOUNDED, GCG_PRICINGSTATUS_UNKNOWN, getPricingstatus(), and SCIPdebugMessage().

Referenced by getPricingstatus(), solveProblem(), and solveProblem().

◆ createColumnFromRay()

GCG_EXPORT SCIP_RETCODE createColumnFromRay ( GCG * gcg,
SCIP * pricingprob,
SCIP * subproblem,
SCIP_HASHMAP * varmap,
int probnr,
GCG_COL ** newcol )

extracts ray from a subproblem used to solve a pricing problem pricing problem (or directly from the pricing problem if no subproblem is specified)

Parameters
gcgGCG data structure
pricingprobpricing problem SCIP data structure
subproblemSCIP data structure that contains the actual solution (if NULL pricingprob will be used)
varmapmapping of pricingprob vars to subproblem vars (can be NULL if subproblem is NULL)
probnrproblem number
newcolcolumn pointer to store new column

Definition at line 521 of file solver_mip.c.

References assert(), createColumnFromRay(), GCGcreateGcgCol(), i, SCIP_CALL(), SCIPdebugMessage(), SCIPfreeBufferArray(), and solval.

Referenced by createColumnFromRay(), solveProblem(), and solveProblem().

◆ getColumnsFromPricingprob()

GCG_EXPORT SCIP_RETCODE getColumnsFromPricingprob ( GCG * gcg,
SCIP * pricingprob,
SCIP * subproblem,
SCIP_HASHMAP * varmap,
int probnr,
SCIP_Bool checksols )

transforms feasible solutions of a subproblem used to solve a pricing problem pricing problem into columns (or directly of the pricing problem if no subproblem is specified)

Parameters
gcgGCG data structure
pricingprobpricing problem SCIP data structure
subproblemSCIP data structure that contains the actual solution (if NULL pricingprob will be used)
varmapmapping of pricingprob vars to subproblem vars (can be NULL if subproblem is NULL)
probnrproblem number
checksolsshould solutions be checked extensively

Definition at line 652 of file solver_mip.c.

References assert(), checkSolNew(), GCGcreateGcgColFromSol(), GCGpricerAddCol(), getColumnsFromPricingprob(), SCIP_CALL(), SCIPdebugMessage(), solutionHasInfiniteValue(), and success.

Referenced by getColumnsFromPricingprob(), solveProblem(), and solveProblem().