Vous êtes sur la page 1sur 12

Computers & Operations Research 38 (2011) 605–616

Contents lists available at ScienceDirect

Computers & Operations Research


journal homepage: www.elsevier.com/locate/caor

Multi-objective and multi-constrained non-additive shortest path problems


Line Blander Reinhardt , David Pisinger
DTU Management, Technical University of Denmark, Produktionstorvet 424, DK-2800 Kgs. Lyngby, Denmark

a r t i c l e in fo abstract

Available online 20 August 2010 Shortest path problems appear as subproblems in numerous optimization problems. In most papers
Keywords: concerning multiple objective shortest path problems, additivity of the objective is a de-facto
Multi objective programming assumption, but in many real-life situations objectives and criteria, can be non-additive. The purpose
Shortest path problem of this paper is to give a general framework for dominance tests for problems involving a number of
Non-additive objective non-additive criteria. These dominance tests can help to eliminate paths in a dynamic programming
Dynamic programming framework when using multiple objectives. Results on real-life multi-objective problems containing
non-additive criteria are reported. We show that in many cases the framework can be used to efficiently
reduce the number of generated paths.
& 2010 Elsevier Ltd. All rights reserved.

1. Introduction Constraint (2) states that there must be exactly one edge leaving s
that is not on a cycle. Constraint (3) states that there must be
The shortest path problem can be formulated on a directed exactly one edge entering t that is not on a cycle. Constraint (4) is
graph G¼(V,E) where V is a finite set of vertices and E is a finite set the ordinary flow conservation constraint. The solution z is an r
of edges. The problem is to find a shortest path between a source vector which contains the values of the r objective functions for
s A V and a destination t A V. In the multi-objective shortest path the path.
problem there are r criteria. An edge eij A E from vertex iA V to In real-life problems the objective functions may be non-
vertex j A V has associated values ckij, k A f1, . . . ,rg for each criterion additive and they may be functions of several criteria. In general
k¼1,y,r. In order to have a well-defined problem it is assumed the objective function has the following form:
that there are no negative cycles for the criteria being minimized,
or positive cycles for the criteria being maximized. minimize : z ¼ ðC 1 ðPÞ, . . . ,C r ðPÞÞ ð6Þ
The general additive multi-objective shortest path problem
with positive costs cij on the edges and where there is an additive where P is a path {s,y,t} and C1,y,C r are cost functions which for
objective function for each criterion can be described by the a given path P return a real number. We call this the value vector.
following integer model (Martins [18]): A solution to the above problem is a set of all Pareto optimal
0 1 paths. A path P is Pareto optimal if there is no other path Pu
X X between the same two vertices which is better or equal on all
minimize : z ¼ @ cij1 eij , . . . , cijr eij A ð1Þ
ði,jÞ A V ði,jÞ A V entries of the value vector and where at least one entry is better.
The solution set where there is exactly one path for each Pareto
X X
s:t: esj  ejs ¼ 1 ð2Þ optimal value vector is called the minimal complete set of Pareto
jAV jAV optimal solutions.
Shortest path problems are among the most well-studied
X X
etj  ejt ¼ 1 ð3Þ problems [1], however, results concerning multi-criteria problems
jAV jAV are rare. This may be due to the fact that the monotonicity
X X assumption of dynamic programming seldom holds for these
eij  eji ¼ 0 8i A V\fs,tg ð4Þ problems. In [4] Carraway et al. describe monotonicity as the
jAV jAV property of objectives preserving preferences for partial solutions
in the dynamic programming recursion. This is not to be confused
eij A f0,1g 8ði,jÞ A E ð5Þ with non-decreasing or non-increasing functions. In shortest path
problems the monotonicity criterion means that if P is a shortest
 Corresponding author. path then the subpaths of P must also be shortest paths. For real
E-mail addresses: lbre@man.dtu.dk (L. Blander Reinhardt), life multi-criteria problems monotonicity only holds for special
pisinger@man.dtu.dk (D. Pisinger). cases.

0305-0548/$ - see front matter & 2010 Elsevier Ltd. All rights reserved.
doi:10.1016/j.cor.2010.08.003
606 L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616

One of the reasons for the recent interest in multi-objective In the following Section 2, we present a number of multi-
optimization is that optimization is being applied in public objective shortest path problems encountered in practice. Next, in
services and business applications. Therefore research in multi- Section 3, we formally define the set of Pareto optimal solutions
objective shortest paths and attempts to circumvent the mono- and the corresponding dominance criterion. In Section 4, we
tonicity assumption is of immediate interest. present the fundamental dynamic programming algorithm used
Hansen [10] presented solution methods to monotone bicri- to solve the multi-objective shortest path problem for various cost
teria and biobjective path problems using a label setting functions. Section 5 provides a number of dominance rules for
algorithm. Martins [18] generalized the label setting algorithm various cost functions that can be used to prune labels in a
to an arbitrary number of objectives, however, monotonicity was dynamic programming algorithm. Various monotone as well as
still assumed. Brumbaugh-Smith and Shier [3] presented a label non-monotone cost functions are considered. In Section 6, we
correcting algorithm to the multi-objective problem under the return to the problems considered in Section 2 and discuss how
monotonicity assumption. As Ehrgott and Gandibleux mention the framework developed can be used to determine all Pareto-
[8], these problems were not extensively researched before the optimal solutions. Finally, Section 7 reports on computational
nineties. Several recent papers discuss approximation algorithms experiments on real-life data from a shipping company. The paper
such as the FPTAS outlined by Tsaggouris and Zaroliagis [25]. For concludes in Section 8.
the exact solution methods Tsaggouris and Zaroliagis have
studied non-additive paths with a single objective [24]. This
objective is the sum of several criteria weighted by linear or non- 2. The multi-objective shortest path problems
linear coefficients. An early paper by Lengauer and Theune [17]
mentions the problem of non-monotone cost structures with two Multi-criteria shortest path problems are well-studied for
criteria and shows that by changing the domination criteria the additive objective functions. However, in several real-life settings
problems can be solved by using a standard shortest path one cannot assume that the objective function is additive, neither
algorithm such as Dijkstra’s. Another paper considering a non- can one assume that it is monotonously increasing. Let w : E-R
additive weighted objective is Carraway et al. [4] where the be an additive weight function on the edge weight and let f be a
distance is minimized, and the probability of successfully reach- function from real numbers to real numbers, f : R-R. The
ing the destination is maximized. We will later show that both the objective functions we will consider often contain the function
probability and the distance criteria are monotone even though f 3w. The following list describes a number of objective functions
the sum of the two is not. It is shown in Carraway et al. [4] that it which might be encountered in real life multi-criteria and multi-
can be difficult to determine whether a multicriteria objective objective problems. Note that all of the objectives listed are non-
function is monotone. To circumvent the problem of not satisfying additive:
the monotonicity assumption Carraway et al. [4] introduced the
concept of generalized dynamic programming, and presented a (A) Probability of reaching destination. Carraway et al. [4] consider
framework for solving multi-criteria shortest path problems. The the objective of maximizing the probability of successfully
framework, however, leaves it to the concrete application to reaching the destination. Each edge has an associated cost
define a local preference relation that can be used to remove (length) and a probability for successful traversal. Assuming
dominated states in the dynamic programming recursion. In this that probabilities are independent across edges, the prob-
paper we present a number of such preference relations for the ability of successfully reaching the destination is the product
listed criteria functions. Moreover we give a general framework of the probabilities of the edges traversed. In Section 5, we
for how to define a local preference relation for non-additive will show how the product of probabilities can be converted
objectives with certain general properties. to a function of the form f 3w.
The contribution of this paper is to present a number of (B) Combined distance and probability function. In [4] Carraway
different criteria functions motivated by real-life applications and et al. consider an objective that is a combination of the
to develop an algorithm which finds all Pareto optimal solutions distance d and the probability p. The objective is described as
for a multi-objective shortest path problem. We present a general d þ lp, l A R þ , where the aim is to maximize the objective
framework for dominance tests with all the presented criteria and thereby minimize the length of the journey and
functions f and report computational experiments on a real-life maximize the probability. However, if the two criteria
instance with multiple criteria (addition, maximization, multi- contradict each other the value of l will affect how the two
plication). Finding all Pareto-optimal solutions to a multi- criteria are weighted. Referring to the objective of real life
objective shortest path problem has several similarities with the problem A, it is easy to see that this objective function will be
solution of multi-constrained shortest-path problems [6,9,13– of the form w1 þ f 3w2 where w1 ,w2 : E-R are additive.
15,21,26]. The techniques developed in this paper can therefore (C) Maximum of commissions. Blander Reinhardt [2] describes a
be applied to several variants of multi-constrained shortest-path real life multi-objective cargo transportation problem in
problems with non-additive constraints. which each vertex corresponds to a hub port. Each time a
The paper differs from previous work as follows: Müller- vertex is visited (i.e. the cargo is reloaded) an agent is paid a
Hannemann and Schnee [19] solve the non-additive price problem commission. An agent may be responsible for several hubs,
by generally relaxing the Pareto optimality. The algorithm by but will only be paid one commission. The commission paid
Carraway et al. [4] only determines the minimal complete set of the will correspond to the largest commission the agent is
Pareto optimal paths, and therefore does not find all Pareto optimal entitled to on the path. The cost of a path is then the price
paths. Carraway uses a function u which maps all criteria to a real of the edges plus the commission paid to agents. However,
number and thereby only has one objective function. His framework only paying the agents the largest commission on the path
does not specify how the dominance function should be implemen- complicates the objective. The objective function for the price
P
ted, but leaves it open to the concrete application. Irnich and objective is then w þ a A Agents maxa fcea je A EP g, where EP is the
Villeneuve [15] presented an algorithm for finding all Pareto-optimal set of edges visited on the path P and cae is the commission
solutions to a resource constrained shortest path problem with paid to agent a on edge e.
k-cycle eliminations. The considered (constrained and unconstrained) (D) Number of zones visited. Public transport in e.g. Copenhagen
resources are all additive. operates on a zone system [11]. Each zone covers a number of
L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616 607

