Scippy

SCIP

Solving Constraint Integer Programs

def.h File Reference

Detailed Description

common defines and data types used in all packages of SCIP

Author
Tobias Achterberg

Definition in file def.h.

#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <limits.h>
#include <float.h>
#include <assert.h>
#include "scip/config.h"
#include "scip/scip_export.h"

Go to the source code of this file.

Macros

#define SCIP_VARARGS_FIRST_(firstarg, ...)   firstarg
 
#define SCIP_VARARGS_FIRST(args)   SCIP_VARARGS_FIRST_ args
 
#define SCIP_VARARGS_REST(firstarg, ...)   __VA_ARGS__
 
#define SCIP_Bool   unsigned int
 
#define TRUE   1
 
#define FALSE   0
 
#define SCIP_Shortbool   uint8_t
 
#define INLINE   inline
 
#define SCIP_VERSION   (100*SCIP_VERSION_MAJOR + 10*SCIP_VERSION_MINOR + SCIP_VERSION_PATCH)
 
#define SCIP_SUBVERSION   SCIP_VERSION_SUB
 
#define SCIP_APIVERSION   SCIP_VERSION_API
 
#define SCIP_COPYRIGHT   "Copyright (c) 2002-2024 Zuse Institute Berlin (ZIB)"
 
#define SCIP_VARTYPE_BINARY_CHAR   'B'
 
#define SCIP_VARTYPE_INTEGER_CHAR   'I'
 
#define SCIP_VARTYPE_IMPLINT_CHAR   'M'
 
#define SCIP_VARTYPE_CONTINUOUS_CHAR   'C'
 
#define LLONG_MAX   9223372036854775807LL
 
#define LLONG_MIN   (-LLONG_MAX - 1LL)
 
#define SCIP_Longint   long long
 
#define SCIP_LONGINT_MAX   LLONG_MAX
 
#define SCIP_LONGINT_MIN   LLONG_MIN
 
#define SCIP_LONGINT_FORMAT   "lld"
 
#define SCIP_Real   double
 
#define SCIP_REAL_MAX   (SCIP_Real)DBL_MAX
 
#define SCIP_REAL_MIN   -(SCIP_Real)DBL_MAX
 
#define SCIP_REAL_FORMAT   "lf"
 
#define SCIP_DEFAULT_INFINITY   1e+20
 
#define SCIP_DEFAULT_EPSILON   1e-09
 
#define SCIP_DEFAULT_SUMEPSILON   1e-06
 
#define SCIP_DEFAULT_FEASTOL   1e-06
 
#define SCIP_DEFAULT_CHECKFEASTOLFAC   1.0
 
#define SCIP_DEFAULT_LPFEASTOLFACTOR   1.0
 
#define SCIP_DEFAULT_DUALFEASTOL   1e-07
 
#define SCIP_DEFAULT_BARRIERCONVTOL   1e-10
 
#define SCIP_DEFAULT_BOUNDSTREPS   0.05
 
#define SCIP_DEFAULT_PSEUDOCOSTEPS   1e-01
 
#define SCIP_DEFAULT_PSEUDOCOSTDELTA   1e-04
 
#define SCIP_DEFAULT_RECOMPFAC   1e+07
 
#define SCIP_DEFAULT_HUGEVAL   1e+15
 
#define SCIP_MAXEPSILON   1e-03
 
#define SCIP_MINEPSILON   1e-20
 
#define SCIP_INVALID   (double)1e+99
 
#define SCIP_UNKNOWN   (double)1e+98
 
#define SCIP_INTERVAL_INFINITY   (double)1e+300
 
#define REALABS(x)   (fabs(x))
 
#define EPSEQ(x, y, eps)   (REALABS((x)-(y)) <= (eps))
 
#define EPSLT(x, y, eps)   ((x)-(y) < -(eps))
 
#define EPSLE(x, y, eps)   ((x)-(y) <= (eps))
 
#define EPSGT(x, y, eps)   ((x)-(y) > (eps))
 
#define EPSGE(x, y, eps)   ((x)-(y) >= -(eps))
 
