[Coin-discuss] reading of SOS in lp files from CPLEX
Kish Shen
kish.shen at gmail.com
Thu Feb 15 07:08:33 EST 2018
Hi,
I am getting errors from Cbc when reading an LP format file generated by
CPLEX 12:
### CoinLpIO::readLp(): bad SOS item S1
I assume this is from reading the SOS items in the LP file:
s999: S1 :: x1154 : 1 x5539 : 2
Looking at CoinLpIO.cpp, the code expects no space between S1 and ::
if
(next>=buff&&(!strncmp(next,"S1::",4)||!strncmp(next,"S2::",4))) {
setType = next[1]-'0';
gotStart=true;
} else {
// error
goodLine=0;
}
Should this be fixed to allow more flexibility in reading SOS items?
I am running the latest stable branch of Cbc 2.9, downloaded via svn co
about 2 days ago.
Thanks and cheers,
Kish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20180215/12981322/attachment.html>
More information about the Coin-discuss
mailing list