[Lemon-commits] [lemon_svn] marci: r2394 - hugo/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:52:19 CET 2006


Author: marci
Date: Wed Nov 30 18:49:01 2005
New Revision: 2394

Modified:
   hugo/trunk/lemon/lp_cplex.cc

Log:
bug fix


Modified: hugo/trunk/lemon/lp_cplex.cc
==============================================================================
--- hugo/trunk/lemon/lp_cplex.cc	(original)
+++ hugo/trunk/lemon/lp_cplex.cc	Wed Nov 30 18:49:01 2005
@@ -285,11 +285,9 @@
     return objval;
   }
   bool LpCplex::_isBasicCol(int i) {
-    int* cstat=new int[CPXgetnumcols(env, lp)];
-    return CPXgetbase(env, lp, cstat, NULL);
-    bool result=(cstat[i]==CPX_BASIC);
-    delete[] cstat;
-    return result;
+    int cstat[CPXgetnumcols(env, lp)];
+    CPXgetbase(env, lp, cstat, NULL);
+    return (cstat[i]==CPX_BASIC);
   }  
 
 //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!)



More information about the Lemon-commits mailing list