GCG 4.1.1 (dev)

Generic Column Generation

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