Detailed Description
GCG relaxator.
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 |
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
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()
|
static |
add the activated branch node's extended master cons to the cache
- Parameters
-
gcg GCG data structure relaxdata relaxator data data structure branchrule branchrule that was activated branchdata branchdata 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()
|
static |
drop the most recently added branch extended master cons data
- Parameters
-
gcg GCG data structure relaxdata relaxator data data structure branchrule branchrule that was deactivated branchdata branchdata 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()
|
static |
sets the number of the block, the given original variable belongs to
- Parameters
-
gcg GCG data structure relaxdata relaxator data data structure var variable to set the block number for newblock number 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()
|
static |
marks the constraint to be transferred to the master problem
- Parameters
-
gcg GCG data structure relaxdata relaxator data data structure cons constraint 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()
|
static |
converts the structure to the GCG format by setting the appropriate blocks and master constraints
- Parameters
-
gcg GCG data structure relaxdata relaxator data structure decomp decomp data structure
Definition at line 381 of file relax_gcg.c.
References assert(), convertStructToGCG(), GCG_DECMODE_BENDERS, GCGconsGetNVars(), GCGconsGetVars(), GCGcreateOrigVarsData(), GCGdecompAddRemainingConss(), GCGdecompCheckConsistency(), GCGdecompGetLinkingconss(), GCGdecompGetLinkingvars(), GCGdecompGetNBlocks(), GCGdecompGetNLinkingconss(), GCGdecompGetNLinkingvars(), GCGdecompGetNSubscipconss(), GCGdecompGetNSubscipvars(), GCGdecompGetSubscipconss(), GCGdecompGetSubscipvars(), GCGgetDecompositionMode(), GCGgetOrigprob(), GCGoriginalVarIsLinking(), GCGorigVarCreateData(), i, j, markConsMaster(), SCIP_RelaxData::npricingprobs, nvars, origprob, SCIP_CALL(), SCIPdebugMessage(), SCIPfreeBufferArray(), and setOriginalVarBlockNr().
Referenced by convertStructToGCG(), and createMaster().
◆ ensureSizeMasterConss()
|
static |
ensures size of masterconss array
Definition at line 557 of file relax_gcg.c.
References assert(), ensureSizeMasterConss(), GCGgetOrigprob(), SCIP_RelaxData::masterconss, SCIP_RelaxData::maxmasterconss, SCIP_RelaxData::origmasterconss, and SCIP_CALL().
Referenced by createMasterprobConss(), ensureSizeMasterConss(), and GCGrelaxTransOrigToMasterCons().
◆ ensureSizeBranchrules()
|
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()
|
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()
|
static |
check whether the master problem has a set partitioning or set covering structure
- Parameters
-
gcg GCG data structure relaxdata relaxator 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()
|
static |
checks whether there are identical pricing blocks
- Parameters
-
gcg GCG data structure relaxdata the relaxator data data structure hashorig2pricingvar mapping from orig to pricingvar for each block
Definition at line 735 of file relax_gcg.c.
References SCIP_RelaxData::aggregation, assert(), SCIP_RelaxData::blockrepresentative, checkIdenticalBlocks(), SCIP_RelaxData::decomp, SCIP_RelaxData::discretization, GCGconshdlrDecompGetNFormerDetectionConssForID(), GCGconshdlrDecompGetPartialdecFromID(), GCGconshdlrDecompPartialdecAggregationInformationCalculated(), GCGconshdlrDecompPartialdecCalcAggregationInformation(), GCGconshdlrDecompPartialdecGetBlocksForEqClass(), GCGconshdlrDecompPartialdecGetNBlocks(), GCGconshdlrDecompPartialdecGetNBlocksForEqClass(), GCGconshdlrDecompPartialdecGetNEquivalenceClasses(), GCGconshdlrDecompPartialdecGetNVarsForBlock(), GCGconshdlrDecompPartialdecGetOrigVarForBlock(), GCGconshdlrDecompPartialdecGetReprBlockForEqClass(), GCGconshdlrDecompPartialdecGetRepVarMap(), GCGdecompGetPartialdecID(), GCGgetOrigprob(), GCGoriginalVarGetPricingVar(), GCGoriginalVarIsLinking(), GCGoriginalVarSetPricingVar(), GCGpricingVarAddOrigVar(), GCGvarGetBlock(), GCGvarIsOriginal(), GCGvarIsPricing(), i, j, SCIP_RelaxData::nblocksidentical, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::nrelpricingprobs, SCIP_RelaxData::pricingprobs, SCIP_CALL(), SCIPdebugMessage(), and SCIPfreeBufferArray().
Referenced by checkIdenticalBlocks(), and createMaster().
◆ 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
-
dectype the dectype of the decomp pricingprob SCIP data structure of the pricing problem clocktype clocktype to use in the pricing problem infinity values larger than this are considered infinity in the pricing problem epsilon absolute values smaller than this are considered zero in the pricing problem sumepsilon absolute values of sums smaller than this are considered zero in the pricing problem feastol feasibility tolerance for constraints in the pricing problem lpfeastolfactor primal feasibility tolerance factor of LP solver in the pricing problem dualfeastol feasibility tolerance for reduced costs in LP solution in the pricing problem enableppcuts should 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()
|
static |
creates a variable in a pricing problem corresponding to the given original variable (belonging to exactly one block)
- Parameters
-
relaxdata relaxator data data structure origvar corresponding 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()
|
static |
creates a variable in each of the pricing problems linked by given original variable
- Parameters
-
gcg GCG data structure relaxdata relaxator data data structure origvar corresponding linking variable in the original program
Definition at line 993 of file relax_gcg.c.
References assert(), createLinkingPricingVars(), SCIP_RelaxData::gcg, GCG_DECMODE_BENDERS, GCGgetMasterprob(), GCGgetOrigprob(), GCGlinkingVarCreateMasterCons(), GCGlinkingVarCreatePricingVar(), GCGlinkingVarGetLinkingConss(), GCGlinkingVarGetNBlocks(), GCGlinkingVarGetPricingVars(), GCGlinkingVarSetLinkingCons(), GCGlinkingVarSetPricingVar(), GCGoriginalVarIsLinking(), GCGvarIsOriginal(), GCGvarIsPricing(), i, SCIP_RelaxData::mode, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::nvarlinkconss, SCIP_RelaxData::pricingprobs, SCIP_CALL(), var, SCIP_RelaxData::varlinkconsblock, and SCIP_RelaxData::varlinkconss.
Referenced by createLinkingPricingVars(), and createPricingVariables().
◆ createPricingVariables()
|
static |
create pricing problem variables
- Parameters
-
gcg GCG data structure relaxdata relaxator data data structure hashorig2pricingvar hashmap mapping original variables to pricing variables
Definition at line 1107 of file relax_gcg.c.
References assert(), createLinkingPricingVars(), createPricingVar(), createPricingVariables(), SCIP_RelaxData::decomp, GCGdecompGetNBlocks(), GCGdecompGetVartoblock(), GCGgetOrigprob(), GCGlinkingVarGetPricingVars(), GCGoriginalVarGetPricingVar(), GCGoriginalVarIsLinking(), GCGvarGetBlock(), GCGvarIsPricing(), i, SCIP_RelaxData::nlinkingvars, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::ntransvars, nvars, SCIP_CALL(), SCIPdebugMessage(), and vars.
Referenced by createMaster(), and createPricingVariables().
◆ displayPricingStatistics()
|
static |
displays statistics of the pricing problems
- Parameters
-
gcg GCG data structure pricingprobs array of pricing problems npricingprobs number of pricingproblems blockrepresentative array 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()
|
static |
allocates initial problem specific data
- Parameters
-
gcg GCG data structure relaxdata relaxatordata data structure
Definition at line 1277 of file relax_gcg.c.
References assert(), SCIP_RelaxData::blockrepresentative, SCIP_RelaxData::convconss, GCGgetOrigprob(), i, initRelaxProblemdata(), SCIP_RelaxData::masterconss, SCIP_RelaxData::maxmasterconss, SCIP_RelaxData::maxpricingprobs, SCIP_RelaxData::nblocksidentical, SCIP_RelaxData::nmasterconss, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::origmasterconss, SCIP_RelaxData::pricingprobs, and SCIP_CALL().
Referenced by createMaster(), and initRelaxProblemdata().
◆ createMasterProblem()
|
static |
creates the master problem with the specified name
- Parameters
-
gcg GCG data structure name name of the master problem clocktype clocktype to use in the master problem infinity values larger than this are considered infinity in the master problem epsilon absolute values smaller than this are considered zero in the master problem sumepsilon absolute values of sums smaller than this are considered zero in the master problem feastol feasibility tolerance for constraints in the master problem lpfeastolfactor primal feasibility tolerance factor of LP solver in the master problem dualfeastol feasibility tolerance for reduced costs in LP solution in the master problem mode the 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()
|
static |
creates the pricing problem with the specified name
- Parameters
-
relaxdata the relaxator data data structure pricingscip Pricing GCG data structure name name of the pricing problem clocktype clocktype to use in the pricing problem infinity values larger than this are considered infinity in the pricing problem epsilon absolute values smaller than this are considered zero in the pricing problem sumepsilon absolute values of sums smaller than this are considered zero in the pricing problem feastol feasibility tolerance for constraints in the pricing problem lpfeastolfactor primal feasibility tolerance factor of LP solver in the pricing problem dualfeastol feasibility tolerance for reduced costs in LP solution in the pricing problem enableppcuts should 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()
|
static |
saves the coefficient of the masterconstraints in the original variable
- Parameters
-
gcg GCG data structure origvars original variables array norigvars size of original variables array nmasterconss size of masterconns array origmasterconss orig master constraints array masterconss master 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()
|
static |
creates the master problem constraints
- Parameters
-
gcg GCG data structure relaxdata the relaxator data data structure
Definition at line 1498 of file relax_gcg.c.
References assert(), c, createMasterprobConss(), SCIP_RelaxData::decomp, ensureSizeMasterConss(), SCIP_RelaxData::gcg, GCG_DECMODE_BENDERS, GCG_DECMODE_ORIGINAL, GCGconsGetLhs(), GCGconsGetNVars(), GCGconsGetRhs(), GCGconsGetVals(), GCGconsGetVars(), GCGcreateInitialMasterVar(), GCGdecompGetLinkingconss(), GCGdecompGetNLinkingconss(), GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGoriginalVarAddMasterVar(), GCGoriginalVarGetMastervars(), GCGoriginalVarGetNMastervars(), GCGoriginalVarIsLinking(), GCGoriginalVarIsTransVar(), i, SCIP_RelaxData::masterconss, SCIP_RelaxData::nmasterconss, SCIP_RelaxData::origmasterconss, saveOriginalVarMastercoeffs(), SCIP_CALL(), SCIPdebugMessage(), and SCIPfreeBufferArray().
Referenced by createMaster(), and createMasterprobConss().
◆ createPricingprobConss()
|
static |
creates the pricing problem constraints
- Parameters
-
gcg GCG data structure relaxdata the relaxator data data structure hashorig2pricingvar hashmap 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()
|
static |
creates the master problem and the pricing problems and copies the constraints into them
- Parameters
-
gcg GCG data structure relaxdata the relaxator data data structure
Definition at line 1726 of file relax_gcg.c.
References assert(), SCIP_RelaxData::blockrepresentative, checkIdenticalBlocks(), checkSetppcStructure(), SCIP_RelaxData::convconss, convertStructToGCG(), createMaster(), createMasterprobConss(), createMasterProblem(), createPricingprobConss(), createPricingProblem(), createPricingVariables(), SCIP_RelaxData::decomp, SCIP_RelaxData::dispinfos, displayPricingStatistics(), SCIP_RelaxData::gcg, GCG_DECMODE_DANTZIGWOLFE, GCG_DECMODE_ORIGINAL, GCGgetMasterprob(), GCGgetOrigprob(), GCGmasterCreateInitialMastervars(), i, initRelaxProblemdata(), Gcg::masterprob, SCIP_RelaxData::mode, SCIP_RelaxData::nblocksidentical, SCIP_RelaxData::npricingprobs, origprob, SCIP_RelaxData::pricingprobs, SCIP_RelaxData::pricingprobsmemused, SCIP_CALL(), SCIPdebugMessage(), and SCIPfreeBufferArray().
Referenced by createMaster(), and initRelaxator().
◆ combineSolutions()
|
static |
combines the solutions from all (disjoint) problems to one solution
- Parameters
-
gcg GCG data structure newsol pointer to store new solution probs array of (solved) subproblems nprobs number 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()
|
static |
sets the pricing objective function to what is necessary
- Parameters
-
gcg GCG data structure probs array of subproblems nprobs number 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()
|
static |
solve a block problem when the decomposition is diagonal
- Parameters
-
gcg GCG data structure blockprob the block problem that will be solved relaxdata relaxator data structure timelimit the original problem timelimit blocknum the number of the block, -1 for the original problem result result pointer to indicate success or failure objvalue the 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()
|
static |
frees the block problem
- Parameters
-
gcg GCG data structure blockprob the block problem that will be solved relaxdata relaxator data structure blocknum the 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()
|
static |
solves the blocks diagonal and individually
- Parameters
-
gcg GCG data structure relaxdata relaxator data structure result result pointer to indicate success or failure lowerbound lower 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()
|
static |
sets the structure information
- Parameters
-
gcg GCG data structure decomp decomposition 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()
|
static |
transforms the master problem
- Parameters
-
gcg GCG data structure relax relaxator data structure
Definition at line 2378 of file relax_gcg.c.
References assert(), SCIP_RelaxData::convconss, SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGlinkingVarGetLinkingConss(), GCGlinkingVarSetLinkingCons(), GCGoriginalVarIsLinking(), GCGvarIsOriginal(), i, j, SCIP_RelaxData::masterconss, masterprob, SCIP_RelaxData::nmasterconss, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::nvarlinkconss, nvars, SCIP_CALL(), SCIPfreeBufferArray(), transformMaster(), SCIP_RelaxData::varlinkconss, and vars.
Referenced by initializeMasterProblemSolve(), and transformMaster().
◆ initRelaxator()
|
static |
initializes and transforms relaxator data
- Parameters
-
gcg GCG data structure relax relaxator data structure
Definition at line 2466 of file relax_gcg.c.
References assert(), createMaster(), SCIP_RelaxData::decomp, SCIP_RelaxData::discretization, SCIP_RelaxData::gcg, GCG_DECMODE_BENDERS, GCG_DECMODE_DANTZIGWOLFE, GCG_DECMODE_ORIGINAL, GCGconshdlrDecompAddBasicPartialdec(), GCGconshdlrDecompSelectPartialdec(), GCGcreateBasicDecomp(), GCGdecompGetMaxwhiteScore(), GCGdecompGetNBlocks(), GCGdecompGetNLinkingconss(), GCGdecompGetNLinkingvars(), GCGdecompGetNMastervars(), GCGgetBestDecomp(), GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetNRelPricingprobs(), GCGgetOrigprob(), GCGpermuteDecomp(), GCGsetStructDecomp(), initRelaxator(), SCIP_RelaxData::lastsolvednodenr, SCIP_RelaxData::mipdiscretization, SCIP_RelaxData::mode, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::relaxisinitialized, retcode, and SCIP_CALL().
Referenced by initRelaxator(), and SCIP_DECL_RELAXINITSOL().
◆ initRelaxdata()
|
static |
initializes relaxator data
- Parameters
-
gcg GCG data structure relaxdata relaxdata 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()
|
static |
resets relaxator data
- Parameters
-
relaxdata relaxdata data structure
Definition at line 2707 of file relax_gcg.c.
References assert(), SCIP_RelaxData::currentorigsol, SCIP_RelaxData::decomp, SCIP_RelaxData::lastmasterlpiters, SCIP_RelaxData::lastmasternode, SCIP_RelaxData::lastmastersol, SCIP_RelaxData::lastsolvednodenr, SCIP_RelaxData::markedmasterconss, SCIP_RelaxData::masterconss, SCIP_RelaxData::masterinprobing, SCIP_RelaxData::maxmarkedmasterconss, SCIP_RelaxData::nlinkingvars, SCIP_RelaxData::nmasterconss, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::nrelpricingprobs, SCIP_RelaxData::ntransvars, SCIP_RelaxData::nvarlinkconss, SCIP_RelaxData::origmasterconss, SCIP_RelaxData::origsolfeasible, SCIP_RelaxData::pricingprobsmemused, SCIP_RelaxData::probingheur, SCIP_RelaxData::relaxisinitialized, resetRelaxdata(), SCIP_RelaxData::rootnodetime, SCIP_RelaxData::simplexiters, SCIP_RelaxData::storedfeasibility, SCIP_RelaxData::storedorigsol, SCIP_RelaxData::varlinkconsblock, and SCIP_RelaxData::varlinkconss.
Referenced by resetRelaxdata(), and SCIP_DECL_RELAXINITSOL().
◆ SCIP_DECL_RELAXFREE()
|
static |
destructor of relaxator to free user data (called when SCIP is exiting)
Definition at line 2754 of file relax_gcg.c.
References assert(), Gcg::bendersmasterprob, SCIP_RelaxData::blockrepresentative, SCIP_RelaxData::branchrules, SCIP_RelaxData::convconss, SCIP_RelaxData::decomp, Gcg::dwmasterprob, SCIP_RelaxData::gcg, GCGdecompFree(), GCGVisuFreeParams(), i, Gcg::masterprob, SCIP_RelaxData::maxpricingprobs, SCIP_RelaxData::nblocksidentical, SCIP_RelaxData::nbranchrules, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::nseparators, SCIP_RelaxData::paramsvisu, SCIP_RelaxData::pricingprobs, Gcg::relax, SCIP_CALL(), SCIP_DECL_RELAXFREE(), SCIPfreeMemory(), and SCIP_RelaxData::separators.
Referenced by SCIP_DECL_RELAXFREE().
◆ SCIP_DECL_RELAXEXIT()
|
static |
deinitialization method of relaxator (called before transformed problem is freed)
Definition at line 2840 of file relax_gcg.c.
References assert(), SCIP_RelaxData::decomp, SCIP_RelaxData::gcg, GCGdecompFree(), i, SCIP_RelaxData::limitsettingsstashed, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::pricingprobs, SCIP_RelaxData::relaxisinitialized, SCIP_CALL(), and SCIP_DECL_RELAXEXIT().
Referenced by SCIP_DECL_RELAXEXIT().
◆ initializeMasterProblemSolve()
|
static |
initialize the relaxator and master problem for solving the original problem by Dantzig-Wolfe reformulation and Benders' decomposition
- Parameters
-
gcg the GCG data structure relax the 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()
|
static |
solving process initialization method of relaxator (called when branch and bound process is about to begin)
Definition at line 2910 of file relax_gcg.c.
References assert(), Gcg::bendersmasterprob, Gcg::dwmasterprob, SCIP_RelaxData::gcg, GCG_DECMODE_BENDERS, GCG_DECMODE_DANTZIGWOLFE, GCG_DECMODE_ORIGINAL, GCGgetDecompositionMode(), GCGgetMasterprob(), initRelaxator(), Gcg::masterprob, SCIP_RelaxData::mode, SCIP_RelaxData::origverblevel, resetRelaxdata(), SCIP_RelaxData::rootnodetime, SCIP_CALL(), and SCIP_DECL_RELAXINITSOL().
Referenced by SCIP_DECL_RELAXINITSOL().
◆ SCIP_DECL_RELAXEXITSOL()
|
static |
solving process deinitialization method of relaxator (called before branch and bound process data is freed)
Definition at line 2995 of file relax_gcg.c.
References SCIP_RelaxData::activebranchdata, SCIP_RelaxData::activebranchextendedmasterconss, SCIP_RelaxData::activebranchrules, assert(), SCIP_RelaxData::convconss, SCIP_RelaxData::currentorigsol, SCIP_RelaxData::decomp, SCIP_RelaxData::gcg, GCGdecompFree(), GCGfreeOrigVarsData(), GCGgetMasterprob(), i, SCIP_RelaxData::markedmasterconss, SCIP_RelaxData::masterconss, SCIP_RelaxData::maxactivebranchextendedmasterconss, SCIP_RelaxData::maxmarkedmasterconss, SCIP_RelaxData::maxmasterconss, SCIP_RelaxData::nactivebranchextendedmasterconss, SCIP_RelaxData::nmasterconss, SCIP_RelaxData::npricingprobs, SCIP_RelaxData::nvarlinkconss, SCIP_RelaxData::origmasterconss, SCIP_RelaxData::relaxisinitialized, SCIP_RelaxData::rootnodetime, SCIP_CALL(), SCIP_DECL_RELAXEXITSOL(), SCIP_RelaxData::storedorigsol, SCIP_RelaxData::varlinkconsblock, and SCIP_RelaxData::varlinkconss.
Referenced by SCIP_DECL_RELAXEXITSOL().
◆ setMasterLimits()
|
static |
sets (time and gap) limits in the master problem based on limits of the original problem
- Parameters
-
gcg the GCG data structure masterprob the master problem SCIP instance origtimelimit time limit fo the original problem origgaplimit gap 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()
|
static |
method to solve the master problem that is used by Dantzig-Wolfe and Benders' decomposition
- Parameters
-
gcg the GCG data structure masterprob the master problem SCIP instance relaxdata the relaxator data nodelimit the number of nodes the will be solved in this master problem lowerbound the lowerbound computed by the relaxator for the current node result the 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()
|
static |
execution method of the relaxator for Dantzig-Wolfe reformulation
- Parameters
-
gcg the GCG data structure relax the relaxator lowerbound the lowerbound computed by the relaxator for the current node result the result of the relaxation call
Definition at line 3253 of file relax_gcg.c.
References assert(), SCIP_RelaxData::currentorigsol, Gcg::dwmasterprob, SCIP_RelaxData::gcg, GCG_DECMODE_DANTZIGWOLFE, GCGconsOrigbranchGetActiveCons(), GCGconsOrigbranchGetBranchdata(), GCGconsOrigbranchGetBranchrule(), GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGmasterIsBestsolValid(), GCGmasterIsCurrentSolValid(), GCGrelaxBranchMasterSolved(), GCGtransformMastersolToOrigsol(), SCIP_RelaxData::lastmastersol, SCIP_RelaxData::lastsolvednodenr, Gcg::masterprob, masterprob, relaxExecGcgDantzigWolfe(), result, SCIP_RelaxData::rootnodetime, SCIP_CALL(), SCIPdebugMessage(), and solveMasterProblem().
Referenced by relaxExecGcgDantzigWolfe(), and SCIP_DECL_RELAXEXEC().
◆ solveMasterProblemAndEvaluate()
|
static |
method to solve the master problem for Benders' decomposition and when solving the original problem directly.
- Parameters
-
gcg the GCG data structure relax the relaxator lowerbound the lowerbound computed by the relaxator for the current node result the 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()
|
static |
execution method of the relaxator for Benders' decomposition
- Parameters
-
gcg the GCG data structure relax the relaxator lowerbound the lowerbound computed by the relaxator for the current node result the 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()
|
static |
execution method of the relaxator when the original problem is solved directly
- Parameters
-
gcg the GCG data structure relax the relaxator lowerbound the lowerbound computed by the relaxator for the current node result the 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()
|
static |
execution method of relaxator
Definition at line 3519 of file relax_gcg.c.
References assert(), cutoff, SCIP_RelaxData::gcg, GCG_DECMODE_BENDERS, GCG_DECMODE_DANTZIGWOLFE, GCG_DECMODE_ORIGINAL, GCGgetDecompositionMode(), GCGrestoreLimitSettings(), initializeMasterProblemSolve(), SCIP_RelaxData::mode, relaxExecGcgBendersDecomposition(), relaxExecGcgDantzigWolfe(), relaxExecGcgOriginalProblem(), result, SCIP_CALL(), and SCIP_DECL_RELAXEXEC().
Referenced by 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
-
gcg SCIP data structure branchrule branching rule for which callback methods are saved gcgbranchrule pointer to store created GCG branch rule (can be NULL) name name of branching rule desc description of branching rule priority priority of the branching rule maxdepth maximal depth level, up to which this branching rule should be used (or -1) maxbounddist maximal 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) branchruledata branching 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
-
gcg GCG data structure branchrule branching rule that did the branching branchdata data 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
-
gcg GCG data structure branchrule branching rule that did the branching branchdata data 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
-
gcg GCG data structure branchrule branching rule that did the branching branchdata data representing the branching decision result pointer 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
-
gcg GCG data structure branchrule branching rule that did the branching branchdata data representing the branching decision origbranch true iff an origbranch triggered this call force branch 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
-
gcg GCG data structure branchrule branching rule that did the branching branchdata data representing the branching decision mastervar new 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
-
gcg GCG data structure branchrule branching rule that did the branching branchdata data representing the branching decision extendedmasterconsdata the 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
-
gcg GCG data structure branchrules branching rules that created extended master conss (can be NULL) branchdata data represeting the branching decisions of the active nodes (can be NULL) extendedmasterconsdata array of extended master conss generated by branching in all currently active nodes nextendedmasterconss number 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
-
gcg GCG data structure branchrule branching rule that did the branching branchdata data representing the branching decision newlowerbound the 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
-
gcg GCG data structure cons the constraint that should be transformed transcons pointer 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()
returns the current solution for the original problem
- Parameters
-
gcg GCG 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()
returns whether the current solution is primal feasible in the original problem
- Parameters
-
gcg GCG data structure
Definition at line 4328 of file relax_gcg.c.
References assert(), GCGgetRelax(), GCGrelaxIsOrigSolFeasible(), and SCIP_RelaxData::origsolfeasible.
Referenced by GCGrelaxIsOrigSolFeasible(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SEPAEXECLP(), and while().
◆ 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
-
gcg GCG data structure probingheur heuristic 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()
returns the heuristic that started probing in the master problem, or NULL
- Parameters
-
gcg GCG 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
-
gcg GCG 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
-
gcg GCG 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
-
gcg GCG data structure branchrule pointer to the branching rule branchdata branching data origbranchconss original constraints enforcing the branching decision norigbranchconss number of original constraints maxorigbranchconss capacity 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
-
gcg GCG data structure probingdepth probing 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()
|
static |
solve the master probing LP with or without pricing
- Parameters
-
gcg GCG data structure maxlpiterations maximum number of lp iterations allowed maxpricerounds maximum number of pricing rounds allowed usepricing should the LP be solved with or without pricing? nlpiterations pointer to store the number of performed LP iterations (or NULL) npricerounds pointer to store the number of performed pricing rounds (or NULL) lpobjvalue pointer to store the lp obj value if lp was solved lpsolved pointer to store whether the lp was solved lperror pointer to store whether an unresolved LP error occured or the solving process should be stopped (e.g., due to a time limit) cutoff pointer 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
-
gcg GCG data structure maxlpiterations maximum number of lp iterations allowed nlpiterations pointer to store the number of performed LP iterations (or NULL) lpobjvalue pointer to store the lp obj value if lp was solved lpsolved pointer to store whether the lp was solved lperror pointer to store whether an unresolved LP error occured or the solving process should be stopped (e.g., due to a time limit) cutoff pointer 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
-
gcg GCG data structure maxpricerounds maximum number of pricing rounds allowed nlpiterations pointer to store the number of performed LP iterations (or NULL) npricerounds pointer to store the number of performed pricing rounds (or NULL) lpobjvalue pointer to store the lp obj value if lp was solved lpsolved pointer to store whether the lp was solved lperror pointer to store whether an unresolved LP error occured or the solving process should be stopped (e.g., due to a time limit) cutoff pointer 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()
| SCIP_RETCODE GCGrelaxEndProbing | ( | GCG * | gcg | ) |
end probing mode in both the original and master problems
- Parameters
-
gcg GCG data structure
Definition at line 4794 of file relax_gcg.c.
References assert(), SCIP_RelaxData::currentorigsol, SCIP_RelaxData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrelaxEndProbing(), GCGtransformMastersolToOrigsol(), i, SCIP_RelaxData::lastmastersol, SCIP_RelaxData::masterinprobing, masterprob, nvars, SCIP_RelaxData::origsolfeasible, SCIP_RelaxData::probingheur, RELAX_INCLUDESLP, SCIP_CALL(), SCIPdebugMessage(), solval, SCIP_RelaxData::storedfeasibility, SCIP_RelaxData::storedorigsol, var, and vars.
Referenced by applyProbing(), executeStrongBranching(), GCGrelaxEndProbing(), SCIP_CALL(), and SCIP_DECL_HEUREXEC().
◆ checkAndAddExternalBranchingCandidate()
|
static |
checks whether a variable should be added as an external branching candidate, if so it is added
- Parameters
-
gcg the GCG data structure var the 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()
|
static |
- Parameters
-
gcg the GCG data structure relaxdata relaxdata 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()
| SCIP_RETCODE GCGrelaxUpdateCurrentSol | ( | GCG * | gcg | ) |
transforms the current solution of the master problem into the original problem's space and saves this solution as currentsol in the relaxator's data
- Parameters
-
gcg GCG data structure
Definition at line 4964 of file relax_gcg.c.
References assert(), checkAndAddExternalBranchingCandidate(), SCIP_RelaxData::currentorigsol, freeCurrentOrigSol(), GCG_DECMODE_BENDERS, GCG_DECMODE_DANTZIGWOLFE, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGmasterIsSolValid(), GCGmasterVarGetNOrigvars(), GCGmasterVarGetOrigvars(), GCGrelaxUpdateCurrentSol(), GCGtransformMastersolToOrigsol(), GCGvarIsMaster(), i, j, SCIP_RelaxData::lastmasterlpiters, SCIP_RelaxData::lastmasternode, masterprob, mastervars, nmastervars, SCIP_RelaxData::origsolfeasible, RELAX_INCLUDESLP, SCIP_CALL(), and SCIPdebugMessage().
Referenced by GCGrelaxUpdateCurrentSol(), performProbing(), SCIP_DECL_BENDERSPOSTSOLVE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_SEPAEXECLP(), and SCIP_DECL_SEPAEXECLP().
◆ GCGgetDualbound()
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
-
gcg GCG 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()
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
-
gcg GCG 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()
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
-
gcg GCG 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
-
gcg GCG 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
-
gcg GCG 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()
| SCIP_RETCODE GCGrestoreLimitSettings | ( | GCG * | gcg | ) |
restore limit settings if currently stashed
- Parameters
-
gcg GCG data structure
Definition at line 5738 of file relax_gcg.c.
References assert(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetRelax(), GCGrestoreLimitSettings(), SCIP_RelaxData::limitsettingsstashed, masterprob, SCIP_CALL(), setMasterLimits(), SCIP_RelaxData::stashedgaplimit, SCIP_RelaxData::stashednodelimit, SCIP_RelaxData::stashedsollimit, SCIP_RelaxData::stashedstallnodelimit, and SCIP_RelaxData::stashedtimelimit.
Referenced by createBranchNodesInOrigprob(), GCGrestoreLimitSettings(), SCIP_DECL_NODESELSELECT(), and SCIP_DECL_RELAXEXEC().
◆ GCGrelaxGetGcg()
| GCG_EXPORT GCG * GCGrelaxGetGcg | ( | SCIP * | origprob | ) |
returns the GCG data structure
- Parameters
-
origprob SCIP 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
-
gcg SCIP data structure sepa pointer to store created scip separator gcgsepa pointer to store created GCG separator (can be NULL) name name of separator desc description of separator priority priority of separator (>= 0: before, < 0: after constraint handlers) freq frequency for calling separator maxbounddist maximal relative distance from current node's dual bound to primal bound compared to best node's dual bound for applying separation usessubscip does the separator use a secondary SCIP instance? delay should separator be delayed, if other separators found cuts? - LP solution separation method of separator - arbitrary primal solution separation method of separator sepadata separator 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().