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

Fix a couple errors caught by the SciPy build process #209

Open nbelakovski opened 2 weeks ago

nbelakovski commented 2 weeks ago

SciPy complained about "expression result unused" for the extra ')' in the repr function, which makes sense.

It also complained about rc being unused. This is slightly annoying because we put the return value of prima_minimize in result.status. I decided it made sense to return info by itself if there was an error in either init_result or check_problem, and then just return DFT by default.