[SciPy-User] Problem with combining Fsolve and Integrate.Odeint

Sebastian Walter sebastian.walter@gmail....
Tue Oct 13 05:59:19 CDT 2009


kind of hard to help with that little information:
you should _always_ include the source code + output,
preferably a simplified example that still shows the error.



On Tue, Oct 13, 2009 at 4:47 AM, Peter Cimermančič
<peter.cimermancic@gmail.com> wrote:
> Hi all,
> I'm trying to model system that is described with few ODEs. Function, where
> ODEs are in, is given as def function(y,t). It takes two arguments as you
> can see. y is an array of different species in the model, whereas t is an
> array of time steps. Then, I'd like to calculate steady state using fsolve,
> which takes function with one argument only. When trying to solve steady
> state, this error is raised: "TypeError: There is a mismatch between the
> input and output shape of diff_equations.". How could I solve my problem?
> Thank you in advance,
> Peter
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>


More information about the SciPy-User mailing list