lemon/lp_cplex.cc
changeset 1489 f7e9cc3bc2da
parent 1460 7c58aabb9eea
child 1508 389a94a1d9eb
equal deleted inserted replaced
3:f82ad50a63f8 4:7edcda98ddad
   389      return INFEASIBLE;
   389      return INFEASIBLE;
   390     default:
   390     default:
   391       return UNDEFINED; //Everything else comes here
   391       return UNDEFINED; //Everything else comes here
   392       //FIXME error
   392       //FIXME error
   393     }
   393     }
   394 
   394   }
   395  
   395 
   396   LpCplex::ProblemTypes LpCplex::_getProblemType()
   396   LpCplex::ProblemTypes LpCplex::_getProblemType()
   397   {
   397   {
   398     int stat = CPXgetstat (env, lp);
   398     int stat = CPXgetstat (env, lp);
   399     switch (stat) {
   399     switch (stat) {
   400     case CPX_OPTIMAL://Optimal
   400     case CPX_OPTIMAL://Optimal
   408     default:
   408     default:
   409 	//In all other cases
   409 	//In all other cases
   410 	return UNKNOWN;
   410 	return UNKNOWN;
   411       //FIXME error
   411       //FIXME error
   412     }
   412     }
   413 
   413   }
   414 
   414 
   415   void LpCplex::_setMax()
   415   void LpCplex::_setMax()
   416   {
   416   {
   417     CPXchgobjsen (env, lp, CPX_MAX);
   417     CPXchgobjsen (env, lp, CPX_MAX);
   418    }
   418    }