mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-30 01:55:28 +01:00
simpler @SDconstraint
This commit is contained in:
parent
0ff1ddd985
commit
913962d9e6
@ -53,7 +53,7 @@ function create_SDP_problem(matrix_constraints, Δ::GroupAlgebraElement)
|
|||||||
@assert length(Δ) == length(matrix_constraints)
|
@assert length(Δ) == length(matrix_constraints)
|
||||||
m = JuMP.Model();
|
m = JuMP.Model();
|
||||||
JuMP.@variable(m, A[1:N, 1:N], SDP)
|
JuMP.@variable(m, A[1:N, 1:N], SDP)
|
||||||
JuMP.@SDconstraint(m, A >= zeros(size(A)))
|
JuMP.@SDconstraint(m, A >= 0)
|
||||||
JuMP.@variable(m, κ >= 0.0)
|
JuMP.@variable(m, κ >= 0.0)
|
||||||
JuMP.@constraint(m, κ <= 0.26)
|
JuMP.@constraint(m, κ <= 0.26)
|
||||||
JuMP.@objective(m, Max, κ)
|
JuMP.@objective(m, Max, κ)
|
||||||
|
Loading…
Reference in New Issue
Block a user