GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
heur_masterlinesdiving.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_masterlinesdiving.h
30 * @ingroup DIVINGHEURISTICS
31 * @brief master LP diving heuristic that fixes variables with a large difference to their root solution
32 * @author Tobias Achterberg
33 *
34 * Diving heuristic: Iteratively fixes some fractional variable and resolves the LP-relaxation, thereby simulating a
35 * depth-first-search in the tree. Line search diving chooses the variable with the greatest difference of its root LP
36 * solution and the current LP solution, hence, the variable that developed most. It is fixed to the next integer in
37 * the direction it developed. One-level backtracking is applied: If the LP gets infeasible, the last fixing is undone,
38 * and the opposite fixing is tried. If this is infeasible, too, the procedure aborts.
39 */
40
41/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
42
43#ifndef __SCIP_HEUR_MASTERLINESDIVING_H__
44#define __SCIP_HEUR_MASTERLINESDIVING_H__
45
46
47
48#include "scip/scip.h"
49#include "gcg/gcg.h"
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55/** creates the masterlinesdiving primal heuristic and includes it in GCG */
58 GCG* gcg /**< GCG data structure */
59 );
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif
#define GCG_EXPORT
Definition def.h:59
GCG interface methods.
SCIP_RETCODE GCGincludeHeurMasterlinesdiving(GCG *gcg)
struct Gcg GCG
Definition type_gcg.h:44
enum SCIP_Retcode SCIP_RETCODE