gratton7 / OPM

A collection of Optimization Problems in Matlab
14 stars 3 forks source link

Sign in trigonometric function #1

Closed wildsm closed 1 year ago

wildsm commented 2 years ago

https://github.com/gratton7/OPM/blob/ab5d54f24ba322d286c7b9be67391df586d4e667/problems/argtrig.m#L80

Salut friends,

From the reference J.J. More, B.S. Garbow and K.E. Hillstrom, "Testing Unconstrained Optimization Software" problem 26 seems to be defined with a slight sign difference

riel = n + iel ( 1 - ciel ) - siel; instead of riel = n - iel ( 1 - ciel ) - siel;

Which is intended? Note that this does not change the global minimizers or lower bound of f=0.

Many thanks for releasing OPM, I am finding it helpful for checking code.

gratton7 commented 1 year ago

Many thanks, corrected !