Complexity of MLDP

by   Nancy A. Arellano-Arriaga, et al.

We carry out an explicit examination of the NP-hardness of a bi- objective optimization problem to minimize distance and latency of a single-vehicle route designed to serve a set of client requests. In addition to being a Hamiltonian cycle the route is to minimize the traveled distance of the vehicle as well as the total waiting time of the clients along the route.



There are no comments yet.



Minimizing Latency in Online Ride and Delivery Services

Motivated by the popularity of online ride and delivery services, we stu...

Vehicle Speed Prediction using Deep Learning

Global optimization of the energy consumption of dual power source vehic...

An optimization framework for route design and allocation of aircraft to multiple departure routes

In this article, we present the development of a two-step optimization f...

Distributed Robust Geocast Multicast Routing for Inter-Vehicle Communication

Numerous protocols for geocast have been proposed in literature. It has ...

On Ridership and Frequency

In 2018, bus ridership attained its lowest level since 1973. If transit ...

k-Transmitter Watchman Routes

We consider the watchman route problem for a k-transmitter watchman: sta...

Vehicle routing by learning from historical solutions

The goal of this paper is to investigate a decision support system for v...
This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

mldp consists in finding a route to visit all clients, starting from and returning to a fixed depot, while minimizing the total latency at the clients and the total traveled distance. In this work, we limit to a single vehicle with no capacity restrictions that visits all of the clients in a single tour. The problem is a combination of the Minimum Latency Problem (mlp) (Lucena, 1990; Blum et al., 1994; García et al., 2002; Chaudhuri et al., 2003; Nagarajan and Ravi, 2008) and the Traveling Salesman Problem (tsp) (Laporte, 1992; Gutin and Punnen, 2006; Applegate et al., 2007; Hoffman et al., 2013).

In this work, we establish the NP-hardness of the problem, so as not to further contribute to the prevailing trend in related literature of omitting this step entirely and assuming that anything that resembles something NP-hard is also NP-hard, without any need for formal examination.

2 Formulation of mldp

Consider a set of vertices , where is the depot and the other are clients. A matrix contains the travel time from to , , whereas represent the service time at client ; we set and allow A cost matrix is given by


Inspired by Picard and Queyranne (1978), we use variables to indicate that vertex is the

th vertex to visit along the route; we refer to the set of these binary variables as

. The travel distance from the depot to the first client is


the travel distance from the last client to the depot is


for which the total travel distance is


The clients wait for the agent to reach and serve all the previously visited clients


so the total waiting time (i.e., latency) is


Returning from the last client to the depot is not considered part of the total latency of the clients, although it is included in Equation (4) for the total travel time.

Solving mldp requires finding an assignment to that minimizes the objectives (Equations (4) and (6)) with equal importance) and satisfies the restrictions of visiting each client exactly once and visiting a client at each step of the route (i.e., that the form a valid permutation of the vertex set).

3 NP-hardness of mldp

The goal of an optimization problem is to find the best solution according to a set of constraints that describes the environment of the problem. Each optimization problem is associated to a decision problem which differs from in the sense that the objective is treated as a constraint. Given a bound for the constraint representing the objective of , the answer to the decision problem is whether or not an assignment exists that satisfies both the original constraints and the new constraint with bound . Hence the decision problem has only two outcomes: yes or no. If the decision problem is proven NP-complete, then the optimization problem is proven NP-hard (Garey and Johnson, 1990; Papadimitriou, 1994).

A complexity class is defined by several parameters such as non-determinism and restrictions on the amount of computational resources available (namely time and space) (Papadimitriou, 1994). NP stands for non-deterministic polynomial time meaning that the class is defined by bounding the execution time polynomially under non-deterministic computation: given an input for a problem , an “oracle” can guess a correct solution in polynomial time. To prove the inclusion of any problem in the class NP it suffices to demonstrate that any given solution of can be verified as an actual solution of in polynomial time. Both of the single-objective optimization problems that are merged into mldp are NP-hard (Afrati et al., 1986; Papadimitriou, 1994). In this section we demonstrate that also mldpitself is NP-hard.

