Scippy

SoPlex

Sequential object-oriented simPlex

spxdefines.cpp
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the class library */
4 /* SoPlex --- the Sequential object-oriented simPlex. */
5 /* */
6 /* Copyright (C) 1996-2016 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SoPlex is distributed under the terms of the ZIB Academic Licence. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SoPlex; see the file COPYING. If not email to soplex@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file spxdefines.cpp
17  * @brief Debugging, floating point type and parameter definitions.
18  */
19 #include "spxdefines.h"
20 #include "assert.h"
21 #include "spxout.h"
22 
23 namespace soplex
24 {
25 
27 
32 
33 bool msginconsistent(const char* name, const char* file, int line)
34 {
35  assert(name != 0);
36  assert(file != 0);
37  assert(line >= 0);
38 
39  MSG_ERROR( std::cerr << file << "(" << line << ") "
40  << "Inconsistency detected in " << name << std::endl; )
41 
42  return 0;
43 }
44 
46 {
47  s_epsilon = eps;
48 }
49 
51 {
53 }
54 
56 {
57  s_epsilon_update = eps;
58 }
59 
61 {
62  s_epsilon_pivot = eps;
63 }
64 
65 } // namespace soplex
#define DEFAULT_EPS_FACTOR
Definition: spxdefines.h:215
static void setEpsilon(Real eps)
Definition: spxdefines.cpp:45
static Real s_epsilon
default allowed additive zero: 1.0 + EPS_ZERO == 1.0
Definition: spxdefines.h:240
bool msginconsistent(const char *name, const char *file, int line)
Definition: spxdefines.cpp:33
#define DEFAULT_INFINITY
Definition: spxdefines.h:223
#define DEFAULT_EPS_UPDATE
Definition: spxdefines.h:218
Wrapper for different output streams and verbosity levels.
double Real
SOPLEX_DEBUG.
Definition: spxdefines.h:200
static void setEpsilonPivot(Real eps)
Definition: spxdefines.cpp:60
#define DEFAULT_EPS_ZERO
default allowed additive zero: 1.0 + EPS_ZERO == 1.0
Definition: spxdefines.h:212
#define DEFAULT_EPS_PIVOT
Definition: spxdefines.h:221
#define MSG_ERROR(x)
Prints out message x if the verbosity level is at least SPxOut::ERROR.
Definition: spxdefines.h:109
static Real s_epsilon_factorization
epsilon for factorization
Definition: spxdefines.h:242
static Real s_epsilon_pivot
epsilon for pivot zero tolerance in factorization
Definition: spxdefines.h:246
Debugging, floating point type and parameter definitions.
Everything should be within this namespace.
static void setEpsilonUpdate(Real eps)
Definition: spxdefines.cpp:55
const Real infinity
Definition: spxdefines.cpp:26
static void setEpsilonFactorization(Real eps)
Definition: spxdefines.cpp:50
static Real s_epsilon_update
epsilon for factorization update
Definition: spxdefines.h:244