vertices (stations) and edges, and if a ticket is issued to a a minimization problem x dominates y if xk ryk for all k A f1, . . . ,rg
given zone, then it gives unlimited access to all vertices and and xk o yk for at least one k A f1, . . . ,rg.
edges in the zone. In other words our cost function implies The set of Pareto optimal paths from a source s to a destination t
that a cost is paid only the first time a zone is visited. A holder is the set of paths from s to t with non-dominated value vectors. It
of a monthly card may buy access to any zone needed, hence should be noted that there can be several Pareto optimal paths
the objective is to minimize the number of different zones on with the same value vector.
the path. Here the problem is that a price is only paid the first If the problem has more than one objective then there can be
time an edge in the given zone is visited. The objective an exponential number of Pareto optimal paths where each has a
P
function can be represented as zh A Zones maxf0,we jeA EZh 4 unique value vector. In Hansen [10] a graph is presented where
e A Pg, where EZh is the edges in the zone Zh and P is the path there is an exponential number of paths from x1 to xn which are all
travelled. The value we is 1 for all e. Pareto optimal and have unique value vectors. However, as
(E) Maximum zone distance from origin. The cost of a single-trip observed by Müller-Hannemann and Weihe [20], the number of
ticket in public transport may depend on the maximum zone Pareto optimal paths in real-life problems is usually quite small.
distance from the origin s, as in Copenhagen [11]. Here the This observation is also confirmed in the real-life problems we
vertices and the edges again belong to a zone. A one-zone have studied.
ticket gives access to the zone containing s. A two-zone ticket In some problems only the set of minimal complete Pareto
gives access to all zones adjacent to the first zone. A three- optimal paths are sought. The minimal complete set of Pareto
zone ticket furthermore gives access to all zones adjacent to optimal paths was defined in [10] for bicriteria problems. The
the previous zones. This means that if the non-starting zones minimal complete Pareto optimal paths are as defined in Section 1
visited on a trip all are neighboring to the starting zone s then the set containing exactly one path per Pareto optimal value
a two zone ticket is needed even though more than two vector. Note that the minimal complete set of Pareto optimal paths
different zones maybe visited. The objective is to minimize also can contain exponentially many paths, see [10]. When a
the maximum zone distance between the zone of the edges shortest path problem contains only two objective functions the
on the path and the origin s to the destination t. In this case minimal complete set of Pareto optimal paths can be found using
the objective function is as in D. However, the zones are an integer programming method called the Ranking method. At
defined differently (see Section 6). each iteration of the ranking method a Pareto optimal value
(F) Zone distance and time. In several public transportation ticket vector and a path satisfying the value vector is found (see [8] for
fare systems, one buys access to some zones in a given time further details). However, we have no knowledge of a constructive
period, hence it may be relevant to take both distance and way of finding the minimal complete set of Pareto optimal paths
time into consideration. A 1-zone ticket can be traversed for problems with more than two objective functions.
within a time limit t1, a 2-zone ticket can be traversed within It should be mentioned that in quite a few real life problems it
a time limit t2 Z t1 , etc. The objective is to minimize travel would be desirable to find not only the minimal complete set of
cost. In this case the cost function takes a time and a number Pareto optimal paths but all the Pareto optimal paths. This is in
of zones and returns a cost. Here the objective function obj particular true in cases where there is a decision maker who
takes the maximum of a time function t and a zone function z, selects the most desirable solution. It is reasonable to assume that
obj ¼max{t,z}, where the zone function is as described in E there are factors unknown to the program and depending entirely
and the time function t is of the form f 3w. on the specific decision maker which have influence on the choice,
(G) Modulo k penalties. Jepsen et al. [16] consider a shortest path and therefore two different paths with the same objective values
problem where an additional penalty cost is paid for each of might be viewed differently by the decision maker.
the k times nodes from a given set S have been visited. The
objective is the cost of the edges plus a penalty depending on
the number of times nodes from the set S have been visited. 4. Dynamic programming
Here, the complicating factor is the penalty. This shortest
path problem stems from the addition of Subset-Row Dynamic programming relies on the principle of optimality. For
inequalities [16] in a branch-and-price algorithm for the multi-objective problems where one or more objectives does not
Vehicle Routing Problem. The objective function is as in B, satisfy the monotonicity property, one must use the weak principle
w1 þ f 3w2 , where f is the penalty function. of optimality as defined by Carraway et al. [4]
Principle of optimality: An optimal path must be composed of
In the following sections we describe a general framework for optimal subpaths.
solving multi-criteria shortest path problems. Then in Section 5 Weak principle of optimality: An optimal path must be
we develop general schemes for non-additive functions of the composed of subpaths that can be part of an optimal path.
form f 3w. In Section 6, we return to the above problems and Irnich and Villeneuve [15] defined a similar weak principle of
discuss how they can be solved using the schemes developed in optimality for multi-constrained shortest path problems based on
Section 5. the concept of extensions EðPÞ of a given subpath P.
There are two general dynamic programming algorithms for
additive multi-objective shortest path problems which are based
on Dijkstra’s algorithm for the single objective shortest path
3. Pareto optimal paths and value vectors problem [5]. These algorithms are the Label-Setting algorithm [18]
and the Label-Correcting algorithm [22]. The Label-Setting algorithm
A path from s to t is denoted P st ¼ fs, . . . ,tg. A sub-path P ij of does not allow negative edge costs. The Label-Correcting algorithm
P st ¼ fs, . . . ,i, . . . ,j . . . ,tg is the path {i,y,j}. does allow negative edge costs but no negative cycles. We will apply
The optimal solution to the multi-objective shortest path the Label-Correcting algorithm in the sequel.
problem (1) is a set of all Pareto optimal paths. A path is Pareto In the pseudocode for this algorithm let C 1 ðPÞ . . . C r ðPÞ be the
optimal if the value vector of that path is not dominated by the cost function of a path P and let Merge be a function which, given
value vector of another path between the same two vertices. Let two sets of labels, returns only the undominated labels of the
x ¼(x1,y,xr) and y¼ (y1,y,yr) be two real valued r vectors then for union of the two sets. The set Q consists of the vertices with
608 L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616

undominated labels that have not yet been used to generate other several weight functions including the weight of a criterion on a
labels. Each label is given as the tuple ðC 1 ðPÞ, . . . ,C r ðPÞ,predðPÞÞ, path can be transformed by one function in the objective. An
where predðPÞ is a pointer to the label it was generated from. The additive objective requires that the weight functions (also called
label correcting algorithm is outlined in the following pseudo- criteria) included in it are additive, however, an objective on one
code, inspired by [3] and [22]. In each node v we maintain a list Lv or more additive weight functions is not necessarily additive as
of labels. Clearly, by following the predðPÞ pointers backward the additive weight function can be part of a non-additive
from a vertex v to s one gets the subpath the label represents. function in the objective.
Thus each label in the lists Lv represents a subpath P ¼ fs, . . . ,vg
which is not dominated by other subpaths from s to v. The set Q Theorem 1. Given a weighted directed graph G ¼(V,E) with an
can with advantage be implemented as an ordered list ordered additive weight function w : E-Rk (w‘ : E-R, ‘ A f1,: :,kg) where k
lexicographically. is the number of objective functions, let the objective functions be
C‘ ¼ f‘ 3w‘ where f‘ : R-R is a strictly increasing or strictly
decreasing function. Let P st be a Pareto optimal path from s to t,
LABEL-CORRECTING(G,s,t)
then any subpath P ij of P st is a Pareto optimal path from i to j.
1: Lv ’| for all v A V\fsg
2: Ls ’fð0, . . . ,0,fsgÞÞg; The theorem shows that if the objective functions are strictly
3: Q ’fsg; increasing or strictly decreasing, then the normal principle of
4: while Q a| do optimality holds, and hence we can use an ordinary dominance
5: u’extract vertex from Q; rule in the label correcting algorithm.
6: for all edges euv do
7: Luv ’MergeðLv ,Lu 3feuv gÞ; Proof. First assume that the objective functions are to be
8: if Luv aLv then minimized. Assume that P ij is not a Pareto minimal path, then
9: Lv ’Luv ; there would be a path Puij that dominates the path P ij . Decompose
10: Q ’Q [ fvg the Pareto minimal path P st into three subpaths P si , P ij and P jt .
11: end if Then, because of the additive structure of the weight function, we
12: end for have wðP st Þ ¼ wðP si Þ þ wðP ij Þ þ wðP jt Þ. Let the path Pust be defined
13: end while by subpaths P si , Puij and P jt . Clearly the weight of Pust is
14: return Lv for all v A V; wðPust Þ ¼ wðP si Þ þ wðPuij Þ þ wðP jt Þ. Since Puij dominates P ij we have
f‘ ðw‘ ðPuij ÞÞ r f‘ ðw‘ ðP ij ÞÞ where the inequality is strict for at least
one ‘ A f1, . . . ,kg. Then, in the case where f‘ is strictly increasing,
The label correcting algorithm repeatedly extracts a vertex u
one gets the following inequalities where for at least one ‘ the
from the set Q, and for each outgoing edge euv extends the
inequality is strict:
labels (C 1 ðP su Þ, . . . ,C r ðP su Þ, predðP su Þ) in Lu to (C 1 ðP sv Þ, . . . ,C r ðP sv Þ,
predðP sv Þ). These new labels Lu [ feuv g are then Merge’d f‘ ðw‘ ðPuij ÞÞ r f‘ ðw‘ ðP ij ÞÞ ) w‘ ðPuij Þ rw‘ ðP ij Þ
together with the old labels Lv of v. The merging eliminates ) w‘ ðPust Þ r w‘ ðP st Þ ) f‘ ðw‘ ðPust ÞÞ r f‘ ðw‘ ðP st ÞÞ
dominated labels. If the set of labels at v has been changed
during the Merge, then v is added to Q. This is repeated until In the case where f‘ is strictly decreasing one gets a similar result
the set Q is empty. The 3 operator in line 7 must match the by reversing the appropriate inequalities. Therefore the path Pust
objective functions, and the dominance criterion used implicit dominates the path P st , which contradicts the Pareto minimality
in Merge must be tailored to return the undominated labels. of the path P st . For maximization the proof is similar. &
We will in the next section propose various sufficient criteria
for removing dominated labels. Note that Theorem 1 also holds for graphs with negative
weights and that an additive objective function with non-
negative edge costs ckij is a special case of the strictly increasing
5. Non-additive objectives in dynamic programming function.

As mentioned before, the essence of the dynamic program- 5.1. Objectives based on additive weight functions
ming algorithms on shortest path problems is the monotonicity
requirement. The monotonicity requirement ensures that sub- We will start by showing the case of an objective based on a
paths of a Pareto optimal path are Pareto optimal and therefore finite number of additive weight functions. The problem for
the subpaths that are not Pareto optimal can be eliminated from non-additive objectives is that the value of CðP it Þ can vary
the search. Clearly the additive case is monotone, however, there depending on the path taken from s to i. This is also the case
exists other monotone objective functions. Theorem 1 covers a set when the non-additive objective is based on additive weight
of objective functions which satisfies the monotonicity require- functions.
ment. It should be noted that Theorem 1 is not exhaustive, as Only the single objective case is considered, although the
other objectives may exist that satisfy the monotonicity require- results easily can be generalized to the multi-objective case by
ment. using the definition of Pareto optimality.
Section 5.1 defines a dominance criterion for problems where
the objective function is based on two or more additive weight Theorem 2 (Gradient domination). Given a weighted directed
functions. Section 5.2 defines dominance criteria for problems graph G ¼(V,E) let wi : E-R,iA f1, . . . ,ng be additive weight func-
where the objective function is defined as the maximum of a set tions on G. Let there be an objective function of the form:
of edge weights visited on the path. The recently published P
CðPÞ ¼ ni¼ 1 fi ðwi ðPÞÞ. Let P st be composed of subpaths P sj and P jt
example of optimizing the mean and variance of a random and let Pust be composed of Pusj and P jt (see Fig. 1). Let
variable associated with and edge described in [12] by Hutson and
Shier shows a non-additive objective of the structure described in fi ðwi ðPust ÞÞfi ðwi ðP st ÞÞ
M-i r r Miþ , i A f1, . . . ,ng, wi ðP st Þ awi ðPust Þ
Section 5.1. Weight functions evaluate a single criterion along a wi ðPust Þwi ðP st Þ
path. However, an objective can include several criteria. Thus ð7Þ
L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616 609

Corollary 1 states that if two subpaths P sj and Pusj ending at the


same node j satisfy inequality (12), then for minimization
problems the path Pusj dominates P sj and the latter may be
deleted.

Fig. 1. Path from s to t is split into P sj ,Pusj ,P jt . Proof. This is the special case of Theorem 2 where n¼2 and f1 is
the identity function. &
where M-i ,Miþ A R. Moreover let
X
n X
n The dominance rule (12) was defined for a minimization
Mi wi ðPusj Þ o Mi wi ðP sj Þ ð8Þ problem. In the case of maximization Corollary 1 is changed to
i¼1 i¼1

with strict inequality for at least one i. where Corollary 2 (Maximization of objective). Given a weighted directed
8 graph G¼ (V,E) let w1 : E-R and w2 : E-R be two additive weight
> M þ if wi ðPusj Þ 4wi ðP sj Þ
< i functions on G. Let there be an objective function of the form:
Mi ¼ 1 if wi ðPusj Þ ¼ wi ðP sj Þ C(p)¼w1(p)+f(w2(p)) which is to be maximized. Let P st be composed
>
: M- if w ðPu Þ ow ðP Þ
i i sj i sj of subpaths P sj and P jt and let Pust be composed of Pusj and P jt
(See Fig. 1). Let
Then CðPust Þ o CðP st Þ.
f ðw2 ðPust ÞÞf ðw2 ðP st ÞÞ
Proof. Assume that (8) holds. For each i where wi ðP sj Þ awi ðPusj Þ M- r rM þ ,w2 ðPust Þ a w2 ðP st Þ ð13Þ
w2 ðPust Þw2 ðP st Þ
we have
fi ðwi ðPust ÞÞfi ðwi ðP st ÞÞ fi ðwi ðPust ÞÞfi ðwi ðP st ÞÞ where M- ,M þ A R. Moreover let
¼
wi ðPusj Þwi ðP sj Þ wi ðP jt Þ þwi ðPusj Þðwi ðP sj Þ þwi ðP jt ÞÞ
w1 ðPusj Þ þ M þ w2 ðPusj Þ 4 w1 ðP sj Þ þ M þ w2 ðP sj Þ if w2 ðPusj Þ o w2 ðP sj Þ
f ðw ðPust ÞÞfi ðwi ðP st ÞÞ
¼ i i - -
wi ðPust Þwi ðP st Þ w1 ðPusj Þ þ M w2 ðPusj Þ 4 w1 ðP sj Þ þ M w2 ðP sj Þ if w2 ðPusj Þ 4 w2 ðP sj Þ
w1 ðPusj Þ 4 w1 ðP sj Þ if w2 ðPusj Þ ¼ w2 ðP sj Þ ð14Þ
which is less than or equal to Miþ if wi ðPusj Þ 4wi ðP sj Þ and which is Then CðPust Þ 4 CðP st Þ.
greater than or equal to M-i if wi ðPusj Þ o wi ðP sj Þ. This implies that
In finding M- and M þ the goal is to maximize M- and
fi ðwi ðPust ÞÞfi ðwi ðP st ÞÞ rMi ðwi ðPust Þwi ðP st ÞÞ ð9Þ
minimize M þ so that the number of paths kept for investigation
It is easy to see that inequality (9) also will hold if is minimized.
wi ðP sj Þ ¼ wi ðPusj Þ. This means that
X
n X
n Remark 1. When f is differentiable and there exists M- and M þ
ðfi ðwi ðPust ÞÞfi ðwi ðP st ÞÞÞ r ðMi ðwi ðPust Þwi ðP st ÞÞÞ such that M- rf uðxÞ r M þ for all x in the domain of f, then by the
i¼1 i¼1
Mean Value Theorem we have
and hence
f ðw2 ðPust ÞÞf ðw2 ðP st ÞÞ
X
n X
n X
n M- r rM þ :
ðfi ðwi ðPust ÞÞ r ðMi ðwi ðPust Þwi ðP st ÞÞÞ þ fi ðwi ðP st ÞÞ ð10Þ w2 ðPust Þw2 ðP st Þ
i¼1 i¼1 i¼1
Note that on a fixed weight graph G the domain of f can be
Now, adding inequalities (8) and (10) we get restricted to a closed interval [a,b] such that f ðw2 ðPÞÞ A ½a,b for
X
n X
n every simple path P in G. Moreover there could be a lower bound
ðfi ðwi ðPust ÞÞ o ðfi ðwi ðP st ÞÞ on how much w2 ðPust Þw2 ðP st Þ can be for two different paths. This
i¼1 i¼1
could for example be the smallest cost of an edge in G.
and hence CðPust Þ oCðP st Þ which proves the theorem. & Such upper bound on f ðw2 ðPust ÞÞf ðw2 ðP st ÞÞ and lower bound
In the next corollary we consider problems with additive w2 ðPust Þw2 ðP st Þ could be used to find a possible value for M þ . In
weight functions where an objective function is based on two the same way possible values for M- can be found. Clearly if f is a
additive criteria. This case is relevant for some of the real life differentiable bounded function then M þ can be the maximum of
problems considered in Section 6. the derivative and M- the minimum of the derivative in the
bounded region.
Corollary 1 (Minimization of objective). Given a weighted directed
graph G¼(V,E) let w1 : E-R and w2 : E-R be two additive weight
Remark 2. When f is convex and w2 : E-R0þ then
functions on G. Let there be an objective function of the form:
CðPÞ ¼ w1 ðPÞ þ f ðw2 ðPÞÞ which is to be minimized. Let P st be f ðw2 ðP si ÞÞf ðw2 ðPusi ÞÞ f ðw2 ðP st ÞÞf ðw2 ðPust ÞÞ
composed of subpaths P sj and P jt and let Pust be composed of Pusj r
w2 ðP si Þw2 ðPusi Þ w2 ðP st Þw2 ðPust Þ
and P jt (see Fig. 1). Let
f ðw2 ðPust ÞÞf ðw2 ðP st ÞÞ
¼ ð15Þ
-f ðw2 ðPust ÞÞf ðw2 ðP st ÞÞ w2 ðPust Þw2 ðP st Þ
M r rM þ ,w2 ðPust Þ aw2 ðP st Þ ð11Þ
w2 ðPust Þw2 ðP st Þ
where M- ,M þ A R. Moreover let and thus M- can be chosen as
w1 ðPusj Þ þ M þ w2 ðPusj Þ o w1 ðP sj Þ þ M þ w2 ðP sj Þ if w2 ðPusj Þ 4 w2 ðP sj Þ f ðw2 ðP si ÞÞf ðw2 ðPusi ÞÞ
M- ¼ ð16Þ
w2 ðP si Þw2 ðPusi Þ
w1 ðPusj Þ þ M- w2 ðPusj Þ ow1 ðP sj Þ þM- w2 ðP sj Þ if w2 ðPusj Þ o w2 ðP sj Þ
when substituting the value of M- into the portion of the
w1 ðPusj Þ o w1 ðP sj Þ if w2 ðPusj Þ ¼ w2 ðP sj Þ ð12Þ
dominance definition in Corollary 1 containing M- (both in
the minimization and maximization versions) then regular
Then CðPust Þ o CðP st Þ. dominance (principle of optimality) is achieved in that portion.
610 L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616

Moreover if w2 ðP it Þ r b for all simple paths P it from i to t in G Theorem 3 is applied to real life problems in Sections 6.6 and
then we can choose M þ as follows: 6.7. See Sections 6.6 and 6.7 for examples of the determination of
d and property D in a real life problem.
f ðbþ w2 ðPusi ÞÞf ðb þ w2 ðP si ÞÞ f ðw2 ðPust ÞÞf ðw2 ðP st ÞÞ
Mþ ¼ Z
w2 ðPusi Þw2 ðP si Þ w2 ðPust Þw2 ðP st Þ
5.2. Objectives based on the max and min function
Similarly when w2 : E-R
0 then M
þ
can be chosen as
f ðw2 ðPusi ÞÞf ðw2 ðP si ÞÞ f ðw2 ðPust ÞÞf ðw2 ðP st ÞÞ In this subsection we consider a non-monotone objective
Mþ ¼ Z , ð17Þ
w2 ðPusi Þw2 ðP si Þ w2 ðPust Þw2 ðP st Þ function defined as the maximum of a set of edge weights visited
on the path P. Theorem 4 and its proof is a generalization of the
which in the portion containing M þ reduces to regular
work in [2].
dominance in the dominance definition of Corollary 1. If
(a r w2 ðP it Þ for all simple paths P it from i to t in G then M- can
be chosen as Theorem 4 (Max domination). Given a weighted directed graph
G¼ (V,E) let w1 : E-R be an additive weight function and aj : E-R,
f ða þ w2 ðP si ÞÞf ða þw2 ðPusi ÞÞ f ðw2 ðP st ÞÞf ðw2 ðPust ÞÞ
M- ¼ r : ð18Þ j A f1, . . . ,ng be a map from the edges of G into R and let e A E be an
P
w2 ðP si Þw2 ðPusi Þ w2 ðP st Þw2 ðPust Þ edge in G. Then let w2 ðPÞ ¼ nj¼ 1 maxe A P aj ðeÞ. Let there be an
objective function of the form C(p)¼ w1(p)+ w2(p) to be minimized.
Let P st be composed of subpaths P si and P it and let Pust be composed
Remark 3. When f is concave, f is convex and therefore we can of Pusi and P it . Moreover let
apply Remark 2 to  f to find suitable values of M- and M þ for f.
X
n X
n

These remarks will be used when returning to the objective w1 ðPusi Þ þ max faj ðeÞg ow1 ðP si Þ þ maxfaj ðeÞgFðP si ,Pusi Þ
e A Pusi e A P si
j¼1 j¼1
functions described in Section 2.
Another function used in the objectives described in Section 6 ð23Þ
is the floor function. Clearly the floor function fulfills the where
requirements of Corollary 1, however, M þ is infinite. Using the  
X
n
floor dominance stated by Jepsen et al. in [16], we present a FðP,PuÞ ¼ max 0,maxfaj ðeÞgmaxfaj ðeÞg :
general form of domination. eAP e A Pu
j¼1

Theorem 3 (Floor domination). Given a weighted directed graph Then CðPust Þ oCðP st Þ.
G¼(V,E) let w1 : E-R and w2 : E-R be two additive weight
In other words if two subpaths P si and Pusi end at the same
functions on G. Let there be an objective function of the form:
node i and (23) is satisfied, then the label corresponding to
CðPÞ ¼ w1 ðPÞ þ f ðw2 ðPÞÞ. Let the function f: R-R satisfy
subpath Pusi dominates the label corresponding to subpath P si and
f ða þ cÞf ðaÞd r f ðb þcÞf ðbÞ for all a,b,c in the domain of f (see
hence the latter may be deleted.
Fig. 2) where a,b satisfy some property D and dA R0þ . Let P st be
composed of subpaths P sj and P jt and let Pust be composed of Pusj and
P jt (see Fig. 1). Then Proof. With some trivial case studies it is easy to see that for each
CðPusj Þ þ d r CðP sj Þ ) CðPust Þ r CðP st Þ ð19Þ j¼1,y,n we have
   
when w2 ðPusj Þ,w2 ðP sj Þ are satisfying property D. max 0,maxfaj ðeÞgmax faj ðeÞg max 0,maxfaj ðeÞgmaxfaj ðeÞg
e A P it e A Pusi e A P it e A P si
Proof. Assume w1 ðPusj Þ þ f ðw2 ðPusj ÞÞ þd rw1 ðP sj Þ þf ðw2 ðP sj ÞÞ and  
that w2 ðPusj Þ,w2 ðP sj Þ satisfy a property D. Then by the additivity r max 0,maxfaj ðeÞgmax faj ðeÞg
e A P si e A Pusi
of w1 we have that
w1 ðPust Þ þ f ðw2 ðPusj ÞÞ þd rw1 ðP st Þ þ f ðw2 ðP sj ÞÞ ð20Þ
Adding these inequalities for j ¼1,y,n together, we obtain
By the property of f we have   X  
X
n n

f ðw2 ðPusj Þ þ w2 ðP jt ÞÞf ðw2 ðPusj ÞÞd r f ðw2 ðP sj Þ þ w2 ðP jt ÞÞf ðw2 ðP sj ÞÞ max 0,maxfaj ðeÞgmax faj ðeÞg  max 0,maxfaj ðeÞgmaxfaj ðeÞg
e A P it e A Pusi e A P it e A P si
j¼1 j¼1
ð21Þ  
X
n
by adding the previous two inequalities we get r max 0,maxfaj ðeÞgmax faj ðeÞg
e A P si e A Pusi
j¼1
w1 ðPust Þ þ f ðw2 ðPust ÞÞ r w1 ðP st Þ þ f ðw2 ðP st ÞÞ & ð22Þ

By the definition of FðP,PuÞ, the above inequality is the same as


Xn  
max 0,maxfaj ðeÞgmax faj ðeÞg
e A P it e A Pusi
j¼1
X
n  
r max 0,maxfaj ðeÞgmaxfaj ðeÞg þFðP si ,Pusi Þ ð24Þ
e A P it e A P si
j¼1

Adding inequality (24) to the assumption (23) we achieve


X
n X
n  
w1 ðPusi Þ þ max faj ðeÞg þ max 0,maxfaj ðeÞgmax faj ðeÞg
e A Pusi e A P it e A Pusi
j¼1 j¼1
X
n X
n  
o w1 ðP si Þ þ maxfaj ðeÞg þ max 0,maxfaj ðeÞgmaxfaj ðeÞg
e A P si e A P it e A P si
Fig. 2. The property of f to facilitate the use of Floor domination. j¼1 j¼1
L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616 611

It is easy to check that this is the same as specific lower bound can be found at a given shortest path
X
n   request.
w1 ðPusi Þ þ max maxfaj ðeÞg, max faj ðeÞg
e A P it e A Pusi
j¼1
X
n   6. Solving real life shortest path problems
o w1 ðP si Þ þ max maxfaj ðeÞg,maxfaj ðeÞg
e A P it e A P si
i¼1
With the properties covered in previous section we now return
to the objectives (A) through (G) listed in Section 2. We describe
which is equivalent to how the developed framework can be adapted to the considered
X
n X
n objectives.
w1 ðPusi Þ þ max faj ðeÞg ow1 ðP si Þ þ max faj ðeÞg
e A Pust e A P st
j¼1 j¼1
6.1. Multiplicative cost function
By adding w1 ðP it Þ to both sides we get the desired result
CðPust Þ oCðP st Þ. & The multiplicative objective described in (A) is given as
follows: Each edge eij has a probability pij A ð0,1 for being
Theorem 5 (Min domination). Given a weighted directed graph traversed successfully, and the corresponding objective is
G¼(V,E) let w1 : E-R be an additive weight function and ai : E-R, Y
i A f1, . . . ,ng be a map from the edges of G to the reals. Then let CðPÞ ¼ pij
P
w2 ðPÞ ¼ ni¼ 1 mine A P ai ðeÞ. Let there be an objective function of the eij A P

form CðPÞ ¼ w1 ðPÞw2 ðPÞ to be minimized. Let P st be composed of The objective is monotone since we have ([23] Example 6.3.2)
subpaths P si and P it and let Pust be composed of Pusi and P it . Let Y X
P max log CðPÞ ¼ max log pij ¼ max logpij ð26Þ
FðP,PuÞ ¼ nj¼ 1 maxf0,mine A P aj ðeÞmine A Pu aj ðeÞg. Moreover let
eij A P eij A P
CðPusi Þ o CðP si ÞFðP si ,Pusi Þ ð25Þ
Defining w1 : as w1 ðeij Þ ¼ logpij and choosing f¼ex,
E-R0þ
Then CðPust Þ o CðP st Þ. Theorem 1 gives that the objective is monotone. Therefore all
subpaths are also optimal, and if the problem contains several
In the cases where domination (25) of Theorem 5 holds we can
monotone objective functions all subpaths are Pareto optimal.
when minimizing CðPÞ eliminate paths CðP si Þ.
Notice that w1 ðeij Þ Z0 since all 0 o pij r1.
Proof. Clearly, since maxe A P faj ðeÞg ¼ mine A P faj ðeÞg and
therefore 6.2. Combined distance and probability function
X
n X
n
CðPÞ ¼ w1 ðPÞ minfai ðeÞg ¼ w1 ðPÞ þ maxfai ðeÞg: The second objective (B) is a combination of the two criteria
eAP eAP
i¼1 i¼1 distance d and probability p A ð0,1. The objective is written as
By Theorem 4, it follows that Theorem 5 holds. & d þ lp with l 40 which is to be maximized. Let f ðxÞ ¼ lax so that
f ðloga ðpðPÞÞÞ ¼ lpðPÞ. Let w1 ðPÞ ¼ dðPÞ and w2 ðPÞ ¼ loga ðpðPÞÞ.
In Sections 6.3 and 6.4 the Theorem 4 is applied to real life Since loga ðpðPÞÞ is additive, we can use Corollary 2. Since
problems. For an example of how FðP,PuÞ is determined see loga ðpðPÞÞ : E-R 0 and f is convex, we can use Remark 2. By
Sections 6.3 and 6.4. Remark 2 the only case where the principle of optimality does not
work is the case where w2 ðPusi Þ 4 w2 ðP si Þ. Therefore, we need to
5.3. Goal domination find a good M- . We choose M- ¼ ðf ðbþ w2 ðP si ÞÞf ðbþ w2 ðPusi ÞÞÞ=
ðw2 ðP si Þw2 ðPusi ÞÞ where b rw2 ðP it Þ for all simple paths P it from i
Goal domination is a well known and commonly used way of to t on G as suggested in Remark 2 Eq. (18). Inserting this value
eliminating labels (see [19]). This domination does not require into the definition of dominance for the case w2 ðPusi Þ 4 w2 ðP si Þ in
monotonicity, however, it can only be used for objectives C(P), Corollary 2 we get
that are non-decreasing or non-increasing and a feasible solution w1 ðPusi Þ 4 w1 ðP si Þ þ f ðb þw2 ðP si ÞÞf ðbþ w2 ðPusi ÞÞ ð27Þ
to the problem must be found before goal domination can be
used. The goal domination checks each new label created for A lower bound L for pðP it Þ where P it is an arbitrary simple path
whether it is dominated by a label at the destination. from i to t on G results in loga(L) being a lower bound for
To improve the goal domination one can find lower bounds loga ðpðP it ÞÞ. Therefore we can substitute b with loga(L). Moreover,
(upper bounds in the case of a maximization problem) on all we can use that f ðxÞ ¼ lax , w1 ðPÞ ¼ dðPÞ and w2 ðPÞ ¼ loga ðpðPÞÞ
objectives and pairs of vertices. This can be done by preprocessing to rewrite (27) as
the graph data. When using preprocessing, the goal domination w1 ðPusi Þ 4 w1 ðP si Þ þ laloga ðLÞ þ loga ðpðP si ÞÞ laloga ðLÞ þ loga ðpðPusi ÞÞ
can be extended so that the lower bound of the remaining path is
this inequality is the same as
added to the label when testing whether it is dominated by labels
at the destination. w1 ðPusi Þ 4 w1 ðP si Þ þ lLpðP si ÞlLpðPusi Þ,
Dumitrescu and Boland [7] show that preprocessing can
and hence
reduce computation time significantly on resource constrained
shortest path problems. Preprocessing is useful in graphs where dðPusi Þ 4 dðP si Þ þ lLpðP si ÞlLpðPusi ÞÞ: ð28Þ
the edge weights seldom change. Nevertheless, the storage This means that the dominance of Corollary 2 in this case is
requirements increase as there can be a quadratic number of If
lower bounds. However, each lower bound will not be very space-
dðPusi Þ þ pðPusi Þ 4 dðP si Þ þ pðP si Þ and pðPusi Þ r pðP si Þ ð29Þ
consuming as it is a simple number. Lower bounds generated ‘‘on
the fly’’ are often used in graphs where the vertices are placed in a
dðPusi Þ 4 dðP si Þ þ lLpðP si ÞlLpðPusi ÞÞ and pðPusi Þ 4 pðP si Þ
coordinate system and therefore the Euclidean distance between
ð30Þ
nodes can be calculated ‘‘on the fly’’ [19]. Another lower bound
method [19] is to make simplified versions of the graph in which a then CðPust Þ 4 CðP st Þ.
612 L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616

