@@ -15,9 +15,11 @@ bool BestInsertionHeuristic::tryVehicleBestInsertion(size_t requestId, size_t ve
BestInsertionQueuebestInsertionsQueue=route.getBestFeasibleInsertionsQueue(requestId,vehicleId);//TODO: check perfs between BestInsertionsQueue vs BestFeasibleInsertionsQueue
boolbestInsertionFound=false;
BestRequestInsertioncurrentBestInsertion;
DEBUG_MSG("Trying to insert request "+std::to_string(requestId)+" in vehicle "+std::to_string(vehicleId));
DEBUG_MSG("Trying to insert request "+std::to_string(requestId)+" in vehicle "+std::to_string(vehicleId)+" queue size : "+std::to_string(bestInsertionsQueue.size()));
* Iteratively attempts insertions in the currently active vehicles in two steps :
* 1) creates a global best insertion list for all active vehicles
* 2) tries every insertions from best to worst
* 3) return the ID of the vehicle in which the request was inserted if an active vehicle was viable, return the most favourable inactive vehicle's ID otherwise
* @param requestId ID of the request to insert in the route
* @param route the route structure in which the request will be inserted
* @return The ID of the active vehicle in which our request was inserted, or the ID of the most favourable inactive vehicle