Gets global minimum and maximum of a given function expression on an interval using basic calculus criteria
global_min_max(f, f1der, f2der, D)
A list containing:
numeric giving critical point where global minimum is achieved
numeric giving critical point where global maximum is achieved
numeric vector giving all critical points satisfying second derivative criterion for minimum
numeric vector giving all critical points satisfying second derivative criterion for maximum
function expression
function expression of first derivative of f
function expression of second derivative of f
numeric vector specifying the interval over which f
is optimized
This function uses uniroot.all
to get all roots of f1der
over D
, additionally,
the second derivative criterion is used to determine the global minimum and
maximum.
phenopar
, uniroot.all