We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eff97b commit 32ae5aeCopy full SHA for 32ae5ae
ot/lp/network_simplex_simple.h
@@ -34,8 +34,8 @@
34
#endif
35
36
37
-//#define EPSILON 2.2204460492503131e-14
38
-#define EPSILON 1.1e-7
+#define EPSILON 2.2204460492503131e-15
+//#define EPSILON 1.1e-7
39
#define _EPSILON 1e-8
40
#define MAX_DEBUG_ITER 100000
41
@@ -1508,7 +1508,7 @@ namespace lemon {
1508
if( retVal == OPTIMAL){
1509
for (int e = _search_arc_num; e != _all_arc_num; ++e) {
1510
if (_flow[e] != 0){
1511
- if (abs(_flow[e]) > EPSILON)
+ if (fabs(_flow[e]) > _EPSILON)
1512
return INFEASIBLE;
1513
else
1514
_flow[e]=0;
0 commit comments