Virginia, <br><br>Could you send me a sample code to reproduce the problem? <br><br>Menal.<br><br clear="all">Menal Guzelsoy<br>1610 4620455<br>
<br><br><div class="gmail_quote">On Thu, Dec 3, 2009 at 1:08 PM, Virginia Costa <span dir="ltr">&lt;<a href="mailto:virscosta@gmail.com">virscosta@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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><tbody><tr><td>
<font size="2">virtual void OsiSymSolverInterface::loadProblem           </font></td>
          <td><font size="2">(</font></td>
          <td><font size="2">const <a href="http://www.coin-or.org/Doxygen/Osi/class_coin_packed_matrix.html" target="_blank">CoinPackedMatrix</a></font> &amp; </td>
          <td> <font size="2"><i>matrix</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>collb</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>colub</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>obj</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>rowlb</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>rowub</i></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><tbody><tr><td><font size="2">virtual void OsiSymSolverInterface::loadProblem           </font></td>
          <td><font size="2">(</font></td>
          <td><font size="2">const int </font></td>
          <td> <font size="2"><i>numcols</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const int </font></td>
          <td> <font size="2"><i>numrows</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const <a href="http://www.coin-or.org/Doxygen/Osi/_coin_finite_8hpp.html#1d91e832494d1d012e44c52e34d2340f" target="_blank">CoinBigIndex</a> * </font></td>
          <td> <font size="2"><i>start</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const int * </font></td>
          <td> <font size="2"><i>index</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>value</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>collb</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>colub</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>obj</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>rowlb</i>, </font></td>
        </tr>
        <tr>
          <td><font size="2"><br></font></td>
          <td><font size="2"><br></font></td>
          <td><font size="2">const double * </font></td>
          <td> <font size="2"><i>rowub</i></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/%7Edongarra/etemplates/node374.html" target="_blank">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" target="_blank">http://www.cos.ufrj.br</a>)<br>
<br>_______________________________________________<br>
Symphony mailing list<br>
<a href="mailto:Symphony@list.coin-or.org">Symphony@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/symphony" target="_blank">http://list.coin-or.org/mailman/listinfo/symphony</a><br>
<br></blockquote></div><br>