2017-06-22 15:18:26 +02:00
|
|
|
|
using ArgParse
|
2017-06-08 20:09:36 +02:00
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
#
|
|
|
|
|
# Parsing command line
|
|
|
|
|
#
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
function parse_commandline()
|
|
|
|
|
settings = ArgParseSettings()
|
|
|
|
|
|
|
|
|
|
@add_arg_table settings begin
|
|
|
|
|
"--tol"
|
2017-09-10 15:41:49 +02:00
|
|
|
|
help = "set numerical tolerance for the SDP solver"
|
2017-06-08 20:09:36 +02:00
|
|
|
|
arg_type = Float64
|
2018-07-31 12:41:48 +02:00
|
|
|
|
default = 1e-6
|
2017-06-08 20:09:36 +02:00
|
|
|
|
"--iterations"
|
2018-03-22 11:03:11 +01:00
|
|
|
|
help = "set maximal number of iterations for the SDP solver"
|
2017-06-08 20:09:36 +02:00
|
|
|
|
arg_type = Int
|
2018-07-31 12:41:48 +02:00
|
|
|
|
default = 50000
|
2017-06-08 20:09:36 +02:00
|
|
|
|
"--upper-bound"
|
2017-09-10 15:41:49 +02:00
|
|
|
|
help = "Set an upper bound for the spectral gap"
|
2017-06-08 20:09:36 +02:00
|
|
|
|
arg_type = Float64
|
|
|
|
|
default = Inf
|
|
|
|
|
"--cpus"
|
2017-09-10 15:41:49 +02:00
|
|
|
|
help = "Set number of cpus used by solver"
|
2017-06-08 20:09:36 +02:00
|
|
|
|
arg_type = Int
|
|
|
|
|
required = false
|
2018-07-31 12:41:48 +02:00
|
|
|
|
"--radius"
|
|
|
|
|
help = "Radius of ball B_r(e,S) to find solution over"
|
2017-06-08 20:09:36 +02:00
|
|
|
|
arg_type = Int
|
|
|
|
|
default = 2
|
2018-07-31 12:41:48 +02:00
|
|
|
|
"--warmstart"
|
|
|
|
|
help = "Use warmstart.jld as the initial guess for SCS"
|
|
|
|
|
action = :store_true
|
|
|
|
|
"--nosymmetry"
|
|
|
|
|
help = "Don't use symmetries of the Laplacian"
|
|
|
|
|
action = :store_true
|
2017-06-08 20:09:36 +02:00
|
|
|
|
"-p"
|
2017-09-10 15:41:49 +02:00
|
|
|
|
help = "Matrices over field of p-elements (p=0 => over ZZ)"
|
2017-06-08 20:09:36 +02:00
|
|
|
|
arg_type = Int
|
|
|
|
|
default = 0
|
2017-08-01 15:07:05 +02:00
|
|
|
|
"-X"
|
2017-09-10 15:41:49 +02:00
|
|
|
|
help = "Consider EL(N, ZZ⟨X⟩)"
|
2017-08-01 15:07:05 +02:00
|
|
|
|
action = :store_true
|
2018-07-31 12:41:48 +02:00
|
|
|
|
"N"
|
|
|
|
|
help = "Compute with the group generated by elementary matrices of size n×n"
|
|
|
|
|
arg_type = Int
|
|
|
|
|
default = 2
|
2017-06-08 20:09:36 +02:00
|
|
|
|
end
|
|
|
|
|
return parse_args(settings)
|
|
|
|
|
end
|
2018-01-04 10:50:26 +01:00
|
|
|
|
const PARSEDARGS = parse_commandline()
|
2017-06-08 20:09:36 +02:00
|
|
|
|
|
2017-11-06 14:24:50 +01:00
|
|
|
|
include("CPUselect.jl")
|
2018-01-04 10:50:26 +01:00
|
|
|
|
set_parallel_mthread(PARSEDARGS, workers=true)
|
2017-06-08 21:35:27 +02:00
|
|
|
|
|
2018-07-31 12:41:48 +02:00
|
|
|
|
include("main.jl")
|
2017-11-06 14:24:50 +01:00
|
|
|
|
|
2018-08-08 00:28:15 +02:00
|
|
|
|
G = PropertyTGroups.SpecialLinearGroup(PARSEDARGS)
|
|
|
|
|
|
|
|
|
|
if PARSEDARGS["nosymmetry"]
|
|
|
|
|
main(Standard, G)
|
|
|
|
|
else
|
|
|
|
|
main(Symmetrize, G)
|
|
|
|
|
end
|