Skip to content
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

Run initialization on ODEs with superset initial conditions #2850

Closed
wants to merge 7 commits into from

Conversation

ChrisRackauckas
Copy link
Member

InitializationProblem is not always built, however it missed a case. If you have an ODE and you define all of the initial conditions, then it does not need an initialization problem. But, if you simplify down to an ODE and give initial conditions for all of the original variables, including some simplified out, then you have defined initial conditions on some observed quantities and that needs to be accounted for by an initialization process.

This fixes #2619

@ChrisRackauckas
Copy link
Member Author

@AayushSabharwal did some of the cases of initialization with array variables simply require it wasn't using the initialization?

@AayushSabharwal
Copy link
Member

did some of the cases of initialization with array variables simply require it wasn't using the initialization?

I don't think so, they should just work

Copy link
Member

@AayushSabharwal AayushSabharwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a typo

src/systems/diffeqs/abstractodesystem.jl Outdated Show resolved Hide resolved
src/systems/diffeqs/abstractodesystem.jl Outdated Show resolved Hide resolved
ChrisRackauckas and others added 4 commits September 6, 2024 08:33
InitializationProblem is not always built, however it missed a case. If you have an ODE and you define all of the initial conditions, then it does not need an initialization problem. But, if you simplify down to an ODE and give initial conditions for all of the original variables, including some simplified out, then you have defined initial conditions on some observed quantities and that needs to be accounted for by an initialization process.

This fixes #2619
Co-authored-by: Aayush Sabharwal <aayush.sabharwal@gmail.com>
Co-authored-by: Aayush Sabharwal <aayush.sabharwal@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistency for how to give intiial conditions to DAEs with higher order derivatives.
2 participants