GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
relax_gcg.c File Reference

Detailed Description

GCG relaxator.

Author
Gerald Gamrath
Martin Bergner
Alexander Gross
Michael Bastubbe
Erik Muehmer

Definition in file relax_gcg.c.

#include <string.h>
#include "gcg/type_locks.h"
#include "scip/scipdefplugins.h"
#include "scip/cons_linear.h"
#include "scip/cons_setppc.h"
#include "scip/scip.h"
#include "scip/misc.h"
#include "scip/clock.h"
#include "gcg/relax_gcg.h"
#include "gcg/gcg.h"
#include "gcg/struct_gcg.h"
#include "gcg/struct_branchgcg.h"
#include "gcg/struct_sepagcg.h"
#include "gcg/cons_integralorig.h"
#include "gcg/cons_origbranch.h"
#include "gcg/cons_masterbranch.h"
#include "gcg/pricer_gcg.h"
#include "gcg/benders_gcg.h"
#include "gcg/masterplugins.h"
#include "gcg/bendersplugins.h"
#include "gcg/cons_decomp.h"
#include "gcg/scip_misc.h"
#include "gcg/solver_knapsack.h"
#include "gcg/params_visu.h"
#include "symmetry/pub_automorphism.h"
#include "symmetry/automorphism.h"

Go to the source code of this file.

Data Structures

struct  SCIP_RelaxData

Macros

#define RELAX_NAME   "gcg"
#define RELAX_DESC   "relaxator for gcg project representing the master lp"
#define RELAX_PRIORITY   -1
#define RELAX_FREQ   1
#define RELAX_INCLUDESLP   TRUE
#define DEFAULT_DISCRETIZATION   TRUE
#define DEFAULT_MIPDISCRETIZATION   TRUE
#define DEFAULT_AGGREGATION   TRUE
#define DEFAULT_DISPINFOS   FALSE
#define DEFAULT_MODE   GCG_DECMODE_DANTZIGWOLFE
#define DEFAULT_BLISS   TRUE
#define DEFAULT_BLISS_SEARCH_NODE_LIMIT   0
#define DEFAULT_BLISS_GENERATOR_LIMIT   100
#define DEFAULT_AGGREGATIONNCONSSLIMIT   300
#define DEFAULT_AGGREGATIONNVARSLIMIT   300
#define DELVARS
#define relaxCopyGcg   NULL
#define relaxInitGcg   NULL

Functions