#define EPSZ(x, eps)   (REALABS(x) <= (eps))
 
#define EPSP(x, eps)   ((x) > (eps))
 
#define EPSN(x, eps)   ((x) < -(eps))
 
#define EPSFLOOR(x, eps)   (floor((x)+(eps)))
 
#define EPSCEIL(x, eps)   (ceil((x)-(eps)))
 
#define EPSROUND(x, eps)   (ceil((x)-0.5+(eps)))
 
#define EPSFRAC(x, eps)   ((x)-EPSFLOOR(x,eps))
 
#define EPSISINT(x, eps)   (EPSFRAC(x,eps) <= (eps))
 
#define SQR(x)   ((x)*(x))
 
#define LOG1P(x)   (log1p(x))
 
#define LOG2(x)   log2(x)
 
#define ABS(x)   ((x) >= 0 ? (x) : -(x))
 
#define MAX(x, y)   ((x) >= (y) ? (x) : (y))
 
#define MIN(x, y)   ((x) <= (y) ? (x) : (y))
 
#define MAX3(x, y, z)   ((x) >= (y) ? MAX(x, z) : MAX(y, z))
 
#define MIN3(x, y, z)   ((x) <= (y) ? MIN(x, z) : MIN(y, z))
 
#define COPYSIGN   copysign
 
#define NULL   ((void*)0)
 
#define RESTRICT
 
#define SCIP_MAXSTRLEN   1024
 
#define SCIP_SPACECONTROL   " tnvfr"
 
#define SCIP_MAXMEMSIZE   (SIZE_MAX/2)
 
#define SCIP_HASHSIZE_PARAMS   2048
 
#define SCIP_HASHSIZE_NAMES   500
 
#define SCIP_HASHSIZE_CUTPOOLS   500
 
#define SCIP_HASHSIZE_CLIQUES   500
 
#define SCIP_HASHSIZE_NAMES_SMALL   100
 
#define SCIP_HASHSIZE_CUTPOOLS_SMALL   100
 
#define SCIP_HASHSIZE_CLIQUES_SMALL   100
 
#define SCIP_HASHSIZE_VBC   500
 
#define SCIP_DEFAULT_MEM_ARRAYGROWFAC   1.2
 
#define SCIP_DEFAULT_MEM_ARRAYGROWINIT   4
 
#define SCIP_MEM_NOLIMIT   (SCIP_Longint)(SCIP_LONGINT_MAX >> 20)
 
#define SCIP_MAXTREEDEPTH   1073741822
 
#define SCIP_PROBINGSCORE_PENALTYRATIO   2
 
#define SCIPABORT()   assert(FALSE) /*lint --e{527} */
 
#define SCIP_CALL_ABORT_QUIET(x)   do { if( (x) != SCIP_OKAY ) SCIPABORT(); } while( FALSE )
 
#define SCIP_CALL_QUIET(x)   do { SCIP_RETCODE _restat_; if( (_restat_ = (x)) != SCIP_OKAY ) return _restat_; } while( FALSE )
 
#define SCIP_ALLOC_ABORT_QUIET(x)   do { if( NULL == (x) ) SCIPABORT(); } while( FALSE )
 
#define SCIP_ALLOC_QUIET(x)   do { if( NULL == (x) ) return SCIP_NOMEMORY; } while( FALSE )
 
#define SCIP_CALL_ABORT(x)
 
#define SCIP_ALLOC_ABORT(x)
 
#define SCIP_CALL(x)
 
#define SCIP_ALLOC(x)
 
#define SCIP_CALL_TERMINATE(retcode, x, TERM)
 
#define SCIP_ALLOC_TERMINATE(retcode, x, TERM)
 
#define SCIP_CALL_FINALLY(x, y)
 
#define SCIP_UNUSED(x)   ((void) (x))
 
#define SCIP_DEPRECATED
 

Macro Definition Documentation

◆ SCIP_VARARGS_FIRST_

#define SCIP_VARARGS_FIRST_ (   firstarg,
  ... 
)    firstarg

