julia> import COSMO, SparseArrays
julia> T = BigFloat
BigFloat
julia> A = SparseArrays.spdiagm(0 => ones(T, 4))
4×4 SparseArrays.SparseMatrixCSC{BigFloat, Int64} with 4 stored entries:
1.0 ⋅ ⋅ ⋅
⋅ 1.0 ⋅ ⋅
⋅ ⋅ 1.0 ⋅
⋅ ⋅ ⋅ 1.0
julia> b = zeros(T, 4)
4-element Vector{BigFloat}:
0.0
0.0
0.0
0.0
julia> constraint = COSMO.Constraint(A, b, COSMO.PsdCone)
Constraint{BigFloat}
Size of A: (4, 4)
ConvexSet: COSMO.PsdCone{BigFloat}
julia> COSMO.type_checks([constraint])
julia> COSMO.type_checks(constraint.convex_set)
ERROR: ArgumentError: COSMO currently does not support the combination of PSD constraints and BigFloat.
Stacktrace:
[1] type_checks(convex_set::COSMO.PsdCone{BigFloat})
@ COSMO ~/.julia/dev/COSMO/src/interface.jl:391
[2] top-level scope
@ REPL[27]:1
Opening this issue so I can track. I'll simplify a reproducible example and then report upstream. A temporary work-around is probably to break apart the Union.
I've been looking into why COSMO is failing on Julia v1.9, and I think it's a compiler bug.
Here are the three methods:
https://github.com/oxfordcontrol/COSMO.jl/blob/c95bf89f111a83f52febf326615a091ad0418f00/src/interface.jl#L384-L391
Opening this issue so I can track. I'll simplify a reproducible example and then report upstream. A temporary work-around is probably to break apart the
Union
.