Carraway et al. [4] propose the following algorithm for solving In this case we can use Theorem 4 to obtain that
the dominance test. Let P be a path from a vertex s to a vertex i X X
A X X
A
then d is the distance of the path P and p is the probability of the cij þ max f0,cija g o cij þ max f0,cija gFðP sh ,Push Þ
eij A Sa \Push eij A Sa \P sh
path P. Let the path Pu be a path from s to i different from P and let eij A Push a¼1 eij A P sh a¼1

d^ and p^ be the distance and probability on that path. where


X
A  
Algorithm by Carraway et al.: FðP sh ,Push Þ ¼ max 0, max f0,cija g max f0,cija g
eij A Sa \P sh eij A Sa \Push
^ p^ Þ such that d r d.^ a¼1
Step 0: Designate ðd, pÞ and ðd,
^
Step 1: If d ¼ d and p r p then delete ðd, pÞ and stop; else if
^ implies CðPuÞ o CðPÞ.
d ¼ d^ and p 4 p^ then delete ðd, ^ p^ Þ and stop.
^
Step 2: If p ¼ p^ , delete ðd, p^ Þ and stop. 6.4. Number of zones visited
^
Step 3: If dd r lbj ðp^ pÞ where bj is the minimum of the
probability on the remaining path. Delete ðd, pÞ and stop. In the zone system objective described in (D) the price is
Step 4: If dd^ r lmj ðpp^ Þ where mj is the maximum of the calculated depending entirely on the zones passed on the journey.
probability on the remaining path. Delete ðd, ^ p^ Þ and stop. More formally let the set of edges be divided into zones Z1,y,Zn.
Step 5: Retain both returns and stop. Without loss of generality we may assume that each edge only
corresponds to one zone, as we otherwise may split the edge. Let
^ p^ Þ and we have the value 1 for all edges e.
In [4] Step 2 was written as follows: If p r p^ , delete ðd,
The objective then is to minimize the number of different
stop. As this does not hold, it is presumed to be a typing error and
zones on a path P. The objective can be written as follows:
we have inserted ¼ instead of r. Note that by using a non-strict
inequality, Carraway et al. only get the minimal complete set of X
n
min : CðPÞ ¼ max f0,we g ð33Þ
solutions. Clearly, by making the inequality non-strict, our h¼1
e A Zh \P

dominance method, (29) and (30), will find exactly the minimal
To use Theorem 4 on the zone system each edge must be assigned
complete set of Pareto optimal solutions.
the zones it travels through. Let
We now show that Theorem 2 allows for the elimination of all
Xn  
of the paths eliminated by the algorithm of Carraway et al.
FðP,PuÞ ¼ max 0, max f0,we g max f0,we g
It can easily be shown that all paths deleted by step 1 and 2 are e A Zh \P e A Zh \Pu
h¼1
eliminated by Corollary 2, inequalities (29) and (30).
In order to prove the same for step 3 we have to show that By Theorem 4 we get that
when d r d^ and dd ^ r lbj ðp^ pÞ, where bj is the minimum of the X
n X
n

probabilities, on the remaining path (pðPit Þ), then one of the max f0,we g o max f0,we gFðP si ,Pusi Þ ð34Þ
e A Zh \Pusi e A Zh \P si
h¼1 h¼1
domination statements (29) and (30) holds. Let ðd, pÞ be the pair
^ p^ Þ be the pair ðdðPu Þ, pðPu ÞÞ. Since b 40 we
ðdðPsi Þ, pðPsi ÞÞ and ðd, implies that the CðPust Þ o CðP st Þ.
si si j Pn
can choose the lower bound L ¼ bj 4 0. When p^ o p no path is However, for objectives of the form h ¼ 1 maxe A Zh \P f0,we g
deleted in step 3. Now insert the values in the inequality of step 3: where w1 ðPÞ is 0 for all paths, Theorem 4 will not be able to
eliminate any simple subpaths from the investigation. This means
dðPusi ÞdðPsi Þ r lLðpðPusi ÞpðPsi ÞÞ
that in this case no subpath will be eliminated by the dominance
) dðPusi Þ þdðPsi Þ Z lLðpðPusi Þ þ pðPsi ÞÞ ð31Þ of Theorem 4. In this case goal domination must be used to
eliminate paths that are not Pareto optimal compared to a
) dðPusi Þ ZdðPsi Þ þ lLðpðPsi ÞpðPusi ÞÞ ð32Þ
solution that is already found. This, however, requires that a
solution is found. Another way to circumvent the problem is to
which by (30) means that Corollary 2 eliminates ðd, pÞ when p^ 4 p. combine an additive criterion with the price in the objective so
In the case where p^ ¼ p it is easy to show that Corollary 2 that w1 ðPÞ will have a value greater than zero. The other criterion
eliminates ðd, pÞ. could for example be time or distance.
To show that a path deleted in step 4 is also deleted by (29)
^ p^ Þ ¼ ðdðP Þ, pðP ÞÞ and
and (30), set ðd, pÞ ¼ ðdðPusi Þ, pðPusi ÞÞ and ðd, 6.5. Maximum zone distance from origin
si si
note that in the case where p 4 p^ , the inequality (30) is trivially
true. If p r p^ , then we must show that the inequality of step 4 The objective (E) of finding the maximum zone distance from a
implies (29). But this must be true as (29) amounts to the origin can be handled by creating new zones around the source s.
principle of optimality (regular domination). Let Zu1 be the zone in which s is located. Let Zu2 be the set of zones
that are adjacent to Zu1 . In general Zuh is the set of zones adjacent
6.3. Maximum of commissions to Zuh1 . Note that to get to the distance of three zones of the
origin one must have passed zones distance two and one from
The objective described in (C) is taken from [2]. The cost of a origin. Let the cost function cij ¼ch where eij A Zuh so that h is the
path is calculated as the price of the edges (transports) plus some number of zones visited. In this case the objective function is
commission to agents. CðPÞ ¼ max fcij g ð35Þ
eij A Zu\P
Let the set of agents be 1,y,A and let Sa be the edges covered
by agent a A f1, . . . ,Ag. Each edge is covered by at most one agent. Clearly in this case if
Each edge eij has a corresponding commission caij. An agent is paid max fcij g r max fcij g ð36Þ
the largest commission he is entitled to on the path P. The eij A Zu\Pusi eij A Zu\P si

objective is then
then CðPust Þ rCðP st Þ. Notice that it is possible for the domination
X X
A to eliminate paths if only the minimal complete set is desired. If all
CðPÞ ¼ cij þ max f0,cija g paths of minimum value are desired then goal domination must
eij A Sa \P
eij A P a¼1 be used.
L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616 613

6.6. Zone distance and time CðPusi Þ rCðP si Þ and CS ðPusi Þ mod k rCS ðP si Þ mod k ð45Þ
then Pusi dominates P si .
The objective (F) is another version of objective (E). However, We have previously seen that
this objective takes a time and a number of zones and returns a ja þ ck jak    
cost. As in the Copenhagen ticket system, we suppose the cost bþc b
s s s r s s ð46Þ
function is the number of time intervals times a factor s. Let us k k k k
suppose that the time intervals all are of some size k. The time is holds when a mod k Zb mod k and for all other cases regular
clearly additive and, as in the model of (E), the zones are not. It is a domination holds.
general assumption that the cost function is monotonously By Theorem 3 we now have that
increasing. Moreover the time and zone criteria are not indepen-    
1 1
dent in the objective function as the cost is the maximum of the WðP si Þ þ s CS ðP si Þ þ s r s WðPusi Þ þ CS ðPusi Þ
k k
cost of the ticket for the time used and the cost of the ticket for    
1 1
the traveled number of zones. The objective now becomes ) WðP st Þ þ s CS ðP st Þ r WðPust Þ þ s CS ðPust Þ ð47Þ
8 0 1 9 k k
< X =
CðPÞ ¼ max c @ A
tij , max fcij g ð37Þ
: e AP eij A Zu\P ; holds when CS ðP si Þ mod kZ CS ðPusi Þ mod k and otherwise regular
ij

