ROOT::Math::Functor in PyROOT (Multivariate minimization)

Hi,

The function to pass to the minimizer must be a function requiring only one argument, but this can be a list or an array of several variables. These variables are the minimization parameters. In your case it is not clear to me what are these variables between x,p1,p3,p3,p4.
Adding the constraints is another story, we do not support an interface for including them directly in the minimiser, you need to implement yourself as was already answered to you in
Minimization subject to constrains with Tminuit, is it possible? [PyROOT] - #4 by couet.

Here is the link to the example of doing the minimization in Python:
https://cernbox.cern.ch/index.php/s/A4JDlIuO35lm64k

Cheers

Lorenzo

1 Like