We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 486ae04 commit 34a8c8eCopy full SHA for 34a8c8e
test/constants.jl
@@ -37,3 +37,16 @@ eqs = [D(x) ~ β]
37
simp = structural_simplify(sys)
38
39
@test isempty(MT.collect_constants(nothing))
40
+
41
+@testset "Issue#3044" begin
42
+ @constants h = 1
43
+ @parameters τ = 0.5 * h
44
+ @variables x(t) = h
45
+ eqs = [D(x) ~ (h - x) / τ]
46
47
+ @mtkbuild fol_model = ODESystem(eqs, t)
48
49
+ prob = ODEProblem(fol_model, [], (0.0, 10.0))
50
+ @test prob[x] ≈ 1
51
+ @test prob.ps[τ] ≈ 0.5
52
+end
0 commit comments