Changeset 1460:7c58aabb9eea in lemon-0.x for lemon/lp_cplex.cc
- Timestamp:
- 06/09/05 17:03:58 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1940
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_cplex.cc
r1458 r1460 261 261 } 262 262 263 LpCplex::Value LpCplex::_getPrimal(int i) 264 { 265 Value x; 266 CPXgetx (env, lp, &x, i, i); 267 return x; 268 } 269 270 LpCplex::Value LpCplex::_getPrimalValue() 271 { 272 Value objval; 273 //method = CPXgetmethod (env, lp); 274 status = CPXgetobjval (env, lp, &objval); 275 return objval; 276 } 277 263 278 264 279 //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!) … … 378 393 } 379 394 380 LpCplex::Value LpCplex::_getPrimal(int i)381 {382 Value x;383 CPXgetx (env, lp, &x, i, i);384 return x;385 }386 387 LpCplex::Value LpCplex::_getPrimalValue()388 {389 Value objval;390 //method = CPXgetmethod (env, lp);391 status = CPXgetobjval (env, lp, &objval);392 return objval;393 }394 395 395 396 LpCplex::ProblemTypes LpCplex::_getProblemType() 397 { 398 int stat = CPXgetstat (env, lp); 399 switch (stat) { 400 case CPX_OPTIMAL://Optimal 401 return PRIMAL_DUAL_FEASIBLE; 402 case CPX_UNBOUNDED: 403 return PRIMAL_FEASIBLE_DUAL_INFEASIBLE; 404 // return PRIMAL_INFEASIBLE_DUAL_FEASIBLE; 405 // return PRIMAL_DUAL_INFEASIBLE; 406 407 //Seems to be that this is all we can say for sure 408 default: 409 //In all other cases 410 return UNKNOWN; 411 //FIXME error 412 } 396 413 397 414
Note: See TracChangeset
for help on using the changeset viewer.