Hi,<br><br>I&#39;m a new user of Coin-or and I want to run a mixed integer problem with Symphony. However, I have a lot of problems with method loadProblem:<br><br>1) I used <table class="memname"><tbody><tr><td class="memname">
<font size="2">virtual void OsiSymSolverInterface::loadProblem           </font></td>
          <td><font size="2">(</font></td>
          <td class="paramtype"><font size="2">const <a class="el" href="http://www.coin-or.org/Doxygen/Osi/class_coin_packed_matrix.html">CoinPackedMatrix</a></font> &amp; </td>
          <td class="paramname"> <font size="2"><em>matrix</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>collb</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>colub</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>obj</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>rowlb</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>rowub</em></font></td><td><font size="2"> </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2">)</font></td>
          <td><br></td></tr></tbody></table><br>I gave a CoinPackedMatrix to this function and everything works well, but when I try to run a problem with more than 10 cities (it&#39;s a tsp implementation),<br>This matrix returns a memory error.<br>
<br>2)<font size="2"> So, I tried to use<br></font><table class="memname"><tbody><tr><td class="memname"><font size="2">virtual void OsiSymSolverInterface::loadProblem           </font></td>
          <td><font size="2">(</font></td>
          <td class="paramtype"><font size="2">const int </font></td>
          <td class="paramname"> <font size="2"><em>numcols</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const int </font></td>
          <td class="paramname"> <font size="2"><em>numrows</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const <a class="el" href="http://www.coin-or.org/Doxygen/Osi/_coin_finite_8hpp.html#1d91e832494d1d012e44c52e34d2340f">CoinBigIndex</a> * </font></td>
          <td class="paramname"> <font size="2"><em>start</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const int * </font></td>
          <td class="paramname"> <font size="2"><em>index</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>value</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>collb</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>colub</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>obj</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>rowlb</em>, </font></td>
        </tr>
        <tr>
          <td class="paramkey"><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td class="paramtype"><font size="2">const double * </font></td>
          <td class="paramname"> <font size="2"><em>rowub</em></font></td><td><font size="2"> </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2">)</font></td>
          <td><font size="2"><br></font></td></tr></tbody></table><font size="2"><br clear="all"><br>Where, I think, we have to pass the matrix in a CCS format (</font><font size="2">Compressed Column Storage -- <a href="http://www.cs.utk.edu/~dongarra/etemplates/node374.html">http://www.cs.utk.edu/~dongarra/etemplates/node374.html</a>). But it returns the following error: terminate called after throwing an instance of &#39;CoinError&#39;. This error was returned when I try to run a problem that was solved by the loadProblem above.<br>
<br>Has anybody already seen these errors before?<br><br>Could somebody help me please?<br><br>Thanks.<br>Virginia S. Costa<br> </font><font size="2">-- </font><br>Programa de Engenharia de Sistemas e Computação<br>PESC/COPPE/UFRJ -- Rio de Janeiro/Brasil<br>
Visite nossa página web (<a href="http://www.cos.ufrj.br">http://www.cos.ufrj.br</a>)<br>