Changes in / [1069:d1a48668ddb4:1071:879fcb781086] in lemon-main
- Location:
- lemon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/capacity_scaling.h
r1053 r1071 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 -
lemon/cost_scaling.h
r1053 r1071 764 764 if (_sum_supply > 0) return INFEASIBLE; 765 765 766 // Check lower and upper bounds 767 LEMON_DEBUG(checkBoundMaps(), 768 "Upper bounds must be greater or equal to the lower bounds"); 769 766 770 767 771 // Initialize vectors … … 899 903 900 904 return OPTIMAL; 905 } 906 907 // Check if the upper bound is greater or equal to the lower bound 908 // 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; 901 914 } 902 915 -
lemon/cycle_canceling.h
r1053 r1071 671 671 if (_sum_supply > 0) return INFEASIBLE; 672 672 673 // Check lower and upper bounds 674 LEMON_DEBUG(checkBoundMaps(), 675 "Upper bounds must be greater or equal to the lower bounds"); 676 673 677 674 678 // Initialize vectors … … 779 783 780 784 return OPTIMAL; 785 } 786 787 // Check if the upper bound is greater or equal to the lower bound 788 // 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; 781 794 } 782 795 -
lemon/network_simplex.h
r1053 r1071 1068 1068 (_stype == LEQ && _sum_supply >= 0)) ) return false; 1069 1069 1070 // Check lower and upper bounds 1071 LEMON_DEBUG(checkBoundMaps(), 1072 "Upper bounds must be greater or equal to the lower bounds"); 1073 1070 1074 // Remove non-zero lower bounds 1071 1075 if (_have_lower) { … … 1231 1235 return true; 1232 1236 } 1237 1238 // Check if the upper bound is greater or equal to the lower bound 1239 // 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 } 1233 1246 1234 1247 // Find the join node
Note: See TracChangeset
for help on using the changeset viewer.