Scippy

GCG

Branch-and-Price & Column Generation for Everyone

pub_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 solver.h
30 * @ingroup PUBLICCOREAPI
31 * @brief public methods for GCG pricing solvers
32 * @author Christian Puchert
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef GCG_PUB_SOLVER_H_
38#define GCG_PUB_SOLVER_H_
39
40
41#include "gcg/type_solver.h"
42#include "scip/scip.h"
43#include "gcg/def.h"
44#include "gcg/type_gcg.h"
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50/**
51 * @ingroup PRICING_PUB
52 * @{
53 */
54
55/** compares two solvers w. r. t. their priorities */
57SCIP_DECL_SORTPTRCOMP(GCGsolverComp);
58
59/** gets user data of GCG pricing solver */
62 GCG_SOLVER* solver /**< pricing solver */
63 );
64
65/** sets user data of GCG pricing solver */
68 GCG_SOLVER* solver, /**< pricing solver */
69 GCG_SOLVERDATA* solverdata /**< pricing solver data */
70 );
71
72/** gets name of GCG pricing solver */
74const char* GCGsolverGetName(
75 GCG_SOLVER* solver /**< pricing solver */
76 );
77
78/** gets description of GCG pricing solver */
80const char* GCGsolverGetDesc(
81 GCG_SOLVER* solver /**< pricing solver */
82 );
83
84/** gets priority of GCG pricing solver */
87 GCG_SOLVER* solver /**< pricing solver */
88 );
89
90/** gets whether heuristic solving method of GCG pricing solver is enabled */
93 GCG_SOLVER* solver /**< pricing solver */
94 );
95
96/** gets whether exact solving method of GCG pricing solver is enabled */
99 GCG_SOLVER* solver /**< pricing solver */
100 );
101
102/** gets number of exact Farkas pricing calls of pricing solver */
105 GCG_SOLVER* solver /**< pricing solver */
106 );
107
108/** gets number of exact reduced cost pricing calls of pricing solver */
111 GCG_SOLVER* solver /**< pricing solver */
112 );
113
114/** gets number of heuristic Farkas pricing calls of pricing solver */
117 GCG_SOLVER* solver /**< pricing solver */
118 );
119
120/** gets number of heuristic reduced cost pricing calls of pricing solver */
123 GCG_SOLVER* solver /**< pricing solver */
124 );
125
126/** gets exact Farkas pricing time of pricing solver */
129 GCG* gcg, /**< GCG data structure */
130 GCG_SOLVER* solver /**< pricing solver */
131 );
132
133/** gets exact reduced cost pricing time of pricing solver */
136 GCG* gcg, /**< GCG data structure */
137 GCG_SOLVER* solver /**< pricing solver */
138 );
139
140/** gets heuristic Farkas pricing time of pricing solver */
143 GCG* gcg, /**< GCG data structure */
144 GCG_SOLVER* solver /**< pricing solver */
145 );
146
147/** gets heuristic reduced cost pricing time of pricing solver */
150 GCG* gcg, /**< GCG data structure */
151 GCG_SOLVER* solver /**< pricing solver */
152 );
153
154/** @} */
155#ifdef __cplusplus
156}
157
158#endif
159
160#endif
common defines and data types used in all packages of GCG
#define GCG_EXPORT
Definition: def.h:59
#define SCIP_Bool
#define SCIP_Real
GCG_EXPORT int GCGsolverGetPriority(GCG_SOLVER *solver)
Definition: solver.c:441
GCG_EXPORT const char * GCGsolverGetDesc(GCG_SOLVER *solver)
Definition: solver.c:431
GCG_EXPORT SCIP_Bool GCGsolverIsHeurEnabled(GCG_SOLVER *solver)
Definition: solver.c:451
GCG_EXPORT int GCGsolverGetOptRedcostCalls(GCG_SOLVER *solver)
Definition: solver.c:481
GCG_EXPORT SCIP_Real GCGsolverGetOptFarkasTime(GCG *gcg, GCG_SOLVER *solver)
Definition: solver.c:511
GCG_EXPORT int GCGsolverGetHeurFarkasCalls(GCG_SOLVER *solver)
Definition: solver.c:491
GCG_EXPORT int GCGsolverGetHeurRedcostCalls(GCG_SOLVER *solver)
Definition: solver.c:501
GCG_EXPORT SCIP_Real GCGsolverGetHeurFarkasTime(GCG *gcg, GCG_SOLVER *solver)
Definition: solver.c:535
GCG_EXPORT SCIP_Real GCGsolverGetHeurRedcostTime(GCG *gcg, GCG_SOLVER *solver)
Definition: solver.c:547
GCG_EXPORT int GCGsolverGetOptFarkasCalls(GCG_SOLVER *solver)
Definition: solver.c:471
GCG_EXPORT SCIP_Real GCGsolverGetOptRedcostTime(GCG *gcg, GCG_SOLVER *solver)
Definition: solver.c:523
GCG_EXPORT SCIP_Bool GCGsolverIsExactEnabled(GCG_SOLVER *solver)
Definition: solver.c:461
GCG_EXPORT SCIP_DECL_SORTPTRCOMP(GCGsolverComp)
Definition: solver.c:52
GCG_EXPORT const char * GCGsolverGetName(GCG_SOLVER *solver)
Definition: solver.c:421
GCG_EXPORT GCG_SOLVERDATA * GCGsolverGetData(GCG_SOLVER *solver)
Definition: solver.c:400
GCG_EXPORT void GCGsolverSetData(GCG_SOLVER *solver, GCG_SOLVERDATA *solverdata)
Definition: solver.c:410
Definition: struct_gcg.h:55
type definitions for pricing problem solvers in GCG project