You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HISTORY.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,9 @@
13
13
solver that auto-switches between explicit and implicit methods, install `OrdinaryDiffEqDefault`. To
14
14
use `Tsit5` install `OrdinaryDiffEqTsit5`, etc. The possible sub-libraries, each containing different solvers,
15
15
can be viewed [here](https://github.com/SciML/OrdinaryDiffEq.jl/tree/master/lib).
16
+
- It should now be safe to use `remake` on problems which have had conservation laws removed.
17
+
The warning regarding this when eliminating conservation laws have been removed (in conjecture
18
+
with the `remove_conserved_warn` argument for disabling this warning).
16
19
- New formula for inferring variables from equations (declared using the `@equations` options) in the DSL. The order of inference of species/variables/parameters is now:
17
20
(1) Every symbol explicitly declared using `@species`, `@variables`, and `@parameters` are assigned to the correct category.
18
21
(2) Every symbol used as a reaction reactant is inferred as a species.
Copy file name to clipboardExpand all lines: docs/src/model_creation/conservation_laws.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,6 @@ plot(sol)
61
61
!!! note
62
62
Any species eliminated using `remove_conserved = true` will not be plotted by default. However, it can be added to the plot using [the `idxs` plotting option](@ref simulation_plotting_options). E.g. here we would use `plot(sol; idxs = [:X₁, :X₂])` to plot both species.
63
63
64
-
!!! danger
65
-
Currently, there is a bug in MTK where the parameters, `Γ`, associated with conservation laws are not updated properly in response to [`remake`](@ref simulation_structure_interfacing_problems_remake) (or [other problem-updating functions, such as `getu`](@ref simulation_structure_interfacing_functions)). Hence, problems created using `remove_conserved = true`*should not* be modified, i.e. by changing initial conditions or the values of the `Γ`'s directly. Instead, to change these values new problems must be generated with the new initial condition map.
66
-
67
64
While `X₂` is an observable (and not unknown) of the ODE, we can [access it](@ref simulation_structure_interfacing_problems) just like if `remove_conserved = true` had not been used:
COMPLETENESS_ERROR ="A ReactionSystem must be complete before it can be converted to other system types. A ReactionSystem can be marked as complete using the `complete` function."
451
451
452
-
# Used to, when required, display a warning about conservation law removal and remake.
error("Attempting to convert a non-autonomous `ReactionSystem` (e.g. where some rate depend on $(get_iv(rs))) to a `NonlinearSystem`. This is not possible. if you are intending to compute system steady states, consider creating and solving a `SteadyStateProblem.")
547
525
end
@@ -612,19 +590,15 @@ Notes:
612
590
- `remove_conserved=false`, if set to `true` will calculate conservation laws of the
613
591
underlying set of reactions (ignoring constraint equations), and then apply them to reduce
614
592
the number of equations.
615
-
- `remove_conserved_warn = true`: If `true`, if also `remove_conserved = true`, there will be
616
-
a warning regarding limitations of modifying problems generated from the created system.
617
593
"""
618
594
function Base.convert(::Type{<:SDESystem}, rs::ReactionSystem;
619
595
name =nameof(rs), combinatoric_ratelaws =get_combinatoric_ratelaws(rs),
0 commit comments