domination holds. Since Theorem 3 was inspired by the domina-


tion found in Jepsen et al. [16] it is not a surprise that it holds for
From the dominance of objective (E) we have that their case.
max fcij g r max fcij g ) max fcij g r max fcij g ð38Þ
eij A Zu\P si eij A Zu\Pusi eij A Zu\P st eij A Zu\Pust

7. Computational results
Since the cost function is the product of a factor s and the
number of time intervals, and all time intervals are of same size k, In this section we show that even though non-additive criteria
we get functions are hard to solve in theory, several real-life problems
0 1 2 3 are tractable in practice. The label-correcting algorithm was
X 1 X 7 implemented in C++ and all tests were carried out on a 2.1 GHz
c @ A 6
tij ¼ s6 tij 7 ð39Þ
6k eij A P 7 Pentium processor.
eij A P
The considered instances are based on real-life data from a
It is easy to see that shipping company which wants to find the Pareto optimal paths
la þ cm lam     for transporting a container from s to t when considering various
bþ c b
s s þsZs s ð40Þ objectives. The given network data contained 15 vertices and 125
k k k k
edges. In order to construct larger instances, the network has been
When a mod kZ b mod k and for all other cases regular domina- upscaled.
tion holds. In all tests we have restricted the number of transfers to at
For two paths P and Pu, we now by Theorem 3 have that most 10. This number is quite large and in reality could be set
2 3 2 3 2 3 2 3 lower. For comparison, we have run tests where the Pareto
6 1 X 7 6 1 X 7 6 1 X 7 6 1 X 7 optimal solutions are found without using the non-additive
s6 tij 7s Z s6 tij 7 ) s6 tij 7 Z s6 tij 7
6 k eij A Pusi 7 6k eij A P si 7 6k eij A Pust 7 6k eij A P st 7 domination. In some of the graph instances the tests not using
non-additive domination while using goal dominance only were
ð41Þ
omitted from the test set as they were too time consuming.
P P
holds when eij A Pusi tij mod k Z eij A P si tij mod k. Clearly if To improve the performance of the algorithm we have applied
2 3 & ’ some extra methods for eliminating undesirable paths such as goal
61 X 7 1 P dominance described in Section 5.3. In the case of goal dominance the
s6 tij 7 r s t a
6 k eij A P si 7 keij A Pusi ij
standard elimination is used for all objectives. Another way to
improve elimination is to preprocess the data by creating lower
and bounds between all pairs of vertices for all objectives. This method is
max fcij g r max fcij g ð42Þ described in Section 5.3. The lower bounds can be used to see if a
eij A Zu\P si eij A Zu\Pusi
subpath will be sure to yield a dominated path. This process uses the
then CðP st Þ rCðPust Þ. subpath values combined with the lower bounds of all objectives
from the current vertex to the destination to check for dominance
against a path already found.
6.7. Modulo k penalties
The tests reported in Table 1, considers a real-life shipping
problem similar to case C described in Section 2. The shipping
Let S be a given set of edges. We consider a shortest path
company wants to find the Pareto optimal paths for transporting a
problem where we pay an additional penalty s Z0 each time the
container from s to t when considering the time, the number of
set S has been visited k times. Our objective is hence
transfers, and the cost. The cost is non-additive as it includes
6 7
X 6 X 7   payments to agents along the path. Even though the same agent may
61 7 1
CðPÞ ¼ wij þ s4 cij 5 ¼ WðPÞ þ s CS ðPÞ ð43Þ be responsible for several vertices on a path, the agent only gets paid
e AP
k e A S\P k
ij ij once, corresponding to the largest commission the agent is entitled to
along the path taken. To solve this problem we have used max-
Jepsen et al. [16] handle this problem by using a dominance
dominance ( Theorem 4) for the cost objective and regular dominance (
criterion that takes into account when the cost sbcij =kc is to be
Theorem 1) for the time and transfer objectives.
paid. In other words, if two subpaths P si and Pusi end at the same
To illustrate the strength of the domination presented in this
node i and either
paper we have compared the results with results where we only
CðPusi Þ þ s r CðP si Þ and CS ðPusi Þ mod kZ CS ðP si Þ mod k ð44Þ eliminate a path at an intermediate point if all the commissions to
614 L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616

Table 1
This table shows the running times and the number of labels generated when finding the Pareto optimal paths in a graph.

Transfer, time and price with maximum of commissions objectives

Instance Number of Pareto optimal solutions found on 100 random requests Time for preprocessing (s) Number of hubs Number of departures

R1 571 3.96 91 1176


R2 491 137.24 221 4176
R3 583 2934.72 321 10176

With weighted domination

No optimization Goal dominance Lower bounds

R1 R2 R3 R1 R2 R3 R1 R2 R3

Average time (s) 0.24 0.94 4.30 0.12 0.40 1.98 0.08 0.23 1.05
Longest time (s) 0.54 1.72 9.23 0.39 1.30 7.11 0.25 0.91 4.84
Average # of labels 158566 688883 2.36e + 06 80255 301302 1.21e + 06 51399 158637 532142

Without weighted domination

Goal dominance Lower bounds

R1 R2 R3 R1 R2 R3

Average time (s) 15.74 – – 3.71 3.87 7.05


Longest time (s) 543.04 – – 243.25 141.82 147.18
Average # of labels 416319 – – 165849 458275 1.13e+ 06

The tests are performed with 100 random requests where one of the objectives contains a max function.

agents on the eliminated path are smaller than or equal to the time objective and the max-dominance (Theorem 4) for the price
commissions paid on the dominating path. Note that the random objective.
request are different for the different test instances. The fact that For comparison tests reported in Tables 1, 2 and 3 are also run
the request are different for the instances may explain the without using the domination of Corollary 2. In that case the
surprising result that the longest time it takes to solve a problem weighted objective of transfer and probability is dominated when
without using max-dominance takes longer for the smaller R 1 the transfers are greater and the probability is smaller than those
instance than for the other two larger instances. on the dominating path. For the time objective we use ordinary
In the second test, reported in Table 2, the four objectives of domination, while the price objective makes use of the same
time, transfers, cost and the probability of reaching destination domination as in the previous tests.
are considered. The probability objective is described in case A of The results clearly indicate that the presented tightened
Section 2. As we did not have access to real-life probability data, dominance methods for non-additive objectives significantly
the probability of each edge was uniformly randomly distributed. decrease the number of labels generated. In fact for the large
It is clear that with an additional objective the complexity of the graphs, less than a third of the labels are generated when using
problem will increase. This can be seen from the fact that the the non-additive domination methods for objectives. The data
average number of Pareto optimal paths in Table 2 for instance R 2 used for the lower bound method generated during preprocessing
and R 3 is more than 32 per request, where real-life instances can be used for all requests as long as the graph and objectives are
typically have fewer. Note that the probability objective uses the same. The time used on preprocessing clearly depends on the
regular domination as it has the monotonicity property. However, graph size. If the graph seldom is changed, it is computationally
the price objective is the non-additive objective from case C cheap to find the lower bounds. In the case of Table 2 instance R 3
described in Section 2. To solve this problem we have used max- it is evident that preprocessing reduces the running time and
dominance (Theorem 4) for the cost objective and regular number of generated labels significantly.
dominance (Theorem 1) for the time, transfers and probability Comparing instances R 2 , R 3 in the Tables 2 and 3 it is, not
objectives. In the comparison without using non-additive dom- surprisingly, clear that adding objectives has an impact on the
ination we have changed the non-additive domination on the complexity of the problem with an significant increase in the
price objective as in Table 1. It is clear that the max-dominance has number of Pareto optimal solutions. For all the tests, the tightened
a significant impact on the running time as does the lowerbound domination reduces the average running time by at least a factor
method even though the time used on preprocessing increases three and the longest running time by at least a factor two. One
significantly with the instance size. can also see that the improvement increases as the graph gets
In the third test, reported in Table 3, the three objectives time, larger.
price and the weighted objective of transfers and probability was
considered. The weighted function of an additive function and the
probability function is described for the distance and probability 8. Conclusion
in case B of Section 2. The price objective is the non-additive
objective from case C described in Section 2. To solve this problem This paper has presented some general techniques to restrict
we have used Corollary 2 for the weighted transfer and the subpaths that need to be investigated in a dynamic
probability objective and regular dominance (Theorem 1) for the programming algorithm, when solving shortest path problems
L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616 615

