I'm working with a function, scipy.optimize.fmin_bfgs, which has several output variables. I care about two of them, xopt and fopt. How do I store these variables? The following isn't working for me:
xopt, fopt = fmin_bfgs(f, 0, fprime = fprime)
However, this gives me fopt:
fopt = fmin_bfgs(f, 0, fprime = fprime)
I need xopt too, but it says that I "need 1 more value to unpack."