[Lemon-commits] [lemon_svn] alpar: r1946 - hugo/trunk/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:48:59 CET 2006
Author: alpar
Date: Thu Jun 9 18:26:52 2005
New Revision: 1946
Modified:
hugo/trunk/lemon/lp_glpk.cc
Log:
Another bugfix.
Modified: hugo/trunk/lemon/lp_glpk.cc
==============================================================================
--- hugo/trunk/lemon/lp_glpk.cc (original)
+++ hugo/trunk/lemon/lp_glpk.cc Thu Jun 9 18:26:52 2005
@@ -439,16 +439,14 @@
LpGlpk::SolutionStatus LpGlpk::_getDualStatus()
{
- int stat= lpx_get_dual_stat(lp);
- switch (stat) {
+ switch (lpx_get_dual_stat(lp)) {
case LPX_D_UNDEF://Undefined (no solve has been run yet)
return UNDEFINED;
case LPX_D_NOFEAS://There is no feasible solution (primal, I guess)
// case LPX_D_INFEAS://Infeasible
return INFEASIBLE;
case LPX_FEAS://Feasible
- int stat2= lpx_get_prim_stat(lp);
- switch (stat2){
+ switch (lpx_get_prim_stat(lp)) {
case LPX_P_NOFEAS:
return INFINITE;
case LPX_OPT:
More information about the Lemon-commits
mailing list