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

25 lines
603 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) =
2019-02-21 16:31:38 +01:00
with_optimizer(SCS.Optimizer,
linear_solver=SCS.Direct, max_iters=iters,
acceleration_lookback=accel, eps=1e-10, warm_start=true)
2019-01-14 17:44:35 +01:00
2019-02-21 16:31:38 +01:00
include("1703.09680.jl")
include("1712.07167.jl")