标签: mathematical-optimization
我有
x=["lists of numbers"] events=["lists of numbers"]
我想最小化以'a'和'b'作为参数的函数
def f(a,b): for i in range(0,71): s=0.0 sum1=((events[i]-x[i]**(a+b*np.log(x[i]))**2)/np.sqrt(events[i])) s=s+sum1
我想获取值a和b
如何最小化f?