GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
masterplugins.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 masterplugins.c
30 * @brief SCIP plugins for generic column generation
31 * @author Gerald Gamrath
32 * @author Martin Bergner
33 */
34
35/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36#include <scip/def.h>
37#define USEHEURS 1
38#define USESEPA 0
39#define USEPROP 1
40
41#include "gcg/masterplugins.h"
42
43#include "scip/cons_and.h"
46#include "scip/cutsel_hybrid.h"
47#include "scip/cons_integral.h"
48#include "scip/cons_indicator.h"
49#include "scip/cons_knapsack.h"
50#include "scip/cons_linear.h"
51#include "scip/cons_logicor.h"
52#include "scip/cons_or.h"
53#include "scip/cons_setppc.h"
54#include "scip/cons_varbound.h"
55#include "scip/cons_xor.h"
56
57#if USEHEURS
60#include "scip/heur_bound.h"
61#include "scip/heur_clique.h"
65#include "scip/heur_crossover.h"
66#include "scip/heur_dins.h"
68#include "scip/heur_dks.h"
69#include "scip/heur_dps.h"
70#include "scip/heur_dualval.h"
72#include "scip/heur_feaspump.h"
75#include "scip/heur_gins.h"
77#include "scip/heur_indicator.h"
79#include "scip/heur_intdiving.h"
83#include "scip/heur_locks.h"
84#include "scip/heur_lpface.h"
85#include "scip/heur_alns.h"
87#include "scip/heur_mutation.h"
88#include "scip/heur_mpec.h"
89#include "scip/heur_nlpdiving.h"
91#include "scip/heur_octane.h"
92#include "scip/heur_ofins.h"
93#include "scip/heur_oneopt.h"
94#include "scip/heur_padm.h"
96#include "scip/heur_proximity.h"
98#include "scip/heur_rens.h"
99#include "scip/heur_reoptsols.h"
100#include "scip/heur_repair.h"
101#include "scip/heur_rins.h"
103#include "scip/heur_rounding.h"
104#include "scip/heur_scheduler.h"
106#include "scip/heur_shifting.h"
108#include "scip/heur_subnlp.h"
109#include "scip/heur_trivial.h"
112#include "scip/heur_trysol.h"
113#include "scip/heur_twoopt.h"
114#include "scip/heur_undercover.h"
115#include "scip/heur_vbounds.h"
117#include "scip/heur_zeroobj.h"
118#include "scip/heur_zirounding.h"
119#endif
120
121#include "scip/presol_implics.h"
125
126#if USEPROP
127#include "scip/prop_dualfix.h"
128#include "scip/prop_genvbounds.h"
129#include "scip/prop_probing.h"
130#include "scip/prop_pseudoobj.h"
132#include "scip/prop_redcost.h"
133#include "scip/prop_vbounds.h"
134#endif
135
136#if USESEPA
137#include "scip/sepa_clique.h"
138#include "scip/sepa_cmir.h"
139#include "scip/sepa_flowcover.h"
140#include "scip/sepa_gomory.h"
142#include "scip/sepa_intobj.h"
143#include "scip/sepa_mcf.h"
144#include "scip/sepa_oddcycle.h"
145#include "scip/sepa_strongcg.h"
146#endif
147
148/* Chantal's Separators */
150#include "gcg/sepa_subsetrow.h"
151
152/* Jonas' stuff */
153#include "gcg/sepa_basis.h"
154
155#include "scip/reader_cip.h"
156#include "scip/reader_lp.h"
157#include "scip/scipshell.h"
158
159/* GCG specific stuff */
160#include "gcg/pricer_gcg.h"
161#include "gcg/nodesel_master.h"
164#include "gcg/sepa_original.h"
166#include "gcg/branch_orig.h"
167#include "gcg/branch_relpsprob.h"
168#include "gcg/branch_generic.h"
169#include "gcg/branch_bpstrong.h"
170#include "gcg/branch_compbnd.h"
171#include "scip/debug.h"
172#include "gcg/dialog_master.h"
173#include "gcg/disp_master.h"
174#include "gcg/solver_knapsack.h"
175#include "gcg/solver_mip.h"
176#include "gcg/event_bestsol.h"
177#include "gcg/event_relaxsol.h"
179#include "gcg/event_display.h"
180
181/* Erik's GCG solver */
182#include "gcg/solver_gcg.h"
183
184/* Christian's heuristics */
191#include "gcg/heur_relaxcolsel.h"
192#include "gcg/heur_restmaster.h"
193#include "gcg/heur_setcover.h"
194
195#include "heur_ipcolgen.h"
196
197#ifdef WITH_CLIQUER
198#include "gcg/solver_cliquer.h"
199#endif
200
201#ifdef WITH_CPLEXSOLVER
202#include "gcg/solver_cplex.h"
203#endif
204
205#ifdef WITH_HIGHS
206#include "gcg/solver_highs.h"
207#endif
208
209#include "scip/table_default.h"
210
211/** includes default GCG master plugins */
213 GCG* gcg /**< GCG data structure */
214 )
215{
218 SCIP_CALL( SCIPincludeConshdlrLinear(masterprob) ); /* linear must be first due to constraint upgrading */
230
233
238
239#if USEPROP
247#endif
248
257
258#if USEHEURS
319
321
322 /* Christian's heuristics */
332
334#endif
335
336#if USESEPA
338 SCIP_CALL( SCIPincludeSepaCmir(masterprob) );
339 SCIP_CALL( SCIPincludeSepaFlowcover(masterprob) );
345 SCIP_CALL( SCIPincludeSepaRedcost(masterprob) );
347#endif
351 SCIP_CALL( SCIPdebugIncludeProp(masterprob) ); /*lint !e506 !e774*/
353
354 /* Jonas' stuff */
356
360
361#ifdef WITH_CLIQUER
363#endif
364
365#ifdef WITH_CPLEXSOLVER
367#endif
368
369#ifdef WITH_HIGHS
371#endif
372
373 /* include masterbranch constraint handler */
375
380
381 /* GCG Master Separators */
384
385 return SCIP_OKAY;
386}
SCIP_RETCODE GCGincludeBranchruleBPStrong(GCG *gcg)
generic branch and price strong branching as described in Pecin, D., Pessoa, A., Poggi,...
SCIP_RETCODE GCGincludeBranchruleCompBnd(GCG *gcg)
component bound branching rule
SCIP_RETCODE GCGincludeBranchruleGeneric(GCG *gcg)
branching rule based on vanderbeck's generic branching scheme
SCIP_RETCODE GCGincludeBranchruleOrig(GCG *gcg)
branching rule for original problem in GCG
SCIP_RETCODE GCGincludeBranchruleRelpsprob(GCG *gcg)
reliable pseudo costs branching rule
SCIP_RETCODE GCGincludeBranchruleRyanfoster(GCG *gcg)
branching rule for original problem in GCG implementing the Ryan and Foster branching scheme
SCIP_RETCODE GCGincludeConshdlrIntegralOrig(GCG *gcg)
constraint handler for the integrality constraint
SCIP_RETCODE GCGincludeConshdlrMasterbranch(GCG *gcg)
constraint handler for storing the branching decisions at each node of the tree
#define SCIPdebugIncludeProp(scip)
SCIP_RETCODE GCGincludeDialogMaster(GCG *gcg)
user interface dialog for master problem
SCIP_RETCODE GCGincludeDispMaster(GCG *gcg, SCIP *masterprob)
master display columns
SCIP_RETCODE GCGincludeEventHdlrBestsol(SCIP *scip)
eventhdlr to record the best primal bound for each heuristic
SCIP_RETCODE GCGincludeEventHdlrDisplay(GCG *gcg)
eventhdlr to disable the master display after the root node
SCIP_RETCODE GCGincludeEventHdlrSepaCuts(GCG *gcg)
event handler which manages the active master separator cuts
SCIP_RETCODE GCGincludeEventHdlrRelaxsol(GCG *gcg)
eventhandler to update the relaxation solution in the original problem when the master LP has been so...
SCIP_RETCODE GCGincludeEventHdlrSolvingstats(GCG *gcg)
eventhdlr for writing various types of information during the solving process
SCIP_RETCODE SCIPincludeConshdlrLinear(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrOr(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrBounddisjunction(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrSetppc(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrXor(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrAnd(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrVarbound(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrLogicor(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrKnapsack(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrConjunction(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrIntegral(SCIP *scip)
SCIP_RETCODE SCIPincludeConshdlrIndicator(SCIP *scip)
SCIP_RETCODE SCIPincludeCutselHybrid(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderLp(SCIP *scip)
SCIP_RETCODE SCIPincludeReaderCip(SCIP *scip)
SCIP * GCGgetDwMasterprob(GCG *gcg)
Definition gcg.cpp:123
SCIP_RETCODE SCIPincludePresolImplics(SCIP *scip)
SCIP_RETCODE SCIPincludePresolInttobinary(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 SCIPincludeHeurPADM(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 SCIPincludeHeurIndicatordiving(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 SCIPincludeHeurDKS(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurGins(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurDps(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 SCIPincludeHeurFarkasdiving(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 SCIPincludeHeurScheduler(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 SCIPincludeHeurTrustregion(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 SCIPincludePropPseudoobj(SCIP *scip)
SCIP_RETCODE SCIPincludePropRootredcost(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaZerohalf(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaMcf(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaIntobj(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaClique(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaOddcycle(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaImpliedbounds(SCIP *scip)
SCIP_RETCODE SCIPincludeSepaGomory(SCIP *scip)
SCIP_RETCODE SCIPincludeTableDefault(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurAdaptivediving(SCIP *scip)
SCIP_RETCODE SCIPincludeHeurConflictdiving(SCIP *scip)
SCIP_CALL(SCIPgetExternBranchCands(origprob, &lpcands, &lpcandssol, NULL, &nlpcands, NULL, NULL, NULL, NULL))
SCIP_RETCODE GCGincludeHeurGreedycolsel(GCG *gcg)
greedy column selection primal heuristic
SCIP_RETCODE SCIPincludeHeurIPcolgen(GCG *gcg)
LNS heuristic that generates columns that are more likely to be in integer feasible solutions.
SCIP_RETCODE GCGincludeHeurMastercoefdiving(GCG *gcg)
master LP diving heuristic that chooses fixings w.r.t. the matrix coefficients
SCIP_RETCODE GCGincludeEventHdlrMasterdiving(GCG *gcg)
primal heuristic interface for LP diving heuristics on the master variables
SCIP_RETCODE GCGincludeHeurMasterfracdiving(GCG *gcg)
master LP diving heuristic that chooses fixings w.r.t. the fractionalities
SCIP_RETCODE GCGincludeHeurMasterlinesdiving(GCG *gcg)
master LP diving heuristic that fixes variables with a large difference to their root solution
SCIP_RETCODE GCGincludeHeurMastervecldiving(GCG *gcg)
master LP diving heuristic that rounds variables with long column vectors
SCIP_RETCODE GCGincludeHeurRelaxcolsel(GCG *gcg)
relaxation based column selection primal heuristic
SCIP_RETCODE GCGincludeHeurRestmaster(GCG *gcg)
Restricted Master Heuristic.
SCIP_RETCODE GCGincludeHeurSetcover(GCG *gcg)
set covering primal heuristic according to Caprara, Fischetti, and Toth (1999)
SCIP_RETCODE GCGincludeMasterPlugins(GCG *gcg)
SCIP plugins for generic column generation.
SCIP_RETCODE GCGincludeNodeselMaster(GCG *gcg)
Node selector for coordination of master and original formulation.
SCIP_RETCODE GCGincludePresolRoundbound(SCIP *scip)
roundbound presolver: round fractional bounds on integer variables
GCG variable pricer.
SCIP_RETCODE GCGincludeSepaBasis(GCG *gcg)
basis separator
SCIP_RETCODE GCGincludeSepaOriginal(GCG *gcg)
original separator
SCIP_RETCODE SCIPincludeSepaSubsetrow(GCG *gcg)
subset row separator for master problem
SCIP_RETCODE GCGincludeSolverCliquer(GCG *gcg)
heuristic solver for pricing problems that solves independent set problems with cliquer
SCIP_RETCODE GCGincludeSolverCplex(GCG *gcg)
cplex solver for pricing problems
SCIP_RETCODE GCGincludeSolverGcg(GCG *gcg)
gcg solver for pricing problem
SCIP_RETCODE GCGincludeSolverHighs(GCG *gcg)
highs solver for pricing problems
SCIP_RETCODE GCGincludeSolverKnapsack(GCG *gcg)
knapsack solver for pricing problems
SCIP_RETCODE GCGincludeSolverMip(GCG *gcg)
Definition solver_mip.c:730
mip solver for pricing problems
struct Gcg GCG
Definition type_gcg.h:44
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP