[Ipopt] bug in computing average values in EquilibrationScaling
victor.zverovich at gmail.com
victor.zverovich at gmail.com
Mon Apr 28 16:49:45 EDT 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20140428/8182dc67/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-computing-average-values.patch
Type: text/x-patch
Size: 1445 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20140428/8182dc67/attachment.bin>
More information about the Ipopt
mailing list