equal
deleted
inserted
replaced
710 |
710 |
711 private: |
711 private: |
712 |
712 |
713 // Initialize the algorithm |
713 // Initialize the algorithm |
714 ProblemType init() { |
714 ProblemType init() { |
715 if (_res_node_num == 0) return INFEASIBLE; |
715 if (_res_node_num <= 1) return INFEASIBLE; |
716 |
716 |
717 // Check the sum of supply values |
717 // Check the sum of supply values |
718 _sum_supply = 0; |
718 _sum_supply = 0; |
719 for (int i = 0; i != _root; ++i) { |
719 for (int i = 0; i != _root; ++i) { |
720 _sum_supply += _supply[i]; |
720 _sum_supply += _supply[i]; |