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
using JuMP, MosekTools
m = JuMP.Model(Mosek.Optimizer)
@variable(m, x)
@objective(m, Min, 1+x)
M = reshape([x],1,1)
@constraint(m, M in PSDCone())
optimize!(m)
ERROR: Invalid dimension for semidefinite constraint, got 1 which is smaller than the minimum dimension 2.
Stacktrace:
This can be fixed at the level of JuMP, for example:
length(M) == 1 ? @constraint(m, M[1,1] >= 0) : @constraint(m, M in PSDCone())
but perhaps a fix with MosekTools would give better user experience?
The text was updated successfully, but these errors were encountered:
This can be fixed at the level of JuMP, for example:
but perhaps a fix with MosekTools would give better user experience?
The text was updated successfully, but these errors were encountered: