Skip to content
Open
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
13 changes: 3 additions & 10 deletions test/test_mathoptvrp.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
using JuMP
using Test
using Vroom
import MathOptInterface as MOI
using MathOptVRP

# The wrapper has already stored routes per partition column on the
# inner `Vroom.Optimizer`, so `read_routes` just reads them back.
function _vroom_read_routes(model, _nodes)
return JuMP.unsafe_backend(model).routes
end

@testset "MathOptVRP.test_vrp" begin
# Vroom only supports the VRP variant here, so we invoke that test
# directly rather than running `MathOptVRP.Tests.runtests`.
MathOptVRP.Tests.test_vrp(Vroom.Optimizer; read_routes = _vroom_read_routes)
@testset "$test" for test in [MathOptVRP.Tests.test_tsp, MathOptVRP.Tests.test_vrp]
test(Vroom.Optimizer)
end
Loading