static SCIP_RETCODE addActiveBranchExtendedmastercons (GCG *gcg, SCIP_RELAXDATA *relaxdata, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
static SCIP_RETCODE dropActiveBranchExtendedmastercons (GCG *gcg, SCIP_RELAXDATA *relaxdata, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
static SCIP_RETCODE setOriginalVarBlockNr (GCG *gcg, SCIP_RELAXDATA *relaxdata, SCIP_VAR *var, int newblock)
static SCIP_RETCODE markConsMaster (GCG *gcg, SCIP_RELAXDATA *relaxdata, SCIP_CONS *cons)
static SCIP_RETCODE convertStructToGCG (GCG *gcg, SCIP_RELAXDATA *relaxdata, GCG_DECOMP *decomp)
static SCIP_RETCODE ensureSizeMasterConss (GCG *gcg, SCIP_RELAXDATA *relaxdata, int size)
static SCIP_RETCODE ensureSizeBranchrules (GCG *gcg, SCIP_RELAXDATA *relaxdata)
static SCIP_RETCODE ensureSizeSeparators (GCG *gcg, SCIP_RELAXDATA *relaxdata)
static SCIP_RETCODE checkSetppcStructure (GCG *gcg, SCIP_RELAXDATA *relaxdata)
static SCIP_RETCODE checkIdenticalBlocks (GCG *gcg, SCIP_RELAXDATA *relaxdata, SCIP_HASHMAP **hashorig2pricingvar)
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)
static SCIP_RETCODE createPricingVar (SCIP_RELAXDATA *relaxdata, SCIP_VAR *origvar)
static SCIP_RETCODE createLinkingPricingVars (GCG *gcg, SCIP_RELAXDATA *relaxdata, SCIP_VAR *origvar)
static SCIP_RETCODE createPricingVariables (GCG *gcg, SCIP_RELAXDATA *relaxdata, SCIP_HASHMAP **hashorig2pricingvar)
static SCIP_RETCODE displayPricingStatistics (GCG *gcg, SCIP **pricingprobs, int npricingprobs, int *blockrepresentative)
static SCIP_RETCODE initRelaxProblemdata (GCG *gcg, SCIP_RELAXDATA *relaxdata)
static SCIP_RETCODE createMasterProblem (GCG *gcg, const char *name, int clocktype, SCIP_Real infinity, SCIP_Real epsilon, SCIP_Real sumepsilon, SCIP_Real feastol, SCIP_Real lpfeastolfactor, SCIP_Real dualfeastol, GCG_DECMODE mode)
static SCIP_RETCODE createPricingProblem (SCIP_RELAXDATA *relaxdata, SCIP **pricingscip, const char *name, int clocktype, SCIP_Real infinity, SCIP_Real epsilon, SCIP_Real sumepsilon, SCIP_Real feastol, SCIP_Real lpfeastolfactor, SCIP_Real dualfeastol, SCIP_Bool enableppcuts)
static SCIP_RETCODE saveOriginalVarMastercoeffs (GCG *gcg, SCIP_VAR **origvars, int norigvars, int nmasterconss, SCIP_CONS **origmasterconss, SCIP_CONS **masterconss)
static SCIP_RETCODE createMasterprobConss (GCG *gcg, SCIP_RELAXDATA *relaxdata)
static SCIP_RETCODE createPricingprobConss (GCG *gcg, SCIP_RELAXDATA *relaxdata, SCIP_HASHMAP **hashorig2pricingvar)
static SCIP_RETCODE createMaster (GCG *gcg, SCIP_RELAXDATA *relaxdata)
static SCIP_RETCODE combineSolutions (GCG *gcg, SCIP_SOL **newsol, SCIP **probs, int nprobs)
static SCIP_RETCODE setPricingObjsOriginal (GCG *gcg, SCIP **probs, int nprobs)
static SCIP_RETCODE solveBlockProblem (GCG *gcg, SCIP *blockprob, SCIP_RELAXDATA *relaxdata, SCIP_Real timelimit, int blocknum, SCIP_RESULT *result, SCIP_Real *objvalue)
static SCIP_RETCODE freeBlockProblem (GCG *gcg, SCIP *blockprob, SCIP_RELAXDATA *relaxdata, int blocknum)
static SCIP_RETCODE solveDiagonalBlocks (GCG *gcg, SCIP_RELAXDATA *relaxdata, SCIP_RESULT *result, SCIP_Real *lowerbound)
GCG_DECOMP * GCGgetStructDecomp (GCG *gcg)
static SCIP_RETCODE GCGsetStructDecomp (GCG *gcg, GCG_DECOMP *decomp)
static SCIP_RETCODE transformMaster (GCG *gcg, SCIP_RELAX *relax)
static SCIP_RETCODE initRelaxator (GCG *gcg, SCIP_RELAX *relax)
static SCIP_RETCODE initRelaxdata (GCG *gcg, SCIP_RELAXDATA *relaxdata)
static void resetRelaxdata (SCIP_RELAXDATA *relaxdata)
static SCIP_DECL_RELAXFREE (relaxFreeGcg)
static SCIP_DECL_RELAXEXIT (relaxExitGcg)
static SCIP_RETCODE initializeMasterProblemSolve (GCG *gcg, SCIP_RELAX *relax)
static SCIP_DECL_RELAXINITSOL (relaxInitsolGcg)
static SCIP_DECL_RELAXEXITSOL (relaxExitsolGcg)
static SCIP_RETCODE setMasterLimits (GCG *gcg, SCIP *masterprob, SCIP_Real origtimelimit, SCIP_Real origgaplimit)
static SCIP_RETCODE solveMasterProblem (GCG *gcg, SCIP *masterprob, SCIP_RELAXDATA *relaxdata, SCIP_Longint nodelimit, SCIP_Real *lowerbound, SCIP_RESULT *result)
static SCIP_RETCODE relaxExecGcgDantzigWolfe (GCG *gcg, SCIP_RELAX *relax, SCIP_Real *lowerbound, SCIP_RESULT *result)
static SCIP_RETCODE solveMasterProblemAndEvaluate (GCG *gcg, SCIP_RELAX *relax, SCIP_Real *lowerbound, SCIP_RESULT *result)
static SCIP_RETCODE relaxExecGcgBendersDecomposition (GCG *gcg, SCIP_RELAX *relax, SCIP_Real *lowerbound, SCIP_RESULT *result)
static SCIP_RETCODE relaxExecGcgOriginalProblem (GCG *gcg, SCIP_RELAX *relax, SCIP_Real *lowerbound, SCIP_RESULT *result)
static SCIP_DECL_RELAXEXEC (relaxExecGcg)
SCIP_RETCODE GCGincludeRelaxGcg (GCG *gcg)
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)),)
SCIP_RETCODE GCGrelaxBranchActiveMaster (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
SCIP_RETCODE GCGrelaxBranchDeactiveMaster (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
SCIP_RETCODE GCGrelaxBranchPropMaster (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_RESULT *result)
SCIP_RETCODE GCGrelaxBranchDataDelete (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA **branchdata, SCIP_Bool origbranch, SCIP_Bool force)
SCIP_RETCODE GCGrelaxBranchNewCol (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_VAR *mastervar)
SCIP_RETCODE GCGrelaxBranchGetExtendedMasterCons (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, GCG_EXTENDEDMASTERCONSDATA **extendedmasterconsdata)
SCIP_RETCODE GCGrelaxBranchGetAllActiveExtendedMasterConss (GCG *gcg, GCG_BRANCHRULE ***branchrules, GCG_BRANCHDATA ***branchdata, GCG_EXTENDEDMASTERCONSDATA ***extendedmasterconsdata, int *nextendedmasterconss)
SCIP_RETCODE GCGrelaxBranchMasterSolved (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_Real newlowerbound)
SCIP_RETCODE GCGrelaxTransOrigToMasterCons (GCG *gcg, SCIP_CONS *cons, SCIP_CONS **transcons)
SCIP * GCGgetPricingprob (GCG *gcg, int pricingprobnr)
int GCGgetNRelPricingprobs (GCG *gcg)
int GCGgetNPricingprobs (GCG *gcg)
SCIP_Bool GCGisPricingprobRelevant (GCG *gcg, int pricingprobnr)
int GCGgetBlockRepresentative (GCG *gcg, int pricingprobnr)
int GCGgetNIdenticalBlocks (GCG *gcg, int pricingprobnr)
int GCGgetNMasterConss (GCG *gcg)
SCIP_CONS ** GCGgetMasterConss (GCG *gcg)
SCIP_CONS ** GCGgetOrigMasterConss (GCG *gcg)
SCIP_CONS * GCGgetConvCons (GCG *gcg, int blocknr)
GCG_PARAMDATA * GCGgetParamsVisu (GCG *gcg)
SCIP_SOL * GCGrelaxGetCurrentOrigSol (GCG *gcg)
SCIP_Bool GCGrelaxIsOrigSolFeasible (GCG *gcg)
SCIP_Bool GCGisMasterSetCovering (GCG *gcg)
SCIP_Bool GCGisMasterSetPartitioning (GCG *gcg)
SCIP_RETCODE GCGrelaxStartProbing (GCG *gcg, SCIP_HEUR *probingheur)
SCIP_HEUR * GCGrelaxGetProbingheur (GCG *gcg)
SCIP_RETCODE GCGrelaxNewProbingnodeOrig (GCG *gcg)
SCIP_RETCODE GCGrelaxNewProbingnodeMaster (GCG *gcg)
SCIP_RETCODE GCGrelaxNewProbingnodeMasterCons (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_CONS **origbranchconss, int norigbranchconss, int maxorigbranchconss)
SCIP_RETCODE GCGrelaxBacktrackProbing (GCG *gcg, int probingdepth)
static SCIP_RETCODE performProbing (GCG *gcg, int maxlpiterations, int maxpricerounds, SCIP_Bool usepricing, SCIP_Longint *nlpiterations, int *npricerounds, SCIP_Real *lpobjvalue, SCIP_Bool *lpsolved, SCIP_Bool *lperror, SCIP_Bool *cutoff)
SCIP_RETCODE GCGrelaxPerformProbing (GCG *gcg, int maxlpiterations, SCIP_Longint *nlpiterations, SCIP_Real *lpobjvalue, SCIP_Bool *lpsolved, SCIP_Bool *lperror, SCIP_Bool *cutoff)
SCIP_RETCODE GCGrelaxPerformProbingWithPricing (GCG *gcg, int maxpricerounds, SCIP_Longint *nlpiterations, int *npricerounds, SCIP_Real *lpobjvalue, SCIP_Bool *lpsolved, SCIP_Bool *lperror, SCIP_Bool *cutoff)
SCIP_RETCODE GCGrelaxEndProbing (GCG *gcg)
static SCIP_RETCODE checkAndAddExternalBranchingCandidate (GCG *gcg, SCIP_VAR *var)
static SCIP_RETCODE freeCurrentOrigSol (GCG *gcg, SCIP_RELAXDATA *relaxdata)
SCIP_RETCODE GCGrelaxUpdateCurrentSol (GCG *gcg)
SCIP_Real GCGgetPricingprobsMemUsed (GCG *gcg)
SCIP_Bool GCGrelaxIsInitialized (GCG *gcg)
SCIP_Real GCGgetDegeneracy (GCG *gcg)
SCIP_CONS ** GCGgetVarLinkingconss (GCG *gcg)
int * GCGgetVarLinkingconssBlock (GCG *gcg)
int GCGgetNVarLinkingconss (GCG *gcg)
int GCGgetNLinkingvars (GCG *gcg)
int GCGgetNTransvars (GCG *gcg)
SCIP_SOL * GCGgetBendersRelaxationSol (GCG *gcg)
GCG_DECMODE GCGgetDecompositionMode (GCG *gcg)
SCIP_CLOCK * GCGgetRootNodeTime (GCG *gcg)
SCIP_RETCODE GCGtransformProb (GCG *gcg)
SCIP_RETCODE GCGpresolve (GCG *gcg)
SCIP_RETCODE GCGdetect (GCG *gcg)
SCIP_RETCODE GCGsolve (GCG *gcg)
SCIP_Real GCGgetDualbound (GCG *gcg)
SCIP_Real GCGgetPrimalbound (GCG *gcg)
SCIP_Real GCGgetGap (GCG *gcg)
SCIP_RETCODE GCGinitializeMasterProblemSolve (GCG *gcg)
SCIP_RETCODE GCGstashLimitSettings (GCG *gcg)
SCIP_RETCODE GCGrestoreLimitSettings (GCG *gcg)
GCG_EXPORT GCG * GCGrelaxGetGcg (SCIP *origprob)
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)),)

