lemon/lp_cplex.cc
changeset 1853 dd0b47adc152
parent 1840 173b53b28d7c
child 1875 98698b69a902
equal deleted inserted replaced
9:c714c7e04349 10:94fe6f76118f
   283     status = CPXgetobjval(env, lp, &objval);
   283     status = CPXgetobjval(env, lp, &objval);
   284     //printf("Objective value: %g \n",objval);
   284     //printf("Objective value: %g \n",objval);
   285     return objval;
   285     return objval;
   286   }
   286   }
   287   bool LpCplex::_isBasicCol(int i) {
   287   bool LpCplex::_isBasicCol(int i) {
   288     int* cstat=new int[CPXgetnumcols(env, lp)];
   288     int cstat[CPXgetnumcols(env, lp)];
   289     return CPXgetbase(env, lp, cstat, NULL);
   289     CPXgetbase(env, lp, cstat, NULL);
   290     bool result=(cstat[i]==CPX_BASIC);
   290     return (cstat[i]==CPX_BASIC);
   291     delete[] cstat;
       
   292     return result;
       
   293   }  
   291   }  
   294 
   292 
   295 //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!)
   293 //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!)
   296 // This table lists the statuses, returned by the CPXgetstat() routine, for solutions to LP problems or mixed integer problems. If no solution exists, the return value is zero.
   294 // This table lists the statuses, returned by the CPXgetstat() routine, for solutions to LP problems or mixed integer problems. If no solution exists, the return value is zero.
   297 
   295