You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I contribute to PowerModelsDistribution. Ideally, we would like to use JuMP's support for matrix variables with symmetry more broadly.
As we start from a complex-value problem with Hermitian matrix variables, we would love to see support for both symmetric (real part) and skew-symmetric (imaginary part) matrix variables. We have a work-around, but the printing of the variables looks different from other variables.
We can do something like the following to make sets of full and symmetric matrix variables:
Dict(i => JuMP.@variable(pm.model,
[c in 1:N, d in 1:N], base_name="P_$(i)",
) for i in ids )
Dict(i => JuMP.@variable(pm.model,
[c in 1:N, d in 1:N], base_name="Wr_$(i)", Symmetric
) for i in ids )
but the following is not supported:
Dict(i => JuMP.@variable(pm.model,
[c in 1:N, d in 1:N], base_name="Wi_$(i)", SkewSymmetric
) for i in ids )
Ideally, this would have (support for) zeros on the diagonal as well.
I contribute to PowerModelsDistribution. Ideally, we would like to use JuMP's support for matrix variables with symmetry more broadly.
As we start from a complex-value problem with Hermitian matrix variables, we would love to see support for both symmetric (real part) and skew-symmetric (imaginary part) matrix variables. We have a work-around, but the printing of the variables looks different from other variables.
We can do something like the following to make sets of full and symmetric matrix variables:
but the following is not supported:
Ideally, this would have (support for) zeros on the diagonal as well.
After some preliminary digging, it seems Julia does not have skew symmetric matrix variable primitives (https://docs.julialang.org/en/v1/stdlib/LinearAlgebra/#Special-matrices-1, somewhat related discussion in JuliaLang/LinearAlgebra.jl#417)
The text was updated successfully, but these errors were encountered: