Optimisation using spicy.cg returns error at the end
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dolfin-adjoint |
Fix Committed
|
Undecided
|
Simon Funke |
Bug Description
Hi,
I'm using the optimisation, and I was trying the different algorithm. I'm not sure but it seems that it's bugged for the spicy.cg:
mopt==minimize(
gives me that error:
Optimization terminated successfully.
Current function value: 0.166610
Function evaluations: 6
Gradient evaluations: 6
Traceback (most recent call last):
File "PIu_eqns_
mopt, fopt, func_calls, grad_calls, warnflag, allvecs=
File "/usr/lib/
return optimization_
File "/usr/lib/
mopt, fopt, func_calls, grad_calls, warnflag, allvecs = fmin_cg(J, m_global, fprime = dJ, **kwargs)
ValueError: too many values to unpack
Thank you for any comment.
Changed in dolfin-adjoint: | |
assignee: | nobody → Simon Funke (simon-funke) |
Hi Emmanuel.
Can you provide a minimal code example, please?