Macro Definition Documentation

◆ RELAX_NAME

#define RELAX_NAME   "gcg"

Definition at line 86 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg(), and GCGrelaxGetGcg().

◆ RELAX_DESC

#define RELAX_DESC   "relaxator for gcg project representing the master lp"

Definition at line 87 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ RELAX_PRIORITY

#define RELAX_PRIORITY   -1

Definition at line 88 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ RELAX_FREQ

#define RELAX_FREQ   1

Definition at line 89 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ RELAX_INCLUDESLP

#define RELAX_INCLUDESLP   TRUE

Definition at line 90 of file relax_gcg.c.

Referenced by GCGrelaxEndProbing(), and GCGrelaxUpdateCurrentSol().

◆ DEFAULT_DISCRETIZATION

#define DEFAULT_DISCRETIZATION   TRUE

Definition at line 92 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DEFAULT_MIPDISCRETIZATION

#define DEFAULT_MIPDISCRETIZATION   TRUE

Definition at line 93 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DEFAULT_AGGREGATION

#define DEFAULT_AGGREGATION   TRUE

Definition at line 94 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DEFAULT_DISPINFOS

#define DEFAULT_DISPINFOS   FALSE

Definition at line 95 of file relax_gcg.c.

◆ DEFAULT_MODE

#define DEFAULT_MODE   GCG_DECMODE_DANTZIGWOLFE

the decomposition mode that GCG will use. (0: Dantzig-Wolfe (default), 1: Benders' decomposition, 2: solve original problem)

Definition at line 96 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DEFAULT_BLISS

#define DEFAULT_BLISS   TRUE

Definition at line 98 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DEFAULT_BLISS_SEARCH_NODE_LIMIT

#define DEFAULT_BLISS_SEARCH_NODE_LIMIT   0

Definition at line 99 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DEFAULT_BLISS_GENERATOR_LIMIT

#define DEFAULT_BLISS_GENERATOR_LIMIT   100

Definition at line 100 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DEFAULT_AGGREGATIONNCONSSLIMIT

#define DEFAULT_AGGREGATIONNCONSSLIMIT   300

Definition at line 101 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DEFAULT_AGGREGATIONNVARSLIMIT

#define DEFAULT_AGGREGATIONNVARSLIMIT   300

Definition at line 102 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ DELVARS

#define DELVARS

Definition at line 104 of file relax_gcg.c.

◆ relaxCopyGcg

#define relaxCopyGcg   NULL

Definition at line 3568 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

◆ relaxInitGcg

#define relaxInitGcg   NULL

Definition at line 3569 of file relax_gcg.c.

Referenced by GCGincludeRelaxGcg().

Function Documentation

◆ addActiveBranchExtendedmastercons()

SCIP_RETCODE addActiveBranchExtendedmastercons ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
GCG_BRANCHRULE * branchrule,
GCG_BRANCHDATA * branchdata )
static

add the activated branch node's extended master cons to the cache

Parameters
gcgGCG data structure
relaxdatarelaxator data data structure
branchrulebranchrule that was activated
branchdatabranchdata that was activated

Definition at line 214 of file relax_gcg.c.

References SCIP_RelaxData::activebranchdata, SCIP_RelaxData::activebranchextendedmasterconss, SCIP_RelaxData::activebranchrules, addActiveBranchExtendedmastercons(), assert(), GCGgetOrigprob(), SCIP_RelaxData::maxactivebranchextendedmasterconss, SCIP_RelaxData::nactivebranchextendedmasterconss, origprob, and SCIP_CALL().

Referenced by addActiveBranchExtendedmastercons(), and GCGrelaxBranchActiveMaster().

◆ dropActiveBranchExtendedmastercons()

SCIP_RETCODE dropActiveBranchExtendedmastercons ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
GCG_BRANCHRULE * branchrule,
GCG_BRANCHDATA * branchdata )
static

drop the most recently added branch extended master cons data

Parameters
gcgGCG data structure
relaxdatarelaxator data data structure
branchrulebranchrule that was deactivated
branchdatabranchdata that was deactivated

Definition at line 269 of file relax_gcg.c.

References SCIP_RelaxData::activebranchdata, SCIP_RelaxData::activebranchextendedmasterconss, SCIP_RelaxData::activebranchrules, assert(), dropActiveBranchExtendedmastercons(), and SCIP_RelaxData::nactivebranchextendedmasterconss.

Referenced by dropActiveBranchExtendedmastercons(), and GCGrelaxBranchDeactiveMaster().

◆ setOriginalVarBlockNr()

SCIP_RETCODE setOriginalVarBlockNr ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
SCIP_VAR * var,
int newblock )
static

sets the number of the block, the given original variable belongs to

Parameters
gcgGCG data structure
relaxdatarelaxator data data structure
varvariable to set the block number for
newblocknumber of the block, the variable belongs to

Definition at line 296 of file relax_gcg.c.

References assert(), SCIP_RelaxData::gcg, GCG_DECMODE_BENDERS, GCGgetDecompositionMode(), GCGisLinkingVarInBlock(), GCGoriginalVarAddBlock(), GCGoriginalVarIsLinking(), GCGvarGetBlock(), GCGvarIsOriginal(), GCGvarSetBlock(), SCIP_RelaxData::mode, SCIP_RelaxData::npricingprobs, SCIP_CALL(), setOriginalVarBlockNr(), and var.

Referenced by convertStructToGCG(), and setOriginalVarBlockNr().

◆ markConsMaster()

SCIP_RETCODE markConsMaster ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
SCIP_CONS * cons )
static

marks the constraint to be transferred to the master problem

Parameters
gcgGCG data structure
relaxdatarelaxator data data structure
consconstraint that is forced to be in the master

Definition at line 340 of file relax_gcg.c.

References assert(), GCGgetOrigprob(), i, markConsMaster(), SCIP_RelaxData::markedmasterconss, SCIP_RelaxData::maxmarkedmasterconss, SCIP_RelaxData::nmarkedmasterconss, and SCIP_CALL().

Referenced by convertStructToGCG(), and markConsMaster().

◆ convertStructToGCG()

◆ ensureSizeMasterConss()

SCIP_RETCODE ensureSizeMasterConss ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
int size )
static

◆ ensureSizeBranchrules()

SCIP_RETCODE ensureSizeBranchrules ( GCG * gcg,
SCIP_RELAXDATA * relaxdata )
static

ensures size of branchrules array: enlarges the array by 1

Definition at line 585 of file relax_gcg.c.

References assert(), SCIP_RelaxData::branchrules, ensureSizeBranchrules(), GCGgetOrigprob(), SCIP_RelaxData::nbranchrules, and SCIP_CALL().

Referenced by ensureSizeBranchrules(), and GCGrelaxIncludeBranchrule().

◆ ensureSizeSeparators()

SCIP_RETCODE ensureSizeSeparators ( GCG * gcg,
SCIP_RELAXDATA * relaxdata )
static

ensures size of branchrules array: enlarges the array by 1

Definition at line 608 of file relax_gcg.c.

References assert(), ensureSizeSeparators(), GCGgetOrigprob(), SCIP_RelaxData::nseparators, SCIP_CALL(), and SCIP_RelaxData::separators.

Referenced by ensureSizeSeparators(), and GCGrelaxIncludeSepa().

◆ checkSetppcStructure()

SCIP_RETCODE checkSetppcStructure ( GCG * gcg,
SCIP_RELAXDATA * relaxdata )
static

check whether the master problem has a set partitioning or set covering structure

Parameters
gcgGCG data structure
relaxdatarelaxator data structure

Definition at line 631 of file relax_gcg.c.

References assert(), checkSetppcStructure(), SCIP_RelaxData::decomp, GCGdecompGetLinkingconss(), GCGdecompGetNLinkingconss(), GCGgetConsIsSetppc(), GCGgetOrigprob(), i, SCIP_RelaxData::masterissetcover, SCIP_RelaxData::masterissetpart, and SCIP_RelaxData::nvarlinkconss.

Referenced by checkSetppcStructure(), and createMaster().

◆ checkIdenticalBlocks()

SCIP_RETCODE checkIdenticalBlocks ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
SCIP_HASHMAP ** hashorig2pricingvar )
static

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

◆ createPricingVar()

SCIP_RETCODE createPricingVar ( SCIP_RELAXDATA * relaxdata,
SCIP_VAR * origvar )
static

creates a variable in a pricing problem corresponding to the given original variable (belonging to exactly one block)

Parameters
relaxdatarelaxator data data structure
origvarcorresponding variable in the original program

