Skip to content

Commit

Permalink
sigma1 added to fit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivborissov committed Jul 23, 2024
1 parent 3ff31f7 commit a8bfe9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/examples/single_comp/single_comp_data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ t,measurement,prob.mean,prob.sigma,scenario
90,0.042708075,r1,1,one
100,0.03416102,r1,1,one
110,0.029189964,r1,1,two
140,0.023795695,r1,1,one
150,0.023747064,r1,1,two
170,0.014685676,r1,1,two
180,0.014041756,r1,1,two
190,0.014324639,r1,1,two
140,0.023795695,r1,sigma1,one
150,0.023747064,r1,sigma1,two
170,0.014685676,r1,sigma1,two
180,0.014041756,r1,sigma1,two
190,0.014324639,r1,sigma1,two
4 changes: 2 additions & 2 deletions test/single_comp_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fscn2 = Scenario(model, (0., 200.); parameters = [:k1=>0.015], observables=[:A,
data = read_measurements("$HetaSimulatorDir/test/examples/single_comp/single_comp_data.csv")
add_measurements!(fscn1, data; subset = [:scenario => :one])
add_measurements!(fscn2, data; subset = [:scenario => :two])
fres = fit([:one=>fscn1, :two=>fscn2], [:k1=>0.01], progress=:silent)
fres = fit([:one=>fscn1, :two=>fscn2], [:k1=>0.01, :sigma1=>1.0], progress=:silent)

@test typeof(fres) <: HetaSimulator.FitResult
@test test_show(fres)
Expand All @@ -98,4 +98,4 @@ fres = fit([:one=>fscn1, :two=>fscn2], [:k1=>0.01], progress=:silent)
@test status(fres) == :FTOL_REACHED
@test obj(fres) 146.056244
@test typeof(optim(fres)) == Vector{Pair{Symbol, Float64}}
@test length(optim(fres)) == 1
@test length(optim(fres)) == 2

0 comments on commit a8bfe9f

Please sign in to comment.