Skip to content

Support Jump-ODE models #1121

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

Merged
merged 34 commits into from
Apr 20, 2025
Merged

Support Jump-ODE models #1121

merged 34 commits into from
Apr 20, 2025

Conversation

isaacsas
Copy link
Member

@isaacsas isaacsas commented Nov 15, 2024

Needs:

rn = @reaction_network begin
       @parameters λ
       k*V, 0 --> A
       @equations D(V) ~ λ*V
       @continuous_events begin
           [V ~ 2.0] => [V ~ V/2, A ~ rand()*A]
       end
end        
jinput = JumpInputs(rn, [:A => 0, :V => 1.0], (0.0, 10.0), [:k => 1.0,  => .2])
jprob = JumpProblem(jinput; rng)
sol = solve(jprob, Tsit5()) 
plot(sol, idxs = [:A, :V])

jump_ode

@isaacsas isaacsas mentioned this pull request Apr 1, 2025
7 tasks
@isaacsas isaacsas changed the title WIP: Support Jump-ODE models Support Jump-ODE models Apr 18, 2025
@isaacsas
Copy link
Member Author

@TorkelE do you want to review? Otherwise I think I'm happy to merge and followup on doc type updates (and maybe adding more correctness tests too at some point).

@isaacsas isaacsas merged commit 5dae207 into SciML:master Apr 20, 2025
14 of 16 checks passed
@isaacsas isaacsas deleted the pdmps branch April 20, 2025 15:34
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