Skip to content

Support jump rate laws in the CLE#1436

Merged
isaacsas merged 7 commits intoSciML:masterfrom
isaacsas:jumprates_in_cle
Mar 19, 2026
Merged

Support jump rate laws in the CLE#1436
isaacsas merged 7 commits intoSciML:masterfrom
isaacsas:jumprates_in_cle

Conversation

@isaacsas
Copy link
Copy Markdown
Member

@isaacsas isaacsas commented Mar 5, 2026

No description provided.

isaacsas and others added 3 commits March 5, 2026 17:17
Add `use_jump_ratelaws=false` kwarg to `sde_model`, `hybrid_model`,
`SDEProblem`, and `HybridProblem`. When true, CLE noise (diffusion)
coefficients use jump rate laws (binomials) instead of ODE rate laws
(powers) inside sqrt(|ratelaw|), giving more mathematically correct
noise intensity for integer populations. Only affects noise terms,
not drift. First-order reactions are identical under both settings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Directly evaluate Catalyst-generated drift and diffusion functions at
multiple state values and compare against hand-coded formulas for both
ODE and jump rate law noise. This is deterministic and avoids flaky
statistical sampling.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@isaacsas isaacsas requested a review from TorkelE March 5, 2026 23:02
@isaacsas isaacsas changed the title Support jump rate laws in the CLE WIP: Support jump rate laws in the CLE Mar 6, 2026
isaacsas and others added 4 commits March 19, 2026 12:49
The CLE derived from the CME uses the same stochastic propensity a_j(X)
in both drift and diffusion terms. The previous implementation only
switched diffusion; this makes the kwarg affect drift too for physical
consistency. Also removes the drift_scales hack by widening the
assemble_oderhs filter to accept both ODE and SDE scale reactions,
adds the kwarg to ode_model/ODEProblem, and adds a statistical test
comparing Catalyst output against a hand-coded reference SDE.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@isaacsas isaacsas changed the title WIP: Support jump rate laws in the CLE Support jump rate laws in the CLE Mar 19, 2026
@isaacsas isaacsas merged commit d93c694 into SciML:master Mar 19, 2026
19 checks passed
@isaacsas isaacsas deleted the jumprates_in_cle branch March 19, 2026 17:51
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.

1 participant