[SciPy-user] Getting the set of parameters from a leastsq function at each iteration.

Anne Archibald peridot.faceted at gmail.com
Fri Apr 4 13:47:01 EDT 2008


On 04/04/2008, Doreen Mbabazi <doreen at aims.ac.za> wrote:

>  y = odeint(f,initial_y,t,args=(p,))
>
>  def S(t,p):
>     v = y[:,2]
>     return v

Here you are running odeint only once. You must run it every time S is
evaluated.

Anne



More information about the SciPy-User mailing list