[SciPy-Dev] PR #196: simplification of optimization wrappers

Gyro Funch gyromagnetic@gmail....
Thu Apr 19 07:55:02 CDT 2012


On 2012-04-18 7:34 PM, Denis Laxalde wrote:
> Pauli Virtanen wrote:
>> How about going even further, and not even returning `x`. Rather,
>> stuff it inside `info`:
>>
>>     sol = minimize(fun, x0, [jac, constraints], options)
>>     x = sol.x
> 
> Ok, if no one objects, I'm fine with this as well. Actually, x is
> already in info['solution'].
> 


Hi,

I am a user of various SciPy optimization functions. Since I am
interested primarily in 'x', I'm not sure of the benefit of burying
this information in a dictionary. Perhaps this can be clarified.

Thanks.

-gyro



More information about the SciPy-Dev mailing list