GroupsWithPropertyT/main.jl

62 lines
1.7 KiB
Julia
Raw Normal View History

2018-08-08 00:26:39 +02:00
using PropertyT
2018-09-05 17:52:23 +02:00
include("FPGroups_GAP.jl")
include("groups/Allgroups.jl")
using PropertyTGroups
2018-07-31 12:41:48 +02:00
import PropertyT.Settings
2018-09-09 13:12:53 +02:00
function summarize(sett::PropertyT.Settings)
2018-08-20 02:54:50 +02:00
info("Threads: $(Threads.nthreads())")
info("Workers: $(workers())")
2018-09-09 13:12:53 +02:00
info("GroupDir: $(PropertyT.prepath(sett))")
info(string(sett.G))
info("with generating set of size $(length(sett.S))")
info("Radius: $(sett.radius)")
info("Precision: $(sett.tol)")
info("Upper bound: $(sett.upper_bound)")
info("Solver: $(sett.solver)")
end
2018-09-16 17:53:40 +02:00
function Settings(Gr::PropertyTGroup, args, solver)
r = get(args, "radius", 2)
gr_name = PropertyTGroups.name(Gr)*"_r$r"
G = PropertyTGroups.group(Gr)
S = PropertyTGroups.generatingset(Gr)
sol = solver
2018-09-17 00:22:35 +02:00
ub = get(args,"upper-bound", Inf)
tol = get(args,"tol", 1e-10)
ws = get(args, "warmstart", false)
if get(args, "nosymmetry", false)
2018-09-16 17:53:40 +02:00
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws)
else
autS = PropertyTGroups.autS(Gr)
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws, autS)
end
end
2018-09-16 17:53:40 +02:00
function main(::PropertyTGroup, sett::PropertyT.Settings)
2018-09-05 17:52:23 +02:00
isdir(PropertyT.fullpath(sett)) || mkpath(PropertyT.fullpath(sett))
2018-09-09 13:12:53 +02:00
summarize(sett)
return PropertyT.check_property_T(sett)
end
2018-09-09 13:12:53 +02:00
function main(::GAPGroup, sett::PropertyT.Settings)
isdir(PropertyT.fullpath(sett)) || mkpath(PropertyT.fullpath(sett))
summarize(sett)
2018-09-05 17:52:23 +02:00
S = [s for s in sett.S if s.symbols[1].pow == 1]
relations = [k*inv(v) for (k,v) in sett.G.rels]
2018-09-05 17:52:23 +02:00
prepare_pm_delta(PropertyT.prepath(sett), GAP_groupcode(S, relations), sett.radius)
2018-07-31 12:41:48 +02:00
2018-09-09 13:12:53 +02:00
return PropertyT.check_property_T(sett)
2018-07-31 12:41:48 +02:00
end