GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
type_solver.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_solver.h
30 * @ingroup TYPEDEFINITIONS
31 * @brief type definitions for pricing problem solvers in GCG project
32 * @author Gerald Gamrath
33 * @author Christian Puchert
34 */
35
36/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
37
38#ifndef GCG_TYPE_SOLVER_H__
39#define GCG_TYPE_SOLVER_H__
40
41#include "scip/def.h"
42#include "scip/type_scip.h"
43#include "gcg/type_gcgcol.h"
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50typedef struct GCG_SolverData GCG_SOLVERDATA; /**< solver data */
51typedef struct GCG_Solver GCG_SOLVER; /**< the solver */
52
53
54/** destructor of pricing solver to free user data (called when GCG is exiting)
55 *
56 * input:
57 * - gcg : GCG data structure
58 * - solver : the pricing solver itself
59 */
60#define GCG_DECL_SOLVERFREE(x) SCIP_RETCODE x (GCG* gcg, GCG_SOLVER* solver)
61
62/** initialization method of pricing solver (called after problem was transformed and solver is active)
63 *
64 * input:
65 * - gcg : GCG data structure
66 * - solver : the pricing solver itself
67 */
68#define GCG_DECL_SOLVERINIT(x) SCIP_RETCODE x (GCG* gcg, GCG_SOLVER* solver)
69
70/** deinitialization method of pricing solver (called before transformed problem is freed and solver is active)
71 *
72 * input:
73 * - gcg : GCG data structure
74 * - solver : the pricing solver itself
75 */
76#define GCG_DECL_SOLVEREXIT(x) SCIP_RETCODE x (GCG* gcg, GCG_SOLVER* solver)
77
78/** solving process initialization method of pricing solver (called when branch and bound process is about to begin)
79 *
80 * This method is called when the presolving was finished and the branch and bound process is about to begin.
81 * The pricing solver may use this call to initialize its branch and bound specific data.
82 *
83 * input:
84 * - gcg : GCG data structure
85 * - solver : the pricing solver itself
86 */
87#define GCG_DECL_SOLVERINITSOL(x) SCIP_RETCODE x (GCG* gcg, GCG_SOLVER* solver)
88
89/** solving process deinitialization method of pricing solver (called before branch and bound process data is freed)
90 *
91 * This method is called before the branch and bound process is freed.
92 * The pricing solver should use this call to clean up its branch and bound data.
93 *
94 * input:
95 * - gcg : GCG data structure
96 * - solver : the pricing solver itself
97 */
98#define GCG_DECL_SOLVEREXITSOL(x) SCIP_RETCODE x (GCG* gcg, GCG_SOLVER* solver)
99
100/**
101 * update method for pricing solver, used to update solver specific pricing problem data
102 *
103 * The pricing solver may use this method to update its own representation of the pricing problem,
104 * i.e. to apply changes on variable objectives and bounds and to apply branching constraints
105 */
106#define GCG_DECL_SOLVERUPDATE(x) SCIP_RETCODE x (GCG* gcg, SCIP* pricingprob, GCG_SOLVER* solver, int probnr, SCIP_Bool varobjschanged, SCIP_Bool varbndschanged, SCIP_Bool consschanged)
107
108/** solving method for pricing solver which solves the pricing problem to optimality
109 *
110 *
111 * input:
112 * - gcg : GCG data structure
113 * - pricingprob : the pricing problem that should be solved
114 * - solver : the pricing solver itself
115 * - probnr : number of the pricing problem
116 * - dualsolconv : dual solution of the corresponding convexity constraint
117 * - lowerbound : pointer to store lower bound of pricing problem
118 * - status : pointer to store the pricing status
119 */
120#define GCG_DECL_SOLVERSOLVE(x) SCIP_RETCODE x (GCG* gcg, SCIP* pricingprob, GCG_SOLVER* solver, int probnr, SCIP_Real dualsolconv, SCIP_Real* lowerbound, GCG_PRICINGSTATUS* status)
121
122/** solving method for pricing solver using heuristic pricing only
123 *
124 *
125 * input:
126 * - gcg : GCG data structure
127 * - pricingprob : the pricing problem that should be solved
128 * - solver : the pricing solver itself
129 * - probnr : number of the pricing problem
130 * - dualsolconv : dual solution of the corresponding convexity constraint
131 * - lowerbound : pointer to store lower bound of pricing problem
132 * - status : pointer to store the pricing status
133 */
134#define GCG_DECL_SOLVERSOLVEHEUR(x) SCIP_RETCODE x (GCG* gcg, SCIP* pricingprob, GCG_SOLVER* solver, int probnr, SCIP_Real dualsolconv, SCIP_Real* lowerbound, GCG_PRICINGSTATUS* status)
135
136
137#ifdef __cplusplus
138}
139#endif
140
141#endif
type definitions for gcg data structure
type definitions for pricing status
struct GCG_Solver GCG_SOLVER
Definition type_solver.h:51
struct GCG_SolverData GCG_SOLVERDATA
Definition type_solver.h:50