Is it possible to define a seperate cost matrix for every vehicle type in Jsprit? I have a number of very different vehicle types (trucks, bikes, cars, electrical pickups etc.) and every type has its own cost matrix. The matrices are not linearly dependent, therefore working with different cost factors for distance and time is not an option. The VRP has infinite fleet size.
I use JSprit 1.6.2 and implemented the AbstractForwardVehicleRoutingTransportCosts-Interface. Both of its methods have a vehicle parameter that I use to select the correct matrix, but the passed values are always null and subsequently a NullPointerException is thrown. Any ideas why this approach is not working and how I can get it to work?
Thanks in advance!