[SciPy-user] fmin_cobyla hangs
Tue Sep 4 10:17:44 CDT 2007
> W/o code sample we can't say anything.
Sure. Some explanations on the code:
The goal is to find a smooth baseline for scattered data f(x). Therefore I let
fmin_cobyla minimize the difference between the data and a n-point spline
subject to the constraint data-spline > 0. Additionally constraints on the first
and second derivative are applied. To reduce minimisation time the difference
and the derivatives are only calculated at a subset of the data points.
The strange thing is, that when running the minimisation separated from the
application within which it is usually run, it still hangs, but under different
conditions (different number of constraints). In the sample code the
minimisation is repeated within a for loop while one parameter is changed (which
is the number of points taken to calculate the difference). On my system, when
run within the application, fmin_cobyla hangs for i=78, the stand alone script
however hangs for i=15.
Script and data are attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3138 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20070905/7d91b88f/attachment.gz
More information about the SciPy-user