Scippy

GCG

Branch-and-Price & Column Generation for Everyone

Detailed Description

This page contains a list of all relaxators which are currently available.

Files

file  relax_gcg.h
 GCG relaxator.
 
GCG_EXPORT SCIP_RETCODE GCGincludeRelaxGcg (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxIncludeBranchrule (GCG *gcg, SCIP_BRANCHRULE **branchrule, GCG_BRANCHRULE **gcgbranchrule, const char *name, const char *desc, int priority, int maxdepth, SCIP_Real maxbounddist, SCIP_BRANCHRULEDATA *branchruledata, GCG_DECL_BRANCHACTIVEMASTER((*branchactivemaster)), GCG_DECL_BRANCHDEACTIVEMASTER((*branchdeactivemaster)), GCG_DECL_BRANCHPROPMASTER((*branchpropmaster)), GCG_DECL_BRANCHMASTERSOLVED((*branchmastersolved)), GCG_DECL_BRANCHDATADELETE((*branchdatadelete)), GCG_DECL_BRANCHNEWCOL((*branchnewcol)), GCG_DECL_BRANCHGETEXTENDEDMASTERCONS((*branchgetextendedmastercons)), GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF((*branchgetextendedmasterconscoeff)))
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBranchActiveMaster (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBranchDeactiveMaster (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBranchPropMaster (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_RESULT *result)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBranchMasterSolved (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_Real newlowerbound)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBranchDataDelete (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA **branchdata, SCIP_Bool origbranch, SCIP_Bool force)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBranchNewCol (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_VAR *mastervar)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBranchGetExtendedMasterCons (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, GCG_EXTENDEDMASTERCONSDATA **extendedmasterconsdata)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBranchGetAllActiveExtendedMasterConss (GCG *gcg, GCG_BRANCHRULE ***branchrules, GCG_BRANCHDATA ***branchdata, GCG_EXTENDEDMASTERCONSDATA ***extendedmasterconsdata, int *nextendedmasterconss)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxTransOrigToMasterCons (GCG *gcg, SCIP_CONS *cons, SCIP_CONS **transcons)
 
GCG_EXPORT SCIP_SOL * GCGrelaxGetCurrentOrigSol (GCG *gcg)
 
GCG_EXPORT SCIP_Bool GCGrelaxIsOrigSolFeasible (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxStartProbing (GCG *gcg, SCIP_HEUR *probingheur)
 
GCG_EXPORT SCIP_HEUR * GCGrelaxGetProbingheur (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxNewProbingnodeOrig (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxNewProbingnodeMaster (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxNewProbingnodeMasterCons (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_CONS **origbranchconss, int norigbranchconss, int maxorigbranchconss)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxBacktrackProbing (GCG *gcg, int probingdepth)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxPerformProbing (GCG *gcg, int maxlpiterations, SCIP_Longint *nlpiterations, SCIP_Real *lpobjvalue, SCIP_Bool *lpsolved, SCIP_Bool *lperror, SCIP_Bool *cutoff)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxPerformProbingWithPricing (GCG *gcg, int maxpricerounds, SCIP_Longint *nlpiterations, int *npricerounds, SCIP_Real *lpobjvalue, SCIP_Bool *lpsolved, SCIP_Bool *lperror, SCIP_Bool *cutoff)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxEndProbing (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxUpdateCurrentSol (GCG *gcg)
 
SCIP_RETCODE GCGinitializeMasterProblemSolve (GCG *gcg)
 
SCIP_RETCODE GCGstashLimitSettings (GCG *gcg)
 
SCIP_RETCODE GCGrestoreLimitSettings (GCG *gcg)
 
SCIP_RETCODE GCGsetPricingProblemParameters (GCG_DECTYPE dectype, SCIP *pricingprob, int clocktype, SCIP_Real infinity, SCIP_Real epsilon, SCIP_Real sumepsilon, SCIP_Real feastol, SCIP_Real lpfeastolfactor, SCIP_Real dualfeastol, SCIP_Bool enableppcuts)
 
GCG_EXPORT GCG * GCGrelaxGetGcg (SCIP *origprob)
 
GCG_EXPORT SCIP_RETCODE GCGrelaxIncludeSepa (GCG *gcg, SCIP_SEPA **sepa, GCG_SEPA **gcgsepa, const char *name, const char *desc, int priority, int freq, SCIP_Real maxbounddist, SCIP_Bool usessubscip, SCIP_Bool delay, SCIP_DECL_SEPAEXECLP((*sepaexeclp)), SCIP_DECL_SEPAEXECSOL((*sepaexecsol)), SCIP_SEPADATA *sepadata, GCG_DECL_SEPAGETCOLCOEFFICIENT((*sepagetcolcoef)), GCG_DECL_SEPAMASTERCUTDELETE((*sepamastercutdelete)))
 

Function Documentation

◆ GCGincludeRelaxGcg()

◆ GCGrelaxIncludeBranchrule()

GCG_EXPORT SCIP_RETCODE GCGrelaxIncludeBranchrule ( GCG *  gcg,
SCIP_BRANCHRULE **  branchrule,
GCG_BRANCHRULE **  gcgbranchrule,
const char *  name,
const char *  desc,
int  priority,
int  maxdepth,
SCIP_Real  maxbounddist,
SCIP_BRANCHRULEDATA *  branchruledata,
GCG_DECL_BRANCHACTIVEMASTER((*branchactivemaster))  ,
GCG_DECL_BRANCHDEACTIVEMASTER((*branchdeactivemaster))  ,
GCG_DECL_BRANCHPROPMASTER((*branchpropmaster))  ,
GCG_DECL_BRANCHMASTERSOLVED((*branchmastersolved))  ,
GCG_DECL_BRANCHDATADELETE((*branchdatadelete))  ,
GCG_DECL_BRANCHNEWCOL((*branchnewcol))  ,
GCG_DECL_BRANCHGETEXTENDEDMASTERCONS((*branchgetextendedmastercons))  ,
GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF((*branchgetextendedmasterconscoeff))   
)

includes a branching rule into the relaxator data

Parameters
gcgSCIP data structure
branchrulebranching rule for which callback methods are saved
gcgbranchrulepointer to store created GCG branch rule (can be NULL)
namename of branching rule
descdescription of branching rule
prioritypriority of the branching rule
maxdepthmaximal depth level, up to which this branching rule should be used (or -1)
maxbounddistmaximal relative distance from current node's dual bound to primal bound compared to best node's dual bound for applying branching rule (0.0: only on current best node, 1.0: on all nodes)
branchruledatabranching rule data

Definition at line 3717 of file relax_gcg.c.

References GCG_Branchrule::branchrule, SCIP_RelaxData::branchrules, ensureSizeBranchrules(), GCGconsIntegralorigAddBranchrule(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), SCIP_RelaxData::nbranchrules, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, SCIPincludeBranchruleBasic(), and SCIPrelaxGetData().

Referenced by GCGincludeBranchruleBPStrong(), GCGincludeBranchruleCompBnd(), GCGincludeBranchruleGeneric(), GCGincludeBranchruleOrig(), and GCGincludeBranchruleRyanfoster().

◆ GCGrelaxBranchActiveMaster()

GCG_EXPORT SCIP_RETCODE GCGrelaxBranchActiveMaster ( GCG *  gcg,
GCG_BRANCHRULE *  branchrule,
GCG_BRANCHDATA *  branchdata 
)

perform activation method of the given branchrule for the given branchdata

Parameters
gcgGCG data structure
branchrulebranching rule that did the branching
branchdatadata representing the branching decision

Definition at line 3781 of file relax_gcg.c.

References addActiveBranchExtendedmastercons(), GCGgetRelax(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPrelaxGetData().

Referenced by SCIP_DECL_CONSACTIVE().

◆ GCGrelaxBranchDeactiveMaster()

GCG_EXPORT SCIP_RETCODE GCGrelaxBranchDeactiveMaster ( GCG *  gcg,
GCG_BRANCHRULE *  branchrule,
GCG_BRANCHDATA *  branchdata 
)

perform deactivation method of the given branchrule for the given branchdata

Parameters
gcgGCG data structure
branchrulebranching rule that did the branching
branchdatadata representing the branching decision

Definition at line 3809 of file relax_gcg.c.

References dropActiveBranchExtendedmastercons(), GCGgetRelax(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPrelaxGetData().

Referenced by SCIP_DECL_CONSDEACTIVE().

◆ GCGrelaxBranchPropMaster()

GCG_EXPORT SCIP_RETCODE GCGrelaxBranchPropMaster ( GCG *  gcg,
GCG_BRANCHRULE *  branchrule,
GCG_BRANCHDATA *  branchdata,
SCIP_RESULT *  result 
)

perform propagation method of the given branchrule for the given branchdata

Parameters
gcgGCG data structure
branchrulebranching rule that did the branching
branchdatadata representing the branching decision
resultpointer to store the result of the propagation call

Definition at line 3837 of file relax_gcg.c.

References NULL, SCIP_CALL, SCIP_DIDNOTRUN, and SCIP_OKAY.

Referenced by SCIP_DECL_CONSPROP().

◆ GCGrelaxBranchMasterSolved()

GCG_EXPORT SCIP_RETCODE GCGrelaxBranchMasterSolved ( GCG *  gcg,
GCG_BRANCHRULE *  branchrule,
GCG_BRANCHDATA *  branchdata,
SCIP_Real  newlowerbound 
)

perform method of the given branchrule that is called after the master LP is solved

Parameters
gcgGCG data structure
branchrulebranching rule that did the branching
branchdatadata representing the branching decision
newlowerboundthe new local lowerbound

Definition at line 3961 of file relax_gcg.c.

References NULL, SCIP_CALL, and SCIP_OKAY.

Referenced by relaxExecGcgDantzigWolfe().

◆ GCGrelaxBranchDataDelete()

GCG_EXPORT SCIP_RETCODE GCGrelaxBranchDataDelete ( GCG *  gcg,
GCG_BRANCHRULE *  branchrule,
GCG_BRANCHDATA **  branchdata,
SCIP_Bool  origbranch,
SCIP_Bool  force 
)

frees branching data created by the given branchrule

Parameters
gcgGCG data structure
branchrulebranching rule that did the branching
branchdatadata representing the branching decision
origbranchtrue iff an origbranch triggered this call
forcebranch data must be deleted if true

Definition at line 3858 of file relax_gcg.c.

References GCGgetMasterprob(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPfreeMemory.

Referenced by SCIP_DECL_CONSDELETE().

◆ GCGrelaxBranchNewCol()

GCG_EXPORT SCIP_RETCODE GCGrelaxBranchNewCol ( GCG *  gcg,
GCG_BRANCHRULE *  branchrule,
GCG_BRANCHDATA *  branchdata,
SCIP_VAR *  mastervar 
)

notifies the branching rule that a new mastervariable was created while this node was active

Parameters
gcgGCG data structure
branchrulebranching rule that did the branching
branchdatadata representing the branching decision
mastervarnew mastervariable that was created

Definition at line 3885 of file relax_gcg.c.

References NULL, SCIP_CALL, and SCIP_OKAY.

Referenced by forwardUpdateSeenHistory().

◆ GCGrelaxBranchGetExtendedMasterCons()

GCG_EXPORT SCIP_RETCODE GCGrelaxBranchGetExtendedMasterCons ( GCG *  gcg,
GCG_BRANCHRULE *  branchrule,
GCG_BRANCHDATA *  branchdata,
GCG_EXTENDEDMASTERCONSDATA **  extendedmasterconsdata 
)

gets the extendedmasterconsdata created by this branching rule, if any

Parameters
gcgGCG data structure
branchrulebranching rule that did the branching
branchdatadata representing the branching decision
extendedmasterconsdatathe extendedmasterconsdata to grab

Definition at line 3905 of file relax_gcg.c.

References NULL, SCIP_CALL, and SCIP_OKAY.

◆ GCGrelaxBranchGetAllActiveExtendedMasterConss()

GCG_EXPORT SCIP_RETCODE GCGrelaxBranchGetAllActiveExtendedMasterConss ( GCG *  gcg,
GCG_BRANCHRULE ***  branchrules,
GCG_BRANCHDATA ***  branchdata,
GCG_EXTENDEDMASTERCONSDATA ***  extendedmasterconsdata,
int *  nextendedmasterconss 
)

get extended master conss of all active nods

get extended master conss of all active nodes

Parameters
gcgGCG data structure
branchrulesbranching rules that created extended master conss (can be NULL)
branchdatadata represeting the branching decisions of the active nodes (can be NULL)
extendedmasterconsdataarray of extended master conss generated by branching in all currently active nodes
nextendedmasterconssnumber of currently active branching rules that created extended master conss

Definition at line 3931 of file relax_gcg.c.

References SCIP_RelaxData::activebranchdata, SCIP_RelaxData::activebranchextendedmasterconss, SCIP_RelaxData::activebranchrules, GCGgetRelax(), SCIP_RelaxData::nactivebranchextendedmasterconss, NULL, SCIP_OKAY, and SCIPrelaxGetData().

Referenced by GCGcreateGcgCol(), ObjPricerGcg::getStabilizedDualObjectiveValue(), ObjPricerGcg::pricingLoop(), ObjPricerGcg::setPricingObjs(), gcg::Stabilization::updateStabcenterextendedmasterconsvals(), and gcg::Stabilization::updateStabilityCenter().

◆ GCGrelaxTransOrigToMasterCons()

GCG_EXPORT SCIP_RETCODE GCGrelaxTransOrigToMasterCons ( GCG *  gcg,
SCIP_CONS *  cons,
SCIP_CONS **  transcons 
)

transformes a constraint of the original problem into the master variable space and adds it to the master problem

transforms a constraint of the original problem into the master variable space and stores information about the constraints in the variable

Parameters
gcgGCG data structure
consthe constraint that should be transformed
transconspointer to store the transformed constraint

Definition at line 3982 of file relax_gcg.c.

References ensureSizeMasterConss(), FALSE, SCIP_RelaxData::gcg, GCGconsGetLhs(), GCGconsGetRhs(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGmasterAddMasterconsToHashmap(), GCGmasterVarGetNOrigvars(), GCGmasterVarGetOrigvals(), GCGmasterVarGetOrigvars(), GCGoriginalVarAddCoef(), SCIP_RelaxData::masterconss, SCIP_RelaxData::nmasterconss, NULL, SCIP_RelaxData::origmasterconss, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPaddCoefLinear(), SCIPcaptureCons(), SCIPconsGetName(), SCIPconsIsLocal(), SCIPconsIsStickingAtNode(), SCIPcreateConsLinear(), SCIPgetNVars(), SCIPgetNVarsLinear(), SCIPgetValsLinear(), SCIPgetVars(), SCIPgetVarsLinear(), SCIPisFeasZero(), SCIPrelaxGetData(), SCIPsnprintf(), and TRUE.

Referenced by GCG_DECL_BRANCHACTIVEMASTER().

◆ GCGrelaxGetCurrentOrigSol()

GCG_EXPORT SCIP_SOL * GCGrelaxGetCurrentOrigSol ( GCG *  gcg)

returns the current solution for the original problem

Parameters
gcgGCG data structure

Definition at line 4309 of file relax_gcg.c.

References SCIP_RelaxData::currentorigsol, GCGgetRelax(), NULL, and SCIPrelaxGetData().

Referenced by initBranch(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_HEUREXEC(), and SCIP_DECL_SEPAEXECLP().

◆ GCGrelaxIsOrigSolFeasible()

GCG_EXPORT SCIP_Bool GCGrelaxIsOrigSolFeasible ( GCG *  gcg)

returns whether the current solution is primal feasible in the original problem

Parameters
gcgGCG data structure

Definition at line 4328 of file relax_gcg.c.

References GCGgetRelax(), NULL, SCIP_RelaxData::origsolfeasible, SCIP_Bool, and SCIPrelaxGetData().

Referenced by SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_HEUREXEC(), and SCIP_DECL_SEPAEXECLP().

◆ GCGrelaxStartProbing()

GCG_EXPORT SCIP_RETCODE GCGrelaxStartProbing ( GCG *  gcg,
SCIP_HEUR *  probingheur 
)

start probing mode on both the original and master problems

Note
This mode is intended for working on the original variables but using the master LP; it currently only supports bound changes on the original variables, but no additional rows
Parameters
gcgGCG data structure
probingheurheuristic that started probing mode, or NULL

Definition at line 4390 of file relax_gcg.c.

References SCIP_RelaxData::currentorigsol, SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), SCIP_RelaxData::masterinprobing, NULL, SCIP_RelaxData::origsolfeasible, SCIP_RelaxData::probingheur, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPcreateSolCopy(), SCIPerrorMessage, SCIPrelaxGetData(), SCIPstartProbing(), SCIP_RelaxData::storedfeasibility, SCIP_RelaxData::storedorigsol, and TRUE.

Referenced by applyProbing(), executeStrongBranching(), and SCIP_DECL_HEUREXEC().

◆ GCGrelaxGetProbingheur()

GCG_EXPORT SCIP_HEUR * GCGrelaxGetProbingheur ( GCG *  gcg)

returns the heuristic that started probing in the master problem, or NULL

Parameters
gcgGCG data structure

Definition at line 4437 of file relax_gcg.c.

References GCGgetRelax(), NULL, SCIP_RelaxData::probingheur, and SCIPrelaxGetData().

Referenced by createOriginalProblemSolution(), and GCGtransformMastersolToOrigsol().

◆ GCGrelaxNewProbingnodeOrig()

GCG_EXPORT SCIP_RETCODE GCGrelaxNewProbingnodeOrig ( GCG *  gcg)

add a new probing node the original problem together with an original branching constraint

Note
A corresponding probing node must be added to the master problem right before solving the probing LP
Parameters
gcgGCG data structure

Definition at line 4459 of file relax_gcg.c.

References GCGconsOrigbranchGetActiveCons(), GCGcreateConsOrigbranch(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), SCIP_RelaxData::masterinprobing, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPaddConsNode(), SCIPerrorMessage, SCIPgetCurrentNode(), SCIPgetProbingDepth(), SCIPnewProbingNode(), SCIPrelaxGetData(), and SCIPreleaseCons().

Referenced by applyProbing(), executeStrongBranching(), and SCIP_DECL_HEUREXEC().

◆ GCGrelaxNewProbingnodeMaster()

GCG_EXPORT SCIP_RETCODE GCGrelaxNewProbingnodeMaster ( GCG *  gcg)

add a new probing node the master problem together with a master branching constraint which ensures that bound changes are transferred to master and pricing problems

Note
A corresponding probing node must have been added to the original problem beforehand; furthermore, this method must be called after bound changes to the original problem have been made
Parameters
gcgGCG data structure

Definition at line 4508 of file relax_gcg.c.

References SCIP_RelaxData::gcg, GCGconsMasterbranchGetActiveCons(), GCGcreateConsMasterbranch(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), SCIP_RelaxData::masterinprobing, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPaddConsNode(), SCIPerrorMessage, SCIPgetCurrentNode(), SCIPgetProbingDepth(), SCIPnewProbingNode(), SCIPrelaxGetData(), and SCIPreleaseCons().

Referenced by applyProbing(), executeStrongBranching(), and SCIP_DECL_HEUREXEC().

◆ GCGrelaxNewProbingnodeMasterCons()

GCG_EXPORT SCIP_RETCODE GCGrelaxNewProbingnodeMasterCons ( GCG *  gcg,
GCG_BRANCHRULE *  branchrule,
GCG_BRANCHDATA *  branchdata,
SCIP_CONS **  origbranchconss,
int  norigbranchconss,
int  maxorigbranchconss 
)

add a new probing node the master problem together with a master branching constraint which ensures that bound changes are transferred to master and pricing problems as well as additional constraints

Note
A corresponding probing node must have been added to the original problem beforehand; furthermore, this method must be called after bound changes to the original problem have been made
Parameters
gcgGCG data structure
branchrulepointer to the branching rule
branchdatabranching data
origbranchconssoriginal constraints enforcing the branching decision
norigbranchconssnumber of original constraints
maxorigbranchconsscapacity of origbranchconss

Definition at line 4562 of file relax_gcg.c.

References SCIP_RelaxData::gcg, GCGconsMasterbranchGetActiveCons(), GCGcreateConsMasterbranch(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), SCIP_RelaxData::masterinprobing, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPaddConsNode(), SCIPerrorMessage, SCIPgetCurrentNode(), SCIPgetProbingDepth(), SCIPnewProbingNode(), SCIPrelaxGetData(), and SCIPreleaseCons().

Referenced by newProbingNodeRyanfosterMaster().

◆ GCGrelaxBacktrackProbing()

GCG_EXPORT SCIP_RETCODE GCGrelaxBacktrackProbing ( GCG *  gcg,
int  probingdepth 
)

add probing nodes to both the original and master problem; furthermore, add origbranch and masterbranch constraints to transfer branching decisions from the original to the master problem

Parameters
gcgGCG data structure
probingdepthprobing depth of the node in the probing path that should be reactivated

Definition at line 4618 of file relax_gcg.c.

References SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), SCIP_RelaxData::masterinprobing, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPbacktrackProbing(), SCIPerrorMessage, and SCIPrelaxGetData().

Referenced by SCIP_DECL_HEUREXEC().

◆ GCGrelaxPerformProbing()

GCG_EXPORT SCIP_RETCODE GCGrelaxPerformProbing ( GCG *  gcg,
int  maxlpiterations,
SCIP_Longint *  nlpiterations,
SCIP_Real *  lpobjvalue,
SCIP_Bool *  lpsolved,
SCIP_Bool *  lperror,
SCIP_Bool *  cutoff 
)

solve the master probing LP without pricing

Parameters
gcgGCG data structure
maxlpiterationsmaximum number of lp iterations allowed
nlpiterationspointer to store the number of performed LP iterations (or NULL)
lpobjvaluepointer to store the lp obj value if lp was solved
lpsolvedpointer to store whether the lp was solved
lperrorpointer to store whether an unresolved LP error occured or the solving process should be stopped (e.g., due to a time limit)
cutoffpointer to store whether the probing direction is infeasible

Definition at line 4756 of file relax_gcg.c.

References FALSE, NULL, performProbing(), SCIP_CALL, and SCIP_OKAY.

Referenced by executeStrongBranching(), and SCIP_DECL_HEUREXEC().

◆ GCGrelaxPerformProbingWithPricing()

GCG_EXPORT SCIP_RETCODE GCGrelaxPerformProbingWithPricing ( GCG *  gcg,
int  maxpricerounds,
SCIP_Longint *  nlpiterations,
int *  npricerounds,
SCIP_Real *  lpobjvalue,
SCIP_Bool *  lpsolved,
SCIP_Bool *  lperror,
SCIP_Bool *  cutoff 
)

solve the master probing LP with pricing

Parameters
gcgGCG data structure
maxpriceroundsmaximum number of pricing rounds allowed
nlpiterationspointer to store the number of performed LP iterations (or NULL)
npriceroundspointer to store the number of performed pricing rounds (or NULL)
lpobjvaluepointer to store the lp obj value if lp was solved
lpsolvedpointer to store whether the lp was solved
lperrorpointer to store whether an unresolved LP error occured or the solving process should be stopped (e.g., due to a time limit)
cutoffpointer to store whether the probing direction is infeasible

Definition at line 4775 of file relax_gcg.c.

References performProbing(), SCIP_CALL, SCIP_OKAY, and TRUE.

Referenced by applyProbing(), executeStrongBranching(), performWeightedPricing(), and SCIP_DECL_HEUREXEC().

◆ GCGrelaxEndProbing()

◆ GCGrelaxUpdateCurrentSol()

◆ GCGinitializeMasterProblemSolve()

SCIP_RETCODE GCGinitializeMasterProblemSolve ( GCG *  gcg)

initialize master problem for solving

Parameters
gcgGCG data structure

Definition at line 5686 of file relax_gcg.c.

References GCGgetOrigprob(), GCGgetRelax(), initializeMasterProblemSolve(), NULL, SCIP_STAGE_TRANSFORMED, and SCIPgetStage().

Referenced by SCIP_DECL_EVENTEXEC().

◆ GCGstashLimitSettings()

SCIP_RETCODE GCGstashLimitSettings ( GCG *  gcg)

stash limit settings if not already stashed

Note
This function is used to prevent that SCIP interrupts (due to limits) the solving process when the B&B trees are not synchronized. Otherwise it may happen that SCIP creates a dummy node in one tree that cannot be mirrored to the other one.
Parameters
gcgGCG data structure

Definition at line 5700 of file relax_gcg.c.

References FALSE, GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), SCIP_RelaxData::limitsettingsstashed, NULL, SCIP_CALL, SCIP_OKAY, SCIPgetIntParam(), SCIPgetLongintParam(), SCIPgetRealParam(), SCIPrelaxGetData(), SCIPresetParam(), SCIP_RelaxData::stashedgaplimit, SCIP_RelaxData::stashednodelimit, SCIP_RelaxData::stashedsollimit, SCIP_RelaxData::stashedstallnodelimit, SCIP_RelaxData::stashedtimelimit, and TRUE.

Referenced by GCGcreateConsMasterbranch(), GCGpresolve(), GCGsolve(), and solveProblem().

◆ GCGrestoreLimitSettings()

◆ GCGsetPricingProblemParameters()

SCIP_RETCODE GCGsetPricingProblemParameters ( GCG_DECTYPE  dectype,
SCIP *  pricingprob,
int  clocktype,
SCIP_Real  infinity,
SCIP_Real  epsilon,
SCIP_Real  sumepsilon,
SCIP_Real  feastol,
SCIP_Real  lpfeastolfactor,
SCIP_Real  dualfeastol,
SCIP_Bool  enableppcuts 
)

sets the pricing problem parameters

Parameters
dectypethe dectype of the decomp
pricingprobSCIP data structure of the pricing problem
clocktypeclocktype to use in the pricing problem
infinityvalues larger than this are considered infinity in the pricing problem
epsilonabsolute values smaller than this are considered zero in the pricing problem
sumepsilonabsolute values of sums smaller than this are considered zero in the pricing problem
feastolfeasibility tolerance for constraints in the pricing problem
lpfeastolfactorprimal feasibility tolerance factor of LP solver in the pricing problem
dualfeastolfeasibility tolerance for reduced costs in LP solution in the pricing problem
enableppcutsshould ppcuts be stored for sepa_basis

Definition at line 865 of file relax_gcg.c.

References FALSE, GCG_DECTYPE_DIAGONAL, infinity, NULL, SCIP_CALL, SCIP_OKAY, SCIP_PARAMSETTING_OFF, SCIP_VERBLEVEL_NONE, SCIPfixParam(), SCIPgetIntParam(), SCIPsetBoolParam(), SCIPsetCharParam(), SCIPsetIntParam(), SCIPsetPresolving(), SCIPsetRealParam(), and TRUE.

Referenced by createPricingProblem(), and setTestpricingProblemParameters().

◆ GCGrelaxGetGcg()

GCG_EXPORT GCG * GCGrelaxGetGcg ( SCIP *  origprob)

returns the GCG data structure

Parameters
origprobSCIP data structure

Definition at line 5788 of file relax_gcg.c.

References SCIP_RelaxData::gcg, NULL, RELAX_NAME, SCIPfindRelax(), and SCIPrelaxGetData().

Referenced by GCGorigGetGcg().

◆ GCGrelaxIncludeSepa()

GCG_EXPORT SCIP_RETCODE GCGrelaxIncludeSepa ( GCG *  gcg,
SCIP_SEPA **  sepa,
GCG_SEPA **  gcgsepa,
const char *  name,
const char *  desc,
int  priority,
int  freq,
SCIP_Real  maxbounddist,
SCIP_Bool  usessubscip,
SCIP_Bool  delay,
SCIP_DECL_SEPAEXECLP((*sepaexeclp))  ,
SCIP_DECL_SEPAEXECSOL((*sepaexecsol))  ,
SCIP_SEPADATA *  sepadata,
GCG_DECL_SEPAGETCOLCOEFFICIENT((*sepagetcolcoef))  ,
GCG_DECL_SEPAMASTERCUTDELETE((*sepamastercutdelete))   
)

includes a separator into the relaxator data

Parameters
gcgSCIP data structure
sepapointer to store created scip separator
gcgsepapointer to store created GCG separator (can be NULL)
namename of separator
descdescription of separator
prioritypriority of separator (>= 0: before, < 0: after constraint handlers)
freqfrequency for calling separator
maxbounddistmaximal relative distance from current node's dual bound to primal bound compared to best node's dual bound for applying separation
usessubscipdoes the separator use a secondary SCIP instance?
delayshould separator be delayed, if other separators found cuts?
sepadataseparator data

Definition at line 5807 of file relax_gcg.c.

References ensureSizeSeparators(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), SCIP_RelaxData::nseparators, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, SCIPincludeSepaBasic(), SCIPrelaxGetData(), GCG_Sepa::separator, and SCIP_RelaxData::separators.

Referenced by SCIPincludeSepaSubsetrow().