Definition at line 963 of file relax_gcg.c.

References assert(), createPricingVar(), GCGoriginalVarCreatePricingVar(), GCGoriginalVarSetPricingVar(), GCGvarGetBlock(), GCGvarIsPricing(), SCIP_RelaxData::pricingprobs, SCIP_CALL(), and var.

Referenced by createPricingVar(), and createPricingVariables().

◆ createLinkingPricingVars()

◆ createPricingVariables()

SCIP_RETCODE createPricingVariables ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
SCIP_HASHMAP ** hashorig2pricingvar )
static

◆ displayPricingStatistics()

SCIP_RETCODE displayPricingStatistics ( GCG * gcg,
SCIP ** pricingprobs,
int npricingprobs,
int * blockrepresentative )
static

displays statistics of the pricing problems

Parameters
gcgGCG data structure
pricingprobsarray of pricing problems
npricingprobsnumber of pricingproblems
blockrepresentativearray of representation information

Definition at line 1234 of file relax_gcg.c.

References assert(), displayPricingStatistics(), GCGgetOrigprob(), i, and SCIP_CALL().

Referenced by createMaster(), and displayPricingStatistics().

◆ initRelaxProblemdata()

◆ createMasterProblem()

SCIP_RETCODE createMasterProblem ( GCG * gcg,
const char * name,
int clocktype,
SCIP_Real infinity,
SCIP_Real epsilon,
SCIP_Real sumepsilon,
SCIP_Real feastol,
SCIP_Real lpfeastolfactor,
SCIP_Real dualfeastol,
GCG_DECMODE mode )
static

creates the master problem with the specified name

Parameters
gcgGCG data structure
namename of the master problem
clocktypeclocktype to use in the master problem
infinityvalues larger than this are considered infinity in the master problem
epsilonabsolute values smaller than this are considered zero in the master problem
sumepsilonabsolute values of sums smaller than this are considered zero in the master problem
feastolfeasibility tolerance for constraints in the master problem
lpfeastolfactorprimal feasibility tolerance factor of LP solver in the master problem
dualfeastolfeasibility tolerance for reduced costs in LP solution in the master problem
modethe decomposition mode

Definition at line 1320 of file relax_gcg.c.

References assert(), createMasterProblem(), GCG_DECMODE_BENDERS, GCG_DECMODE_DANTZIGWOLFE, GCG_DECMODE_ORIGINAL, GCGgetMasterprob(), GCGgetOrigprob(), masterprob, and SCIP_CALL().

Referenced by createMaster(), and createMasterProblem().

◆ createPricingProblem()

SCIP_RETCODE createPricingProblem ( SCIP_RELAXDATA * relaxdata,
SCIP ** pricingscip,
const char * name,
int clocktype,
SCIP_Real infinity,
SCIP_Real epsilon,
SCIP_Real sumepsilon,
SCIP_Real feastol,
SCIP_Real lpfeastolfactor,
SCIP_Real dualfeastol,
SCIP_Bool enableppcuts )
static

creates the pricing problem with the specified name

Parameters
relaxdatathe relaxator data data structure
pricingscipPricing GCG data structure
namename 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 1400 of file relax_gcg.c.

References assert(), createPricingProblem(), SCIP_RelaxData::decomp, GCG_DECMODE_BENDERS, GCG_DECMODE_ORIGINAL, GCGdecompGetType(), GCGsetPricingProblemParameters(), SCIP_RelaxData::mode, and SCIP_CALL().

Referenced by createMaster(), and createPricingProblem().

◆ saveOriginalVarMastercoeffs()

SCIP_RETCODE saveOriginalVarMastercoeffs ( GCG * gcg,
SCIP_VAR ** origvars,
int norigvars,
int nmasterconss,
SCIP_CONS ** origmasterconss,
SCIP_CONS ** masterconss )
static

saves the coefficient of the masterconstraints in the original variable

Parameters
gcgGCG data structure
origvarsoriginal variables array
norigvarssize of original variables array
nmasterconsssize of masterconns array
origmasterconssorig master constraints array
masterconssmaster constraints

Definition at line 1441 of file relax_gcg.c.

References assert(), GCGconsGetNVars(), GCGconsGetVals(), GCGconsGetVars(), GCGgetOrigprob(), GCGoriginalVarAddCoef(), GCGoriginalVarGetCoefs(), GCGoriginalVarSetNCoefs(), GCGvarIsOriginal(), i, nvars, saveOriginalVarMastercoeffs(), SCIP_CALL(), SCIPfreeBufferArray(), var, and vars.

Referenced by createMasterprobConss(), and saveOriginalVarMastercoeffs().

◆ createMasterprobConss()

◆ createPricingprobConss()

SCIP_RETCODE createPricingprobConss ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
SCIP_HASHMAP ** hashorig2pricingvar )
static

creates the pricing problem constraints

Parameters
gcgGCG data structure
relaxdatathe relaxator data data structure
hashorig2pricingvarhashmap mapping original to corresponding pricing variables

Definition at line 1636 of file relax_gcg.c.

References assert(), c, createPricingprobConss(), SCIP_RelaxData::decomp, GCGconsGetNVars(), GCGconsGetVars(), GCGdecompGetNBlocks(), GCGdecompGetNSubscipconss(), GCGdecompGetSubscipconss(), GCGgetOrigprob(), GCGvarIsPricing(), i, SCIP_RelaxData::pricingprobs, SCIP_CALL(), SCIPdebugMessage(), and success.

Referenced by createMaster(), and createPricingprobConss().

◆ createMaster()

◆ combineSolutions()

SCIP_RETCODE combineSolutions ( GCG * gcg,
SCIP_SOL ** newsol,
SCIP ** probs,
int nprobs )
static

combines the solutions from all (disjoint) problems to one solution

Parameters
gcgGCG data structure
newsolpointer to store new solution
probsarray of (solved) subproblems
nprobsnumber of subproblems

Definition at line 1894 of file relax_gcg.c.

