bug fix
authormarci
Wed, 30 Nov 2005 17:49:01 +0000
changeset 1841a2dfee683243
parent 1840 173b53b28d7c
child 1842 8abf74160dc4
bug fix
lemon/lp_cplex.cc
     1.1 --- a/lemon/lp_cplex.cc	Wed Nov 30 17:00:17 2005 +0000
     1.2 +++ b/lemon/lp_cplex.cc	Wed Nov 30 17:49:01 2005 +0000
     1.3 @@ -285,11 +285,9 @@
     1.4      return objval;
     1.5    }
     1.6    bool LpCplex::_isBasicCol(int i) {
     1.7 -    int* cstat=new int[CPXgetnumcols(env, lp)];
     1.8 -    return CPXgetbase(env, lp, cstat, NULL);
     1.9 -    bool result=(cstat[i]==CPX_BASIC);
    1.10 -    delete[] cstat;
    1.11 -    return result;
    1.12 +    int cstat[CPXgetnumcols(env, lp)];
    1.13 +    CPXgetbase(env, lp, cstat, NULL);
    1.14 +    return (cstat[i]==CPX_BASIC);
    1.15    }  
    1.16  
    1.17  //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!)