Scippy

GCG

Branch-and-Price & Column Generation for Everyone

def.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 def.h
30 * @brief common defines and data types used in all packages of GCG
31 * @author Stefanie Koß
32 */
33
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35
36#ifndef GCG_DEF_H_
37#define GCG_DEF_H_
38
39/*
40 * Add some macros for differing functions on Windows
41 */
42#if defined(_WIN32) || defined(_WIN64)
43#define realpath(x,y) _fullpath(y,x,SCIP_MAXSTRLEN)
44#endif
45
46#if defined(_WIN32) || defined(_WIN64)
47#define fileno(x) _fileno(x)
48#endif
49
50/*
51 * Define the macro GCG_EXPORT if it is not included from the generated header
52 */
53#ifndef GCG_EXPORT
54#if defined(_WIN32) || defined(_WIN64)
55#define GCG_EXPORT __declspec(dllexport)
56#elif defined(__GNUC__) && __GNUC__ >= 4
57#define GCG_EXPORT __attribute__((__visibility__("default")))
58#else
59#define GCG_EXPORT
60#endif
61#endif
62
63#define GCG_VERSION 410 /**< GCG version number (multiplied by 100 to get integer number) */
64#define GCG_SUBVERSION 0 /**< GCG sub version number */
65
66#endif