Skip to content

Commit 4765e7a

Browse files
committed
Scipy: added documentation for extra options
1 parent 088808b commit 4765e7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

math/scipy/inc/Math/ScipyMinimizer.h

+10
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ namespace Experimental {
5959
Support for constraint functions will be implemented in the next releases.
6060
You can find a macro example in the folder $ROOTSYS/tutorial/fit/scipy.C
6161
62+
To provide extra options to the minimizer, you can use the class GenAlgoOptions
63+
and the method SetExtraOptions().
64+
Example:
65+
```
66+
ROOT::Math::GenAlgoOptions l_bfgs_b_opt;
67+
l_bfgs_b_opt.SetValue("gtol", 1e-3);
68+
l_bfgs_b_opt.SetValue("ftol", 1e7);
69+
minimizer->SetExtraOptions(l_bfgs_b_opt);
70+
```
71+
6272
See <A HREF="https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html">Scipy doc</A>
6373
from more info on the Scipy minimization algorithms.
6474

0 commit comments

Comments
 (0)