-
-
Notifications
You must be signed in to change notification settings - Fork 126
DAE doc #467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAE doc #467
Conversation
|
@charlesm93 perhaps this PR can of help for the math PR review. |
|
Per @charlesm93 's review comment stan-dev/math#2644 (comment) I just added a section on DAE index. |
|
Now that stan-dev/math#2644 is in, @charlesm93 do you have time to review its doc? Thanks. |
|
Sure. |
WardBrian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some typos and suggestions in the functions reference (not familiar enough with the math for the users guide sections)
charlesm93
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good. I'm requesting a few minor changes, see the comments on the code. Additionally, the first paragraph (under Differential-Algebraic equation (DAE) solver) should include a brief statement about how DAEs defer from the ODEs and algebraic equations.
|
I see my comments have been addressed. I still recommend a brief sentence on how DAEs differ from ODEs (and algebraic equations) at the beginning. It might also be worth pointing out that we can solve a broader class of ODEs using the DAE solver, i.e. one where the residual equation is non-linear in y'. Once this is in place, we can merge the PR. |
@charlesm93 I added
|
|
I don't think this quite gets to it. The phrasing suggests the algebraic constraints apply only to variables in the "original ODE" and the term RHS here is ambiguous, since it may refer to a quantity equal to the derivative or to 0. Here's an attempt at rephrasing this:
|
technically this is not true, as in a DAE there may not be a ODEs system. What you are referring is semi-explicit DAEs. |
|
@charlesm93 I'm having trouble to come up with " a brief sentence on how DAEs differ from ODEs ". Neither mine or yours are sufficiently simple without being misleading. I think the user who's using the feature has to be familiar with DAEs. After all we don't introduce what ODEs are at the ODE section. However, if we must, the simple sentence from wikipedia is the best I can think of:
We can use this if you're ok. |
|
I think you're right that the user we'll know what a DAE is if they're interested in using this feature. Best not to write a misleading statement. With that, you can go ahead a merge the PR. |
Submission Checklist
`r since("VERSION")`Summary
For stanc3 issue 1091.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Metrum Research Group
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: