Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ot/lp/network_simplex_simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@


#define EPSILON 2.2204460492503131e-15
//#define EPSILON 1.1e-7
Comment thread
ncourty marked this conversation as resolved.
Outdated
#define _EPSILON 1e-8
#define MAX_DEBUG_ITER 100000

Expand Down Expand Up @@ -1507,7 +1508,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)
Comment thread
ncourty marked this conversation as resolved.
Outdated
return INFEASIBLE;
else
_flow[e]=0;
Expand Down