Skip to content

Commit 8878675

Browse files
authored
Reliability Testset - Stabilization (#268)
1 parent 8d916d9 commit 8878675

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/inputs/stochasticprocesses/spectralrepresentation.jl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@
4242
@test_logs (:warn, r"The frequency of the signal") SpectralRepresentation(sd, t, :ShnzkNySR)
4343

4444
@testset "Reliability" begin
45-
ω = collect(range(0, 150, 100))
45+
46+
ω = collect(range(0, 50, 100))
4647

4748
cp = CloughPenzien(ω, 0.1, 0.8π, 0.6, 8π, 0.6)
4849

49-
gm = SpectralRepresentation(cp, collect(range(0, 10, 100)), :gm)
50+
gm = SpectralRepresentation(cp, collect(range(0, 10, 200)), :gm)
5051
gm_model = StochasticProcessModel(gm)
5152

52-
capacity = Parameter(65, :cap)
53+
capacity = Parameter(25, :cap)
5354

5455
function limitstate(df)
5556
return df.cap - map(sum, df.gm)
@@ -62,15 +63,15 @@
6263

6364
pf_mc, _, _ = probability_of_failure(models, limitstate, inputs, mc)
6465

65-
# Reference solution obtained with 10^6 samples: 0.004217
66-
@test 0.0028 < pf_mc < 0.0069 # 99 percentiles obtained from 5000 independent runs with 10^4 samples
66+
# Reference solution obtained with 10^6 samples: 0.003529
67+
@test 0.001 < pf_mc < 0.0064 # 99 percentiles obtained from 5000 independent runs with 10^4 samples
6768

6869
# We use subset to confirm that the mappings to sns are done correctly
6970

7071
ss = SubSetInfinityAdaptive(2000, 0.1, 20, 10, 0.6, 1)
7172

7273
pf_ss, _, _ = probability_of_failure(models, limitstate, inputs, ss)
7374

74-
@test 0.0028 < pf_ss < 0.0069
75+
@test 0.001 < pf_ss < 0.0064
7576
end
7677
end

0 commit comments

Comments
 (0)