Small bug fixes (#180)
authorPeter Kovacs <kpeter@inf.elte.hu>
Fri, 13 Nov 2009 00:39:28 +0100
changeset 821072ec8120958
parent 820 7ef7a5fbb85d
child 822 f903263902f6
Small bug fixes (#180)
lemon/capacity_scaling.h
lemon/cost_scaling.h
     1.1 --- a/lemon/capacity_scaling.h	Fri Nov 13 00:37:55 2009 +0100
     1.2 +++ b/lemon/capacity_scaling.h	Fri Nov 13 00:39:28 2009 +0100
     1.3 @@ -681,7 +681,7 @@
     1.4  
     1.5      // Initialize the algorithm
     1.6      ProblemType init() {
     1.7 -      if (_node_num == 0) return INFEASIBLE;
     1.8 +      if (_node_num <= 1) return INFEASIBLE;
     1.9  
    1.10        // Check the sum of supply values
    1.11        _sum_supply = 0;
     2.1 --- a/lemon/cost_scaling.h	Fri Nov 13 00:37:55 2009 +0100
     2.2 +++ b/lemon/cost_scaling.h	Fri Nov 13 00:39:28 2009 +0100
     2.3 @@ -712,7 +712,7 @@
     2.4  
     2.5      // Initialize the algorithm
     2.6      ProblemType init() {
     2.7 -      if (_res_node_num == 0) return INFEASIBLE;
     2.8 +      if (_res_node_num <= 1) return INFEASIBLE;
     2.9  
    2.10        // Check the sum of supply values
    2.11        _sum_supply = 0;