lemon/lp_glpk.cc
changeset 1464 718207d6a1e6
parent 1463 e8d27c74bd3b
child 1466 65f8b0ee6306
equal deleted inserted replaced
4:48747ad8cba0 5:07ffb60529ac
   465   LpGlpk::ProblemTypes LpGlpk::_getProblemType()
   465   LpGlpk::ProblemTypes LpGlpk::_getProblemType()
   466   {
   466   {
   467       //int stat=  lpx_get_status(lp);
   467       //int stat=  lpx_get_status(lp);
   468     int statp=  lpx_get_prim_stat(lp);
   468     int statp=  lpx_get_prim_stat(lp);
   469     int statd=  lpx_get_dual_stat(lp);
   469     int statd=  lpx_get_dual_stat(lp);
   470     if (statp==LP_P_FEAS && statd==LP_D_FEAS)
   470     if (statp==LPX_P_FEAS && statd==LPX_D_FEAS)
   471 	return PRIMAL_DUAL_FEASIBLE;
   471 	return PRIMAL_DUAL_FEASIBLE;
   472     if (statp==LP_P_FEAS && statd==LP_D_NOFEAS)
   472     if (statp==LPX_P_FEAS && statd==LPX_D_NOFEAS)
   473 	return PRIMAL_FEASIBLE_DUAL_INFEASIBLE;
   473 	return PRIMAL_FEASIBLE_DUAL_INFEASIBLE;
   474     if (statp==LP_P_NOFEAS && statd==LP_D_FEAS)
   474     if (statp==LPX_P_NOFEAS && statd==LPX_D_FEAS)
   475 	return PRIMAL_INFEASIBLE_DUAL_FEASIBLE;
   475 	return PRIMAL_INFEASIBLE_DUAL_FEASIBLE;
   476     if (statp==LP_P_NOFEAS && statd==LP_D_NOFEAS)
   476     if (statp==LPX_P_NOFEAS && statd==LPX_D_NOFEAS)
   477 	return PRIMAL_DUAL_INFEASIBLE;
   477 	return PRIMAL_DUAL_INFEASIBLE;
   478     //In all other cases
   478     //In all other cases
   479     return UNKNOWN;
   479     return UNKNOWN;
   480   }
   480   }
   481 
   481