<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I am unable to read the following simple LP file with readLp() using Cbc:<br><br>\ENCODING=ISO-8859-1<br>\Problem name: eclipse<br><br>Minimize<br> obj: - 2 x1 - x2 - x3<br>Bounds<br> 0 <= x1 <= 1<br> 0 <= x2 <= 1<br> 0 <= x3 <= 1<br>SOS<br> s1: S1 ::  x1 : 1  x2 : 2  x3 : 3<br>End<br><br></div><div>I get the message:<br><br>[kshn@hermes Eplex]$ ./cbcreadlp<br> ### ERROR: Change MAX_OBJECTIVES to larger number.<br><br></div><div>I think the message starting from '###' comes from CoinLpIO.cpp, in read_moniom_obj:<br><br>    if (*num_objectives == MAX_OBJECTIVES){<br>       char str[8192];<br>       sprintf(str,"### ERROR: Too many objective functions.\n");<br>       sprintf(str,"### ERROR: Change MAX_OBJECTIVES to larger number.\n");<br>       throw CoinError(str, "read_monom_obj", "CoinLpIO", __FILE__, __LINE__);<br>    }<br><br></div>abd is because there is no 'subject to' section, as the only constraints on this problem is the SOS. When I added a 'Subject to' line following the objective, the file was read.<br><br></div>I include a program to reproduce this problem, and the above lp problem with the filename the program uses.<br><br></div><div>The LP file was generated by CPLEX, and it is able to read the file back in.<br><br></div>Thanks and cheers,<br><br></div>Kish<br></div>