References assert(), combineSolutions(), GCGgetOrigprob(), GCGoriginalVarGetPricingVar(), GCGvarGetBlock(), i, nvars, SCIP_CALL(), and vars.

Referenced by combineSolutions(), and solveDiagonalBlocks().

◆ setPricingObjsOriginal()

SCIP_RETCODE setPricingObjsOriginal ( GCG * gcg,
SCIP ** probs,
int nprobs )
static

sets the pricing objective function to what is necessary

Parameters
gcgGCG data structure
probsarray of subproblems
nprobsnumber of subproblems

Definition at line 1951 of file relax_gcg.c.

References assert(), GCG_DECMODE_BENDERS, GCGgetDecompositionMode(), GCGgetOrigprob(), GCGisPricingprobRelevant(), GCGoriginalVarGetPricingVar(), GCGvarGetBlock(), GCGvarIsOriginal(), i, nvars, SCIP_CALL(), setPricingObjsOriginal(), and vars.

Referenced by setPricingObjsOriginal(), and solveDiagonalBlocks().

◆ solveBlockProblem()

SCIP_RETCODE solveBlockProblem ( GCG * gcg,
SCIP * blockprob,
SCIP_RELAXDATA * relaxdata,
SCIP_Real timelimit,
int blocknum,
SCIP_RESULT * result,
SCIP_Real * objvalue )
static

solve a block problem when the decomposition is diagonal

Parameters
gcgGCG data structure
blockprobthe block problem that will be solved
relaxdatarelaxator data structure
timelimitthe original problem timelimit
blocknumthe number of the block, -1 for the original problem
resultresult pointer to indicate success or failure
objvaluethe objective function value

Definition at line 2019 of file relax_gcg.c.

References assert(), GCG_DECMODE_BENDERS, GCG_DECMODE_DANTZIGWOLFE, GCG_DECMODE_ORIGINAL, GCG_PRICINGSTATUS_INFEASIBLE, GCG_PRICINGSTATUS_OPTIMAL, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGsolverKnapsackSolveKnapsack(), SCIP_RelaxData::origverblevel, result, SCIP_CALL(), SCIPfreeBufferArray(), sol, solval, and solveBlockProblem().

Referenced by solveBlockProblem(), and solveDiagonalBlocks().

◆ freeBlockProblem()

SCIP_RETCODE freeBlockProblem ( GCG * gcg,
SCIP * blockprob,
SCIP_RELAXDATA * relaxdata,
int blocknum )
static

frees the block problem

Parameters
gcgGCG data structure
blockprobthe block problem that will be solved
relaxdatarelaxator data structure
blocknumthe number of the block, -1 for the original problem

Definition at line 2198 of file relax_gcg.c.

References assert(), freeBlockProblem(), GCG_DECMODE_BENDERS, GCG_DECMODE_DANTZIGWOLFE, GCG_DECMODE_ORIGINAL, GCGgetDecompositionMode(), GCGgetMasterprob(), and SCIP_CALL().

Referenced by freeBlockProblem(), and solveDiagonalBlocks().

◆ solveDiagonalBlocks()

SCIP_RETCODE solveDiagonalBlocks ( GCG * gcg,
SCIP_RELAXDATA * relaxdata,
SCIP_RESULT * result,
SCIP_Real * lowerbound )
static

solves the blocks diagonal and individually

Parameters
gcgGCG data structure
relaxdatarelaxator data structure
resultresult pointer to indicate success or failure
lowerboundlower bound pointer to return the lower bound

Definition at line 2232 of file relax_gcg.c.

References assert(), combineSolutions(), freeBlockProblem(), GCG_DECMODE_ORIGINAL, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGtransformMastersolToOrigsol(), i, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::pricingprobs, result, SCIP_CALL(), setPricingObjsOriginal(), solveBlockProblem(), and solveDiagonalBlocks().

Referenced by solveDiagonalBlocks(), and solveMasterProblem().

◆ GCGsetStructDecomp()

SCIP_RETCODE GCGsetStructDecomp ( GCG * gcg,
GCG_DECOMP * decomp )
static

sets the structure information

Parameters
gcgGCG data structure
decompdecomposition data structure

Definition at line 2351 of file relax_gcg.c.

References assert(), SCIP_RelaxData::decomp, GCGdecompFree(), GCGgetRelax(), GCGsetStructDecomp(), and SCIP_CALL().

Referenced by GCGsetStructDecomp(), and initRelaxator().

◆ transformMaster()

◆ initRelaxator()

◆ initRelaxdata()

SCIP_RETCODE initRelaxdata ( GCG * gcg,
SCIP_RELAXDATA * relaxdata )
static

initializes relaxator data

Parameters
gcgGCG data structure
relaxdatarelaxdata data structure

Definition at line 2631 of file relax_gcg.c.

References SCIP_RelaxData::activebranchdata, SCIP_RelaxData::activebranchextendedmasterconss, SCIP_RelaxData::activebranchrules, assert(), SCIP_RelaxData::blockrepresentative, SCIP_RelaxData::branchrules, SCIP_RelaxData::convconss, SCIP_RelaxData::currentorigsol, SCIP_RelaxData::decomp, SCIP_RelaxData::gcg, GCGcreateParamsVisu(), GCGgetOrigprob(), initRelaxdata(), SCIP_RelaxData::lastmasterlpiters, SCIP_RelaxData::lastmasternode, SCIP_RelaxData::lastmastersol, SCIP_RelaxData::lastsolvednodenr, SCIP_RelaxData::limitsettingsstashed, SCIP_RelaxData::markedmasterconss, SCIP_RelaxData::masterconss, SCIP_RelaxData::masterinprobing, SCIP_RelaxData::maxactivebranchextendedmasterconss, SCIP_RelaxData::maxmarkedmasterconss, SCIP_RelaxData::maxpricingprobs, SCIP_RelaxData::nactivebranchextendedmasterconss, SCIP_RelaxData::nblocksidentical, SCIP_RelaxData::nbranchrules, SCIP_RelaxData::nlinkingvars, SCIP_RelaxData::nmasterconss, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::nrelpricingprobs, SCIP_RelaxData::nseparators, SCIP_RelaxData::ntransvars, SCIP_RelaxData::nvarlinkconss, SCIP_RelaxData::origmasterconss, origprob, SCIP_RelaxData::origsolfeasible, SCIP_RelaxData::paramsvisu, SCIP_RelaxData::pricingprobs, SCIP_RelaxData::pricingprobsmemused, SCIP_RelaxData::probingheur, SCIP_RelaxData::relaxisinitialized, SCIP_RelaxData::rootnodetime, SCIP_CALL(), SCIP_RelaxData::separators, SCIP_RelaxData::simplexiters, SCIP_RelaxData::storedfeasibility, SCIP_RelaxData::storedorigsol, SCIP_RelaxData::varlinkconsblock, and SCIP_RelaxData::varlinkconss.

