<div class="gmail_quote"><font color="#000066"><font><font face="verdana,sans-serif">Hello, somebody knows how do you use SOS with a LP format file read by CBC?</font></font></font><div><font color="#000066"><font><font face="verdana,sans-serif"><br>


</font></font></font></div><div><div><font color="#000066" face="verdana, sans-serif">I have tried several form of SOS grammatics, but CBC fails to interpret the LP file. For example, if I use the following simplified LP file:</font></div>


<div><font color="#000066" face="verdana, sans-serif"><br></font></div><div><font color="#000066" face="verdana, sans-serif"><div>MINIMIZE</div><div>Obj: +1000 A1 +1200 A2 +1500 A3 +1200 B1 +1300 B2 +1400 B3 +1100 C1 +1200 C2 +1300 C3</div>


<div>SUBJECT TO</div><div> //+1 A1 +1 A2 +1 A3 = 1  //Should not be necessary if using SOS, I have tried this without comments also.</div><div> //+1 B1 +1 B2 +1 B3 = 1  //Should not be necessary if using SOS, I have tried this without comments also.</div>

<div> //+1 C1 +1 C2 +1 C3 = 1 //Should not be necessary if using SOS, I have tried this without comments also.</div>
<div> +10 A1 +15 B1 +3 C1 &gt;= 3</div><div> +10 A2 +15 B2 +3 C2 &gt;= 10</div><div> +10 A3 +15 B3 +3 C3 &gt;= 3</div><div> +10 A1 +15 B1 +3 C1 &lt;= 15</div><div> +10 A2 +15 B2 +3 C2 &lt;= 15</div><div> +10 A3 +15 B3 +3 C3 &lt;= 15 </div>


<div>BINARY</div><div> A1 A2 A3 B1 B2 B3 C1 C2 C3 </div><div>SOS</div><div> set1: S1::  A1 A2 A3</div><div> set2: S1::  B1 B2 B3</div><div> set3: S1::  C1 C2 C3</div><div>END</div><div><br></div><div>However, I get the following when trying to read the previous LP file:</div>


<div><br></div><div><div>Coin3007W ### CoinLpIO::readLp(): Binary variable SOS does not appear in objective function or constraints</div><div>Coin3007W ### CoinLpIO::readLp(): Binary variable set1: does not appear in objective function or constraints</div>


<div>Coin3007W ### CoinLpIO::readLp(): Binary variable S1:: does not appear in objective function or constraints</div><div>Coin3007W ### CoinLpIO::readLp(): Binary variable set2: does not appear in objective function or constraints</div>


<div>Coin3007W ### CoinLpIO::readLp(): Binary variable set3: does not appear in objective function or constraints</div><div>Coin3007W ### CoinLpIO::is_invalid_name(): Name set1: contains illegal character &#39;:&#39;</div>


<div>Coin3007W ### CoinLpIO::are_invalid_names(): Invalid name: vnames[10]: set1:</div><div>Coin3007W ### CoinLpIO::is_invalid_name(): Name S1:: contains illegal character &#39;:&#39;</div><div>Coin3007W ### CoinLpIO::are_invalid_names(): Invalid name: vnames[11]: S1::</div>


<div>Coin3007W ### CoinLpIO::is_invalid_name(): Name set2: contains illegal character &#39;:&#39;</div><div>Coin3007W ### CoinLpIO::are_invalid_names(): Invalid name: vnames[12]: set2:</div><div>Coin3007W ### CoinLpIO::is_invalid_name(): Name set3: contains illegal character &#39;:&#39;</div>


<div>Coin3007W ### CoinLpIO::are_invalid_names(): Invalid name: vnames[13]: set3:</div><div>Coin3007W ### CoinLpIO::readLp(): Invalid column names</div></div></font></div><div><font color="#000066" face="verdana, sans-serif"><br>


</font></div><div><font color="#000066" face="verdana, sans-serif"><br></font></div><div><font color="#000066" face="verdana, sans-serif">I have tried also other forms of SOS but no good results. Unfortunately, I&#39;m fix to LP </font><span style="color:rgb(0,0,102);font-family:verdana,sans-serif">(because I&#39;m using OpenSolver for Excel) </span><span style="color:rgb(0,0,102);font-family:verdana,sans-serif">without chances for using MPS format (that I have seen few CBC examples of SOS for MPS). </span></div>


<div><font color="#000066" face="verdana, sans-serif"><br></font></div><div><font color="#000066" face="verdana, sans-serif">Somebody knows what is the correct grammar for SOS with LP files in coin-OR? Where is the c++ **source** file where an LP file is processed? (I have searched it but unsuccessfully)</font></div>


<div><font color="#000066" face="verdana, sans-serif"><br></font></div><div><font color="#000066" face="verdana, sans-serif">I will appreciate if anybody can give me a hand on this. Thank you in advance.</font></div><div>


<font color="#000066" face="verdana, sans-serif"><br></font></div><div><font color="#000066" face="verdana, sans-serif">Best regards,</font></div><div><font color="#000066" face="verdana, sans-serif">Andres Sommerhoff</font></div>


<div><font color="#000066" face="verdana, sans-serif"><br></font></div><div><font color="#000066" face="verdana, sans-serif">PS: I have tried with CBC version 2.7.1 and 2.7.5 compiled for windows.</font></div><div><font color="#000066" face="verdana, sans-serif"><br>

</font></div></div></div>