get the first parameter and all-but-the-first arguments from variadic arguments

normally, SCIP_VARARGS_FIRST_ should be sufficient the SCIP_VARARGS_FIRST_/SCIP_VARARGS_FIRST kludge is to work around a bug in MSVC (https://stackoverflow.com/questions/4750688/how-to-single-out-the-first-parameter-sent-to-a-macro-taking-only-a-variadic-par)

Definition at line 80 of file def.h.

◆ SCIP_VARARGS_FIRST

#define SCIP_VARARGS_FIRST (   args)    SCIP_VARARGS_FIRST_ args

Definition at line 81 of file def.h.

◆ SCIP_VARARGS_REST

#define SCIP_VARARGS_REST (   firstarg,
  ... 
)    __VA_ARGS__

get all but the first parameter from variadic arguments

Definition at line 84 of file def.h.

◆ SCIP_Bool

#define SCIP_Bool   unsigned int

type used for Boolean values

Definition at line 91 of file def.h.

◆ TRUE

#define TRUE   1

Boolean value TRUE

Definition at line 93 of file def.h.

◆ FALSE

#define FALSE   0

Boolean value FALSE

Definition at line 94 of file def.h.

◆ SCIP_Shortbool

#define SCIP_Shortbool   uint8_t

type used for Boolean values with less space

Definition at line 99 of file def.h.

◆ INLINE

#define INLINE   inline

Definition at line 129 of file def.h.

◆ SCIP_VERSION

#define SCIP_VERSION   (100*SCIP_VERSION_MAJOR + 10*SCIP_VERSION_MINOR + SCIP_VERSION_PATCH)

SCIP version number (multiplied by 100 to get integer number)

Definition at line 134 of file def.h.

◆ SCIP_SUBVERSION

#define SCIP_SUBVERSION   SCIP_VERSION_SUB

SCIP sub version number

Definition at line 135 of file def.h.

◆ SCIP_APIVERSION

#define SCIP_APIVERSION   SCIP_VERSION_API

SCIP API version number

Definition at line 136 of file def.h.

◆ SCIP_COPYRIGHT

#define SCIP_COPYRIGHT   "Copyright (c) 2002-2024 Zuse Institute Berlin (ZIB)"

Definition at line 137 of file def.h.

◆ SCIP_VARTYPE_BINARY_CHAR

#define SCIP_VARTYPE_BINARY_CHAR   'B'

Definition at line 144 of file def.h.

◆ SCIP_VARTYPE_INTEGER_CHAR

#define SCIP_VARTYPE_INTEGER_CHAR   'I'

Definition at line 145 of file def.h.

◆ SCIP_VARTYPE_IMPLINT_CHAR

#define SCIP_VARTYPE_IMPLINT_CHAR   'M'

Definition at line 146 of file def.h.

◆ SCIP_VARTYPE_CONTINUOUS_CHAR

#define SCIP_VARTYPE_CONTINUOUS_CHAR   'C'

Definition at line 147 of file def.h.

◆ LLONG_MAX

#define LLONG_MAX   9223372036854775807LL

Definition at line 154 of file def.h.

◆ LLONG_MIN

#define LLONG_MIN   (-LLONG_MAX - 1LL)

Definition at line 155 of file def.h.

◆ SCIP_Longint

#define SCIP_Longint   long long

type used for long integer values

Definition at line 158 of file def.h.

◆ SCIP_LONGINT_MAX

#define SCIP_LONGINT_MAX   LLONG_MAX

Definition at line 159 of file def.h.

◆ SCIP_LONGINT_MIN

#define SCIP_LONGINT_MIN   LLONG_MIN

Definition at line 160 of file def.h.

◆ SCIP_LONGINT_FORMAT

#define SCIP_LONGINT_FORMAT   "lld"

Definition at line 165 of file def.h.

◆ SCIP_Real

#define SCIP_Real   double

type used for floating point values

Definition at line 173 of file def.h.

◆ SCIP_REAL_MAX

#define SCIP_REAL_MAX   (SCIP_Real)DBL_MAX

