<div dir="ltr">Hi,<div><br></div><div>There is a bug in computing avrg_values in Ipopt at <a href="https://projects.coin-or.org/Ipopt/browser/trunk/Ipopt/src/Algorithm/IpEquilibrationScaling.cpp#L135">https://projects.coin-or.org/Ipopt/browser/trunk/Ipopt/src/Algorithm/IpEquilibrationScaling.cpp#L135</a> and two similar cases below. Instead of</div>

<div><br></div><div>  avrg_values[i] =+ fabs(val_buffer[i]);<br></div><div><br></div><div>there should be</div><div><br></div><div><div>  avrg_values[i] += fabs(val_buffer[i]);<br></div></div><div><br></div><div>Otherwise the value is simply overwritten every time.</div>

<div><br></div><div>The attached patch fixes the bug.</div><div><br></div><div>Best regards,</div><div>Victor</div><div><br></div></div>