optimagic-dev / optimagic

optimagic is a Python package for numerical optimization. It is a unified interface to optimizers from SciPy, NlOpt and other packages. optimagic's minimize function works just like SciPy's, so you don't have to adjust your code. You simply get more optimizers for free. On top you get diagnostic tools, parallel numerical derivatives and more.
https://optimagic.readthedocs.io/
MIT License
270 stars 30 forks source link

Make `fun` optional if `fun_and_jac` is provided #518

Open janosg opened 3 months ago

janosg commented 3 months ago

Currently fun is a mandatory argument even if fun_and_jac is provided. We can make it optional. It is not hard but not a breaking change so I postpone until after the next release.

We should not forget to adjust the how-to-guide on custom derivatives after doing that.