<div dir="ltr">Well - that was using cbc.branchAndBound().<div><br></div><div>The behavior is different for CbcMain().</div><div><br></div><div>The first solution is the right sign, the rest are not.</div><div><br></div><div><div>nSolutions=3</div><div>i=0 saved sol obj=279.9</div><div>i=1 saved sol obj=-279.43</div><div>i=2 saved sol obj=-279.28</div></div><div><br></div><div>Unless there is only one solution, then the sign is wrong for even for the first solution:</div><div><div>nSolutions=1</div><div>i=0 saved sol obj=-282.4</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 5:06 PM, Matthew Galati <span dir="ltr">&lt;<a href="mailto:matthew.galati@gmail.com" target="_blank">matthew.galati@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>int nSolutions = cbc.numberSavedSolutions();</div><div>   printf(&quot;nSolutions=%d\n&quot;, nSolutions);</div><div>   for(int i =0; i &lt; nSolutions; i++){</div><div>      printf(&quot;i=%d obj=%g\n&quot;, i, cbc.savedSolutionObjective(i));</div><div>   }</div><div>   double         objValue    =  cbc.getObjValue();<br></div><div>   printf(&quot;opt=%g\n&quot;, cbc.getObjValue());</div><div><br></div><div><br></div><div><div>nSolutions=6</div><div>i=0 obj=-282.4</div><div>i=1 obj=-282.21</div><div>i=2 obj=-279.97</div><div>i=3 obj=-267.76</div><div>i=4 obj=-248.95</div><div>i=5 obj=-247.9</div><div>opt=282.4</div></div><div><br></div></div>
</blockquote></div><br></div>