Presuming you mean the VRP with time windows variant:
Both VRP example variants follows their research spec (see docs for link).
The VRP with time windows spec indeed just counts the distance as time in the score function,
so given that the distance is specified in longitude/latitude, that means a vehicle has a static speed (whatever that amounts to).

The way most implementations deal with this (as well with other real-world requirements),
is to replace the connections from customer A to customer B
with real GPS navigation times.
See
  http://stackoverflow.com/questions/19410972/optaplanner-vrp-edge-weights-need-to-use-actual-gps-data-instead-of-euclidean-di

Also note that you can customize the score function (vehicleRoutingScoreRules.drl) to your business's needs.
Depending on your business, you might want to favor time optimization, fuel consumption optimization or a weighted score of both.

On 09-12-13 23:47, Suleyman Demirel wrote:
Hello everyone,

I have just found out about optaplanner and have been testing the vehicle routing problem on the examples provided. I am not able to see how we can change the speed of a vehicle using the data files provided. If my calculations are not wrong, the current assumption looks like a vehicle's speed is 30 kmh (or miles per hour, whichever is assumed to be used).

Does anyone know how that can be modified? Thanks.

--

Suleyman Demirel


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users