如何优化分配给车辆的任务,使每辆车行驶的距离相同或相等?

2024-06-16 13:41:12 发布

您现在位置:Python中文网/ 问答频道 /正文

在这里,一辆车行驶73英里,另一辆车行驶7英里。你知道吗

Route for vehicle 0: 0 -> 10 -> 11 -> 12 -> 1 -> 3 -> 2 -> 5 -> 7 -> 6 -> 9 -> 0 Distance of the route: 73 miles Route for vehicle 1: 0 -> 4 -> 8 -> 0 Distance of the route: 7 miles Total Distance of all routes: 80 miles

我想以一种均匀分配任务的方式,每辆车行驶相等的距离。你知道吗

例如: 车辆1:50英里 车辆2:45英里 车辆3:55英里

每辆车最多行驶50英里。你知道吗


Tags: oftheforallroutedistancetotalvehicle