Definition at line 174 of file def.h.

◆ SCIP_REAL_MIN

#define SCIP_REAL_MIN   -(SCIP_Real)DBL_MAX

Definition at line 175 of file def.h.

◆ SCIP_REAL_FORMAT

#define SCIP_REAL_FORMAT   "lf"

Definition at line 176 of file def.h.

◆ SCIP_DEFAULT_INFINITY

#define SCIP_DEFAULT_INFINITY   1e+20

default value considered to be infinity

Definition at line 178 of file def.h.

◆ SCIP_DEFAULT_EPSILON

#define SCIP_DEFAULT_EPSILON   1e-09

default upper bound for floating points to be considered zero

Definition at line 179 of file def.h.

◆ SCIP_DEFAULT_SUMEPSILON

#define SCIP_DEFAULT_SUMEPSILON   1e-06

default upper bound for sums of floating points to be considered zero

Definition at line 180 of file def.h.

◆ SCIP_DEFAULT_FEASTOL

#define SCIP_DEFAULT_FEASTOL   1e-06

default feasibility tolerance for constraints

Definition at line 181 of file def.h.

◆ SCIP_DEFAULT_CHECKFEASTOLFAC

#define SCIP_DEFAULT_CHECKFEASTOLFAC   1.0

default factor to change the feasibility tolerance when testing the best solution for feasibility (after solving process)

Definition at line 182 of file def.h.

◆ SCIP_DEFAULT_LPFEASTOLFACTOR

#define SCIP_DEFAULT_LPFEASTOLFACTOR   1.0

default factor w.r.t. primal feasibility tolerance that determines default (and maximal) primal feasibility tolerance of LP solver

Definition at line 183 of file def.h.

◆ SCIP_DEFAULT_DUALFEASTOL

#define SCIP_DEFAULT_DUALFEASTOL   1e-07

default feasibility tolerance for reduced costs

Definition at line 184 of file def.h.

◆ SCIP_DEFAULT_BARRIERCONVTOL

#define SCIP_DEFAULT_BARRIERCONVTOL   1e-10

default convergence tolerance used in barrier algorithm

Definition at line 185 of file def.h.

◆ SCIP_DEFAULT_BOUNDSTREPS

#define SCIP_DEFAULT_BOUNDSTREPS   0.05

default minimal relative improve for strengthening bounds

Definition at line 186 of file def.h.

◆ SCIP_DEFAULT_PSEUDOCOSTEPS

#define SCIP_DEFAULT_PSEUDOCOSTEPS   1e-01

default minimal variable distance value to use for pseudo cost updates

Definition at line 187 of file def.h.

◆ SCIP_DEFAULT_PSEUDOCOSTDELTA

#define SCIP_DEFAULT_PSEUDOCOSTDELTA   1e-04

default minimal objective distance value to use for pseudo cost updates

Definition at line 188 of file def.h.

◆ SCIP_DEFAULT_RECOMPFAC

#define SCIP_DEFAULT_RECOMPFAC   1e+07

default minimal decrease factor that causes the recomputation of a value (e.g., pseudo objective) instead of an update

Definition at line 189 of file def.h.

◆ SCIP_DEFAULT_HUGEVAL

#define SCIP_DEFAULT_HUGEVAL   1e+15

values larger than this are considered huge and should be handled separately (e.g., in activity computation)

Definition at line 190 of file def.h.

◆ SCIP_MAXEPSILON

#define SCIP_MAXEPSILON   1e-03

maximum value for any numerical epsilon

Definition at line 191 of file def.h.

◆ SCIP_MINEPSILON

#define SCIP_MINEPSILON   1e-20

minimum value for any numerical epsilon

Definition at line 192 of file def.h.

◆ SCIP_INVALID

#define SCIP_INVALID   (double)1e+99

floating point value is not valid

Definition at line 193 of file def.h.

◆ SCIP_UNKNOWN

#define SCIP_UNKNOWN   (double)1e+98

floating point value is not known (in primal solution)

Definition at line 194 of file def.h.

