COIN-OR::LEMON - Graph Library

Changeset 1473:876c7b7f4dae in lemon-0.x for lemon/lp_glpk.cc


Ignore:
Timestamp:
06/10/05 14:50:43 (14 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1953
Message:

Some tests have been developed, bugs got fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_glpk.cc

    r1466 r1473  
    2222
    2323#include <lemon/lp_glpk.h>
    24 
     24//#include <iostream>
    2525namespace lemon {
    2626
     
    440440  LpGlpk::SolutionStatus LpGlpk::_getDualStatus()
    441441  {
     442//     std::cout<<"Itt megy: "<<lpx_get_dual_stat(lp)<<std::endl;
     443//     std::cout<<"Itt a primal: "<<lpx_get_prim_stat(lp)<<std::endl;
     444
    442445    switch (lpx_get_dual_stat(lp)) {
    443446    case LPX_D_UNDEF://Undefined (no solve has been run yet)
     
    446449//    case LPX_D_INFEAS://Infeasible
    447450      return INFEASIBLE;
    448     case LPX_FEAS://Feasible   
    449       switch (lpx_get_prim_stat(lp)) {
    450       case LPX_P_NOFEAS:
     451    case LPX_D_FEAS://Feasible   
     452      switch (lpx_get_status(lp)) {
     453      case LPX_NOFEAS:
    451454        return INFINITE;
    452455      case LPX_OPT:
Note: See TracChangeset for help on using the changeset viewer.