Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
SoPlex 6.0.3
SoPlex 5.0.2
SoPlex 4.0.2
SoPlex 3.1.0
SoPlex 3.0.1
SoPlex 2.2.1
SoPlex
Sequential object-oriented simPlex
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
soplex-repo
src
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-2015 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
26
const
Real
infinity
=
DEFAULT_INFINITY
;
27
28
Real
Param::s_epsilon
=
DEFAULT_EPS_ZERO
;
29
Real
Param::s_epsilon_factorization
=
DEFAULT_EPS_FACTOR
;
30
Real
Param::s_epsilon_update
=
DEFAULT_EPS_UPDATE
;
31
Real
Param::s_epsilon_pivot
=
DEFAULT_EPS_PIVOT
;
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
45
void
Param::setEpsilon
(
Real
eps)
46
{
47
s_epsilon
= eps;
48
}
49
50
void
Param::setEpsilonFactorization
(
Real
eps)
51
{
52
s_epsilon_factorization
= eps;
53
}
54
55
void
Param::setEpsilonUpdate
(
Real
eps)
56
{
57
s_epsilon_update
= eps;
58
}
59
60
void
Param::setEpsilonPivot
(
Real
eps)
61
{
62
s_epsilon_pivot
= eps;
63
}
64
65
}
// namespace soplex