Skip to content

Commit 9e4737b

Browse files
committed
cleanup
1 parent 3d2ba74 commit 9e4737b

5 files changed

Lines changed: 10 additions & 11 deletions

File tree

ext/plots/dvs_plots.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ function _plot_static_instance(
4242
return fig
4343
end
4444

45-
function _plot_static_instance(instance::DVS.StaticInstance; kwargs...)
46-
x_depot, y_depot, x, y = DVS.build_instance_data(instance)
47-
return _plot_static_instance(x_depot, y_depot, x, y; kwargs...)
48-
end
49-
5045
# ── plot_state ───────────────────────────────────────────────────────────────
5146

5247
"""

src/DynamicVehicleScheduling/DynamicVehicleScheduling.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ include("utils.jl")
4242
include("static_vsp/instance.jl")
4343
include("static_vsp/parsing.jl")
4444
include("static_vsp/solution.jl")
45-
include("static_vsp/instance_data.jl")
4645

4746
include("instance.jl")
4847
include("state.jl")

src/DynamicVehicleScheduling/static_vsp/instance_data.jl

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/argmax_2d.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@
1616
gap = compute_gap(b, dataset, model, maximizer)
1717
@test gap >= 0
1818

19+
@test has_visualization(b)
1920
figure = plot_solution(b, dataset[1])
2021
@test figure isa Plots.Plot
22+
figure2 = plot_instance(b, dataset[1])
23+
@test figure2 isa Plots.Plot
24+
figure3 = plot_solution(b, dataset[1], dataset[2].y)
25+
@test figure3 isa Plots.Plot
2126

2227
for (i, sample) in enumerate(dataset)
2328
x = sample.x

test/warcraft.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@
1313
bellman_maximizer = generate_maximizer(b; dijkstra=false)
1414
dijkstra_maximizer = generate_maximizer(b; dijkstra=true)
1515

16+
@test has_visualization(b)
1617
figure = plot_solution(b, dataset[1])
1718
@test figure isa Plots.Plot
19+
figure2 = plot_instance(b, dataset[1])
20+
@test figure2 isa Plots.Plot
21+
figure3 = plot_solution(b, dataset[1], dataset[2].y)
22+
@test figure3 isa Plots.Plot
1823
gap = compute_gap(b, dataset, model, dijkstra_maximizer)
1924
@test gap >= 0
2025

0 commit comments

Comments
 (0)