GroupsWithPropertyT/Orbit.jl

54 lines
1.5 KiB
Julia
Raw Normal View History

2017-11-06 02:01:55 +01:00
using SCS.SCSSolver
# using Mosek
# using CSDP
# using SDPA
2017-11-06 02:01:55 +01:00
using Nemo
using PropertyT
using Groups
function main(GROUP, parsed_args)
radius = parsed_args["radius"]
tol = parsed_args["tol"]
iterations = parsed_args["iterations"]
upper_bound = parsed_args["upper-bound"]
2017-12-21 13:10:24 +01:00
warm = parsed_args["warmstart"]
2017-11-06 02:01:55 +01:00
name, N = GROUP.groupname(parsed_args)
G, S = GROUP.generatingset(parsed_args)
2017-11-08 11:55:34 +01:00
autS = GROUP.autS(parsed_args)
2017-11-06 02:01:55 +01:00
name = "o$(name)_r$radius"
2017-11-06 02:01:55 +01:00
isdir(name) || mkdir(name)
logger = PropertyT.setup_logging(joinpath(name, "$(upper_bound)"))
info(logger, "Group: $name")
info(logger, "Iterations: $iterations")
info(logger, "Precision: $tol")
info(logger, "Upper bound: $upper_bound")
info(logger, "Threads: $(Threads.nthreads())")
info(logger, "Workers: $(workers())")
info(logger, G)
info(logger, "Symmetric generating set of size $(length(S))")
# info(logger, S)
solver = SCSSolver(eps=tol, max_iters=iterations, linearsolver=SCS.Direct, alpha=1.9, acceleration_lookback=1)
2017-11-06 02:01:55 +01:00
# solver = Mosek.MosekSolver(
# MSK_DPAR_INTPNT_CO_TOL_REL_GAP=tol,
# MSK_IPAR_INTPNT_MAX_ITERATIONS=iterations,
# QUIET=false)
# solver = CSDP.CSDPSolver(axtol=tol, atytol=tol, objtol=tol, minstepp=tol*10.0^-1, minstepd=tol*10.0^-1)
# solver = SDPA.SDPASolver(epsilonStar=tol, epsilonDash=tol)
sett = Settings(name, N, G, S, autS, radius, solver, upper_bound, tol, warm, logger)
2017-11-06 02:01:55 +01:00
PropertyT.check_property_T(sett)
end