[Ipopt] bug in computing average values in EquilibrationScaling

Stefan Vigerske stefan at math.hu-berlin.de
Mon Apr 28 18:07:11 EDT 2014


Hi,

thanks a lot.
I've fixed this in trunk and stable/3.11, it will be in the next release.

Stefan

On 04/28/2014 10:49 PM, victor.zverovich at gmail.com wrote:
> Hi,
>
> There is a bug in computing avrg_values in Ipopt at
> https://projects.coin-or.org/Ipopt/browser/trunk/Ipopt/src/Algorithm/IpEquilibrationScaling.cpp#L135and
> two similar cases below. Instead of
>
>    avrg_values[i] =+ fabs(val_buffer[i]);
>
> there should be
>
>    avrg_values[i] += fabs(val_buffer[i]);
>
> Otherwise the value is simply overwritten every time.
>
> The attached patch fixes the bug.
>
> Best regards,
> Victor
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



More information about the Ipopt mailing list