[Coin-lpsolver] Creating ClpModel

Kyle Ellrott kellrott at csbl.bmb.uga.edu
Tue Mar 8 09:32:25 EST 2005


> Kyle,
>
> I will look but that is probably not enough information to find it. 
>  Was this with -g ?  Often for matrices there is an assert which fails 
> earlier.  What was the walkback?  You could try CoinModel which has a 
> whole new set of bugs.
>

I was able to fix the problem by adding a clp_mod.resize(row_count, 0 ) 
before calling the addColumns.
Whether or not my problem was the result of a bug could be argued.


Kyle





> If you can reproduce the bug with a dummy program please send it to me.
>
> John Forrest
>
>
>
>
> Kyle Ellrott <kellrott at csbl.bmb.uga.edu>
> Sent by: coin-lpsolver-bounces at list.coin-or.org
>
> 03/07/2005 04:14 PM
>
> To
> coin-lpsolver at list.coin-or.org
>
> cc
>
> Subject
> [Coin-lpsolver] Creating ClpModel
>
>
>
>
>
>
>
> I'm currently trying to use CoinBuild to create a matrix for Clp.
>
>  With
>  CoinBuild  matrix_build;
>  I call
>
>  matrix_build.addCol(vec_insert_count, vec_insert_pos, vec_insert_val,
>  0, 1, obj_func_val[i] );
>
>  about 1577745 times while sticking in different vec_insert_pos, and
>  vec_insert_val values.
>
>  Then I call
>
>  ClpModel  clp_mod;
>  clp_mod.addColumns(matrix_build);
>  clp_mod.writeMps("out");
>
>  The program dies in the writeMps call, because of a EXC_BAD_ACCESS in
>  __bigcopy.  Gdb reports the error coming from
>
>  COIN/include/CoinPackedMatrix.hpp:106
>  106         inline const int * getVectorLengths() const { return
>  length_; }
>
>
>  Have I forgotten to setup some value that is needed before I can call
>  writeMps?
>
>  Thanks,
>
>  Kyle
>
>  _______________________________________________
>  Coin-lpsolver mailing list
>  Coin-lpsolver at list.coin-or.org
>  http://list.coin-or.org/mailman/listinfo/coin-lpsolver
>
> _______________________________________________
> Coin-lpsolver mailing list
> Coin-lpsolver at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-lpsolver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3716 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/clp/attachments/20050308/6cf054c7/attachment.bin>


More information about the Clp mailing list