Is it possible to minimize a function fun(x,y)
that depends on two arrays using the Scipy minimizer?
(x and y are two different 1D arrays with different length, e.g. x=np.array([1,2,3,1,52,5])
and y=np.array([4,8,9])
)
I'm thinking for something like:
minimize(fun, [x,y], method="Powell", tol=1e-3)
Is this the correct way to go?
And thank you.