[CoinUtils] About CoinLpIO.cpp
Marcos Roberto Silva
marcos.roberto.silva at uol.com.br
Wed Aug 29 19:19:02 EDT 2012
Hello all,
I'd like to suggest a little modification in the source code of
CoinLpIO.cpp, specifically in the function that validate names (int
CoinLpIO::is_invalid_name).
After Gurobi read my lp file without a warning I altered the source code of
CoinLpIO.cpp, changing:
1) the value of the valid_name variable from 100 to 255
2) adding two more valid characters: "-|"
I think this can be useful for others users as well.
Thanks a lot.
Marcos Roberto Silva
/*************************************************************************/
int
CoinLpIO::is_invalid_name(const char *name,
const bool ranged) const {
unsigned pos, lname, valid_lname = 255;
char str_valid[] =
"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"!#$%&(),.;?@_'`{}~-|>";
// originally:
//unsigned pos, lname, valid_lname = 100;
//char str_valid[] =
"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"!#$%&(),.;?@_'`{}~";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coinutils/attachments/20120829/aea35dfa/attachment.html>
More information about the CoinUtils
mailing list