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

Support "OutputFcn" option in MATLAB interface #168

Open Arrowstar opened 7 months ago

Arrowstar commented 7 months ago

The "OutputFcn" option in MATLAB's fmincon allows the user to specify a callback function that is called at the end of each iteration (as well as prior to optimization start and after optimization end). Please support this functionality in the MATLAB interface of the solver. Thank you!

zaikunzhang commented 7 months ago

Thank you for raising this @Arrowstar. Something similar has been on my mind. Since the Fortran backend supports a callback function, the MATLAB interface should support one as well. I will try to find someone to do it.

Arrowstar commented 7 months ago

Thank you! A callback function is critical to and required for my application, and I can't implement PRIMA into it without it. I appreciate it all the effort you've put into this project!