Tests that the fleet minimisation procedure attains the lower bound on this particular X instance.
()
| 64 | |
| 65 | |
| 66 | def test_X_instance(): |
| 67 | """ |
| 68 | Tests that the fleet minimisation procedure attains the lower bound on this |
| 69 | particular X instance. |
| 70 | """ |
| 71 | data = read("data/X-n101-50-k13.vrp", round_func="round") |
| 72 | assert_equal(data.num_vehicles, 100) |
| 73 | |
| 74 | vehicle_type = minimise_fleet(data, MaxIterations(10)) |
| 75 | data = data.replace(vehicle_types=[vehicle_type]) |
| 76 | assert_equal(data.num_vehicles, 13) |
| 77 | |
| 78 | |
| 79 | def test_lower_bound_multi_trip_instance(ok_small_multiple_trips): |
nothing calls this directly
no test coverage detected