GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
heur_masterdiving.h
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 heur_masterdiving.h
30 * @ingroup DIVINGHEURISTICS
31 * @brief primal heuristic interface for LP diving heuristics on the master variables
32 * @author Christian Puchert
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef GCG_HEUR_MASTERDIVING_H__
38#define GCG_HEUR_MASTERDIVING_H__
39
40
41
42#include "scip/scip.h"
43#include "gcg/gcg.h"
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49/** gets diving rule specific data of a diving heuristic */
52 SCIP_HEUR* heur /**< primal heuristic */
53 );
54
55/** sets diving rule specific data of a diving heuristic */
58 SCIP_HEUR* heur, /**< primal heuristic */
59 GCG_MASTER_DIVINGDATA* divingdata /**< diving rule specific data */
60 );
61
62/** creates a master diving heuristic and includes it in GCG */
65 GCG* gcg, /**< GCG data structure */
66 SCIP_HEUR** heur, /**< pointer to diving heuristic */
67 const char* name, /**< name of primal heuristic */
68 const char* desc, /**< description of primal heuristic */
69 char dispchar, /**< display character of primal heuristic */
70 int priority, /**< priority of the primal heuristic */
71 int freq, /**< frequency for calling primal heuristic */
72 int freqofs, /**< frequency offset for calling primal heuristic */
73 int maxdepth, /**< maximal depth level to call heuristic at (-1: no limit) */
74 GCG_DECL_MASTER_DIVINGFREE ((*divingfree)), /**< destructor of diving heuristic */
75 GCG_DECL_MASTER_DIVINGINIT ((*divinginit)), /**< initialize diving heuristic */
76 GCG_DECL_MASTER_DIVINGEXIT ((*divingexit)), /**< deinitialize diving heuristic */
77 GCG_DECL_MASTER_DIVINGINITSOL ((*divinginitsol)), /**< solving process initialization method of diving heuristic */
78 GCG_DECL_MASTER_DIVINGEXITSOL ((*divingexitsol)), /**< solving process deinitialization method of diving heuristic */
79 GCG_DECL_MASTER_DIVINGINITEXEC ((*divinginitexec)), /**< execution initialization method of diving heuristic */
80 GCG_DECL_MASTER_DIVINGEXITEXEC ((*divingexitexec)), /**< execution deinitialization method of diving heuristic */
81 GCG_DECL_MASTER_DIVINGSELECTVAR ((*divingselectvar)), /**< variable selection method of diving heuristic */
82 GCG_MASTER_DIVINGDATA* divingdata /**< diving rule specific data (or NULL) */
83 );
84
85/** creates event handler for masterdiving event */
88 GCG* gcg /**< GCG data structure */
89 );
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif
#define GCG_EXPORT
Definition def.h:59
GCG interface methods.
SCIP_RETCODE GCGincludeEventHdlrMasterdiving(GCG *gcg)
void GCGheurSetDivingDataMaster(SCIP_HEUR *heur, GCG_MASTER_DIVINGDATA *divingdata)
int maxdepth
GCG_MASTER_DIVINGDATA * GCGheurGetDivingDataMaster(SCIP_HEUR *heur)
SCIP_RETCODE GCGincludeDivingHeurMaster(GCG *gcg, SCIP_HEUR **heur, const char *name, const char *desc, char dispchar, int priority, int freq, int freqofs, int maxdepth, GCG_DECL_MASTER_DIVINGFREE((*divingfree)), GCG_DECL_MASTER_DIVINGINIT((*divinginit)), GCG_DECL_MASTER_DIVINGEXIT((*divingexit)), GCG_DECL_MASTER_DIVINGINITSOL((*divinginitsol)), GCG_DECL_MASTER_DIVINGEXITSOL((*divingexitsol)), GCG_DECL_MASTER_DIVINGINITEXEC((*divinginitexec)), GCG_DECL_MASTER_DIVINGEXITEXEC((*divingexitexec)), GCG_DECL_MASTER_DIVINGSELECTVAR((*divingselectvar)), GCG_MASTER_DIVINGDATA *divingdata)
struct Gcg GCG
Definition type_gcg.h:44
struct SCIP_Heur SCIP_HEUR
#define GCG_DECL_MASTER_DIVINGINITEXEC(x)
struct GCG_Master_DivingData GCG_MASTER_DIVINGDATA
#define GCG_DECL_MASTER_DIVINGINITSOL(x)
#define GCG_DECL_MASTER_DIVINGSELECTVAR(x)
#define GCG_DECL_MASTER_DIVINGINIT(x)
#define GCG_DECL_MASTER_DIVINGFREE(x)
#define GCG_DECL_MASTER_DIVINGEXIT(x)
#define GCG_DECL_MASTER_DIVINGEXITEXEC(x)
#define GCG_DECL_MASTER_DIVINGEXITSOL(x)
enum SCIP_Retcode SCIP_RETCODE