COIN-OR::LEMON - Graph Library

Changeset 1841:a2dfee683243 in lemon-0.x


Ignore:
Timestamp:
11/30/05 18:49:01 (14 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2394
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_cplex.cc

    r1840 r1841  
    286286  }
    287287  bool LpCplex::_isBasicCol(int i) {
    288     int* cstat=new int[CPXgetnumcols(env, lp)];
    289     return CPXgetbase(env, lp, cstat, NULL);
    290     bool result=(cstat[i]==CPX_BASIC);
    291     delete[] cstat;
    292     return result;
     288    int cstat[CPXgetnumcols(env, lp)];
     289    CPXgetbase(env, lp, cstat, NULL);
     290    return (cstat[i]==CPX_BASIC);
    293291  } 
    294292
Note: See TracChangeset for help on using the changeset viewer.