update FPgroup.jl to PropertyTGroup interface
This commit is contained in:
parent
5ea5093f42
commit
16bc76e950
32
FPgroup.jl
32
FPgroup.jl
@ -7,11 +7,11 @@ function parse_commandline()
|
|||||||
"--tol"
|
"--tol"
|
||||||
help = "set numerical tolerance for the SDP solver"
|
help = "set numerical tolerance for the SDP solver"
|
||||||
arg_type = Float64
|
arg_type = Float64
|
||||||
default = 1e-14
|
default = 1e-6
|
||||||
"--iterations"
|
"--iterations"
|
||||||
help = "set maximal number of iterations for the SDP solver (default: 20000)"
|
help = "set maximal number of iterations for the SDP solver"
|
||||||
arg_type = Int
|
arg_type = Int
|
||||||
default = 60000
|
default = 50000
|
||||||
"--upper-bound"
|
"--upper-bound"
|
||||||
help = "Set an upper bound for the spectral gap"
|
help = "Set an upper bound for the spectral gap"
|
||||||
arg_type = Float64
|
arg_type = Float64
|
||||||
@ -27,7 +27,7 @@ function parse_commandline()
|
|||||||
"--warmstart"
|
"--warmstart"
|
||||||
help = "Use warmstart.jl as the initial guess for SCS"
|
help = "Use warmstart.jl as the initial guess for SCS"
|
||||||
action = :store_true
|
action = :store_true
|
||||||
"-MCG"
|
"--MCG"
|
||||||
help = "Compute for mapping class group of surface of genus N"
|
help = "Compute for mapping class group of surface of genus N"
|
||||||
arg_type = Int
|
arg_type = Int
|
||||||
required = false
|
required = false
|
||||||
@ -43,27 +43,19 @@ function parse_commandline()
|
|||||||
end
|
end
|
||||||
const PARSEDARGS = parse_commandline()
|
const PARSEDARGS = parse_commandline()
|
||||||
|
|
||||||
using AbstractAlgebra
|
|
||||||
using PropertyT
|
|
||||||
using Groups
|
|
||||||
|
|
||||||
include("CPUselect.jl")
|
include("CPUselect.jl")
|
||||||
set_parallel_mthread(PARSEDARGS, workers=false)
|
set_parallel_mthread(PARSEDARGS, workers=false)
|
||||||
|
|
||||||
include("main_gapgroup.jl")
|
include("main.jl")
|
||||||
|
|
||||||
if PARSEDARGS["Caprace"]
|
if PARSEDARGS["Caprace"]
|
||||||
include("groups/caprace.jl")
|
G = PropertyTGroups.CapraceGroup()
|
||||||
main(CapraceGroup, PARSEDARGS)
|
|
||||||
|
|
||||||
elseif PARSEDARGS["Higman"]
|
elseif PARSEDARGS["Higman"]
|
||||||
include("groups/higman.jl")
|
G = PropertyTGroups.HigmanGroup()
|
||||||
main(HigmanGroup, PARSEDARGS)
|
elseif PARSEDARGS["MCG"] != nothing
|
||||||
|
G = PropertyTGroups.MappingClassGroup(parse_args)
|
||||||
elseif PARSEDARGS["N"] != nothing
|
|
||||||
include("groups/mappingclassgroup.jl")
|
|
||||||
main(MappingClassGroups, PARSEDARGS)
|
|
||||||
|
|
||||||
else
|
else
|
||||||
warn("You need to specify one of the --Higman, --Caprace, -MCG N")
|
throw("You need to specify one of the --Higman, --Caprace, --MCG N")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
main(G)
|
||||||
|
Loading…
Reference in New Issue
Block a user