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 */
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-2021 Operations Research, RWTH Aachen University */
10 /* Zuse Institute Berlin (ZIB) */
11 /* */
12 /* This program is free software; you can redistribute it and/or */
13 /* modify it under the terms of the GNU Lesser General Public License */
14 /* as published by the Free Software Foundation; either version 3 */
15 /* of the License, or (at your option) any later version. */
16 /* */
17 /* This program is distributed in the hope that it will be useful, */
18 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
19 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
20 /* GNU Lesser General Public License for more details. */
21 /* */
22 /* You should have received a copy of the GNU Lesser General Public License */
23 /* along with this program; if not, write to the Free Software */
24 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
25 /* */
26 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27 
28 /**@file struct_solver.h
29  * @ingroup DATASTRUCTURES
30  * @brief data structures for solvers
31  * @author Gerald Gamrath
32  */
33 
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35 
36 #ifndef GCG_STRUCT_SOLVER_H__
37 #define GCG_STRUCT_SOLVER_H__
38 
39 #include "type_solver.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 /** pricing problem solver data structure */
46 struct GCG_Solver
47 {
48  char* name; /**< solver name */
49  char* desc; /**< solver description */
50  int priority; /**< solver priority */
51  SCIP_Bool heurenabled; /**< switch for heuristic solving method */
52  SCIP_Bool exactenabled; /**< switch for exact solving method */
53  GCG_SOLVERDATA* solverdata; /**< private solver data structure */
54 
55  GCG_DECL_SOLVERFREE((*solverfree)); /**< destruction method */
56  GCG_DECL_SOLVERINIT((*solverinit)); /**< initialization method */
57  GCG_DECL_SOLVEREXIT((*solverexit)); /**< deinitialization method */
58  GCG_DECL_SOLVERINITSOL((*solverinitsol)); /**< solving process initialization method */
59  GCG_DECL_SOLVEREXITSOL((*solverexitsol)); /**< solving process deinitialization method */
60  GCG_DECL_SOLVERUPDATE((*solverupdate)); /**< update method */
61  GCG_DECL_SOLVERSOLVE((*solversolve)); /**< solving callback method */
62  GCG_DECL_SOLVERSOLVEHEUR((*solversolveheur)); /**< heuristic solving callback method */
63 
64  SCIP_CLOCK* optfarkasclock; /**< optimal farkas pricing time */
65  SCIP_CLOCK* optredcostclock; /**< optimal reduced cost pricing time */
66  SCIP_CLOCK* heurfarkasclock; /**< heuristic farkas pricing time */
67  SCIP_CLOCK* heurredcostclock; /**< heuristic reduced cost pricing time */
68  int optfarkascalls; /**< optimal farkas pricing calls */
69  int optredcostcalls; /**< optimal reduced cost pricing calls */
70  int heurfarkascalls; /**< heuristic farkas pricing calls */
71  int heurredcostcalls; /**< heuristic reduced cost pricing calls */
72 };
73 
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif
SCIP_CLOCK * optredcostclock
Definition: struct_solver.h:65
SCIP_CLOCK * heurfarkasclock
Definition: struct_solver.h:66
GCG_DECL_SOLVERFREE((*solverfree))
GCG_DECL_SOLVERSOLVE((*solversolve))
SCIP_CLOCK * optfarkasclock
Definition: struct_solver.h:64
GCG_DECL_SOLVEREXIT((*solverexit))
GCG_DECL_SOLVERINIT((*solverinit))
SCIP_CLOCK * heurredcostclock
Definition: struct_solver.h:67
int heurfarkascalls
Definition: struct_solver.h:70
int heurredcostcalls
Definition: struct_solver.h:71
type definitions for pricing problem solvers in GCG project
GCG_DECL_SOLVEREXITSOL((*solverexitsol))
int optfarkascalls
Definition: struct_solver.h:68
GCG_DECL_SOLVERUPDATE((*solverupdate))
GCG_DECL_SOLVERSOLVEHEUR((*solversolveheur))
char * desc
Definition: struct_solver.h:49
GCG_DECL_SOLVERINITSOL((*solverinitsol))
SCIP_Bool exactenabled
Definition: struct_solver.h:52
GCG_SOLVERDATA * solverdata
Definition: struct_solver.h:53
int optredcostcalls
Definition: struct_solver.h:69
char * name
Definition: struct_solver.h:48
SCIP_Bool heurenabled
Definition: struct_solver.h:51