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

fix: propagate initializeprobpmap and update_initializeprob! to DAEFunction #3227

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

AayushSabharwal
Copy link
Member

Requires SciML/SciMLBase.jl#867

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@mtkbuild sys = ODESystem(
[D(x) ~ p * y + q * t, x^3 + y^3 ~ 5], t; initialization_eqs = [p^2 + q^3 ~ 3])

# FIXME: solve for du0
Copy link
Member

Choose a reason for hiding this comment

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

It should always be updating du0?

Copy link
Member Author

Choose a reason for hiding this comment

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

Initialization solves for du0, but we don't have an initializeprob_du0map which OrdinaryDiffEq can use to set the du0 of DAEProblem

Copy link
Member

Choose a reason for hiding this comment

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

Then it doesn't actually initialize right?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it doesn't apparently. Realized this while writing these tests. I think I have a way to fix it without breaking

@AayushSabharwal AayushSabharwal merged commit eda23d4 into SciML:master Nov 27, 2024
41 of 42 checks passed
@AayushSabharwal AayushSabharwal deleted the as/daeprob-init branch November 27, 2024 12:07
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.

2 participants