◆ SCIP_INTERVAL_INFINITY

#define SCIP_INTERVAL_INFINITY   (double)1e+300

infinity value for interval computations

Definition at line 195 of file def.h.

◆ REALABS

#define REALABS (   x)    (fabs(x))

Definition at line 197 of file def.h.

◆ EPSEQ

#define EPSEQ (   x,
  y,
  eps 
)    (REALABS((x)-(y)) <= (eps))

Definition at line 198 of file def.h.

◆ EPSLT

#define EPSLT (   x,
  y,
  eps 
)    ((x)-(y) < -(eps))

Definition at line 199 of file def.h.

◆ EPSLE

#define EPSLE (   x,
  y,
  eps 
)    ((x)-(y) <= (eps))

Definition at line 200 of file def.h.

◆ EPSGT

#define EPSGT (   x,
  y,
  eps 
)    ((x)-(y) > (eps))

Definition at line 201 of file def.h.

◆ EPSGE

#define EPSGE (   x,
  y,
  eps 
)    ((x)-(y) >= -(eps))

Definition at line 202 of file def.h.

◆ EPSZ

#define EPSZ (   x,
  eps 
)    (REALABS(x) <= (eps))

Definition at line 203 of file def.h.

◆ EPSP

#define EPSP (   x,
  eps 
)    ((x) > (eps))

Definition at line 204 of file def.h.

◆ EPSN

#define EPSN (   x,
  eps 
)    ((x) < -(eps))

Definition at line 205 of file def.h.

◆ EPSFLOOR

#define EPSFLOOR (   x,
  eps 
)    (floor((x)+(eps)))

Definition at line 206 of file def.h.

◆ EPSCEIL

#define EPSCEIL (   x,
  eps 
)    (ceil((x)-(eps)))

Definition at line 207 of file def.h.

◆ EPSROUND

#define EPSROUND (   x,
  eps 
)    (ceil((x)-0.5+(eps)))

Definition at line 208 of file def.h.

◆ EPSFRAC

#define EPSFRAC (   x,
  eps 
)    ((x)-EPSFLOOR(x,eps))

Definition at line 209 of file def.h.

◆ EPSISINT

#define EPSISINT (   x,
  eps 
)    (EPSFRAC(x,eps) <= (eps))

Definition at line 210 of file def.h.

◆ SQR

#define SQR (   x)    ((x)*(x))

Definition at line 214 of file def.h.

◆ LOG1P

#define LOG1P (   x)    (log1p(x))

Definition at line 222 of file def.h.

◆ LOG2

#define LOG2 (   x)    log2(x)

Definition at line 230 of file def.h.

◆ ABS

#define ABS (   x)    ((x) >= 0 ? (x) : -(x))

Definition at line 235 of file def.h.

◆ MAX

#define MAX (   x,
  y 
)    ((x) >= (y) ? (x) : (y))

returns maximum of x and y

Definition at line 239 of file def.h.

◆ MIN

#define MIN (   x,
  y 
)    ((x) <= (y) ? (x) : (y))

returns minimum of x and y

Definition at line 243 of file def.h.

◆ MAX3

#define MAX3 (   x,
  y,
 
)    ((x) >= (y) ? MAX(x, z) : MAX(y, z))

returns maximum of x, y, and z

Definition at line 247 of file def.h.

◆ MIN3

#define MIN3 (   x,
  y,
 
)    ((x) <= (y) ? MIN(x, z) : MIN(y, z))

returns minimum of x, y, and z

Definition at line 251 of file def.h.

◆ COPYSIGN

#define COPYSIGN   copysign

Definition at line 258 of file def.h.

◆ NULL

#define NULL   ((void*)0)

zero pointer

Definition at line 267 of file def.h.

◆ RESTRICT

#define RESTRICT

Definition at line 279 of file def.h.

◆ SCIP_MAXSTRLEN

#define SCIP_MAXSTRLEN   1024

maximum string length in SCIP

Definition at line 288 of file def.h.

◆ SCIP_SPACECONTROL

#define SCIP_SPACECONTROL   " tnvfr"

control specifier for escaped spaces

Definition at line 289 of file def.h.

◆ SCIP_MAXMEMSIZE

#define SCIP_MAXMEMSIZE   (SIZE_MAX/2)

maximum size of allocated memory (array)

Definition at line 296 of file def.h.

◆ SCIP_HASHSIZE_PARAMS

#define SCIP_HASHSIZE_PARAMS   2048

size of hash table in parameter name tables

Definition at line 298 of file def.h.

◆ SCIP_HASHSIZE_NAMES

#define SCIP_HASHSIZE_NAMES   500

size of hash table in name tables

Definition at line 299 of file def.h.

◆ SCIP_HASHSIZE_CUTPOOLS

#define SCIP_HASHSIZE_CUTPOOLS   500

size of hash table in cut pools

Definition at line 300 of file def.h.

◆ SCIP_HASHSIZE_CLIQUES

#define SCIP_HASHSIZE_CLIQUES   500

size of hash table in clique tables

Definition at line 301 of file def.h.

◆ SCIP_HASHSIZE_NAMES_SMALL

#define SCIP_HASHSIZE_NAMES_SMALL   100

size of hash table in name tables for small problems

Definition at line 302 of file def.h.

◆ SCIP_HASHSIZE_CUTPOOLS_SMALL

#define SCIP_HASHSIZE_CUTPOOLS_SMALL   100

size of hash table in cut pools for small problems

Definition at line 303 of file def.h.

◆ SCIP_HASHSIZE_CLIQUES_SMALL

#define SCIP_HASHSIZE_CLIQUES_SMALL   100

size of hash table in clique tables for small problems

Definition at line 304 of file def.h.

◆ SCIP_HASHSIZE_VBC

#define SCIP_HASHSIZE_VBC   500

size of hash map for node -> nodenum mapping used for VBC output

Definition at line 305 of file def.h.

◆ SCIP_DEFAULT_MEM_ARRAYGROWFAC

#define SCIP_DEFAULT_MEM_ARRAYGROWFAC   1.2

memory growing factor for dynamically allocated arrays

Definition at line 307 of file def.h.

◆ SCIP_DEFAULT_MEM_ARRAYGROWINIT

#define SCIP_DEFAULT_MEM_ARRAYGROWINIT   4

initial size of dynamically allocated arrays

Definition at line 308 of file def.h.

◆ SCIP_MEM_NOLIMIT

#define SCIP_MEM_NOLIMIT   (SCIP_Longint)(SCIP_LONGINT_MAX >> 20)

initial size of dynamically allocated arrays

Definition at line 310 of file def.h.

◆ SCIP_MAXTREEDEPTH

#define SCIP_MAXTREEDEPTH   1073741822

maximal allowed depth of the branch-and-bound tree

Definition at line 316 of file def.h.

◆ SCIP_PROBINGSCORE_PENALTYRATIO

#define SCIP_PROBINGSCORE_PENALTYRATIO   2

ratio for penalizing too small fractionalities in diving heuristics. if the fractional part of a variable is smaller than a given threshold the corresponding score gets penalized. due to numerical troubles we will flip a coin whenever SCIPisEQ(scip, fractionality, threshold) evaluates to true. this parameter defines the chance that this results in penalizing the score, i.e., there is 1:2 chance for penalizing.

Definition at line 328 of file def.h.

◆ SCIPABORT

#define SCIPABORT ( )    assert(FALSE) /*lint --e{527} */

this macro is used to stop SCIP in debug mode such that errors can be debugged;

Note
In optimized mode this macro has no effect. That means, in case of an error it has to be ensured that code terminates with an error code or continues safely.

Definition at line 346 of file def.h.

◆ SCIP_CALL_ABORT_QUIET

#define SCIP_CALL_ABORT_QUIET (   x)    do { if( (x) != SCIP_OKAY ) SCIPABORT(); } while( FALSE )

Definition at line 348 of file def.h.

◆ SCIP_CALL_QUIET