We first define a decision problem associated to mldp, then show that belongs to NP, and finally establish that an efficient reduction from a known NP-complete problem to exists (Garey and Johnson, 1990).

The corresponding decision problem is the following: given the costs (Equation (1)), an upper bound to Equation (4), and an upper bound to Equation (6), is there an assignment that satisfies all the original constraints as well as the upper bounds set on the objectives?

When service times and travel times are both constant, the problem is trivial, as any visit order will be optimal. When service times are a constant but travel times are arbitrary non-negative values, the problem is NP-hard, as it is now simply a tsp instance. The case of constant travel times and arbitrary non-negative service times is an mlp instance. In this section, we detail the case that both the service and the travel times are arbitrary.

The general mldp consists in finding a route which visits all clients, leaves from a established depot and returns to it. All this while minimizing the total latency of all the clients and the total traveled distance of an uncapacitated vehicle. We assume this agent takes an arbitrary time to reach every client and that all service times are also arbitrary.

We first establish that the feasibility of a given can be verified in polynomial-time: each captures a permutation that starts at the depot and the permutation can be efficiently recovered from the assignment matrix as a visit sequence where is always the depot and the visits from to correspond to the clients.

We need three accumulator variables, one to measure time along the route, one to count the total travel time, and the third to count the total latency. We also need an array of binary decision variables, one per each client, to verify that each one is properly visited. We proceed in the visiting order, denoting the source by and the destination by adding the value of to both the time accumulator and the travel-time accumulator, then adding the service time to the time accumulator, and then the current value of the time accumulator to the latency accumulator, making the client as visited. If at the end of the permutation, all binary variables are one, the travel-time accumulator respects its upper bound , and the latency accumulator respects its upper bound , the solution is feasible. As the verification is a polynomial procedure, NP.



Figure 1: Reduction diagram from tsp to mldp (both as decision problems). The main box in the figure depicts an algorithm to solve the tsp problem that takes as input an instance of tsp and determines whether the answer is “yes” or “no” to this instance.

To establish NP-completeness, we reduce the traveling salesman problem (tsp) in its decision version to , as illustrated in Figure 1. To prove the complexity of mldp, a reduction algorithm must transform a tsp entry into a mldp one. This mldp input is then solved and receives a yes or no answer. As a whole, the process takes a tsp instance, reduces it into an mldp instance, solves the reduced instance with an algorithm for mldp, and responds correctly “yes” or “no” to the original instance.

In the decision version of tsp, the input is a cost matrix for the travel costs between clients (with the diagonal elements being zero) together with an upper bound to the total cost of the tour, , and the question is whether a permutation over the set of clients exists that produces a tour with the sum of costs of the segments not exceeding .

In order to transform the input for the decision version of the tsp into an input for , we will use the elements of as , set , and only need to compute efficiently an adequate value for the latency bound . We do this in terms of the worst-case costs, computing from the cost matrix the largest cost per each row (that is, as if the agent at each client chose the most expensive segment to continue the tour) in time, and then sort these worst-case segments from largest to smallest in time to construct an upper bound to the worst-case latency (the service times in tsp are the diagonal elements of the cost matrix that are all zero): the worst-case total latency is the sum of the cumulative sums of the sorted list of costs and we use this as . Hence, responds “yes” to the transformed input if and only if the decision version of tsp would respond “yes” for the original input.

By reducing tsp to mldp, we show that mldp is at least as difficult as tsp. Thus, is NP-complete and therefore mldp is NP-hard.

4 Conclusions

