lemon/lp_cplex.cc
changeset 1840 173b53b28d7c
parent 1798 8b91105d5374
child 1841 a2dfee683243
equal deleted inserted replaced
8:3d5c9555d8b4 9:c714c7e04349
   282     //printf("CPXgetprobtype %d \n",CPXgetprobtype(env,lp));
   282     //printf("CPXgetprobtype %d \n",CPXgetprobtype(env,lp));
   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   
   287   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;
       
   293   }  
   288 
   294 
   289 //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!)
   295 //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!)
   290 // 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.
   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.
   291 
   297 
   292 // For Simplex, Barrier  
   298 // For Simplex, Barrier