GroupsWithPropertyT/FPgroup.jl

70 lines
1.7 KiB
Julia
Raw Normal View History

2017-12-29 17:45:09 +01:00
using ArgParse
2018-01-04 22:08:32 +01:00
function parse_commandline()
args = ArgParseSettings()
@add_arg_table args begin
"--tol"
help = "set numerical tolerance for the SDP solver"
arg_type = Float64
default = 1e-14
"--iterations"
help = "set maximal number of iterations for the SDP solver (default: 20000)"
arg_type = Int
default = 60000
"--upper-bound"
help = "Set an upper bound for the spectral gap"
arg_type = Float64
default = Inf
"--cpus"
help = "Set number of cpus used by solver (default: auto)"
arg_type = Int
required = false
"--radius"
help = "Radius of ball B_r(e,S) to find solution over"
arg_type = Int
default = 2
2018-01-04 22:08:32 +01:00
"--warmstart"
help = "Use warmstart.jl as the initial guess for SCS"
action = :store_true
2018-07-31 16:54:35 +02:00
"-MCG"
help = "Compute for mapping class group of surface of genus N"
arg_type = Int
required = false
"--Higman"
help = "Compute for Higman Group"
action = :store_true
"--Caprace"
help = "Compute for Higman Group"
action = :store_true
2018-01-04 22:08:32 +01:00
end
return parse_args(args)
end
const PARSEDARGS = parse_commandline()
2018-07-31 16:54:35 +02:00
using AbstractAlgebra
2018-01-04 22:08:32 +01:00
using PropertyT
using Groups
2018-07-31 16:54:35 +02:00
include("CPUselect.jl")
set_parallel_mthread(PARSEDARGS, workers=false)
2017-12-29 17:45:09 +01:00
2018-07-31 16:54:35 +02:00
include("main_gapgroup.jl")
2017-12-29 17:45:09 +01:00
2018-07-31 16:54:35 +02:00
if PARSEDARGS["Caprace"]
include("groups/caprace.jl")
main(CapraceGroup, PARSEDARGS)
2017-12-29 17:45:09 +01:00
2018-07-31 16:54:35 +02:00
elseif PARSEDARGS["Higman"]
include("groups/higman.jl")
main(HigmanGroup, PARSEDARGS)
2017-12-29 17:45:09 +01:00
2018-07-31 16:54:35 +02:00
elseif PARSEDARGS["N"] != nothing
include("groups/mappingclassgroup.jl")
main(MappingClassGroups, PARSEDARGS)
2017-12-29 17:45:09 +01:00
2018-07-31 16:54:35 +02:00
else
warn("You need to specify one of the --Higman, --Caprace, -MCG N")
2017-12-29 17:45:09 +01:00
end