Table 2
This table shows the running times and the number of labels generated when finding the Pareto optimal paths in a graph.

Transfer, time, price with maximum of commissions and probability objectives

Instance Number of Pareto optimal solutions found on 100 random requests Time for preprocessing (s) Number of hubs Number of departures

R1 652 0.24 21 176


R2 3665 9.90 91 1176
R3 3242 55.15 121 2176

With weighted domination

No optimization Goal dominance Lower bounds

R1 R2 R3 R1 R2 R3 R1 R2 R3

Average time (s) 0.06 7.18 15.60 0.04 2.19 6.66 0.02 0.46 1.01
Longest time (s) 0.18 32.83 70.04 0.18 19.17 61.33 0.08 4.77 14.26
Average # of labels 36978 992223 2.37e + 06 22616 439291 1.13e+ 06 10122 124312 261952

Without weighted domination

Goal dominance Lower bounds

R1 R2 R3 R1 R2 R3

Average time (s) 3.21 – – 0.07 34.41 55.02


Longest time (s) 130.21 – – 1.08 2244.09 2174.12
Average # of labels 143011 – – 22690 454276 9003371

The tests are performed with 100 random requests where one of the objectives is the probability function.

Table 3
This table shows the running times and the number of labels generated when finding the Pareto optimal paths in a graph.

Time, price with maximum of commissions and transfer-probability objectives

Instance Number of Pareto optimal solutions found on 100 random requests Time for preprocessing (s) Number of hubs Number of departures

R1 408 0.23 21 176


R2 700 9.90 91 1176
R3 799 54.12 121 2176

With weighted domination

No optimization Goal dominance Lower bounds

R1 R2 R3 R1 R2 R3 R1 R2 R3

Average time (s) 0.04 0.37 1.40 0.02 0.16 0.55 0.01 0.10 0.34
Longest time (s) 0.11 0.84 9.44 0.08 0.69 4.06 0.08 0.38 2.33
Average # of labels 20067 209156 477149 11536 99848 210950 7860 58740 125878

Without weighted domination

Goal dominance Lower bounds

R1 R2 R3 R1 R2 R3

Average time (s) 0.81 – – 0.08 1.76 6.19


Longest time (s) 28.50 – – 1.82 76.89 146.86
Average # of labels 54585 – – 20206 183152 394376

The tests are performed with 100 random requests where one of the objectives is the probability combined with transfer function.

with several non-additive functions. The dynamic programming Based on the experimental results we may conclude that the
method for shortest path is simple and easy to adjust when the tightened domination method significantly lowers the number of
complicated cost functions that arise in real-life applications are labels generated for each problem. Using better data structures
encountered. The domination criteria presented in the theorems which make it possible to quickly test for domination may further
can, as shown in Section 6, be used on different real-life improve the running times.
applications. However, it should be noted that there are still Being able to handle non-additive objectives, the shortest path
many non-additive criteria and objectives not covered by the algorithms can more widely be applied to real-life problems. We
theorems presented in this article. believe that the tightened domination criteria given in this paper
616 L. Blander Reinhardt, D. Pisinger / Computers & Operations Research 38 (2011) 605–616

can be a tool box for others when defining such criteria for other [11] HUR. /http://trafikinfo.hur.dk/priserogbilletterS.
real-life problems. Our method is a contribution in the process of [12] Hutson K, Shier D. Extended dominance and a stochastic shortest path
problem. Computers & Operations Research 2009;36:584–96.
optimizing more and more real-life problems and thereby using [13] Ioachim I, Gelinas S, Desrosiers J, Soumis F. A dynamic programming
our resources optimally and minimizing waste both in the literal algorithm for the shortest path problem with time windows and linear node
and metaphorical sense. costs. Networks 1998;31:193–204.
[14] Irnich S, Desaulniers G. Shortest path problems with resource constraints. In:
Desaulniers MMSG, Desrosiers J, editors. Column generation. USA: Springer;
2005. p. 33–65.
Acknowledgments [15] Irnich S, Villeneuve D. The shortest path problem with resource constraints
and k-cycle elimination for k4 3. Informs Journal on Computing
2006;18:391–406.
The authors wish to thank Patrick Lincoln, Julia Lawall, Amelia
[16] Jepsen M, Petersen B, Spoorendonk S, Pisinger D. Subset-row inequalities
Regan and two anonymous referees for valuable comments. applied to the vehicle-routing problem with time windows. Operations
Research 2008;56:497–511.
[17] Lengauer T, Theune D. Efficient algorithms for path problems with gernal cost
References citeria. In: International colloquium on automata, languages and program-
ming (ICALP), 1991. p. 314–26.
[1] Ahuja R, Magnanti T, Orlin J. Network flows: theory, algorithms, and [18] Martins E. On a multicriteria shortest path problem. European Journal of
applications. Prentice Hall; 1993. Operation Research 1984;16:236–7.
[2] Blander-Reinhardt L. Multi-objective shortest path for cargo transportation. [19] Müller-Hannemann M, Schnee M. Finding all attractive train connections by
Master’s thesis, University of Copenhagen, DIKU, Denmark; April 2005. multi-criteria pareto search. In: Proceedings of the 4th workshop on
[3] Brumbaugh-Smith J, Shier D. An empirical investigation of some bicriterion algorithmic methods and models for optimization of railways (ATMOS
shortest path algorithms. European Journal of Operational Research 2004), Bergen, Norway, Lecture notes in computer science, 2004.
1989;43:216–24. [20] Müller-Hannemann M, Weihe K. On the cardinality of the pareto set in
[4] Carraway R, Morin TL, Moskowitz H. Generalized dynamic programming for bicriteria shortest path problems. Annals of Operation Research
multicriteria optimization. European Journal of Operational Research 2004;147:185–97.
1990;44:95–104. [21] Powell W, Chen Z. A generalized threshold algorithm for the shortest path
[5] Cormen T, Leiserson C, Rivest R. Introduction to algorithms. The MIT Press/ problem with time windows. In: Pardalos P, Du D, editors. DIMACS series in
McGraw-Hill Book Company; 1997. discrete mathematics and theoretical computer science. American Mathe-
[6] Desaulniers G, Desrosiers J, Ioachim I, Solomon M, Soumis F, Villeneuve D. matical Society; 1998. p. 303–18.
Fleet management and logistics. Kluwer Academic Publisher; 1998. chapter: [22] Skriver S, Andersen K. A label correcting approach for solving bicriterion
Unified Framework for Deterministic Time Constrained Vehice Routing and shortest-path problems. Computers & Operations Research 2000;27:
Crew Scheduling Problems. 507–24.
[7] Dumitrescu I, Boland N. Improved preprocessing, labeling and scaling algorithms [23] Taha H. Operations research—an introduction. 8th ed.. Pearson Prentice Hall;
for the weight-constrained shortest path problem. Networks 2003;42:135–53. 2007.
[8] Ehrgott M, Gandibleux X. An annotated bibliography of multiobjective [24] Tsaggouris G, Zaroliagis C. Non-additive shortest paths. In: Algorithms—ESA
combinatorial optimization. OR Spectrum 2000;22:425–60. 2004. 12th annual european symposium. Lecture notes in computer science,
[9] Gueguen C, Dejax P, Dror M, Gendreau M. An exact algorithm for the vol. 3221; 2004. p. 822–34.
elementary shortest path problem with resource constraints, Technical [25] Tsaggouris G, Zaroliagis C. Multiobjective optimization: improved fptas for
report, Laboratoire Productique Logistique, Ecole Centrale Paris, 1998. revised shortest paths and non-linear objectives with applications. In: Algorithms
in July 1999, also with D. Feillet as co-author. and computation. 17th international symposium, ISAAC 2006, Lecture notes
[10] Hansen P. Bicriteria path problems. In: Fandel G, Gal T. Multi criteria decision in computer science, vol. 4288; 2006. p. 389–98.
making theory and applications, Lecture notes in economics and mathema- [26] Villeneuve D, Desaulniers G. The shortest path problem with forbidden paths.
tical systems, vol. 177:109–127;1979. European Journal of Operational Research 2005;165:97–107.

Vous aimerez peut-être aussi