Changes in lemon/capacity_scaling.h [1221:1c978b5bcc65:1241:879fcb781086] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/capacity_scaling.h
r1221 r1241 740 740 if (_sum_supply > 0) return INFEASIBLE; 741 741 742 // Check lower and upper bounds 743 LEMON_DEBUG(checkBoundMaps(), 744 "Upper bounds must be greater or equal to the lower bounds"); 745 746 742 747 // Initialize vectors 743 748 for (int i = 0; i != _root; ++i) { … … 832 837 833 838 return OPTIMAL; 839 } 840 841 // Check if the upper bound is greater or equal to the lower bound 842 // on each arc. 843 bool checkBoundMaps() { 844 for (int j = 0; j != _res_arc_num; ++j) { 845 if (_upper[j] < _lower[j]) return false; 846 } 847 return true; 834 848 } 835 849
Note: See TracChangeset
for help on using the changeset viewer.