Skip to content
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

Finishing Scenario 1 #91

Open
5 tasks
ChrisRackauckas opened this issue Jan 27, 2023 · 1 comment
Open
5 tasks

Finishing Scenario 1 #91

ChrisRackauckas opened this issue Jan 27, 2023 · 1 comment
Assignees

Comments

@ChrisRackauckas
Copy link
Member

  • Add stratified petri net model
  • Question 3
  • Question 4
  • Question 5
  • Question 6
@ChrisRackauckas ChrisRackauckas self-assigned this Jan 27, 2023
@ChrisRackauckas
Copy link
Member Author

This is that SBML model read in using SBMLToolkit:

using SBMLToolkit, ModelingToolkit, OrdinaryDiffEq

xmlfile = raw"C:\Users\accou\.julia\dev\EasyModelAnalysis\docs\src\assets\Carcione2020.xml"
SBMLToolkit.checksupport_file(xmlfile)
mdl = readSBML(xmlfile, doc -> begin
    set_level_and_version(3, 2)(doc)
    convert_simplify_math(doc)
end)

rs = ReactionSystem(mdl)  # If you want to create a reaction system
odesys = convert(ODESystem, rs)  # Alternatively: ODESystem(mdl)
sys = structural_simplify(odesys)

tspan = (0., 1.)
prob = ODEProblem(odesys, [], tspan, [])
sol = solve(prob, Rodas5())

Carcione2020.zip

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

No branches or pull requests

1 participant