flyingdragon
flyingdragon

Reputation: 31

Does optaplanner out of box support VRP with multiple trips and no depot

I am working on a VRP with the following characteristics:

Essentially, it's like a taxi system. It seems to me that it's a VRP with multiple trips(VRPMT) and no depot (Open VRP). I'd like to know

  1. Does optaplanner has support for VPRMT and OVRP out of box?
  2. If VPRMT and OVRP are not supported out of box, how easy is it to modify the existing CVRP/CVRPTW examples to make it solve OVRP and VPRMT?
  3. Maybe I am on the wrong track and it's not even a VRP. If so, what would be the right planning problem for the taxi like system?

Many thanks in advance!

Upvotes: 2

Views: 759

Answers (1)

Geoffrey De Smet
Geoffrey De Smet

Reputation: 27312

  1. No, the examples don't include pickup and delivery or multiple trips yet
  2. Users have done it before to add Pickup and Delivery (which is easy if multiple customers cannot be in the vehicle at the same time (otherwise it's harder and I might add an example for that way some day). Multiple trips and open VRP should by easy (although I think your parking station is a depot and you probably don't have multiple trips, just multiple customer sequentially in the same trip).
  3. This is definitely a variant of VRP. Do note that every business has their own flavor of VRP. You'll always find some custom constraints (now or later in the development process). OptaPlanner allows you to add those custom constraints as needed.

Try this: Take the OptaPlanner VRP example, rename Depot to ParkingStation. Split up Customer's Location into pickupLocation and deliveryLocation and adjust the score rules so the soft score is the sum of:

  • all pickup to delivery distances
  • all delivery to next pickup distances
  • each parking to first pickup distance
  • each last delivery to parking distance

Upvotes: 2

Related Questions