libprima / prima

PRIMA is a package for solving general nonlinear optimization problems without using derivatives. It provides the reference implementation for Powell's derivative-free optimization methods, i.e., COBYLA, UOBYQA, NEWUOA, BOBYQA, and LINCOA. PRIMA means Reference Implementation for Powell's methods with Modernization and Amelioration, P for Powell.
http://libprima.net
BSD 3-Clause "New" or "Revised" License
296 stars 38 forks source link

SMALL_TR_RADIUS has same value as INFO_DFT #26

Closed jschueller closed 1 year ago

jschueller commented 1 year ago

see https://github.com/libprima/prima/blob/main/fortran/common/infos.f90:

integer(IK), parameter :: INFO_DFT = 0
integer(IK), parameter :: SMALL_TR_RADIUS = 0

so the return value is ambiguous: we dont know why the algo returns 0

jschueller commented 1 year ago

@zaikunzhang any clue ?

zaikunzhang commented 1 year ago

@zaikunzhang any clue ?

Hello @jschueller . Thank you for pointing this out. This is intended, because SMALL_TR_RADIUS is the default exiting status of all the five algorithms. Thank you.

jschueller commented 1 year ago

ok, thanks