GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches

Detailed Description

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

Files

file  /builds/gcg/gcg/doc/.cache/gcg-doc-cb7ehgub/source/src/gcg/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_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)),)

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

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
-activation method for branchrule
-deactivation method for branchrule
-propagation method for branchrule
-master solved method for branchrule
-branchdata deletion method for branchrule
-new column handler method of branching rule
-extended master cons getter of branching rule column coefficient calculation method for extended master conss

Definition at line 3717 of file relax_gcg.c.

References assert(), GCG_Branchrule::branchrule, SCIP_RelaxData::branchrules, ensureSizeBranchrules(), GCG_DECL_BRANCHACTIVEMASTER, GCG_DECL_BRANCHDATADELETE, GCG_DECL_BRANCHDEACTIVEMASTER, GCG_DECL_BRANCHGETEXTENDEDMASTERCONS, GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF, GCG_DECL_BRANCHMASTERSOLVED, GCG_DECL_BRANCHNEWCOL, GCG_DECL_BRANCHPROPMASTER, GCGconsIntegralorigAddBranchrule(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrelaxIncludeBranchrule(), maxdepth, SCIP_RelaxData::nbranchrules, and SCIP_CALL().

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

◆ 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(), assert(), GCGgetRelax(), GCGrelaxBranchActiveMaster(), and SCIP_CALL().

Referenced by GCGrelaxBranchActiveMaster(), and 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 assert(), dropActiveBranchExtendedmastercons(), GCGgetRelax(), GCGrelaxBranchDeactiveMaster(), and SCIP_CALL().

Referenced by GCGrelaxBranchDeactiveMaster(), and 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 assert(), GCGrelaxBranchPropMaster(), result, and SCIP_CALL().

Referenced by GCGrelaxBranchPropMaster(), and 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 assert(), GCGrelaxBranchMasterSolved(), and SCIP_CALL().

Referenced by GCGrelaxBranchMasterSolved(), and 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 assert(), GCGgetMasterprob(), GCGrelaxBranchDataDelete(), SCIP_CALL(), and SCIPfreeMemory().

Referenced by GCGrelaxBranchDataDelete(), SCIP_DECL_CONSDELETE(), and 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 assert(), GCGrelaxBranchNewCol(), and SCIP_CALL().

Referenced by forwardUpdateSeenHistory(), and GCGrelaxBranchNewCol().

◆ 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 assert(), GCGrelaxBranchGetExtendedMasterCons(), and SCIP_CALL().

Referenced by GCGrelaxBranchGetExtendedMasterCons().

◆ 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, assert(), GCGgetRelax(), GCGrelaxBranchGetAllActiveExtendedMasterConss(), and SCIP_RelaxData::nactivebranchextendedmasterconss.

Referenced by GCGcreateGcgCol(), GCGrelaxBranchGetAllActiveExtendedMasterConss(), 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 assert(), ensureSizeMasterConss(), SCIP_RelaxData::gcg, GCGconsGetLhs(), GCGconsGetRhs(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGmasterAddMasterconsToHashmap(), GCGmasterVarGetNOrigvars(), GCGmasterVarGetOrigvals(), GCGmasterVarGetOrigvars(), GCGoriginalVarAddCoef(), GCGrelaxTransOrigToMasterCons(), i, j, SCIP_RelaxData::masterconss, mastervars, SCIP_RelaxData::nmasterconss, nmastervars, SCIP_RelaxData::origmasterconss, and SCIP_CALL().

Referenced by GCG_DECL_BRANCHACTIVEMASTER(), and GCGrelaxTransOrigToMasterCons().

◆ 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 assert(), SCIP_RelaxData::currentorigsol, GCGgetRelax(), and GCGrelaxGetCurrentOrigSol().

Referenced by GCGrelaxGetCurrentOrigSol(), if(), initBranch(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_SEPAEXECLP(), and SCIP_DECL_SEPAEXECLP().

◆ GCGrelaxIsOrigSolFeasible()

GCG_EXPORT SCIP_Bool GCGrelaxIsOrigSolFeasible ( GCG * gcg)

◆ 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 assert(), SCIP_RelaxData::currentorigsol, SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrelaxStartProbing(), SCIP_RelaxData::masterinprobing, masterprob, SCIP_RelaxData::origsolfeasible, SCIP_RelaxData::probingheur, SCIP_CALL(), SCIP_RelaxData::storedfeasibility, and SCIP_RelaxData::storedorigsol.

Referenced by applyProbing(), executeStrongBranching(), GCGrelaxStartProbing(), SCIP_CALL(), 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 assert(), GCGgetRelax(), GCGrelaxGetProbingheur(), and SCIP_RelaxData::probingheur.

Referenced by createOriginalProblemSolution(), GCGrelaxGetProbingheur(), 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 assert(), GCGconsOrigbranchGetActiveCons(), GCGcreateConsOrigbranch(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrelaxNewProbingnodeOrig(), SCIP_RelaxData::masterinprobing, and SCIP_CALL().

Referenced by applyProbing(), executeStrongBranching(), GCGrelaxNewProbingnodeOrig(), and while().

◆ 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 assert(), SCIP_RelaxData::gcg, GCGconsMasterbranchGetActiveCons(), GCGcreateConsMasterbranch(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrelaxNewProbingnodeMaster(), SCIP_RelaxData::masterinprobing, masterprob, and SCIP_CALL().

Referenced by applyProbing(), executeStrongBranching(), GCGrelaxNewProbingnodeMaster(), and while().

◆ 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 assert(), SCIP_RelaxData::gcg, GCGconsMasterbranchGetActiveCons(), GCGcreateConsMasterbranch(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrelaxNewProbingnodeMasterCons(), SCIP_RelaxData::masterinprobing, masterprob, and SCIP_CALL().

Referenced by GCGrelaxNewProbingnodeMasterCons(), and 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 assert(), SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrelaxBacktrackProbing(), SCIP_RelaxData::masterinprobing, masterprob, and SCIP_CALL().

Referenced by GCGrelaxBacktrackProbing(), and while().

◆ 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 cutoff, GCGrelaxPerformProbing(), lperror, lpsolved, nlpiterations, performProbing(), and SCIP_CALL().

Referenced by executeStrongBranching(), GCGrelaxPerformProbing(), and while().

◆ 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 cutoff, GCGrelaxPerformProbingWithPricing(), lperror, lpsolved, nlpiterations, npricerounds, performProbing(), and SCIP_CALL().

Referenced by applyProbing(), executeStrongBranching(), GCGrelaxPerformProbingWithPricing(), performWeightedPricing(), and while().

◆ 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 assert(), GCGgetOrigprob(), GCGgetRelax(), GCGinitializeMasterProblemSolve(), and initializeMasterProblemSolve().

Referenced by GCGinitializeMasterProblemSolve(), and 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 assert(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGstashLimitSettings(), SCIP_RelaxData::limitsettingsstashed, masterprob, SCIP_CALL(), SCIP_RelaxData::stashedgaplimit, SCIP_RelaxData::stashednodelimit, SCIP_RelaxData::stashedsollimit, SCIP_RelaxData::stashedstallnodelimit, and SCIP_RelaxData::stashedtimelimit.

Referenced by GCGcreateConsMasterbranch(), GCGpresolve(), GCGsolve(), GCGstashLimitSettings(), 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 assert(), GCG_DECTYPE_DIAGONAL, GCGsetPricingProblemParameters(), and SCIP_CALL().

Referenced by createPricingProblem(), GCGsetPricingProblemParameters(), 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 assert(), SCIP_RelaxData::gcg, GCGrelaxGetGcg(), origprob, and RELAX_NAME.

Referenced by GCGorigGetGcg(), and GCGrelaxGetGcg().

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

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?
-LP solution separation method of separator
-arbitrary primal solution separation method of separator
sepadataseparator data
-method for computing the column coefficient for a cut callback to delete the mastersepacutdata

Definition at line 5807 of file relax_gcg.c.

References assert(), ensureSizeSeparators(), GCG_DECL_SEPAGETCOLCOEFFICIENT, GCG_DECL_SEPAMASTERCUTDELETE, GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrelaxIncludeSepa(), SCIP_RelaxData::nseparators, SCIP_CALL(), GCG_Sepa::separator, and SCIP_RelaxData::separators.

Referenced by GCGrelaxIncludeSepa(), and SCIPincludeSepaSubsetrow().