From eee9b3b767bde0780bd011bac44c5622b268e230 Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 7 Jun 2017 11:06:54 +0200 Subject: [PATCH] init_data returns, Group, S and the laplacian --- Orb_AutFN.jl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Orb_AutFN.jl b/Orb_AutFN.jl index 4df50b4..ddccb3d 100644 --- a/Orb_AutFN.jl +++ b/Orb_AutFN.jl @@ -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"]