Scippy

GCG

Branch-and-Price & Column Generation for Everyone

type_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 type_masterdiving.h
30 * @ingroup TYPEDEFINITIONS
31 * @brief type definitions for GCG 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 __SCIP_TYPE_MASTERDIVING_H__
38#define __SCIP_TYPE_MASTERDIVING_H__
39
40#include "scip/type_scip.h"
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46typedef struct GCG_Master_DivingData GCG_MASTER_DIVINGDATA; /**< locally defined diving data */
47
48
49/** destructor of diving heuristic to free user data (called when GCG is exiting)
50 *
51 * input:
52 * - gcg : GCG data structure
53 * - heur : the diving heuristic itself
54 */
55#define GCG_DECL_MASTER_DIVINGFREE(x) SCIP_RETCODE x (GCG* gcg, SCIP_HEUR* heur)
56
57/** initialization method of diving heuristic (called after problem was transformed)
58 *
59 * input:
60 * - gcg : GCG data structure
61 * - heur : the diving heuristic itself
62 */
63#define GCG_DECL_MASTER_DIVINGINIT(x) SCIP_RETCODE x (GCG* gcg, SCIP_HEUR* heur)
64
65/** deinitialization method of diving heuristic (called before transformed problem is freed)
66 *
67 * input:
68 * - gcg : GCG data structure
69 * - heur : the diving heuristic itself
70 */
71#define GCG_DECL_MASTER_DIVINGEXIT(x) SCIP_RETCODE x (GCG* gcg, SCIP_HEUR* heur)
72
73/** solving process initialization method of diving heuristic (called when branch and bound process is about to begin)
74 *
75 * This method is called when the presolving was finished and the branch and bound process is about to begin.
76 * The diving heuristic may use this call to initialize its branch and bound specific data.
77 *
78 * input:
79 * - gcg : GCG data structure
80 * - heur : the diving heuristic itself
81 */
82#define GCG_DECL_MASTER_DIVINGINITSOL(x) SCIP_RETCODE x (GCG* gcg, SCIP_HEUR* heur)
83
84/** solving process deinitialization method of primal heuristic (called before branch and bound process data is freed)
85 *
86 * This method is called before the branch and bound process is freed.
87 * The diving heuristic should use this call to clean up its branch and bound data.
88 *
89 * input:
90 * - gcg : GCG data structure
91 * - heur : the diving heuristic itself
92 */
93#define GCG_DECL_MASTER_DIVINGEXITSOL(x) SCIP_RETCODE x (GCG* gcg, SCIP_HEUR* heur)
94
95/** execution initialization method of diving heuristic (called when execution of diving heuristic is about to begin)
96 *
97 * This method is called when the execution of the diving heuristic starts, before the diving loop.
98 * The diving heuristic may use this call to collect data which is specific to this call of the heuristic.
99 *
100 * input:
101 * - gcg : GCG data structure
102 * - heur : the diving heuristic itself
103 */
104#define GCG_DECL_MASTER_DIVINGINITEXEC(x) SCIP_RETCODE x (GCG* gcg, SCIP_HEUR* heur)
105
106/** execution deinitialization method of diving heuristic (called when execution data is freed)
107 *
108 * This method is called before the execution of the heuristic stops.
109 * The diving heuristic should use this call to clean up its execution specific data.
110 *
111 * input:
112 * - gcg : GCG data structure
113 * - heur : the diving heuristic itself
114 */
115#define GCG_DECL_MASTER_DIVINGEXITEXEC(x) SCIP_RETCODE x (GCG* gcg, SCIP_HEUR* heur)
116
117/** variable selection method of diving heuristic
118 *
119 * Selects an original variable to dive on
120 *
121 * input:
122 * - scip : SCIP main data structure
123 * - heur : the diving heuristic itself
124 * - tabulist : an array containing variables that must not be chosen
125 * - tabulistsize : the size of the array
126 * - bestcand : pointer to store the SCIP_VAR* returned by the selection rule
127 * - bestcandmayround : pointer to store whether the variable may be rounded without losing LP feasibility
128 */
129#define GCG_DECL_MASTER_DIVINGSELECTVAR(x) SCIP_RETCODE x (GCG* gcg, SCIP_HEUR* heur, SCIP_VAR** tabulist, int tabulistsize, SCIP_VAR** bestcand, SCIP_Bool* bestcandmayround)
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif
struct GCG_Master_DivingData GCG_MASTER_DIVINGDATA