[SciPy-dev] f2py vector valued functions and optimize.fmin_slsqp

Sebastian Walter sebastian.walter at gmail.com
Mon May 18 04:09:06 EDT 2009


In 90% of the cases of an unsuccessful optimization the provided
gradient is wrong.
There should be a routine in scipy to check if your provided gradient
is correct.



On Mon, May 18, 2009 at 1:53 AM, Rob Falck <robfalck at gmail.com> wrote:
>
>>>
>>
>> Thanks for the response.
>>
>> I have wrapped the function to return the performance index. Don't know if
>> this is another symptom or the problem itself, but the soln terminates with:
>>
>> Optimization terminated successfully.    (Exit mode 0)
>>             Current function value: 6.45723021956
>>             Iterations: 1
>>             Function evaluations: 20
>>             Gradient evaluations: 1
>>
>> If the generating routine for the performance index is coded in straight
>> python I get:
>>
>> Optimization terminated successfully.    (Exit mode 0)
>>             Current function value: 0.858946186765
>>             Iterations: 12
>>             Function evaluations: 245
>>             Gradient evaluations: 12
>>
>> For some reason, the iterations stops at 1 when I try to use the f2py
>> imported libraries. Is it possible that it is getting hung up on the
>> Gradient evaluations??
>>
>> --
>> Leon Adams
>
> I wish I could help.  I havent tried to use SLSQP with F2PY.
>
>
>
> --
> - Rob Falck
>
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
>



More information about the SciPy-Dev mailing list