[Cbc] Fix for uninitialized member variable _noNames in CoinModel

Ted Ralphs ted at lehigh.edu
Thu May 2 23:55:39 EDT 2013


Hi Victor,

What version are you using? This seems to be fixed already in trunk.

The version number you updated is from an older versioning scheme. It would
be nice to make it match the real CBC version number, but this is not
actually a "number" and has hence been added to the solver name (see
below). Do you happen to know if the version number you updated is
necessary and if not, will replacing it with a zero suppress its use?

static Option_Info Oinfo = {
    const_cast<char*>("cbc"),
    const_cast<char*>("CBC " CBC_VERSION),
    const_cast<char*>("cbc_options"),
    keywds,
    nkeywds,
    0,
    0,
    0,
    decodePhrase,
    0,
    0,
    0,
    20070606
};

Ted

On Thu, May 2, 2013 at 7:55 PM, victor.zverovich at gmail.com <
victor.zverovich at gmail.com> wrote:

> Hi,
>
> There is an assertion failure in debug version of cbc compiled with MSVC
> when running the following AMPL code:
>
> var x >= 0;
> minimize o: x * x;
> option solver cbc;
> solve;
>
> > ampl test.ampl
>
> Assertion failed: !noNames_, file CoinUtils\src\CoinModel.cpp, line 1251
>
> The attached patch fixes the problem by initializing the member variable
> noNames_.
>
> Also the version number is updated.
>
> Best regards,
> Victor
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>
>


-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20130502/686d3177/attachment.html>


More information about the Cbc mailing list