1
0
mirror of https://github.com/kalmarek/SmallHyperbolic synced 2024-07-27 13:05:31 +02:00
SmallHyperbolic/runcomputations.jl

45 lines
1.0 KiB
Julia
Raw Normal View History

2019-12-18 00:34:21 +01:00
using PropertyT
using PropertyT.LinearAlgebra
using PropertyT.SparseArrays
using PropertyT.JuMP
using PropertyT.AbstractAlgebra
using PropertyT.Groups
using PropertyT.GroupRings
using PropertyT.JLD
BLAS.set_num_threads(2)
ENV["OMP_NUM_THREADS"] = 2
if !haskey(ENV, "GAP_EXECUTABLE")
ENV["GAP_EXECUTABLE"] = "/usr/lib/gap/gap"
end
include(joinpath("src", "FPGroups_GAP.jl"))
include(joinpath("src", "groupparse.jl"))
include(joinpath("src", "utils.jl"))
const HALFRADIUS = 3
using SCS
2020-01-19 17:29:41 +01:00
with_SCS(iters=30_000, acceleration=10) = with_optimizer(SCS.Optimizer,
2019-12-18 00:34:21 +01:00
linear_solver=SCS.Direct,
2020-01-19 17:29:41 +01:00
max_iters=iters,
2019-12-18 00:34:21 +01:00
eps=1e-9,
2020-01-19 17:29:41 +01:00
alpha=(acceleration == 0 ? 1.95 : 1.5),
acceleration_lookback=acceleration,
2019-12-18 00:34:21 +01:00
warm_start=true)
groups = parse_grouppresentations("data/presentations_4_4_4.txt")
groups = parse_grouppresentations("data/presentations_3_3_4.txt")
for (group_name, G) in groups
@info "" group_name
2020-01-19 17:29:41 +01:00
check_propertyT(groups[group_name], "log/$(group_name)_r$HALFRADIUS",
HALFRADIUS, Inf, AutomaticStructure, with_SCS(50_000, 50))
2019-12-18 00:34:21 +01:00
end