From d1fb62cb8c53c9ef79d37837bc2bbce05244ef29 Mon Sep 17 00:00:00 2001 From: kalmar Date: Sun, 28 May 2017 20:01:52 +0200 Subject: [PATCH] length(::GroupRing) is the size of support, not of coeffs --- src/sdps.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdps.jl b/src/sdps.jl index e6c14d8..b051796 100644 --- a/src/sdps.jl +++ b/src/sdps.jl @@ -56,7 +56,7 @@ end function create_SDP_problem(matrix_constraints, Δ::GroupRingElem; upper_bound=Inf) N = size(parent(Δ).pm, 1) Δ² = Δ*Δ - @assert length(Δ) == length(matrix_constraints) + @assert length(Δ.coeffs) == length(matrix_constraints) m = JuMP.Model(); JuMP.@variable(m, P[1:N, 1:N], SDP) JuMP.@SDconstraint(m, P >= 0)