1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-01 18:20:29 +01:00
PropertyT.jl/test/runtests.jl

26 lines
627 B
Julia
Raw Normal View History

2019-01-14 17:44:35 +01:00
using AbstractAlgebra, Nemo, Groups, SCS
using SparseArrays
using JLD
2019-01-14 17:44:35 +01:00
using PropertyT
using Test
2019-02-21 16:31:38 +01:00
using JuMP
2019-01-14 17:44:35 +01:00
indexing(n) = [(i,j) for i in 1:n for j in (i+1):n]
function Groups.gens(M::MatSpace)
2019-02-21 16:31:38 +01:00
@assert ncols(M) == nrows(M)
N = ncols(M)
2019-01-14 17:44:35 +01:00
E(i,j) = begin g = M(1); g[i,j] = 1; g end
S = [E(i,j) for (i,j) in indexing(N)]
S = [S; transpose.(S)]
return S
end
solver(iters; accel=1) =
with_optimizer(SCS.Optimizer,
2019-02-21 16:31:38 +01:00
linear_solver=SCS.Direct, max_iters=iters,
acceleration_lookback=accel, eps=1e-10, warm_start=true)
2019-02-21 16:31:38 +01:00
include("1703.09680.jl")
include("1712.07167.jl")
include("SOS_correctness.jl")