lemon/mip_cplex.cc
changeset 2445 aaf5787f4d5d
parent 2391 14a343be7a5a
child 2465 df09310da558
equal deleted inserted replaced
5:1309e0efd838 6:3fa15edbe704
    59   }
    59   }
    60   
    60   
    61   MipCplex::ColTypes MipCplex::_colType(int i) const {
    61   MipCplex::ColTypes MipCplex::_colType(int i) const {
    62     
    62     
    63     char ctype[1];
    63     char ctype[1];
    64     status = CPXgetctype (env, lp, ctype, i, i);
    64     CPXgetctype (env, lp, ctype, i, i);
    65     switch (ctype[0]){
    65     switch (ctype[0]){
    66 
    66 
    67     case CPX_INTEGER:
    67     case CPX_INTEGER:
    68       return INT;
    68       return INT;
    69     case CPX_CONTINUOUS:
    69     case CPX_CONTINUOUS:
   125     return x;
   125     return x;
   126   }
   126   }
   127   
   127   
   128   MipCplex::Value MipCplex::_getPrimalValue() const {
   128   MipCplex::Value MipCplex::_getPrimalValue() const {
   129     Value objval;
   129     Value objval;
   130     status = CPXgetmipobjval(env, lp, &objval);
   130     CPXgetmipobjval(env, lp, &objval);
   131     return objval;
   131     return objval;
   132   }
   132   }
   133 } //END OF NAMESPACE LEMON
   133 } //END OF NAMESPACE LEMON