mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-25 02:15:29 +01:00
return both model and optimisation variables
This commit is contained in:
parent
9aa427fe8e
commit
ae5b37e177
@ -53,7 +53,7 @@ function laplacian_coeff(S, basis)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function create_SDP_problem(matrix_constraints, Δ::GroupRingElem; upper_bound=Inf)
|
function create_SDP_problem(Δ::GroupRingElem, matrix_constraints; upper_bound=Inf)
|
||||||
N = size(parent(Δ).pm, 1)
|
N = size(parent(Δ).pm, 1)
|
||||||
Δ² = Δ*Δ
|
Δ² = Δ*Δ
|
||||||
@assert length(Δ.coeffs) == length(matrix_constraints)
|
@assert length(Δ.coeffs) == length(matrix_constraints)
|
||||||
@ -74,7 +74,7 @@ function create_SDP_problem(matrix_constraints, Δ::GroupRingElem; upper_bound=I
|
|||||||
|
|
||||||
JuMP.@objective(m, Max, λ)
|
JuMP.@objective(m, Max, λ)
|
||||||
|
|
||||||
return m
|
return m, λ, P
|
||||||
end
|
end
|
||||||
|
|
||||||
function solve_SDP(SDP_problem, solver)
|
function solve_SDP(SDP_problem, solver)
|
||||||
|
Loading…
Reference in New Issue
Block a user