init_data returns, Group, S and the laplacian

This commit is contained in:
kalmar 2017-06-07 11:06:54 +02:00
parent 95b06ccaf5
commit eee9b3b767
1 changed files with 10 additions and 9 deletions

View File

@ -206,19 +206,21 @@ end
function init_data(name::String, N::Int, logger; radius=2)
SOutFN = AutGroup(FreeGroup(N), special=true, outer=true)
info(logger, SOutFN)
S = generators(SOutFN);
S = [S; [inv(s) for s in S]]
info(logger, "Symmetric generating set of size $(length(S))")
info(logger, S)
ex(fname) = isfile(joinpath(name, fname))
conditions = ex.(["delta.jld", "pm.jld", "U_pis.jld", "orbits.jld"])
if !all(conditions)
SOutFN = AutGroup(FreeGroup(N), special=true, outer=true)
info(logger, SOutFN)
S = generators(SOutFN);
S = [S; [inv(s) for s in S]]
info(logger, "Symmetric generating set of size $(length(S))")
info(logger, S)
compute_orbit_data(logger, name, SOutFN, S, radius=radius)
end
return 0
return SOutFN, S, PropertyT.ΔandSDPconstraints(name, SOutFN)[1]
end
function main()
@ -239,8 +241,7 @@ function main()
Blas.set_num_threads(parsed_args["cpus"])
end
init_data(dirname, N, logger, radius=radius)
G, S, Δ = init_data(dirname, N, logger, radius=radius)
tol = parsed_args["tol"]
iterations = parsed_args["iterations"]