We proved the NP-completeness of a decision problem corresponding to a bi-objective problem that combines the Minimum Latency Problem (mlp) and the Traveling Salesman Problem (tsp).


  • Afrati et al. (1986) Foto Afrati, Stavros Cosmadakis, Christos H. Papadimitriou, George Papageorgiou, and Nadia Papakostantinou. The complexity of the travelling repairman problem. RAIRO—Theoretical Informatics and Applications, 20(1):79–87, 1986.
  • Applegate et al. (2007) David L. Applegate, Robert E. Bixby, Vasek Chvatal, and William J. Cook. The Traveling Salesman Problem: A Computational Study (Princeton Series in Applied Mathematics). Princeton University Press, Princeton, NJ, USA, 2007. ISBN 0691129932, 9780691129938.
  • Blum et al. (1994) Avrim Blum, Prasad Chalasani, Don Coppersmith, Bill Pulleyblank, Prabhakar Raghavan, and Madhu Sudan. The minimum latency problem. In

    Proceedings of the twenty-sixth annual ACM symposium on Theory of computing

    , pages 163–171, New York, NY, USA, 1994. ACM.
    ISBN 0-89791-663-8.
  • Chaudhuri et al. (2003) Kamalika Chaudhuri, Brighten Godfrey, Satish Rao, and Kunal Talwar. Paths, trees, and minimum latency tours. In Proceedings of the 44th Annual IEEE Symposium on Foundations of Computer Science., pages 36–45, Cambridge, MA, USA, USA, 2003. IEEE. ISBN 0-7695-2040-5.
  • García et al. (2002) Alfredo García, Pedro Jodrá, and Javier Tejel. A note on the traveling repairman problem. Networks, 40(1):27–31, 2002. ISSN 1097-0037.
  • Garey and Johnson (1990) Michael R. Garey and David S. Johnson. Computers and Intractability; A Guide to the Theory of NP-Completeness. W. H. Freeman & Co., New York, NY, USA, 1990. ISBN 0716710455.
  • Gutin and Punnen (2006) G. Gutin and A.P. Punnen. The Traveling Salesman Problem and Its Variations. Combinatorial Optimization. Springer, USA, 2006. ISBN 9780306482137.
  • Hoffman et al. (2013) Karla L. Hoffman, Manfred Padberg, and Giovanni Rinaldi. Traveling salesman problem. In Saul I. Gass and Michael C. Fu, editors, Encyclopedia of Operations Research and Management Science, pages 1573–1578, Boston, MA, 2013. Springer.
  • Laporte (1992) G. Laporte. The traveling salesman problem: An overview of exact and approximate algorithms. European Journal of Operational Research, 59(2):231–247, June 1992. ISSN 03772217.
  • Lucena (1990) Abilio Lucena. Time-dependent traveling salesman problem–the deliveryman case. Networks, 20(6):753–763, 1990.
  • Nagarajan and Ravi (2008) Viswanath Nagarajan and R. Ravi. The directed minimum latency problem. In Ashish Goel, Klaus Jansen, José D. P. Rolim, and Ronitt Rubinfeld, editors, Approximation, Randomization and Combinatorial Optimization. Algorithms and Techniques: 11th International Workshop, and 12th International Workshop, RANDOM 2008, Boston, MA, USA, pages 193–206, Berlin, Heidelberg, 2008. Springer.
  • Nucamendi-Guillén et al. (2016) Samuel Nucamendi-Guillén, Iris Martínez-Salazar, Francisco Angel-Bello, and J Marcos Moreno-Vega. A mixed integer formulation and an efficient metaheuristic procedure for the k-travelling repairmen problem. Journal of the Operational Research Society, 67(8):1121–1134, 2016.
  • Papadimitriou (1994) Christos M. Papadimitriou. Computational complexity. Addison-Wesley, Massachusetts, USA, 1994. ISBN 0201530821.
  • Picard and Queyranne (1978) J. C. Picard and M. Queyranne. The Time-dependent Traveling Salesman Problem and its Application to the Tardiness Problem in One-machine Scheduling. Operations Research, 26(1):86–110, 1978.