I know it is possible to solve a VRP problem using OptaPlanner. I would like to know if it is possible to route a Heterogeneous Fleet of Vehicles using OptaPlanner.
I know it is possible to solve a VRP problem using OptaPlanner. I would like to know if it is possible to route a Heterogeneous Fleet of Vehicles using OptaPlanner.
Yes, it's been done before.
Just change the
(Vrp)Vehicleclass accordingly. Currently it already has acapacity, so you can already model vehicles with different capacities. But it's trivial to add other properties (such asmaximumSpeed,driverLicenseLevelRequirementEnum,safeAgainstRobberyBoolean, ...).Then simply use those properties in your new/existing score constraints.