<div>&nbsp;</div>
<div>Hi Everyone,</div>
<div>&nbsp;</div>
<div>I am running the following little program. My class &quot;dir&quot; has a set of binary variables called &quot;X&quot;.</div>
<div>After minimization getStatus() return &quot;OPTIMAL&quot; while Xs are displayed as fractional. When I </div>
<div>solve the mipModel.mps using CPLEX: it tells me the problem is infeasible! I don&#39;t understand </div>
<div>why cbc solver is returning false message OPTIMAL. Any help on this is appreciated.</div>
<div>&nbsp;</div>
<div>regards,</div>
<div>vishy</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>#include &quot;mathModel.h&quot;</div>
<div>&nbsp;</div>
<div>typedef enum {SUCCESS = 0, FAILURE = -1};</div>
<div>&nbsp;</div>
<div>int main() {<br>&nbsp; int retcode = FAILURE;<br>&nbsp; container c;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* container class object that will contains all data*/<br>&nbsp;&nbsp;c.readData(&quot;c:/dataLocation&quot;);<br>&nbsp; dir instance(c);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Instantiate an object of dir class */
<br>&nbsp;&nbsp;instance.minimize();<br>&nbsp; retcode = instance.getStatus();<br>&nbsp; if (MP_model::OPTIMAL == retcode){<br>&nbsp;&nbsp;&nbsp; instance-&gt;writeMps(&quot;mipModel&quot;, &quot;mps&quot;, 1.0);<br>&nbsp;&nbsp;&nbsp; instance.X.display(&quot;instance (X)&quot;);
<br>&nbsp;&nbsp;&nbsp; cout&lt;&lt;&quot;obj val:=&quot;&lt;&lt;instance-&gt;getObjValue()&lt;&lt;endl;<br>&nbsp; }</div>
<div>&nbsp; return SUCCESS;<br>}// main<br>&nbsp;</div>