Skip to content

feat: Introducing vr_aggregator with VR_Direct and VR_FRM#477

Merged
ChrisRackauckas merged 105 commits into
SciML:masterfrom
sivasathyaseeelan:removing-exrendedjumparray
May 24, 2025
Merged

feat: Introducing vr_aggregator with VR_Direct and VR_FRM#477
ChrisRackauckas merged 105 commits into
SciML:masterfrom
sivasathyaseeelan:removing-exrendedjumparray

Conversation

@sivasathyaseeelan
Copy link
Copy Markdown
Contributor

@sivasathyaseeelan sivasathyaseeelan commented Feb 15, 2025

using DiffEqBase, JumpProcesses, OrdinaryDiffEq, StochasticDiffEq, Test, Plots
using Random, LinearSolve
using StableRNGs
rng = StableRNG(12345)

rate = (u, p, t) -> u[1]
affect! = (integrator) -> (integrator.u[1] = integrator.u[1] / 2)
jump = VariableRateJump(rate, affect!, interp_points = 1000)
jump2 = deepcopy(jump)

f = function (du, u, p, t)
    du[1] = u[1]
end

prob = ODEProblem(f, [0.2], (0.0, 10.0))
jump_prob = JumpProblem(prob, Direct(), jump, jump2; rng = rng)

integrator = init(jump_prob, Tsit5())

sol = solve(jump_prob, Tsit5())
plot(sol)

Screenshot from 2025-03-11 04-46-32

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.

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
@sivasathyaseeelan sivasathyaseeelan marked this pull request as draft February 15, 2025 20:38
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
@sivasathyaseeelan sivasathyaseeelan marked this pull request as ready for review March 10, 2025 23:15
@sivasathyaseeelan sivasathyaseeelan changed the title refactor: using an integrating callback from DiffEqCallbacks.jl which drops usage of ExtendedJumpArrays refactor: drops usage of ExtendedJumpArrays Mar 10, 2025
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Comment thread Project.toml Outdated
Comment thread Project.toml Outdated
Comment thread Project.toml Outdated
Comment thread Project.toml Outdated
Comment thread test/variable_rate.jl Outdated
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
@ChrisRackauckas ChrisRackauckas merged commit fb4740d into SciML:master May 24, 2025
5 checks passed
@sivasathyaseeelan sivasathyaseeelan changed the title feat: Introducing vr_aggregator with VRDirectCB and VRFRMODE feat: Introducing vr_aggregator with VR_Direct and VR_FRM Sep 13, 2025
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.

4 participants