Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/Bridges/Constraint/geomean.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ function bridge_constraint(
s::MOI.GeometricMeanCone,
) where {T,F,G,H}
d = s.dimension
if d <= 1
# TODO change to a standard error: https://github.com/jump-dev/MathOptInterface.jl/issues/967
error("Dimension of GeometricMeanCone must be greater than 1.")
end
n = d - 1
l = ilog2(n)
N = 1 << l
Expand Down
6 changes: 2 additions & 4 deletions src/FileFormats/SDPA/SDPA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,8 @@ function Base.write(io::IO, model::Model{T}) where {T}
end
println(io)

index_map = Vector{Tuple{Int,Int}}(
undef,
MOI.dimension(MOI.PositiveSemidefiniteConeTriangle(max_dim)),
)
max_index_dim = MOI.dimension(MOI.PositiveSemidefiniteConeTriangle(max_dim))
index_map = Vector{Tuple{Int,Int}}(undef, max_index_dim)
k = 0
for col in 1:max_dim
for row in 1:col
Expand Down
Loading