Skip to content

Commit 7b54abe

Browse files
committed
updates
1 parent e5dd407 commit 7b54abe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/src/model_creation/conservation_laws.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ Generally, for a conservation law where we have:
133133
If the value of the conservation law parameter $Γ$'s value *has never been specified*, its value will be updated to accommodate changes in species values. If the conservation law parameter ($Γ$)'s value *has been specified* (either when the `ODEProblem` was created, or using `remake`), then the eliminated species's value will be updated to accommodate changes in the conservation law parameter or non-eliminated species's values. Furthermore, in this case, the value of the eliminated species *cannot be updated*.
134134

135135
!!! warn
136-
When updating the values of problems with conservation laws it is additionally important to use `remake` (as opposed to direct indexing, e.g. setting `oprob[:X₁] = 16.0`).
137-
!!!
138-
The updating of species values of `NonlinearProblem`s where conservation laws have been eliminated is currently not supported (for other problem types, however, such updates are fine). Updating of parameter values, however, is still supported. Hopefully updating of species values will be possible in future updates, but for now, a new `NonlinearProblem` will have to be created.
136+
When updating the values of problems with conservation laws it is additionally important to use `remake` (as opposed to direct indexing, e.g. setting `oprob[:X₁] = 16.0`). Moreover, care is needed when using `remake` with `NonlinearProblem`s for which conserved equations have been removed. See [the FAQ](https://docs.sciml.ai/Catalyst/stable/faqs/#faq_remake_nonlinprob) for details on what is supported and what may lead to `u0` values that do not satisfy the conservation law in the special case of `NonlinearProblem`s.
139137

140138
### [Extracting the conservation law parameter's symbolic variable](@id conservation_laws_prob_updating_symvar)
141139
Catalyst represents its models using the [Symbolics.jl](https://github.com/JuliaSymbolics/Symbolics.jl) computer algebraic system, something which allows the user to [form symbolic expressions of model components](@ref simulation_structure_interfacing_symbolic_representation). If you wish to extract and use the symbolic variable corresponding to a model's conserved quantities, you can use the following syntax:

0 commit comments

Comments
 (0)