optimize.minimize shouldn't return a list if the input parameter wasn't a list

Bug #1064551 reported by Patrick Farrell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dolfin-adjoint
Fix Committed
Undecided
Simon Funke

Bug Description

I think that

  Jhat = ReducedFunctional(J, [param1, param2])

should have minimize return a list:

  (optparam1, optparam2) = minimize(Jhat)

but that if the user doesn't specify a list of parameters:

  Jhat = ReducedFunctional(J, param)

then it should just return a bare object:

  optparam = minimize(Jhat)

At the moment minimize returns [optparam].

Tags: simon-funke
Revision history for this message
Simon Funke (simon-funke) wrote :

Is now fixed in the trunk

Changed in dolfin-adjoint:
assignee: nobody → Simon Funke (simon-funke)
status: New → Incomplete
status: Incomplete → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.