Skip to content
Snippets Groups Projects
Commit 4a12795d authored by Romain BERNARD's avatar Romain BERNARD
Browse files

refactor function name to be clearer

parent 9bc0f8c6
No related branches found
No related tags found
1 merge request!2Route manipulation API with automatic constraint propagation
......@@ -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) {
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment