[Dip] issues with Dip-0.82.0

Shahin Gelareh shahin.gelareh at gmail.com
Sat Aug 20 09:51:49 EDT 2011


Hi everybody,

there seem to be a few issues with the 0.82.0:

1) inline std::string & UtilStrToLower(std::string & s)  does not seem
portable and I would replace this and UtilStrToUpper with:
inline std::string & UtilStrToLower(std::string & s) {
   // Purify did not like this version:
   //   transform (s.begin(), s.end(), s.begin(), myToLower());
   if(s.size() == 0)
      return s;
    std::transform(s.begin(), s.end(),
s.begin(),std::ptr_fun<int,int>(std::tolower));

   return s;
}


// -------------------------------------------------------------------------
//
// returns an upper case version of the std::string in-place
inline std::string & UtilStrToUpper(std::string & s) {
   // Purify did not like this version:
   //   transform (s.begin(), s.end(), s.begin(), myToUpper());

   if(s.size() == 0)
      return s;
   std::transform(s.begin(), s.end(),
s.begin(),std::ptr_fun<int,int>(std::toupper));

    return s;
}


2)  setting __DECOMP_LP_CPX__;__DECOMP_IP_CPX__; in the preprocessor does
not seem to be enough not enough for making use of cplex instead of cbc and
clp
because __DECOMP_IP_CBC__  and __DECOMP_LP_CLP__ while not appearing in the
list of preprocessors are the default solvers and introducing cplex related
preps leads to redefinitions.

Am I doing something wrong.

Any comment is appreciated.

Shahin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/dip/attachments/20110820/53dffa65/attachment.html 


More information about the Dip mailing list