hihell
hihell

Reputation: 946

jsprit how to add a shipment to a specified vehicle

I have a shipment need a specified vehicle to deliver (not because of it has size constraint or tight time window).

How can I achieve this?

Many thanks

Upvotes: 1

Views: 408

Answers (1)

Cédric Alexis
Cédric Alexis

Reputation: 111

Try using the skill / required skill for this.

Skills are on vehicles and required skills on services, shipments and delivery.

I think that you can try to add a capacity dimension too.

See this exemple : https://github.com/graphhopper/jsprit/blob/master/jsprit-examples/src/main/java/com/graphhopper/jsprit/examples/MultipleProductsWithLoadConstraintExample.java

But try with the skills first ;).

Upvotes: 3

Related Questions