patrick-kidger / patrick-kidger/diffrax

DAE Interactive Adaptive Step-Size Solver

Open
#261 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
2.1k
Forks
189
Avg merge
3d 18h
Merged PRs (30d)
1

Description

Hi, I have a DAE model with explicit algebraic equations (I would like to highlight this since I've already see the issue about DAE with implicit algebraic equations). I just implemented a simple step-by-step solver instead of using the diffeqsolve to handle algebraic equations. However, I found a paricular DAE that is not solvable using classical Dopri5 or Tsit5, unless using very small step size, hence I decided to use an adaptive stepsize controller (the PIDController) and the solver Kvaerno5.

To be more clear this is a system I would like to deal with, like any biological systems.

dx/dt = f(x(t),args,t)
args_1 = g_1(...)
args_2 = g_2(...)
...
args_N = g_N(...)

Having said that, I'm actually having trouble implementing the same step-by-step using the PIDController and the SaveAt. Are there any suggestions?

Thank you for the answer.

I'm in particular interest for this project and Equinox too, they are awesome!!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported DAE behavior with the step-by-step solver, PIDController, SaveAt, and Kvaerno5 mentioned in the issue. Compare that setup with diffeqsolve and define the expected adaptive-step behavior for explicit algebraic equations before determining what a complete solution would require.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.