forked from StudioInfinity/dyna3
Make results reproducible
This commit is contained in:
parent
8d8bc9162c
commit
ae5db0f9ea
2 changed files with 7 additions and 6 deletions
|
|
@ -89,11 +89,11 @@ vbls = Variable.(symbols(coordring))
|
|||
# test a random witness set
|
||||
system = CompiledSystem(System(small_eqns_tan_sph, variables = vbls))
|
||||
norm2 = vec -> real(dot(conj.(vec), vec))
|
||||
Random.seed!(6071)
|
||||
n_planes = 36
|
||||
rng = MersenneTwister(6071)
|
||||
n_planes = 3
|
||||
samples = []
|
||||
for _ in 1:n_planes
|
||||
real_solns = solution.(Engine.Numerical.real_samples(system, freedom))
|
||||
real_solns = solution.(Engine.Numerical.real_samples(system, freedom, rng = rng))
|
||||
for soln in real_solns
|
||||
if all(norm2(soln - samp) > 1e-4*length(gens(coordring)) for samp in samples)
|
||||
push!(samples, soln)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue