|
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/type_retcode.h"
#include "scip/pub_message.h"
Go to the source code of this file.
|
#define | SCIP_Bool unsigned int |
|
#define | TRUE 1 |
|
#define | FALSE 0 |
|
#define | EXTERN extern |
|
#define | SCIP_VERSION 321 |
|
#define | SCIP_SUBVERSION 0 |
|
#define | SCIP_COPYRIGHT "Copyright (c) 2002-2016 Konrad-Zuse-Zentrum fuer Informationstechnik 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 | SCIP_Longint long long |
|
#define | SCIP_LONGINT_MAX LLONG_MAX |
|
#define | SCIP_LONGINT_MIN LLONG_MIN |
|
#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_LPFEASTOL 1e-06 |
|
#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 1e+99 |
|
#define | SCIP_UNKNOWN 1e+98 |
|
#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 | SCIP_MAXSTRLEN 1024 |
|
#define | SCIP_MAXMEMSIZE (SIZE_MAX/2) |
|
#define | SCIP_HASHSIZE_PARAMS 4099 |
|
#define | SCIP_HASHSIZE_NAMES 131101 |
|
#define | SCIP_HASHSIZE_CUTPOOLS 131101 |
|
#define | SCIP_HASHSIZE_CLIQUES 131101 |
|
#define | SCIP_HASHSIZE_NAMES_SMALL 8011 |
|
#define | SCIP_HASHSIZE_CUTPOOLS_SMALL 8011 |
|
#define | SCIP_HASHSIZE_CLIQUES_SMALL 8011 |
|
#define | SCIP_HASHSIZE_VBC 131101 |
|
#define | SCIP_DEFAULT_MEM_ARRAYGROWFAC 1.2 |
|
#define | SCIP_DEFAULT_MEM_ARRAYGROWINIT 4 |
|
#define | SCIPABORT() assert(FALSE) |
|
#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_DEPRECATED |
|
#define SCIP_Bool unsigned int |
type used for boolean values
Definition at line 53 of file def.h.
Referenced by scip::ObjVardata::scip_copy(), scip::ObjProbData::scip_copy(), scip::ObjBranchrule::SCIP_DECL_BRANCHEXECPS(), scip::ObjConshdlr::SCIP_DECL_CONSGETDIVEBDCHGS(), scip::ObjDialog::SCIP_DECL_DIALOGDESC(), scip::ObjDisp::SCIP_DECL_DISPEXITSOL(), scip::ObjEventhdlr::SCIP_DECL_EVENTDELETE(), scip::ObjHeur::SCIP_DECL_HEUREXITSOL(), scip::ObjMessagehdlr::SCIP_DECL_MESSAGEHDLRFREE(), scip::ObjNodesel::SCIP_DECL_NODESELEXITSOL(), scip::ObjPresol::SCIP_DECL_PRESOLEXITPRE(), scip::ObjPricer::SCIP_DECL_PRICERFARKAS(), scip::ObjProp::SCIP_DECL_PROPRESPROP(), scip::ObjReader::SCIP_DECL_READERWRITE(), scip::ObjRelax::SCIP_DECL_RELAXEXITSOL(), scip::ObjSepa::SCIP_DECL_SEPAEXECSOL(), SCIPlpiCreate(), SCIPlpiEndStrongbranch(), SCIPlpiExistsDualRay(), SCIPlpiExistsPrimalRay(), SCIPlpiFreeState(), SCIPlpiGetInternalStatus(), SCIPlpiGetSolFeasibility(), SCIPlpiGetState(), SCIPlpiHasDualRay(), SCIPlpiHasPrimalRay(), SCIPlpiInfinity(), SCIPlpiIsDualFeasible(), SCIPlpiIsDualInfeasible(), SCIPlpiIsDualUnbounded(), SCIPlpiIsInfinity(), SCIPlpiIsIterlimExc(), SCIPlpiIsObjlimExc(), SCIPlpiIsOptimal(), SCIPlpiIsPrimalFeasible(), SCIPlpiIsPrimalInfeasible(), SCIPlpiIsPrimalUnbounded(), SCIPlpiIsStable(), SCIPlpiSetIntpar(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), SCIPlpiSolvePrimal(), SCIPlpiStrongbranchesInt(), and SCIPlpiWasSolved().
boolean value TRUE
Definition at line 55 of file def.h.
Referenced by SCIPexprintHessianSparsityDense(), SCIPlpiAddRows(), SCIPlpiClearState(), SCIPlpiCreate(), SCIPlpiEndStrongbranch(), SCIPlpiGetCoef(), SCIPlpiGetIntpar(), SCIPlpiGetSolFeasibility(), SCIPlpiHasDualRay(), SCIPlpiHasStateBasis(), SCIPlpiIgnoreInstability(), SCIPlpiIsInfinity(), SCIPlpiIsIterlimExc(), SCIPlpiIsObjlimExc(), SCIPlpiIsStable(), SCIPlpiIsTimelimExc(), SCIPlpiSetIntpar(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), SCIPlpiSolvePrimal(), SCIPlpiStrongbranchesFrac(), SCIPlpiStrongbranchesInt(), SCIPlpiStrongbranchFrac(), and SCIPlpiStrongbranchInt().
boolean value FALSE
Definition at line 56 of file def.h.
Referenced by scip::ObjConshdlr::SCIP_DECL_CONSCOPY(), scip::ObjConshdlr::SCIP_DECL_CONSGETDIVEBDCHGS(), scip::ObjConshdlr::SCIP_DECL_CONSGETNVARS(), scip::ObjConshdlr::SCIP_DECL_CONSGETVARS(), scip::ObjProbCloneable::SCIP_DECL_OBJPROBISCLONEABLE(), scip::ObjProbData::scip_trans(), scip::ObjVardata::scip_trans(), SCIPexprintGrad(), SCIPexprintHessianDense(), SCIPlpiAddRows(), SCIPlpiCreate(), SCIPlpiEndStrongbranch(), SCIPlpiExistsDualRay(), SCIPlpiExistsPrimalRay(), SCIPlpiGetCoef(), SCIPlpiGetInternalStatus(), SCIPlpiGetIntpar(), SCIPlpiGetSolFeasibility(), SCIPlpiHasDualRay(), SCIPlpiHasPrimalRay(), SCIPlpiHasStateBasis(), SCIPlpiIgnoreInstability(), SCIPlpiIsDualFeasible(), SCIPlpiIsDualInfeasible(), SCIPlpiIsDualUnbounded(), SCIPlpiIsInfinity(), SCIPlpiIsIterlimExc(), SCIPlpiIsObjlimExc(), SCIPlpiIsOptimal(), SCIPlpiIsPrimalFeasible(), SCIPlpiIsPrimalInfeasible(), SCIPlpiIsPrimalUnbounded(), SCIPlpiIsStable(), SCIPlpiIsTimelimExc(), SCIPlpiSetBase(), SCIPlpiSetIntpar(), SCIPlpiSetState(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), SCIPlpiSolvePrimal(), SCIPlpiStrongbranchesFrac(), SCIPlpiStrongbranchFrac(), and SCIPlpiWasSolved().
Definition at line 75 of file def.h.
SCIP version number (multiplied by 100 to get integer number)
Definition at line 89 of file def.h.
#define SCIP_SUBVERSION 0 |
SCIP sub version number
Definition at line 90 of file def.h.
#define SCIP_COPYRIGHT "Copyright (c) 2002-2016 Konrad-Zuse-Zentrum fuer Informationstechnik Berlin (ZIB)" |
Definition at line 91 of file def.h.
#define SCIP_VARTYPE_BINARY_CHAR 'B' |
Definition at line 98 of file def.h.
#define SCIP_VARTYPE_INTEGER_CHAR 'I' |
Definition at line 99 of file def.h.
#define SCIP_VARTYPE_IMPLINT_CHAR 'M' |
#define SCIP_VARTYPE_CONTINUOUS_CHAR 'C' |
#define SCIP_Longint long long |
type used for long integer values
Definition at line 112 of file def.h.
#define SCIP_LONGINT_MAX LLONG_MAX |
#define SCIP_LONGINT_MIN LLONG_MIN |
type used for floating point values
Definition at line 127 of file def.h.
Referenced by atomic_signpower< Type >::atomic_signpower(), atomic_signpower< SCIPInterval >::atomic_signpower(), evalAbs(), scip::ObjVardata::scip_copy(), SCIPexprintHessianSparsityDense(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiCreate(), SCIPlpiEndStrongbranch(), SCIPlpiGetBase(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvRow(), SCIPlpiGetIntpar(), SCIPlpiGetObjval(), SCIPlpiGetPrimalRay(), SCIPlpiGetRealSolQuality(), SCIPlpiGetSol(), SCIPlpiGetSolFeasibility(), SCIPlpiGetSolverName(), SCIPlpiIgnoreInstability(), SCIPlpiInfinity(), SCIPlpiIsStable(), SCIPlpiLoadColLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetRealpar(), SCIPlpiSetState(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), SCIPlpiStrongbranchesInt(), and SCIPlpiStrongbranchInt().
#define SCIP_REAL_FORMAT "lf" |
#define SCIP_DEFAULT_INFINITY 1e+20 |
default value considered to be infinity
Definition at line 132 of file def.h.
#define SCIP_DEFAULT_EPSILON 1e-09 |
default upper bound for floating points to be considered zero
Definition at line 133 of file def.h.
#define SCIP_DEFAULT_SUMEPSILON 1e-06 |
default upper bound for sums of floating points to be considered zero
Definition at line 134 of file def.h.
#define SCIP_DEFAULT_FEASTOL 1e-06 |
default feasibility tolerance for constraints
Definition at line 135 of file def.h.
#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 136 of file def.h.
#define SCIP_DEFAULT_LPFEASTOL 1e-06 |
default primal feasibility tolerance of LP solver
Definition at line 137 of file def.h.
#define SCIP_DEFAULT_DUALFEASTOL 1e-07 |
default feasibility tolerance for reduced costs
Definition at line 138 of file def.h.
#define SCIP_DEFAULT_BARRIERCONVTOL 1e-10 |
default convergence tolerance used in barrier algorithm
Definition at line 139 of file def.h.
#define SCIP_DEFAULT_BOUNDSTREPS 0.05 |
default minimal relative improve for strengthening bounds
Definition at line 140 of file def.h.
#define SCIP_DEFAULT_PSEUDOCOSTEPS 1e-01 |
default minimal variable distance value to use for pseudo cost updates
Definition at line 141 of file def.h.
#define SCIP_DEFAULT_PSEUDOCOSTDELTA 1e-04 |
default minimal objective distance value to use for pseudo cost updates
Definition at line 142 of file def.h.
#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 143 of file def.h.
#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 144 of file def.h.
#define SCIP_MAXEPSILON 1e-03 |
maximum value for any numerical epsilon
Definition at line 145 of file def.h.
#define SCIP_MINEPSILON 1e-20 |
minimum value for any numerical epsilon
Definition at line 146 of file def.h.
#define SCIP_INVALID 1e+99 |
#define SCIP_UNKNOWN 1e+98 |
floating point value is not known (in primal solution)
Definition at line 148 of file def.h.
#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 SCIP_MAXSTRLEN 1024 |
#define SCIP_MAXMEMSIZE (SIZE_MAX/2) |
maximum size of allocated memory (array)
Definition at line 208 of file def.h.
#define SCIP_HASHSIZE_PARAMS 4099 |
size of hash table in parameter name tables
Definition at line 210 of file def.h.
#define SCIP_HASHSIZE_NAMES 131101 |
size of hash table in name tables
Definition at line 211 of file def.h.
#define SCIP_HASHSIZE_CUTPOOLS 131101 |
size of hash table in cut pools
Definition at line 212 of file def.h.
#define SCIP_HASHSIZE_CLIQUES 131101 |
size of hash table in clique tables
Definition at line 213 of file def.h.
#define SCIP_HASHSIZE_NAMES_SMALL 8011 |
size of hash table in name tables for small problems
Definition at line 214 of file def.h.
#define SCIP_HASHSIZE_CUTPOOLS_SMALL 8011 |
size of hash table in cut pools for small problems
Definition at line 215 of file def.h.
#define SCIP_HASHSIZE_CLIQUES_SMALL 8011 |
size of hash table in clique tables for small problems
Definition at line 216 of file def.h.
#define SCIP_HASHSIZE_VBC 131101 |
size of hash map for node -> nodenum mapping used for VBC output
Definition at line 217 of file def.h.
#define SCIP_DEFAULT_MEM_ARRAYGROWFAC 1.2 |
memory growing factor for dynamically allocated arrays
Definition at line 219 of file def.h.
#define SCIP_DEFAULT_MEM_ARRAYGROWINIT 4 |
initial size of dynamically allocated arrays
Definition at line 220 of file def.h.
#define SCIPABORT |
( |
| ) |
assert(FALSE) |
#define SCIP_CALL_ABORT |
( |
|
x | ) |
|
Value:do \ { \ SCIP_RETCODE _restat_; \ { \ SCIPerrorMessage("Error <%d> in function call\n", _restat_); \ SCIPABORT(); \ } \ } \
Definition at line 245 of file def.h.
Referenced by scip::ObjBranchrule::ObjBranchrule(), scip::ObjConshdlr::ObjConshdlr(), scip::ObjDialog::ObjDialog(), scip::ObjDisp::ObjDisp(), scip::ObjEventhdlr::ObjEventhdlr(), scip::ObjHeur::ObjHeur(), scip::ObjNodesel::ObjNodesel(), scip::ObjPresol::ObjPresol(), scip::ObjPricer::ObjPricer(), scip::ObjProp::ObjProp(), scip::ObjReader::ObjReader(), scip::ObjRelax::ObjRelax(), and scip::ObjSepa::ObjSepa().
#define SCIP_ALLOC_ABORT |
( |
|
x | ) |
|
Value:do \ { \ { \ SCIPerrorMessage("No memory in function call\n", __FILE__, __LINE__); \ SCIPABORT(); \ } \ } \
Definition at line 256 of file def.h.
Value:do \ { \ SCIP_RETCODE _restat_; \ { \ SCIPerrorMessage("Error <%d> in function call\n", _restat_); \ return _restat_; \ } \ } \
Definition at line 266 of file def.h.
Referenced by evalAbs(), SCIPexprintCompile(), SCIPexprintEval(), SCIPexprintEvalInt(), SCIPexprintGrad(), SCIPexprintGradInt(), SCIPexprintHessianDense(), SCIPexprintHessianSparsityDense(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgCoef(), SCIPlpiChgObj(), SCIPlpiChgSides(), SCIPlpiClear(), SCIPlpiCreate(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiEndStrongbranch(), SCIPlpiGetBase(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetBounds(), SCIPlpiGetCoef(), SCIPlpiGetCols(), SCIPlpiGetIntpar(), SCIPlpiGetNNonz(), SCIPlpiGetObj(), SCIPlpiGetRealpar(), SCIPlpiGetRealSolQuality(), SCIPlpiGetRows(), SCIPlpiGetSides(), SCIPlpiGetSol(), SCIPlpiGetState(), SCIPlpiLoadColLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetBase(), SCIPlpiSetIntpar(), SCIPlpiSetRealpar(), SCIPlpiSetState(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), SCIPlpiSolvePrimal(), SCIPlpiStrongbranchesFrac(), SCIPlpiStrongbranchesInt(), SCIPlpiStrongbranchFrac(), and SCIPlpiStrongbranchInt().
Value:do \ { \ { \ SCIPerrorMessage("No memory in function call\n"); \ } \ } \
Definition at line 277 of file def.h.
Referenced by SCIPexprintCreate(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgSides(), SCIPlpiCreate(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiEndStrongbranch(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetColNames(), SCIPlpiGetNNonz(), SCIPlpiGetNorms(), SCIPlpiGetRowNames(), SCIPlpiGetSol(), SCIPlpiGetState(), SCIPlpiLoadColLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), and SCIPlpiSetBase().
#define SCIP_CALL_TERMINATE |
( |
|
retcode, |
|
|
|
x, |
|
|
|
TERM |
|
) |
| |
Value:do \ { \ { \ SCIPerrorMessage("Error <%d> in function call\n", retcode); \ goto TERM; \ } \ } \
Definition at line 287 of file def.h.
#define SCIP_ALLOC_TERMINATE |
( |
|
retcode, |
|
|
|
x, |
|
|
|
TERM |
|
) |
| |
Value:do \ { \ { \ SCIPerrorMessage("No memory in function call\n"); \ goto TERM; \ } \ } \
Definition at line 297 of file def.h.
|