mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-10-18 08:50:35 +02:00
remove unused (old) constraints function
This commit is contained in:
parent
6e9cc8e0f6
commit
903c1683ff
@ -37,19 +37,6 @@ function sos_problem_dual(
|
|||||||
return model
|
return model
|
||||||
end
|
end
|
||||||
|
|
||||||
function constraints(
|
|
||||||
mstr::AbstractMatrix{<:Integer},
|
|
||||||
total_length=maximum(mstr),
|
|
||||||
)
|
|
||||||
cnstrs = [Vector{eltype(mstr)}() for _ = 1:total_length]
|
|
||||||
li = LinearIndices(mstr)
|
|
||||||
|
|
||||||
for (idx, val) in pairs(mstr)
|
|
||||||
push!(cnstrs[val], li[idx])
|
|
||||||
end
|
|
||||||
return cnstrs
|
|
||||||
end
|
|
||||||
|
|
||||||
function constraints(
|
function constraints(
|
||||||
basis::StarAlgebras.AbstractBasis,
|
basis::StarAlgebras.AbstractBasis,
|
||||||
mstr::AbstractMatrix{<:Integer};
|
mstr::AbstractMatrix{<:Integer};
|
||||||
|
Loading…
Reference in New Issue
Block a user