Scippy

GCG

Branch-and-Price & Column Generation for Everyone

struct_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 struct_solver.h
30 * @ingroup DATASTRUCTURES
31 * @brief data structures for solvers
32 * @author Gerald Gamrath
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef GCG_STRUCT_SOLVER_H__
38#define GCG_STRUCT_SOLVER_H__
39
40#include "gcg/type_solver.h"
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/** pricing problem solver data structure */
48{
49 char* name; /**< solver name */
50 char* desc; /**< solver description */
51 int priority; /**< solver priority */
52 SCIP_Bool heurenabled; /**< switch for heuristic solving method */
53 SCIP_Bool exactenabled; /**< switch for exact solving method */
54 GCG_SOLVERDATA* solverdata; /**< private solver data structure */
55
56 GCG_DECL_SOLVERFREE((*solverfree)); /**< destruction method */
57 GCG_DECL_SOLVERINIT((*solverinit)); /**< initialization method */
58 GCG_DECL_SOLVEREXIT((*solverexit)); /**< deinitialization method */
59 GCG_DECL_SOLVERINITSOL((*solverinitsol)); /**< solving process initialization method */
60 GCG_DECL_SOLVEREXITSOL((*solverexitsol)); /**< solving process deinitialization method */
61 GCG_DECL_SOLVERUPDATE((*solverupdate)); /**< update method */
62 GCG_DECL_SOLVERSOLVE((*solversolve)); /**< solving callback method */
63 GCG_DECL_SOLVERSOLVEHEUR((*solversolveheur)); /**< heuristic solving callback method */
64
65 SCIP_CLOCK* optfarkasclock; /**< optimal farkas pricing time */
66 SCIP_CLOCK* optredcostclock; /**< optimal reduced cost pricing time */
67 SCIP_CLOCK* heurfarkasclock; /**< heuristic farkas pricing time */
68 SCIP_CLOCK* heurredcostclock; /**< heuristic reduced cost pricing time */
69 int optfarkascalls; /**< optimal farkas pricing calls */
70 int optredcostcalls; /**< optimal reduced cost pricing calls */
71 int heurfarkascalls; /**< heuristic farkas pricing calls */
72 int heurredcostcalls; /**< heuristic reduced cost pricing calls */
73};
74
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif
#define SCIP_Bool
int optfarkascalls
Definition: struct_solver.h:69
GCG_DECL_SOLVERFREE((*solverfree))
GCG_DECL_SOLVERSOLVEHEUR((*solversolveheur))
SCIP_CLOCK * optfarkasclock
Definition: struct_solver.h:65
GCG_DECL_SOLVERSOLVE((*solversolve))
int heurredcostcalls
Definition: struct_solver.h:72
SCIP_CLOCK * heurredcostclock
Definition: struct_solver.h:68
SCIP_Bool heurenabled
Definition: struct_solver.h:52
GCG_DECL_SOLVERINIT((*solverinit))
SCIP_CLOCK * optredcostclock
Definition: struct_solver.h:66
int heurfarkascalls
Definition: struct_solver.h:71
SCIP_CLOCK * heurfarkasclock
Definition: struct_solver.h:67
GCG_DECL_SOLVERUPDATE((*solverupdate))
char * name
Definition: struct_solver.h:49
GCG_SOLVERDATA * solverdata
Definition: struct_solver.h:54
int optredcostcalls
Definition: struct_solver.h:70
char * desc
Definition: struct_solver.h:50
GCG_DECL_SOLVEREXITSOL((*solverexitsol))
SCIP_Bool exactenabled
Definition: struct_solver.h:53
GCG_DECL_SOLVERINITSOL((*solverinitsol))
GCG_DECL_SOLVEREXIT((*solverexit))
type definitions for pricing problem solvers in GCG project