1
0
mirror of https://github.com/kalmarek/SmallHyperbolic synced 2024-11-23 23:40:28 +01:00

try to be smarter when runing the second optimization

This commit is contained in:
kalmarek 2020-01-20 03:33:25 +01:00
parent d0c2fcdb83
commit 87b0512580

View File

@ -53,9 +53,14 @@ let GROUP = ARGS[1]
λ = check_propertyT(groups[GROUP], group_name, λ = check_propertyT(groups[GROUP], group_name,
HALFRADIUS, Inf, AutomaticStructure, with_SCS(100_000, 50)) HALFRADIUS, Inf, AutomaticStructure, with_SCS(100_000, 50))
if λ > 1e-2 # there is still a chance to detect spectral gap if λ > 0.01 # there is still a chance to detect spectral gap
new_λ = round(0.8λ, sigdigits=2)
new_dir = joinpath(group_name, "$new_λ")
mkpath(new_dir)
cp(joinpath(group_name, "Inf", "warmstart.jld"), new_dir)
check_propertyT(groups[GROUP], group_name, check_propertyT(groups[GROUP], group_name,
HALFRADIUS, Inf, AutomaticStructure, with_SCS(500_000, 0)) HALFRADIUS, new_λ, AutomaticStructure, with_SCS(500_000, 0))
end end
end end
end end