Non convex optimizer

后端 未结 2 2012
-上瘾入骨i
-上瘾入骨i 2021-01-05 13:46

I use python2.7 and need to find the maximum of a multivariate scalar function.

In other words I have this function:

def myFun(a,b,c,d,e,f):
    # co         


        
2条回答
  •  醉酒成梦
    2021-01-05 14:33

    I had to perform a non-convex optimization recently. I used the L-BFGS method from scipy.optimize. It worked well enough for my purposes. You can find more information here about choosing an optimizer relevant for your purposes. The L-BFGS function in scipy.optimize can approximate the gradient for you as well, since your function is too complex to find the gradient.

提交回复
热议问题