Referenced by GCGincludeRelaxGcg(), and initRelaxdata().

◆ resetRelaxdata()

◆ SCIP_DECL_RELAXFREE()

◆ SCIP_DECL_RELAXEXIT()

SCIP_DECL_RELAXEXIT ( relaxExitGcg )
static

◆ initializeMasterProblemSolve()

SCIP_RETCODE initializeMasterProblemSolve ( GCG * gcg,
SCIP_RELAX * relax )
static

initialize the relaxator and master problem for solving the original problem by Dantzig-Wolfe reformulation and Benders' decomposition

Parameters
gcgthe GCG data structure
relaxthe relaxator

Definition at line 2874 of file relax_gcg.c.

References assert(), SCIP_RelaxData::decomp, SCIP_RelaxData::discretization, SCIP_RelaxData::gcg, GCG_DECMODE_DANTZIGWOLFE, GCGconsOrigbranchAddRootCons(), GCGgetMasterprob(), GCGgetOrigprob(), initializeMasterProblemSolve(), SCIP_RelaxData::mode, SCIP_CALL(), and transformMaster().

Referenced by GCGinitializeMasterProblemSolve(), initializeMasterProblemSolve(), and SCIP_DECL_RELAXEXEC().

◆ SCIP_DECL_RELAXINITSOL()

SCIP_DECL_RELAXINITSOL ( relaxInitsolGcg )
static

◆ SCIP_DECL_RELAXEXITSOL()

◆ setMasterLimits()

SCIP_RETCODE setMasterLimits ( GCG * gcg,
SCIP * masterprob,
SCIP_Real origtimelimit,
SCIP_Real origgaplimit )
static

sets (time and gap) limits in the master problem based on limits of the original problem

Parameters
gcgthe GCG data structure
masterprobthe master problem SCIP instance
origtimelimittime limit fo the original problem
origgaplimitgap limit of the original problem

Definition at line 3079 of file relax_gcg.c.

References assert(), GCGgetMasterprob(), GCGgetOrigprob(), masterprob, SCIP_CALL(), SCIPdebugMessage(), and setMasterLimits().

Referenced by GCGrestoreLimitSettings(), setMasterLimits(), and solveMasterProblem().

◆ solveMasterProblem()

SCIP_RETCODE solveMasterProblem ( GCG * gcg,
SCIP * masterprob,
SCIP_RELAXDATA * relaxdata,
SCIP_Longint nodelimit,
SCIP_Real * lowerbound,
SCIP_RESULT * result )
static

method to solve the master problem that is used by Dantzig-Wolfe and Benders' decomposition

Parameters
gcgthe GCG data structure
masterprobthe master problem SCIP instance
relaxdatathe relaxator data
nodelimitthe number of nodes the will be solved in this master problem
lowerboundthe lowerbound computed by the relaxator for the current node
resultthe result of the relaxation call

Definition at line 3116 of file relax_gcg.c.

References assert(), SCIP_RelaxData::decomp, GCG_DECMODE_ORIGINAL, GCG_DECTYPE_DIAGONAL, GCGdecompGetType(), GCGgetOrigprob(), GCGmasterIsCurrentSolValid(), SCIP_RelaxData::lastsolvednodenr, masterprob, SCIP_RelaxData::mode, result, SCIP_CALL(), SCIPdebugMessage(), setMasterLimits(), solveDiagonalBlocks(), and solveMasterProblem().

Referenced by relaxExecGcgDantzigWolfe(), solveMasterProblem(), and solveMasterProblemAndEvaluate().

◆ relaxExecGcgDantzigWolfe()

◆ solveMasterProblemAndEvaluate()

SCIP_RETCODE solveMasterProblemAndEvaluate ( GCG * gcg,
SCIP_RELAX * relax,
SCIP_Real * lowerbound,
SCIP_RESULT * result )
static

method to solve the master problem for Benders' decomposition and when solving the original problem directly.

Parameters
gcgthe GCG data structure
relaxthe relaxator
lowerboundthe lowerbound computed by the relaxator for the current node
resultthe result of the relaxation call

Definition at line 3368 of file relax_gcg.c.

References assert(), Gcg::bendersmasterprob, SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGmasterIsBestsolValid(), GCGmasterIsCurrentSolValid(), GCGtransformMastersolToOrigsol(), SCIP_RelaxData::lastmastersol, Gcg::masterprob, masterprob, SCIP_RelaxData::origverblevel, result, SCIP_CALL(), SCIPdebugMessage(), solveMasterProblem(), and solveMasterProblemAndEvaluate().

Referenced by relaxExecGcgBendersDecomposition(), relaxExecGcgOriginalProblem(), and solveMasterProblemAndEvaluate().

◆ relaxExecGcgBendersDecomposition()

SCIP_RETCODE relaxExecGcgBendersDecomposition ( GCG * gcg,
SCIP_RELAX * relax,
SCIP_Real * lowerbound,
SCIP_RESULT * result )
static

execution method of the relaxator for Benders' decomposition

