def _segmin(self, fun, L, U, force_minf=False, force_pinf=False, force_poleL=False, force_poleU=False, debug_info=False, debug_plot=False): xopt = fmin2(lambda x: fun(float(x)), L, U, xtol=1e-16) return xopt, 0 #fun(xopt), 0
def _segmin(self, fun, L, U, force_minf=False, force_pinf=False, force_poleL=False, force_poleU=False, debug_info=False, debug_plot=False): #xopt = fminbound(fun, L, U, xtol = 1e-16) #xopt = fminbound(lambda x: 100-fun(float(x)), L, U, xtol = 1e-16) xopt = fmin2(lambda x: fun(float(x)), L, U, xtol=1e-16) return xopt, 0
def _segmin(self, fun, L, U, force_minf = False, force_pinf = False, force_poleL = False, force_poleU = False, debug_info = False, debug_plot = False): #xopt = fminbound(fun, L, U, xtol = 1e-16) #xopt = fminbound(lambda x: 100-fun(float(x)), L, U, xtol = 1e-16) xopt = fmin2(lambda x: fun(float(x)), L, U, xtol = 1e-16) return xopt, 0
def _segmin(self, fun, L, U, force_minf = False, force_pinf = False, force_poleL = False, force_poleU = False, debug_info = False, debug_plot = False): xopt = fmin2(lambda x: fun(float(x)), L, U, xtol = 1e-16) return xopt, 0#fun(xopt), 0