Skip to content

Commit 81fbbe8

Browse files
committed
save doc progress
1 parent a340ead commit 81fbbe8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/src/model_creation/conservation_laws.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,14 @@ Finally, the `conservationlaws` function yields a $m \times n$ matrix, where $n$
8686
conservationlaws(rs)
8787
```
8888
I.e. in this case we have a single conserved quantity, which contains a single copy each of the system's two species.
89+
90+
## [Updating conservation law values directly](@id conservation_laws_prob_updating)
91+
Previously we noted that creation law elimination adds the conservation law as a parameter of the system, e.g. as in the case of this dimerisation system:
92+
```@example conservation_laws_prob_updating
93+
using Catalyst # hide
94+
rn = @reaction_network begin
95+
(kD,kU), 2X <--> X2
96+
end
97+
parameters(convert(ODESystem, rn; remove_conserved = true))
98+
```
99+
Ad advantage of this is that we can set the conserved quantity#s value directly in simulations. E.g.

0 commit comments

Comments
 (0)