From 4a12795de71676643f2b296440d7749aba55d4a9 Mon Sep 17 00:00:00 2001 From: Romain BERNARD <romain.bernard@uca.fr> Date: Thu, 20 Jun 2024 17:35:52 +0200 Subject: [PATCH] refactor function name to be clearer --- src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp | 2 +- src/algorithm/DARP/Heuristics/BestInsertionHeuristic.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp b/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp index 8352a77..9293f0d 100644 --- a/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp +++ b/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp @@ -32,7 +32,7 @@ bool BestInsertionHeuristic::tryVehicleBestInsertion(size_t requestId, size_t ve return bestInsertionFound; } -size_t BestInsertionHeuristic::doRouteBestInsertion(size_t requestId, SAEVRoute route) { +size_t BestInsertionHeuristic::doBestRequestInsertionForRoute(size_t requestId, SAEVRoute route) { size_t vehicleId = 0; bool insertionSuccess{false}; while(vehicleId <= route.getLastActiveVehicleId() + 1 && !insertionSuccess) { diff --git a/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.h b/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.h index 2dff9d6..04641b0 100644 --- a/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.h +++ b/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.h @@ -16,7 +16,7 @@ class BestInsertionHeuristic { * @param route the route structure in which the request will be inserted * @return ID of the vehicle in which the request has been */ - static size_t doRouteBestInsertion(size_t requestId, SAEVRoute route); + static size_t doBestRequestInsertionForRoute(size_t requestId, SAEVRoute route); /** * Iteratively tests best insertions wrt scoring function (detour) in the given vehicle and route * @param requestId ID of the request to insert in the vehicle -- GitLab