[SciPy-user] getting all vertices of simplex from optimize.fmin

Ed Schofield schofield at ftw.at
Tue Jun 13 04:59:21 CDT 2006


Ryan Krauss wrote:
> This is a possible re-send from this past weekend.
>
> Is there a way to make optimize.fmin output all vertices of the
> simplex?  I would like to make a little animation of how the algorithm
> works.  It seems like there are options to output the solution at each
> step, but that is only one point, instead of the whole simplex.
>   

I've just checked in support for callback functions in the optimize
routines.  So you can now get the values of the parameters at each
iteration.  I'm not sure about how the Nelder-Mead algorithm works, but
perhaps you can get all vertices by modifying the line in the fmin
function in optimize.py from

            callback(sim[0])

to

            callback(sim)

?

-- Ed



More information about the SciPy-user mailing list