[Symphony] Problems with OsiSymSolverInterface -- loadProblem

Menal Guzelsoy megb at lehigh.edu
Thu Dec 3 17:31:43 EST 2009


Virginia,

Could you send me a sample code to reproduce the problem?

Menal.

Menal Guzelsoy
1610 4620455


On Thu, Dec 3, 2009 at 1:08 PM, Virginia Costa <virscosta at gmail.com> wrote:

> Hi,
>
> I'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:
>
> 1) I used virtual void OsiSymSolverInterface::loadProblem ( const
> CoinPackedMatrix<http://www.coin-or.org/Doxygen/Osi/class_coin_packed_matrix.html>&
> *matrix*,
>
> const double *  *collb*,
>
> const double *  *colub*,
>
> const double *  *obj*,
>
> const double *  *rowlb*,
>
> const double *  *rowub*
> )
>
> 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's a tsp
> implementation),
> This matrix returns a memory error.
>
> 2) So, I tried to use
> virtual void OsiSymSolverInterface::loadProblem ( const int  *numcols*,
>
> const int  *numrows*,
>
> const CoinBigIndex<http://www.coin-or.org/Doxygen/Osi/_coin_finite_8hpp.html#1d91e832494d1d012e44c52e34d2340f>*
> *start*,
>
> const int *  *index*,
>
> const double *  *value*,
>
> const double *  *collb*,
>
> const double *  *colub*,
>
> const double *  *obj*,
>
> const double *  *rowlb*,
>
> const double *  *rowub*
> )
>
>
> Where, I think, we have to pass the matrix in a CCS format (Compressed
> Column Storage -- http://www.cs.utk.edu/~dongarra/etemplates/node374.html<http://www.cs.utk.edu/%7Edongarra/etemplates/node374.html>).
> But it returns the following error: terminate called after throwing an
> instance of 'CoinError'. This error was returned when I try to run a problem
> that was solved by the loadProblem above.
>
> Has anybody already seen these errors before?
>
> Could somebody help me please?
>
> Thanks.
> Virginia S. Costa
>  --
> Programa de Engenharia de Sistemas e Computação
> PESC/COPPE/UFRJ -- Rio de Janeiro/Brasil
> Visite nossa página web (http://www.cos.ufrj.br)
>
> _______________________________________________
> Symphony mailing list
> Symphony at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/symphony
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20091203/457d5a47/attachment.html>


More information about the Symphony mailing list