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
291 stars 35 forks source link

Fix ppf.h #133

Closed jschueller closed 6 months ago

jschueller commented 6 months ago

Without the parentheses lfortran compiler exits with error

zaikunzhang commented 6 months ago

Hi @jschueller , I have never tried LFortran, although I have always been interested. Is it capable of compiling PRIMA yet? Isn't the error you observed a bug of LFortran? Thank you.

cc @certik

jschueller commented 6 months ago

lfortran seems its far from being ready, a workaround like this wont be enough to build prima