@moneta I have found some sample code Numerical Minimization with ROOT::Math::Functor and I am able to run it. If I change min = ROOT.Math.Factory.CreateMinimizer("GSLMultiMin", "BFGS")
to min = ROOT.Math.Factory.CreateMinimizer("Minuit2", "")
I get an error:
min.SetMaxFunctionCalls(1000000)
ReferenceError: attempt to access a null-pointer
but min = ROOT.Math.Factory.CreateMinimizer("Minuit", "")
works. Is it obvious? any explanation?
EDIT: I did not install minuit2 , that’s it