1

I have multiple shipments to deliver. Each shipment has a type A-Z. A vehicle can hold multiple items, but they must all be the same type. Once the last shipment is dropped off, a vehicle can pick up a shipment of a different type (they just can't be in the vehicle at the same time).

I think I need a StateUpdater to update a route with the current shipment type, and a HardActivityConstraint or HardRouteConstraint to reject the jobs as early as possible, but am not sure how to specifically do this.

Which interfaces should my StateUpdater implement?

StateUpdater, JobInsertedListener, InsertionStartsListener, InsertionEndsListener?

Which type of constraint do I want to implement in this case?

Sam Barnum
  • 10,559
  • 3
  • 54
  • 60
  • Found MultipleProductsWithLoadConstraintExample.java in the examples, and https://groups.google.com/forum/#!topic/jsprit-mailing-list/2JQqY4loC0U in that file's comments. Might solve this. – Sam Barnum May 06 '15 at 19:25
  • Exactly. The mentioned example should illustrate this. – Stefan Schröder May 07 '15 at 19:09

0 Answers0