mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-14 06:10:28 +01:00
length(::GroupRing) is the size of support, not of coeffs
This commit is contained in:
parent
347c09c598
commit
d1fb62cb8c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user