Parameters
gcgthe GCG data structure
relaxthe relaxator
lowerboundthe lowerbound computed by the relaxator for the current node
resultthe result of the relaxation call

Definition at line 3482 of file relax_gcg.c.

References assert(), relaxExecGcgBendersDecomposition(), result, SCIP_CALL(), and solveMasterProblemAndEvaluate().

Referenced by relaxExecGcgBendersDecomposition(), and SCIP_DECL_RELAXEXEC().

◆ relaxExecGcgOriginalProblem()

SCIP_RETCODE relaxExecGcgOriginalProblem ( GCG * gcg,
SCIP_RELAX * relax,
SCIP_Real * lowerbound,
SCIP_RESULT * result )
static

execution method of the relaxator when the original problem is solved directly

Parameters
gcgthe GCG data structure
relaxthe relaxator
lowerboundthe lowerbound computed by the relaxator for the current node
resultthe result of the relaxation call

Definition at line 3500 of file relax_gcg.c.

References assert(), relaxExecGcgOriginalProblem(), result, SCIP_CALL(), and solveMasterProblemAndEvaluate().

Referenced by relaxExecGcgOriginalProblem(), and SCIP_DECL_RELAXEXEC().

◆ SCIP_DECL_RELAXEXEC()

◆ GCGrelaxIncludeBranchrule()

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

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

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

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

◆ GCGrelaxBranchDataDelete()

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

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

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

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

get extended master conss of all active nodes

get extended master conss of all active nods

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

◆ GCGrelaxBranchMasterSolved()

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

◆ GCGrelaxTransOrigToMasterCons()

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

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

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

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

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

SCIP_Bool GCGrelaxIsOrigSolFeasible ( GCG * gcg)

◆ GCGrelaxStartProbing()

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

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

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

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

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

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

◆ performProbing()

SCIP_RETCODE performProbing ( GCG * gcg,
int maxlpiterations,
int maxpricerounds,
SCIP_Bool usepricing,
SCIP_Longint * nlpiterations,
int * npricerounds,
SCIP_Real * lpobjvalue,
SCIP_Bool * lpsolved,
SCIP_Bool * lperror,
SCIP_Bool * cutoff )
static

solve the master probing LP with or without pricing

Parameters
gcgGCG data structure
maxlpiterationsmaximum number of lp iterations allowed
maxpriceroundsmaximum number of pricing rounds allowed
usepricingshould the LP be solved with or without pricing?
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 4654 of file relax_gcg.c.

References assert(), cutoff, SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetRelax(), GCGrelaxUpdateCurrentSol(), lperror, lpsolstat, lpsolved, SCIP_RelaxData::masterinprobing, masterprob, nlpiterations, npricerounds, performProbing(), SCIP_CALL(), and SCIPdebugMessage().

Referenced by GCGrelaxPerformProbing(), GCGrelaxPerformProbingWithPricing(), and performProbing().

◆ GCGrelaxPerformProbing()

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

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

◆ checkAndAddExternalBranchingCandidate()

SCIP_RETCODE checkAndAddExternalBranchingCandidate ( GCG * gcg,
SCIP_VAR * var )
static

checks whether a variable should be added as an external branching candidate, if so it is added

Parameters
gcgthe GCG data structure
varthe variable to check whether to add as a branching candidate

Definition at line 4905 of file relax_gcg.c.

References assert(), checkAndAddExternalBranchingCandidate(), GCGgetOrigprob(), SCIP_CALL(), SCIPdebugMessage(), and var.

Referenced by checkAndAddExternalBranchingCandidate(), and GCGrelaxUpdateCurrentSol().

◆ freeCurrentOrigSol()

SCIP_RETCODE freeCurrentOrigSol ( GCG * gcg,
SCIP_RELAXDATA * relaxdata )
static
Parameters
gcgthe GCG data structure
relaxdatarelaxdata of the relaxator

Definition at line 4937 of file relax_gcg.c.

References SCIP_RelaxData::currentorigsol, freeCurrentOrigSol(), SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), SCIP_RelaxData::origsolfeasible, SCIP_CALL(), and SCIPdebugMessage().

Referenced by freeCurrentOrigSol(), and GCGrelaxUpdateCurrentSol().

◆ GCGrelaxUpdateCurrentSol()

◆ GCGgetDualbound()

SCIP_Real GCGgetDualbound ( GCG * gcg)

gets GCG's global dual bound

Computes the global dual bound while considering the original problem SCIP instance and the master problem SCIP instance.

Returns
the global dual bound
Parameters
gcgGCG data structure

Definition at line 5589 of file relax_gcg.c.

References assert(), GCGgetDualbound(), GCGgetMasterprob(), GCGgetOrigprob(), masterprob, and origprob.

Referenced by GCGgetDualbound(), GCGgetGap(), and SCIP_DECL_DISPOUTPUT().

◆ GCGgetPrimalbound()

SCIP_Real GCGgetPrimalbound ( GCG * gcg)

gets GCG's global primal bound

Computes the global primal bound while considering the original problem SCIP instance and the master problem SCIP instance.

Returns
the global dual bound
Parameters
gcgGCG data structure

Definition at line 5620 of file relax_gcg.c.

References assert(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetPrimalbound(), GCGmasterIsBestsolValid(), masterprob, and origprob.

Referenced by GCGgetGap(), GCGgetPrimalbound(), and SCIP_DECL_DISPOUTPUT().

◆ GCGgetGap()

SCIP_Real GCGgetGap ( GCG * gcg)

gets GCG's global gap

Computes the global gap based on the gloal dual bound and the global primal bound.

Returns
the global dual bound
See also
GCGgetDualbound()
GCGgetPrimalbound()
Parameters
gcgGCG data structure

Definition at line 5651 of file relax_gcg.c.

References assert(), GCGgetDualbound(), GCGgetGap(), GCGgetOrigprob(), GCGgetPrimalbound(), and origprob.

Referenced by GCGgetGap(), and SCIP_DECL_DISPOUTPUT().

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

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

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