Skip to content

Commit ff5032a

Browse files
odowmlubin
authored andcommitted
Remove dead comments (#1702)
It makes no sense to broadcast over a sparse matrix of variables. Instead, we have `Containers.SparseAxisArray`. Closes #1448.
1 parent 0b2f855 commit ff5032a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/variable.jl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -538,23 +538,6 @@ function variables_test(ModelType::Type{<:JuMP.AbstractModel},
538538
test_variable_unsigned_index(ModelType)
539539
end
540540

541-
# TODO(#1448): Decide what to do here.
542-
# @testset "getstart on sparse array (#889)" begin
543-
# model = ModelType()
544-
# @variable(model, x)
545-
# @variable(model, y)
546-
# X = sparse([1, 3], [2, 3], [x, y])
547-
#
548-
# @test typeof(X) == SparseMatrixCSC{VariableRefType, Int}
549-
#
550-
# setstart(x, 1)
551-
# setstart(y, 2)
552-
#
553-
# Y = getstart.(X)
554-
# @test typeof(Y) == SparseMatrixCSC{Float64, Int}
555-
# @test Y == sparse([1, 3], [2, 3], [1, 2])
556-
# end
557-
558541
@testset "Symmetric variable" begin
559542
test_variable_symmetric(ModelType)
560543
end

0 commit comments

Comments
 (0)