Message Boards Message Boards

0
|
5094 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Fitting Data to the Sum of some Solutions of an ODE System

Posted 10 years ago
POSTED BY: marc123
3 Replies
POSTED BY: Sean Clarke
Posted 9 years ago
POSTED BY: marc123

It's hard to debug this without the code, but first, as a general suggestion, try rewriting it using ParametricNDSolve.

http://reference.wolfram.com/language/ref/ParametricNDSolve.html

There are some examples at the bottom of that page on optimizing parameter values. They might be helpful if you haven't already seen them.

So, modeldata[...] appears to be an Interpolating function and it is complaining that it is being given a t value out of its range. What are the t values in data? That is, what are the values of data[[All,1]]? What happens when you run modeldata[...] on every one of them with some reasonable value for the parameters? I get the feeling that one of them is outside the range of modeldata[...]. I don't know if the range of modeldata[...] depends on it's parameters or not.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract