optimize.minimize shouldn't return a list if the input parameter wasn't a list
Bug #1064551 reported by
Patrick Farrell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dolfin-adjoint |
Fix Committed
|
Undecided
|
Simon Funke |
Bug Description
I think that
Jhat = ReducedFunction
should have minimize return a list:
(optparam1, optparam2) = minimize(Jhat)
but that if the user doesn't specify a list of parameters:
Jhat = ReducedFunction
then it should just return a bare object:
optparam = minimize(Jhat)
At the moment minimize returns [optparam].
To post a comment you must log in.
Is now fixed in the trunk