Comments (4)
Each MassActionJump
can have either a rate parameter or an index. However, dispatching on Int
sounds like a source of chaos, so maybe it can be an easy switch to flip.
from jumpprocesses.jl.
using Catalyst, DiffEqBase, DiffEqJump
rn = @reaction_network begin
α, S + I --> 2I
β, I --> R
end α β
p = [.1/1000, .01]
tspan = (0.0,250.0)
u0 = [999,1,0]
dprob = DiscreteProblem(rn,u0,tspan,p)
jprob = JumpProblem(rs, dprob, Direct())
sol = solve(jprob, SSAStepper())
# change the rate of the first reaction
jprob.massaction_jump.scaled_rates[1] = .001
sol = solve(jprob, SSAStepper())
See discussion at https://discourse.julialang.org/t/simulating-mjps-many-times-with-different-parameters-as-inner-loop/49061/11 too.
from jumpprocesses.jl.
This probably needs some type of API accessor for easier updating, and which can work within callbacks too.
from jumpprocesses.jl.
This could be handled by having MassActionJump's take an optional extra parameter vector: rate_idxs_in_params or such. Then when the JumpProblem is constructed the corresponding parameter from prob.p could be used instead.
Only took three years for me to implement this, but should be fixed by #190.
from jumpprocesses.jl.
Related Issues (20)
- Interface for Jump simulations seems non-ideally messy? HOT 7
- possible interpolation bug in hybrid systems HOT 1
- Including global variables that participate in MassActionJumps in spatial systems HOT 10
- Remarks about docs [JuliaCon Proceedings review] HOT 4
- Remarks about paper [JuliaCon Proceedings review] HOT 1
- Remarks about package [JuliaCon Proceedings review] HOT 7
- Dynamical ODE and SDE solvers fail when they are combined with VariableRateJump. HOT 1
- Method ambiguities reported by Aqua HOT 2
- mutating parameter vector needs to call reset_aggregated_jumps! HOT 7
- Reenable formatter once SciMLStyle is fixed.
- Certain Continuous Callbacks does not work for JumpProcessess HOT 14
- Remarks about paper - episode 2 [JuliaCon Proceedings review] HOT 5
- Add / use cache-optimized indexed priority queue in NRM-based methods. HOT 1
- figure out why CI is now taking a ridiculous amount of time HOT 2
- Uniformization Direct Methods
- network free solvers
- Better documentation of `remake` mutating original problems
- Discrete events with repeated dosage fails for JumpSystems (fine ofr e.g. ODEs) HOT 7
- Automatic selection of solver method (e.g. `SSAStepper()`) HOT 1
- (Hierarchical) Exact Accelerated SSA HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jumpprocesses.jl.