equal
deleted
inserted
replaced
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 |