[scilab-Users] fitting ODE solution to experimental data

michael.baudin at scilab.org michael.baudin at scilab.org
Sat Aug 27 14:29:47 CEST 2011


 Hi,

 The page :

 http://wiki.scilab.org/Non%20linear%20optimization%20for%20parameter%20fitting%20example

 is a complete example on this topic.

 For your specific problem, without the script, we cannot do much.

 Please attach it with your mail.

 Regards,

 Michaël

 On Wed, 17 Aug 2011 16:39:18 -0500 (CDT), Peter Hinow <hinow at uwm.edu> 
 wrote:
> Dear fellows,
>
> is there a "canonical" way to fit the solution of a
> parameter-dependent ordinary differential equation y' = f(y;p) to 
> some
> experimental data?
>
> I have tried leastsq, but the optimal solution is always the initial
> guess, regardless of the initial guess. Specifically, I'm not able to
> get any information why leastsq terminates, even when I add the 
> option
> "imp=2" (the "optimal" gradient has an entry of order 10^21). When I
> try datafit instead, I get an error like
>
> Submatrix incorrectly defined.
> at line      26 of function costf called by :
> at line     174 of function datafit called by :
>
> even though the output of the objective function has the same size as
> the data vector.
>
> Thank you very much for your help,
>      Peter




More information about the users mailing list