Loading...
Searching...
No Matches
solver.c
Go to the documentation of this file.
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
70 SCIP_Bool heurenabled, /**< flag to indicate whether heuristic solving method of the solver is enabled */
71 SCIP_Bool exactenabled, /**< flag to indicate whether exact solving method of the solver is enabled */
94 SCIPwarningMessage(masterprob, "Solver <%s> has neither heuristic nor exact solving method and will not be included.\n", name);
126 (void) SCIPsnprintf(paramdesc, SCIP_MAXSTRLEN, "flag to indicate whether heuristic solving method of solver <%s> is enabled", name);
136 (void) SCIPsnprintf(paramdesc, SCIP_MAXSTRLEN, "flag to indicate whether exact solving method of solver <%s> is enabled", name);
337 SCIP_CALL( solver->solversolveheur(gcg, pricingprob, solver, probnr, dualsolconv, lowerbound, status) );
#define SCIP_MAXSTRLEN
#define SCIP_Bool
#define SCIP_ALLOC(x)
#define SCIP_Real
#define SCIP_CALL_ABORT(x)
#define TRUE
#define FALSE
GCG interface methods.
void SCIPwarningMessage(SCIP *scip, const char *formatstr,...)
GCG_EXPORT SCIP_Bool GCGsolverIsHeurEnabled(GCG_SOLVER *solver)
Definition solver.c:451
GCG_EXPORT int GCGsolverGetOptRedcostCalls(GCG_SOLVER *solver)
Definition solver.c:481
GCG_EXPORT SCIP_Real GCGsolverGetOptFarkasTime(GCG *gcg, GCG_SOLVER *solver)
Definition solver.c:511
GCG_EXPORT int GCGsolverGetHeurFarkasCalls(GCG_SOLVER *solver)
Definition solver.c:491
GCG_EXPORT int GCGsolverGetHeurRedcostCalls(GCG_SOLVER *solver)
Definition solver.c:501
GCG_EXPORT SCIP_Real GCGsolverGetHeurFarkasTime(GCG *gcg, GCG_SOLVER *solver)
Definition solver.c:535
GCG_EXPORT SCIP_Real GCGsolverGetHeurRedcostTime(GCG *gcg, GCG_SOLVER *solver)
Definition solver.c:547
GCG_EXPORT int GCGsolverGetOptFarkasCalls(GCG_SOLVER *solver)
Definition solver.c:471
GCG_EXPORT SCIP_Real GCGsolverGetOptRedcostTime(GCG *gcg, GCG_SOLVER *solver)
Definition solver.c:523
GCG_EXPORT SCIP_Bool GCGsolverIsExactEnabled(GCG_SOLVER *solver)
Definition solver.c:461
GCG_EXPORT GCG_SOLVERDATA * GCGsolverGetData(GCG_SOLVER *solver)
Definition solver.c:400
GCG_EXPORT void GCGsolverSetData(GCG_SOLVER *solver, GCG_SOLVERDATA *solverdata)
Definition solver.c:410
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
SCIP_RETCODE SCIPaddIntParam(SCIP *scip, const char *name, const char *desc, int *valueptr, SCIP_Bool isadvanced, int defaultvalue, int minvalue, int maxvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_RETCODE SCIPaddBoolParam(SCIP *scip, const char *name, const char *desc, SCIP_Bool *valueptr, SCIP_Bool isadvanced, SCIP_Bool defaultvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_DECL_SORTPTRCOMP(SCIPbendersComp)
#define SCIPallocMemory(scip, ptr)
SCIP_RETCODE SCIPresetClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPcreateCPUClock(SCIP *scip, SCIP_CLOCK **clck)
SCIP_RETCODE SCIPstopClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPfreeClock(SCIP *scip, SCIP_CLOCK **clck)
SCIP_Real SCIPgetClockTime(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPstartClock(SCIP *scip, SCIP_CLOCK *clck)
int SCIPsnprintf(char *t, int len, const char *s,...)
SCIPfreeMemory(GCGgetOrigprob(gcg), &divingdata)
static assert(heur !=NULL)
SCIP_CALL(SCIPgetExternBranchCands(origprob, &lpcands, &lpcandssol, NULL, &nlpcands, NULL, NULL, NULL, NULL))
#define NULL
#define BMSduplicateMemoryArray(ptr, source, num)
#define BMSfreeMemoryArray(ptr)
Definition class_conspartition.cpp:44
GCG variable pricer.
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)
Definition solver.c:64
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)
Definition solver.c:293
SCIP_RETCODE GCGsolverUpdate(GCG *gcg, SCIP *pricingprob, GCG_SOLVER *solver, int probnr, SCIP_Bool varobjschanged, SCIP_Bool varbndschanged, SCIP_Bool consschanged)
Definition solver.c:269
public methods for GCG pricing solvers
data structures for solvers
struct SCIP_Clock SCIP_CLOCK
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP