[Coin-discuss] mps writer problems
yax2 at lehigh.edu
yax2 at lehigh.edu
Thu Jul 29 22:41:00 EDT 2004
Hi,
it looks there are several minor problems with CoinMps writer:
1. CoinMps writer does not allow a column upper bound to be greater or equal to
1.0e+10. For example, given a upper bound 2.0e+12, the code in line 2325 of
CoinMpsIO.cpp:
outputValue[12]='\0';
will truncate 2.0e+12 to be 2.0e+1
I don't have good fix yet. But, the quick and dirty one is to comment this line out.
2. For a binary variable, CoinMps writer sets the upper bound as 1.0e+3, which
should be 1.0. The line 2767 of CoinMpsIO.cpp is
value[0] = largeValue;
maybe should change to
value[0] = upperValue;
3. To plug memory leak, it's better to delete rlb and rub that are declared in
line 3186, 3187, 3209, 3210 of CoinMpsIO.cpp
Yan
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the Coin-discuss
mailing list