Skip to content

Commit b554ebd

Browse files
committed
change precision EPSILON in C code V3 (add comment and remove unnecessary lines
1 parent 32ae5ae commit b554ebd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ot/lp/network_simplex_simple.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636

3737
#define EPSILON 2.2204460492503131e-15
38-
//#define EPSILON 1.1e-7
3938
#define _EPSILON 1e-8
4039
#define MAX_DEBUG_ITER 100000
4140

@@ -1508,7 +1507,7 @@ namespace lemon {
15081507
if( retVal == OPTIMAL){
15091508
for (int e = _search_arc_num; e != _all_arc_num; ++e) {
15101509
if (_flow[e] != 0){
1511-
if (fabs(_flow[e]) > _EPSILON)
1510+
if (fabs(_flow[e]) > _EPSILON) // change of the original code following issue #126
15121511
return INFEASIBLE;
15131512
else
15141513
_flow[e]=0;

0 commit comments

Comments
 (0)