I want to find a minimum of a multi-dim function with a quite complicated domain in parameter space.
It means that for some points is the function defined and for some others is not.
Without doing anything the function output for ill-defined points is typically something like ±inf or nan.
From my experience, the minimizer gets stack when it enters such a point and isn’t able to return back.
Is there some way how to tell ROOT, to ignore such a point?
One idea which I had was to assign some big value to the function in ill-defined points (replacing inf/nan with a big number) so that it cannot be considered as a minimum.
However, in this case, the minimization algorithm has troubles to deal with discontinuities.
Is there some better way how to tell ROOT to avoid points where the function is not defined when looking for a minimum?
Thanks a loot.