ReactionNetworkImporters.jl icon indicating copy to clipboard operation
ReactionNetworkImporters.jl copied to clipboard

ODE, SDE, and Discrete Problem dispatches for `ParsedReactionNetwork`

Open TorkelE opened this issue 2 years ago • 2 comments

Since these contain initial conditions and parameter values, would it make sense to create dispatches to e.g. do

using ReactionNetworkImporters
BCR = loadrxnetwork(BNGNetwork(), "BCR.net")
tspan = (0.0,1000.0)
oprob = ODEProblem(BCR, tspan)

TorkelE avatar Oct 05 '23 20:10 TorkelE

The generated ReactionSystem has u0 and p added as defaults via metadata. See the README. You shouldn’t need to pass them in.

isaacsas avatar Oct 05 '23 20:10 isaacsas

You mean using

oprob = ODEProblem(rn, Float64[], (0.0, tf), Float64[])

I thought this was slightly different, as I do not give the actual ParsedReactionNetwork, and utilise the default values in its contained ReactionSystem?

TorkelE avatar Oct 05 '23 20:10 TorkelE