Changes in / [1071:879fcb781086:1069:d1a48668ddb4] in lemon-main
- Location:
- lemon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/capacity_scaling.h
r1071 r1053 740 740 if (_sum_supply > 0) return INFEASIBLE; 741 741 742 // Check lower and upper bounds743 LEMON_DEBUG(checkBoundMaps(),744 "Upper bounds must be greater or equal to the lower bounds");745 746 747 742 // Initialize vectors 748 743 for (int i = 0; i != _root; ++i) { … … 837 832 838 833 return OPTIMAL; 839 }840 841 // Check if the upper bound is greater or equal to the lower bound842 // 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;848 834 } 849 835 -
lemon/cost_scaling.h
r1071 r1053 764 764 if (_sum_supply > 0) return INFEASIBLE; 765 765 766 // Check lower and upper bounds767 LEMON_DEBUG(checkBoundMaps(),768 "Upper bounds must be greater or equal to the lower bounds");769 770 766 771 767 // Initialize vectors … … 903 899 904 900 return OPTIMAL; 905 }906 907 // Check if the upper bound is greater or equal to the lower bound908 // on each arc.909 bool checkBoundMaps() {910 for (int j = 0; j != _res_arc_num; ++j) {911 if (_upper[j] < _lower[j]) return false;912 }913 return true;914 901 } 915 902 -
lemon/cycle_canceling.h
r1071 r1053 671 671 if (_sum_supply > 0) return INFEASIBLE; 672 672 673 // Check lower and upper bounds674 LEMON_DEBUG(checkBoundMaps(),675 "Upper bounds must be greater or equal to the lower bounds");676 677 673 678 674 // Initialize vectors … … 783 779 784 780 return OPTIMAL; 785 }786 787 // Check if the upper bound is greater or equal to the lower bound788 // on each arc.789 bool checkBoundMaps() {790 for (int j = 0; j != _res_arc_num; ++j) {791 if (_upper[j] < _lower[j]) return false;792 }793 return true;794 781 } 795 782 -
lemon/network_simplex.h
r1071 r1053 1068 1068 (_stype == LEQ && _sum_supply >= 0)) ) return false; 1069 1069 1070 // Check lower and upper bounds1071 LEMON_DEBUG(checkBoundMaps(),1072 "Upper bounds must be greater or equal to the lower bounds");1073 1074 1070 // Remove non-zero lower bounds 1075 1071 if (_have_lower) { … … 1235 1231 return true; 1236 1232 } 1237 1238 // Check if the upper bound is greater or equal to the lower bound1239 // on each arc.1240 bool checkBoundMaps() {1241 for (int j = 0; j != _arc_num; ++j) {1242 if (_upper[j] < _lower[j]) return false;1243 }1244 return true;1245 }1246 1233 1247 1234 // Find the join node
Note: See TracChangeset
for help on using the changeset viewer.