summaryrefslogtreecommitdiff
path: root/ot/lp
diff options
context:
space:
mode:
authorNicolas Courty <ncourty@irisa.fr>2020-11-12 16:04:16 +0100
committerGitHub <noreply@github.com>2020-11-12 16:04:16 +0100
commitcb3e24aea8a2492ccb7e7664533ea3543b14c8ac (patch)
tree8817439eea6ccb7670f9e1fbb815e62f83d48d62 /ot/lp
parent93785eba11b59d544f1edde6661e93ee587148ee (diff)
change precision EPSILON in C code (#217)
* change precision EPSILON in C code * change precision EPSILON in C code V2 * change precision EPSILON in C code V3 (add comment and remove unnecessary lines
Diffstat (limited to 'ot/lp')
-rw-r--r--ot/lp/network_simplex_simple.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot/lp/network_simplex_simple.h b/ot/lp/network_simplex_simple.h
index 5d93040..630b595 100644
--- a/ot/lp/network_simplex_simple.h
+++ b/ot/lp/network_simplex_simple.h
@@ -1507,7 +1507,7 @@ namespace lemon {
if( retVal == OPTIMAL){
for (int e = _search_arc_num; e != _all_arc_num; ++e) {
if (_flow[e] != 0){
- if (abs(_flow[e]) > EPSILON)
+ if (fabs(_flow[e]) > _EPSILON) // change of the original code following issue #126
return INFEASIBLE;
else
_flow[e]=0;