[Coin-lpsolver] Creating ClpModel

John J Forrest jjforre at us.ibm.com
Tue Mar 8 02:47:16 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.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20050308/6c7051ea/attachment.html>


More information about the Clp mailing list