Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kaandocal committed Jun 25, 2024
1 parent dd28217 commit 12a7a59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ end
sys = FSPSystem(rn)

# Parameters for our system
ps = [ 10.0, 1.0 ]
ps = [ => 10.0, :d => 1.0 ]

# Initial distribution (over 1 species)
# Here we start with 0 copies of A
Expand All @@ -52,7 +52,7 @@ end
sys = FSPSystem(rn)

# Parameters for our system
ps = [ 0.25, 0.15, 15.0, 1.0 ]
ps = [ :σ_on => 0.25, :σ_off => 0.15, => 15.0, :d => 1.0 ]

# Initial distribution (over two species)
# Here we start with 0 copies of G_on and M
Expand All @@ -64,10 +64,6 @@ sol = solve(prob, Vern7())
```
![Visualisation](docs/src/assets/telegraph.png)

## TODO:
- Add bursty reactions
- Add support for sparse Jacobians

## References

<a id="1">[1]</a> B. Munsky and M. Khammash, "The Finite State Projection algorithm for the solution of the Chemical Master Equation", Journal of Chemical Physics 124, 044104 (2006). https://doi.org/10.1063/1.2145882
2 changes: 1 addition & 1 deletion demo/birth_death.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end
sys = FSPSystem(rs)

# Parameters for our system
ps = [ 10.0, 1.0 ]
ps = [ :r1 => 10.0, :r2 => 1.0 ]

# Initial values
u0 = zeros(50)
Expand Down
2 changes: 1 addition & 1 deletion demo/telegraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end
sys = FSPSystem(rs)

# Parameters for our system
ps = [ 0.25, 0.15, 15.0, 1.0 ]
ps = [ :r1 => 0.25, :r2 => 0.15, :r3 => 15.0, :r4 => 1.0 ]

# Initial values
# Since G_on + G_off = const. we do not have to model the two
Expand Down

0 comments on commit 12a7a59

Please sign in to comment.