Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Commons Math optimization

Does anyone have any experience with the Apache Commmons Math optimization package? More specifically, the Nelder-Mead method implementation? Is it pretty high quality?

like image 983
alex Avatar asked Sep 28 '26 18:09

alex


2 Answers

Nelder-Mead is one of the most popular multivariate optimization algorithm. The Apache implmentation is pretty good.

However, if you have more information, e.g., gradient, you should consider using a more "informed" algorithm such as BFGS. It also works with analytical gradient (using finite differencing). R uses BFGS by default, I think...

SuanShu has implemented 10+ Java optimization algorithms that you can choose for your purpose. Hope this helps.

like image 120
Ryu Avatar answered Oct 02 '26 12:10

Ryu


Note that Apache Commons Math also contains Michael Powell's direct search BOBYQA algorithm. This algorithm generally converges in substantially fewer iterations than the classical Nelder-Mead method, plus it also supports bounds on the variables.

like image 29
Anders Gustafsson Avatar answered Oct 02 '26 12:10

Anders Gustafsson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!