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.
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.
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 ofprima_minimize
inresult.status
. I decided it made sense to return info by itself if there was an error in eitherinit_result
orcheck_problem
, and then just return DFT by default.