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: ext/CatalystHomotopyContinuationExtension/homotopy_continuation_extension.jl
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ Uses homotopy continuation via HomotopyContinuation.jl to find the steady states
8
8
Arguments:
9
9
- `rs::ReactionSystem`: The reaction system for which we want to find the steady states.
10
10
- `ps`: The parameter values for which we want to find the steady states.
11
-
- `filter_negative=true`: If set to true, solutions with any species concentration <0 is removed from the output.
11
+
- `filter_negative=true`: If set to true, solutions with any species concentration <neg_thres is removed from the output.
12
12
- `neg_thres=-1e-20`: Determine the minimum values for which a species concentration is to be considred non-negative. Species conentrations ``> neg_thres`` but `< 0.0` are set to `0.0`.
13
-
- `u0=typeof(ps)()`: Initial conditions for which we want to find the steady states. For systems with conservation laws this are required to compute conserved quantities.
13
+
- `u0=nothing`: Initial conditions for which we want to find the steady states. For systems with conservation laws this are required to compute conserved quantities.
14
14
- `kwargs...`: any additional arguments (like `show_progress= true`) are passed into HomotopyContinuation.jl's `solve` call.
15
15
16
16
Examples
@@ -34,7 +34,7 @@ gives
34
34
Notes:
35
35
```
36
36
"""
37
-
function Catalyst.hc_steady_states(rs::ReactionSystem, ps; filter_negative=true, neg_thres=-1e-20, u0=typeof(ps)(), kwargs...)
37
+
function Catalyst.hc_steady_states(rs::ReactionSystem, ps; filter_negative=true, neg_thres=-1e-20, u0=nothing, kwargs...)
error("An non integer ($(arguments(expr)[2])) was found as a variable exponent. Non-integer exponents are not supported for homotopy continuation based steady state finding.")
0 commit comments