Skip to content

Commit 32ae5ae

Browse files
committed
change precision EPSILON in C code V2
1 parent 4eff97b commit 32ae5ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ot/lp/network_simplex_simple.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#endif
3535

3636

37-
//#define EPSILON 2.2204460492503131e-14
38-
#define EPSILON 1.1e-7
37+
#define EPSILON 2.2204460492503131e-15
38+
//#define EPSILON 1.1e-7
3939
#define _EPSILON 1e-8
4040
#define MAX_DEBUG_ITER 100000
4141

@@ -1508,7 +1508,7 @@ namespace lemon {
15081508
if( retVal == OPTIMAL){
15091509
for (int e = _search_arc_num; e != _all_arc_num; ++e) {
15101510
if (_flow[e] != 0){
1511-
if (abs(_flow[e]) > EPSILON)
1511+
if (fabs(_flow[e]) > _EPSILON)
15121512
return INFEASIBLE;
15131513
else
15141514
_flow[e]=0;

0 commit comments

Comments
 (0)