-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
809a2df
commit d2f9aba
Showing
6 changed files
with
60 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
using ReactiveDynamics | ||
using ReactiveDynamics, AlgebraicAgents | ||
|
||
# acs = @ReactionNetwork begin | ||
# 1.0, X ⟺ Y | ||
# end | ||
|
||
acs = @ReactionNetwork begin | ||
1.0, X ⟺ Y, name => "transition1" | ||
1.0, X --> Y, name => "transition1" | ||
end | ||
|
||
@prob_init acs X = 10 Y = 20 | ||
@prob_params acs | ||
@prob_meta acs tspan = 250 dt = 0.1 | ||
|
||
prob = @problematize acs | ||
|
||
# sol = ReactiveDynamics.solve(prob) | ||
|
||
sol = @solve prob | ||
#sol = @solve prob | ||
|
||
prob = @agentize acs | ||
|
||
for i in 1:30 | ||
AlgebraicAgents.step!(prob) | ||
end | ||
prob.history_u | ||
using Plots | ||
|
||
@plot sol plot_type = summary | ||
∪ | ||
|
||
prob = @problematize acs | ||
@solve prob |