Skip to content
Merged
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
8 changes: 4 additions & 4 deletions test/optimal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ asymmetric_params = vcat(
algo = GreedyColoringAlgorithm()
optalgo = OptimalColoringAlgorithm(() -> MiniZinc.Optimizer{Float64}("highs"); silent=false)

# TODO: reactivate tests once https://github.com/jump-dev/MiniZinc.jl/issues/103 is fixed

@testset "Column coloring" begin
problem = ColoringProblem(; structure=:nonsymmetric, partition=:column)
for (m, n, p) in asymmetric_params
A = sprand(rng, m, n, p)
result = coloring(A, problem, algo)
optresult = coloring(A, problem, optalgo)
@test ncolors(result) >= ncolors(optresult)
@test_skip ncolors(result) >= ncolors(coloring(A, problem, optalgo))
end
end

Expand All @@ -30,8 +31,7 @@ end
for (m, n, p) in asymmetric_params
A = sprand(rng, m, n, p)
result = coloring(A, problem, algo)
optresult = coloring(A, problem, optalgo)
@test ncolors(result) >= ncolors(optresult)
@test_skip ncolors(result) >= ncolors(coloring(A, problem, optalgo))
end
end

Expand Down
Loading