Skip to content

Commit 15bfd2a

Browse files
authored
Merge pull request #2557 from SciML/myb/nonsq
Fix iteration bounds in `tearing_with_dummy_derivatives`
2 parents 5bb8d10 + ba548e9 commit 15bfd2a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/src/tutorials/parameter_identifiability.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ Let's try to check specific parameters and their combinations
7878

7979
```julia
8080
to_check = [de.k5, de.k7, de.k10 / de.k9, de.k5 + de.k6]
81-
local_id_some = assess_local_identifiability(de, funcs_to_check = to_check, prob_threshold = 0.99)
81+
local_id_some = assess_local_identifiability(
82+
de, funcs_to_check = to_check, prob_threshold = 0.99)
8283
```
8384

8485
Notice that in this case, everything (except the unknown variable $x_7$) is locally identifiable, including combinations such as $k_{10}/k_9, k_5+k_6$

src/structural_transformation/partial_state_selection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function tearing_with_dummy_derivatives(structure, dummy_derivatives)
351351
Base.Fix1(isdiffed, (structure, dummy_derivatives)),
352352
Union{Unassigned, SelectedState};
353353
varfilter = Base.Fix1(getindex, can_eliminate))
354-
for v in eachindex(var_eq_matching)
354+
for v in 𝑑vertices(structure.graph)
355355
is_present(structure, v) || continue
356356
dv = var_to_diff[v]
357357
(dv === nothing || !is_some_diff(structure, dummy_derivatives, dv)) && continue

0 commit comments

Comments
 (0)