Changeset 1240:ee9bac10f58e in lemon for lemon/capacity_scaling.h
- Timestamp:
- 03/16/13 16:20:41 (12 years ago)
- Branch:
- default
- Children:
- 1241:879fcb781086, 1296:330264b171cf
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/capacity_scaling.h
r1166 r1240 738 738 if (_sum_supply > 0) return INFEASIBLE; 739 739 740 // Check lower and upper bounds 741 LEMON_DEBUG(checkBoundMaps(), 742 "Upper bounds must be greater or equal to the lower bounds"); 743 744 740 745 // Initialize vectors 741 746 for (int i = 0; i != _root; ++i) { … … 830 835 831 836 return OPTIMAL; 837 } 838 839 // Check if the upper bound is greater or equal to the lower bound 840 // on each arc. 841 bool checkBoundMaps() { 842 for (int j = 0; j != _res_arc_num; ++j) { 843 if (_upper[j] < _lower[j]) return false; 844 } 845 return true; 832 846 } 833 847
Note: See TracChangeset
for help on using the changeset viewer.