Skip to content

Commit cb3e24a

Browse files
authored
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
1 parent 93785eb commit cb3e24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ot/lp/network_simplex_simple.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ namespace lemon {
15071507
if( retVal == OPTIMAL){
15081508
for (int e = _search_arc_num; e != _all_arc_num; ++e) {
15091509
if (_flow[e] != 0){
1510-
if (abs(_flow[e]) > EPSILON)
1510+
if (fabs(_flow[e]) > _EPSILON) // change of the original code following issue #126
15111511
return INFEASIBLE;
15121512
else
15131513
_flow[e]=0;

0 commit comments

Comments
 (0)