| 252 | void SwapStar::update(Route *U) { isCached(U->idx(), 0) = false; } |
| 253 | |
| 254 | SwapStar::SwapStar(ProblemData const &data, double overlapTolerance) |
| 255 | : RouteOperator(data), |
| 256 | overlapTolerance(overlapTolerance), |
| 257 | insertCache(data.numVehicles(), data.numLocations()), |
| 258 | isCached(data.numVehicles(), data.numLocations()), |
| 259 | removalCosts(data.numVehicles(), data.numLocations()) |
| 260 | { |
| 261 | if (overlapTolerance < 0 || overlapTolerance > 1) |
| 262 | throw std::invalid_argument("overlap_tolerance must be in [0, 1]."); |
| 263 | } |
nothing calls this directly
no test coverage detected