Frequently asked question

Is it possible to set up one-to-many order pairs in a vehicle routing problem?

Last Published: April 25, 2020

Answer

No, it is not possible to set up one-to-many order pairs in a vehicle routing problem (VRP). Ordered pairs in a VRP are strictly a one-to-one relationship. The problem arises when adding extra records to the Order Pairs table to reflect the different stops, the Network Analyst solver fails with the following messages:

Error:   
Warning: Order Pairs (FirstOrderName = "[Name]" has a SecondOrderName value for an order that is already paired.
Warning: Order Pairs (FirstOrderName = "[Name]", SecondOrderName = "[Name2]") has a SecondOrderName value for an order that is already paired.

As a workaround, create duplicate stops for each extra delivery address in the order pairs Excel table. For example, if the situation is to deliver from Store A ten packages to Shop A and another ten packages to Shop B, create a duplicate record in the OrderName1 with a different name but with the same location address.

Order Pair Table

For more information on vehicle routing problem analysis, refer to the following ArcGIS Web Help page: Vehicle routing problem analysis

Article ID:000013547

Software:
  • ArcMap

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options