[Coin-lpsolver] Creating ClpModel
Kyle Ellrott
kellrott at csbl.bmb.uga.edu
Mon Mar 7 16:14:28 EST 2005
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
More information about the Clp
mailing list