Scippy

GCG

Branch-and-Price & Column Generation for Everyone

bendersplugins.c
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the program and library */
4/* GCG --- Generic Column Generation */
5/* a Dantzig-Wolfe decomposition based extension */
6/* of the branch-cut-and-price framework */
7/* SCIP --- Solving Constraint Integer Programs */
8/* */
9/* Copyright (C) 2010-2026 Operations Research, RWTH Aachen University */
10/* Zuse Institute Berlin (ZIB) */
11/* */
12/* Licensed under the Apache License, Version 2.0 (the "License"); */
13/* you may not use this file except in compliance with the License. */
14/* You may obtain a copy of the License at */
15/* */
16/* http://www.apache.org/licenses/LICENSE-2.0 */
17/* */
18/* Unless required by applicable law or agreed to in writing, software */
19/* distributed under the License is distributed on an "AS IS" BASIS, */
20/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
21/* See the License for the specific language governing permissions and */
22/* limitations under the License. */
23/* */
24/* You should have received a copy of the Apache-2.0 license */
25/* along with GCG; see the file LICENSE. If not visit gcg.or.rwth-aachen.de.*/
26/* */
27/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
28
29/**@file bendersplugins.c
30 * @brief SCIP plugins for the master problem running in Benders' decomposition mode
31 * @author Stephen J. Maher
32 */
33
34/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35
36#include "gcg/bendersplugins.h"
37#include "scip/scipdefplugins.h"
38#include "scip/debug.h"
39
40/* GCG specific stuff */
41#include "gcg/dialog_master.h"
42#include "gcg/disp_master.h"
43
44/** includes default GCG Benders' decomposition plugins */
46 GCG* gcg /**< GCG data structure */
47 )
48{
49 SCIP* masterprob = GCGgetBendersMasterprob(gcg);
50 /* including the dialog used for the master problem */
52 /* including the SCIP default plugins */
53 SCIP_CALL( SCIPincludeConshdlrNonlinear(masterprob) ); /* nonlinear must be before linear, quadratic, abspower, and and due to constraint upgrading */
54 SCIP_CALL( SCIPincludeNlhdlrQuadratic(masterprob) ); /* quadratic must be before linear due to constraint upgrading */
55 SCIP_CALL( SCIPincludeConshdlrLinear(masterprob) ); /* linear must be before its specializations due to constraint upgrading */
56 SCIP_CALL( SCIPincludeConshdlrAnd(masterprob) );
70 SCIP_CALL( SCIPincludeConshdlrOr(masterprob) );
80 SCIP_CALL( SCIPincludeConshdlrXor(masterprob) );
82 SCIP_CALL( SCIPincludeReaderBnd(masterprob) );
83 SCIP_CALL( SCIPincludeReaderCcg(masterprob) );
84 SCIP_CALL( SCIPincludeReaderCip(masterprob) );
85 SCIP_CALL( SCIPincludeReaderCnf(masterprob) );
86 SCIP_CALL( SCIPincludeReaderCor(masterprob) );
87 SCIP_CALL( SCIPincludeReaderDiff(masterprob) );
88 SCIP_CALL( SCIPincludeReaderFix(masterprob) );
89 SCIP_CALL( SCIPincludeReaderFzn(masterprob) );
90 SCIP_CALL( SCIPincludeReaderGms(masterprob) );
91 SCIP_CALL( SCIPincludeReaderLp(masterprob) );
92 SCIP_CALL( SCIPincludeReaderMps(masterprob) );
93 SCIP_CALL( SCIPincludeReaderMst(masterprob) );
94 SCIP_CALL( SCIPincludeReaderOpb(masterprob) );
95 SCIP_CALL( SCIPincludeReaderOsil(masterprob) );
96 SCIP_CALL( SCIPincludeReaderPip(masterprob) );
97 SCIP_CALL( SCIPincludeReaderPpm(masterprob) );
98 SCIP_CALL( SCIPincludeReaderPbm(masterprob) );
99 SCIP_CALL( SCIPincludeReaderRlp(masterprob) );
100 SCIP_CALL( SCIPincludeReaderSmps(masterprob) );
101 SCIP_CALL( SCIPincludeReaderSol(masterprob) );
102 SCIP_CALL( SCIPincludeReaderSto(masterprob) );
103 SCIP_CALL( SCIPincludeReaderTim(masterprob) );
104 SCIP_CALL( SCIPincludeReaderWbo(masterprob) );
105 SCIP_CALL( SCIPincludeReaderZpl(masterprob) );
108 SCIP_CALL( SCIPincludePresolDomcol(masterprob) );
109 SCIP_CALL( SCIPincludePresolDualagg(masterprob) );
113 SCIP_CALL( SCIPincludePresolImplics(masterprob) );
116 SCIP_CALL( SCIPincludePresolRedvub(masterprob) );
117 SCIP_CALL( SCIPincludePresolTrivial(masterprob) );
121 SCIP_CALL( SCIPincludeNodeselBfs(masterprob) );
123 SCIP_CALL( SCIPincludeNodeselDfs(masterprob) );
127 SCIP_CALL( SCIPincludeNodeselUct(masterprob) );
144 SCIP_CALL( SCIPincludeHeurBound(masterprob) );
145 SCIP_CALL( SCIPincludeHeurClique(masterprob) );
148 SCIP_CALL( SCIPincludeHeurCrossover(masterprob) );
149 SCIP_CALL( SCIPincludeHeurDins(masterprob) );
151 SCIP_CALL( SCIPincludeHeurDualval(masterprob) );
152 SCIP_CALL( SCIPincludeHeurFeaspump(masterprob) );
155 SCIP_CALL( SCIPincludeHeurGins(masterprob) );
157 SCIP_CALL( SCIPincludeHeurZeroobj(masterprob) );
158 SCIP_CALL( SCIPincludeHeurIndicator(masterprob) );
159 SCIP_CALL( SCIPincludeHeurIntdiving(masterprob) );
163 SCIP_CALL( SCIPincludeHeurLocks(masterprob) );
164 SCIP_CALL( SCIPincludeHeurLpface(masterprob) );
165 SCIP_CALL( SCIPincludeHeurAlns(masterprob) );
166 SCIP_CALL( SCIPincludeHeurNlpdiving(masterprob) );
167 SCIP_CALL( SCIPincludeHeurMutation(masterprob) );
169 SCIP_CALL( SCIPincludeHeurMpec(masterprob) );
171 SCIP_CALL( SCIPincludeHeurOctane(masterprob) );
172 SCIP_CALL( SCIPincludeHeurOfins(masterprob) );
173 SCIP_CALL( SCIPincludeHeurOneopt(masterprob) );
174 SCIP_CALL( SCIPincludeHeurProximity(masterprob) );
177 SCIP_CALL( SCIPincludeHeurRens(masterprob) );
178 SCIP_CALL( SCIPincludeHeurReoptsols(masterprob) );
179 SCIP_CALL( SCIPincludeHeurRepair(masterprob) );
180 SCIP_CALL( SCIPincludeHeurRins(masterprob) );
182 SCIP_CALL( SCIPincludeHeurRounding(masterprob) );
184 SCIP_CALL( SCIPincludeHeurShifting(masterprob) );
186 SCIP_CALL( SCIPincludeHeurSubNlp(masterprob) );
187 SCIP_CALL( SCIPincludeHeurTrivial(masterprob) );
189 SCIP_CALL( SCIPincludeHeurTrySol(masterprob) );
190 SCIP_CALL( SCIPincludeHeurTwoopt(masterprob) );
192 SCIP_CALL( SCIPincludeHeurVbounds(masterprob) );
195 SCIP_CALL( SCIPincludePropDualfix(masterprob) );
197 SCIP_CALL( SCIPincludePropObbt(masterprob) );
198 SCIP_CALL( SCIPincludePropNlobbt(masterprob) );
199 SCIP_CALL( SCIPincludePropProbing(masterprob) );
200 SCIP_CALL( SCIPincludePropPseudoobj(masterprob) );
201 SCIP_CALL( SCIPincludePropRedcost(masterprob) );
203 SCIP_CALL( SCIPincludePropVbounds(masterprob) );
204 SCIP_CALL( SCIPincludeSepaCGMIP(masterprob) );
205 SCIP_CALL( SCIPincludeSepaClique(masterprob) );
206 SCIP_CALL( SCIPincludeSepaClosecuts(masterprob) );
210 SCIP_CALL( SCIPincludeSepaEccuts(masterprob) );
211 SCIP_CALL( SCIPincludeSepaGauge(masterprob) );
212 SCIP_CALL( SCIPincludeSepaGomory(masterprob) );
214 SCIP_CALL( SCIPincludeSepaIntobj(masterprob) );
215 SCIP_CALL( SCIPincludeSepaMcf(masterprob) );
216 SCIP_CALL( SCIPincludeSepaOddcycle(masterprob) );
218 SCIP_CALL( SCIPincludeSepaZerohalf(masterprob) );
222
223 SCIP_CALL( SCIPdebugIncludeProp(masterprob) ); /*lint !e506 !e774*/
224
225 /* including the display used for the master problem */
226 SCIP_CALL( GCGincludeDispMaster(gcg, masterprob) );
227 SCIP_CALL( SCIPincludeTableDefault(masterprob) );
228
229 /* Benders' decomposition specific plugins */
230
231
232 return SCIP_OKAY;
233}
SCIP_RETCODE GCGincludeBendersPlugins(GCG *gcg)
SCIP plugins for the master problem running in Benders' decomposition mode.
SCIP_RETCODE SCIPincludeBranchruleAllfullstrong(SCIP *scip)
SCIP_RETCODE SCIPincludeComprLargestrepr(SCIP *scip)
SCIP_RETCODE SCIPincludeComprWeakcompr(SCIP *scip)
SCIP_RETCODE SCIPincludeConcurrentScipSolvers(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrOrbitope(SCIP *scip)
#define SCIPdebugIncludeProp(scip)
#define SCIP_CALL(x)
SCIP_RETCODE GCGincludeDialogMaster(GCG *gcg)
Definition: dialog_master.c:75
user interface dialog for master problem
SCIP_RETCODE GCGincludeDispMaster(GCG *gcg, SCIP *masterprob)
Definition: disp_master.c:110
master display columns
SCIP_RETCODE SCIPincludeEventHdlrSofttimelimit(SCIP *scip)
SCIP_RETCODE SCIPincludeEventHdlrSolvingphase(SCIP *scip)
SCIP_RETCODE SCIPincludeBendersDefault(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleInference(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleRandom(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleNodereopt(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleLeastinf(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleFullstrong(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleDistribution(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleMostinf(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleRelpscost(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleCloud(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchrulePscost(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleMultAggr(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrLinear(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrOr(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrBounddisjunction(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrBenders(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrComponents(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrSetppc(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrCountsols(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrXor(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrOrbisack(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrAnd(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrVarbound(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrLogicor(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrSOS2(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrSOS1(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrCumulative(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrKnapsack(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrLinking(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrDisjunction(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrConjunction(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrCardinality(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrNonlinear(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrSymresack(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrIntegral(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrIndicator(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrPseudoboolean(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrBenderslp(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrSuperindicator(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderOpb(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderPpm(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderCcg(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderCnf(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderCor(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderSto(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderLp(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderMps(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderTim(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderMst(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderSol(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderPbm(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderCip(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderRlp(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderDiff(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderFix(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderWbo(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderZpl(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderGms(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderSmps(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderBnd(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderPip(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderOsil(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderFzn(SCIP *scip)
SCIP * GCGgetBendersMasterprob(GCG *gcg)
Definition: gcg.cpp:111
SCIP_RETCODE SCIPincludeNlhdlrQuadratic(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselUct(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselBreadthfirst(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselDfs(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselEstimate(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselRestartdfs(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselHybridestim(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselBfs(SCIP *scip)
SCIP_RETCODE SCIPincludePresolStuffing(SCIP *scip)
SCIP_RETCODE SCIPincludePresolTrivial(SCIP *scip)
SCIP_RETCODE SCIPincludePresolQPKKTref(SCIP *scip)
SCIP_RETCODE SCIPincludePresolImplics(SCIP *scip)
SCIP_RETCODE SCIPincludePresolDualcomp(SCIP *scip)
SCIP_RETCODE SCIPincludePresolGateextraction(SCIP *scip)
SCIP_RETCODE SCIPincludePresolDualagg(SCIP *scip)
SCIP_RETCODE SCIPincludePresolInttobinary(SCIP *scip)
SCIP_RETCODE SCIPincludePresolDomcol(SCIP *scip)
SCIP_RETCODE SCIPincludePresolDualinfer(SCIP *scip)
SCIP_RETCODE SCIPincludePresolTworowbnd(SCIP *scip)
SCIP_RETCODE SCIPincludePresolRedvub(SCIP *scip)
SCIP_RETCODE SCIPincludePresolConvertinttobin(SCIP *scip)
SCIP_RETCODE SCIPincludePresolBoundshift(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurGuideddiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurVbounds(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurCrossover(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurOfins(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurFixandinfer(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurActconsdiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurVeclendiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurSimplerounding(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurUndercover(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurTrivialnegation(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurMutation(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurMpec(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurRepair(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurShifting(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurDins(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurLinesearchdiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurCoefdiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurIntshifting(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurShiftandpropagate(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurGins(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurObjpscostdiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurTrySol(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurDualval(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurMultistart(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurClique(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurIndicator(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurAlns(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurLocks(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurZirounding(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurOneopt(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurRandrounding(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurRins(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurNlpdiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurFeaspump(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurProximity(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurIntdiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurZeroobj(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurRounding(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurReoptsols(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurPscostdiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurLocalbranching(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurTrivial(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurBound(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurCompletesol(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurTwoopt(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurDistributiondiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurLpface(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurOctane(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurFracdiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurRootsoldiving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurRens(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurSubNlp(SCIP *scip)
SCIP_RETCODE SCIPincludePropDualfix(SCIP *scip)
SCIP_RETCODE SCIPincludePropRedcost(SCIP *scip)
SCIP_RETCODE SCIPincludePropGenvbounds(SCIP *scip)
SCIP_RETCODE SCIPincludePropVbounds(SCIP *scip)
SCIP_RETCODE SCIPincludePropProbing(SCIP *scip)
SCIP_RETCODE SCIPincludePropNlobbt(SCIP *scip)
SCIP_RETCODE SCIPincludePropObbt(SCIP *scip)
SCIP_RETCODE SCIPincludePropPseudoobj(SCIP *scip)
SCIP_RETCODE SCIPincludePropRootredcost(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaConvexproj(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaZerohalf(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaMcf(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaRapidlearning(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaEccuts(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaIntobj(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaGauge(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaClique(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaCGMIP(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaOddcycle(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaImpliedbounds(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaDisjunctive(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaClosecuts(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaAggregation(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaGomory(SCIP *scip)
SCIP_RETCODE SCIPincludeTableDefault(SCIP *scip)
SCIP_RETCODE SCIPincludePresolSparsify(SCIP *scip)
Definition: struct_gcg.h:55
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE