<p>Hi all,</p>
<div>I read from the Cbc documentation ( <a href="http://www.coin-or.org/Cbc/ch02s04.html">http://www.coin-or.org/Cbc/ch02s04.html</a> ) that the function getRowPrice()<br>is to get the solution of the dual problem. But it did not work in my problem correctly.</div>

<div>Does anyone has a suggestion?</div>
<p>my integer problem is:</p>
<p><em>NAME EXAMPLE<br>ROWS<br> N OBJ<br> L ROW1<br> L ROW2<br> L ROW3<br>COLUMNS<br> INT1 &#39;MARKER&#39; &#39;INTORG&#39;<br> COL1 OBJ 20<br> COL1 ROW1 1  ROW3 1 <br> COL2 OBJ 20<br> COL2 ROW1 1  ROW2 1 <br> COL3 OBJ 20<br>
 COL3 ROW2 1  ROW3 1 <br> COL4 OBJ 5<br> COL4 ROW3 1   <br> COL5 OBJ 5<br> COL5 ROW1 1  <br> COL6 OBJ 5<br> COL6 ROW2 1<br> INT1END &#39;MARKER&#39; &#39;INTEND&#39;<br>RHS<br> RHS ROW1 1<br> RHS ROW2 1<br> RHS ROW3 1<br>
ENDATA</em> </p>
<p>and my code is:</p>
<p><em>model.setObjSense(-1);<br>model.branchAndBound();<br>//..................get dual solution................</em></p>
<p><em>const double *dualSolution=model.getRowPrice();<br>int numberRows=model.getNumRows();<br>int iRows;</em></p>
<p><em>for(iRows=0;iRows&lt;numberRows;iRows++){<br>    double value=dualSolution[iRows];<br>    std::cout&lt;&lt;value&lt;&lt;std::endl;<br>  }</em></p>
<p>the result I got is (-0,-0,-0).</p>
<p>Thanks,<br>Danh</p>