[Dip] issues with Dip-0.82.0
Matthew Galati
matthew.galati at gmail.com
Sat Aug 20 15:21:10 EDT 2011
> 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;
> }
>
Thanks. I will consider the change. Can you tell me which platform/compiler
the current code is not portable for?
> 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.
>
You should use the configuration options to switch the LP and IP solver.
For example...I use a configuration file that contains the following to
switch to CPLEX:
#use CPLEX
with_lp_solver=cplex
with_ip_solver=cplex
#location of CPLEX
with_cplex_incdir="/usr/local/cplex/include/ilcplex"
with_cplex_lib="-L/usr/local/cplex/lib/x86-64_sles10_4.1/static_pic -lcplex
-lpthread"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/dip/attachments/20110820/5f46ea83/attachment.html
More information about the Dip
mailing list