#define SCIP_CALL_QUIET (   x)    do { SCIP_RETCODE _restat_; if( (_restat_ = (x)) != SCIP_OKAY ) return _restat_; } while( FALSE )

Definition at line 349 of file def.h.

◆ SCIP_ALLOC_ABORT_QUIET

#define SCIP_ALLOC_ABORT_QUIET (   x)    do { if( NULL == (x) ) SCIPABORT(); } while( FALSE )

Definition at line 350 of file def.h.

◆ SCIP_ALLOC_QUIET

#define SCIP_ALLOC_QUIET (   x)    do { if( NULL == (x) ) return SCIP_NOMEMORY; } while( FALSE )

Definition at line 351 of file def.h.

◆ SCIP_CALL_ABORT

#define SCIP_CALL_ABORT (   x)
Value:
do \
{ \
SCIP_RETCODE _restat_; /*lint -e{506,774}*/ \
if( (_restat_ = (x)) != SCIP_OKAY ) \
{ \
SCIPerrorMessage("Error <%d> in function call\n", _restat_); \
SCIPABORT(); \
} \
} \
while( FALSE )
SCIP_VAR ** x
Definition: circlepacking.c:63
#define FALSE
Definition: def.h:94
@ SCIP_OKAY
Definition: type_retcode.h:42

Definition at line 353 of file def.h.

◆ SCIP_ALLOC_ABORT

#define SCIP_ALLOC_ABORT (   x)
Value:
do \
{ \
if( NULL == (x) ) \
{ \
SCIPerrorMessage("No memory in function call\n"); \
SCIPABORT(); \
} \
} \
while( FALSE )
#define NULL
Definition: def.h:267

Definition at line 364 of file def.h.

◆ SCIP_CALL

#define SCIP_CALL (   x)
Value:
do \
{ \
SCIP_RETCODE _restat_; /*lint -e{506,774}*/ \
if( (_restat_ = (x)) != SCIP_OKAY ) \
{ \
SCIPerrorMessage("Error <%d> in function call\n", _restat_); \
return _restat_; \
} \
} \
while( FALSE )

Definition at line 374 of file def.h.

◆ SCIP_ALLOC

#define SCIP_ALLOC (   x)
Value:
do \
{ \
if( NULL == (x) ) \
{ \
SCIPerrorMessage("No memory in function call\n"); \
return SCIP_NOMEMORY; \
} \
} \
while( FALSE )
@ SCIP_NOMEMORY
Definition: type_retcode.h:44

Definition at line 385 of file def.h.

◆ SCIP_CALL_TERMINATE

#define SCIP_CALL_TERMINATE (   retcode,
  x,
  TERM 
)
Value:
do \
{ \
if( ((retcode) = (x)) != SCIP_OKAY ) \
{ \
SCIPerrorMessage("Error <%d> in function call\n", retcode); \
goto TERM; \
} \
} \
while( FALSE )

Definition at line 395 of file def.h.

◆ SCIP_ALLOC_TERMINATE

#define SCIP_ALLOC_TERMINATE (   retcode,
  x,
  TERM 
)
Value:
do \
{ \
if( NULL == (x) ) \
{ \
SCIPerrorMessage("No memory in function call\n"); \
retcode = SCIP_NOMEMORY; \
goto TERM; \
} \
} \
while( FALSE )

Definition at line 405 of file def.h.

◆ SCIP_CALL_FINALLY

#define SCIP_CALL_FINALLY (   x,
  y 
)
Value:
do \
{ \
SCIP_RETCODE _restat_; \
if( (_restat_ = (x)) != SCIP_OKAY ) \
{ \
SCIPerrorMessage("Error <%d> in function call\n", _restat_); \
(y); \
return _restat_; \
} \
} \
while( FALSE )
SCIP_VAR ** y
Definition: circlepacking.c:64

Definition at line 416 of file def.h.

◆ SCIP_UNUSED

#define SCIP_UNUSED (   x)    ((void) (x))

Definition at line 428 of file def.h.

◆ SCIP_DEPRECATED

#define SCIP_DEPRECATED

Definition at line 440 of file def.h.