Changeset 1240:ee9bac10f58e in lemon for lemon/cost_scaling.h
- Timestamp:
- 03/16/13 16:20:41 (11 years ago)
- Branch:
- default
- Children:
- 1241:879fcb781086, 1296:330264b171cf
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/cost_scaling.h
r1165 r1240 762 762 if (_sum_supply > 0) return INFEASIBLE; 763 763 764 // Check lower and upper bounds 765 LEMON_DEBUG(checkBoundMaps(), 766 "Upper bounds must be greater or equal to the lower bounds"); 767 764 768 765 769 // Initialize vectors … … 897 901 898 902 return OPTIMAL; 903 } 904 905 // Check if the upper bound is greater or equal to the lower bound 906 // on each arc. 907 bool checkBoundMaps() { 908 for (int j = 0; j != _res_arc_num; ++j) { 909 if (_upper[j] < _lower[j]) return false; 910 } 911 return true; 899 912 } 900 913
Note: See TracChangeset
for help on using the changeset viewer.