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
304 stars 40 forks source link

`ftarget` is missing from the C interface #61

Closed zaikunzhang closed 1 year ago

zaikunzhang commented 1 year ago

Hi @jschueller ,

ftarget is an essential input from the user. I think it will be good to include it in the C interface.

If the user does not want to / cannot specify ftarget, then he/she should input -INFINITY, where INFINITY is the micro in math.h for representing infinity. I hope my understanding is correct and I hope INFINITY is standard C. It is a pity that C does not support optional arguments.

This was related to a previous comment from Tom on the Python interface, where the same comment applies, and we can default ftarget to $-\infty$ if there is no input from the user.

Thank you.

Zaikun

zaikunzhang commented 1 year ago

Closed by https://github.com/libprima/prima/pull/63