equal
deleted
inserted
replaced
437 } |
437 } |
438 } |
438 } |
439 |
439 |
440 LpGlpk::SolutionStatus LpGlpk::_getDualStatus() |
440 LpGlpk::SolutionStatus LpGlpk::_getDualStatus() |
441 { |
441 { |
442 int stat= lpx_get_dual_stat(lp); |
442 switch (lpx_get_dual_stat(lp)) { |
443 switch (stat) { |
|
444 case LPX_D_UNDEF://Undefined (no solve has been run yet) |
443 case LPX_D_UNDEF://Undefined (no solve has been run yet) |
445 return UNDEFINED; |
444 return UNDEFINED; |
446 case LPX_D_NOFEAS://There is no feasible solution (primal, I guess) |
445 case LPX_D_NOFEAS://There is no feasible solution (primal, I guess) |
447 // case LPX_D_INFEAS://Infeasible |
446 // case LPX_D_INFEAS://Infeasible |
448 return INFEASIBLE; |
447 return INFEASIBLE; |
449 case LPX_FEAS://Feasible |
448 case LPX_FEAS://Feasible |
450 int stat2= lpx_get_prim_stat(lp); |
449 switch (lpx_get_prim_stat(lp)) { |
451 switch (stat2){ |
|
452 case LPX_P_NOFEAS: |
450 case LPX_P_NOFEAS: |
453 return INFINITE; |
451 return INFINITE; |
454 case LPX_OPT: |
452 case LPX_OPT: |
455 return OPTIMAL; |
453 return OPTIMAL; |
456 default: |
454 default: |