Abstract
Researchers have studied several different types of directed shortest path (SP) problems under fuzzy environment. However, few researchers have focused on solving this problem in an interval-valued fuzzy network. Thus, in order to light these, we investigate a generalized kind of the SP problem under interval-valued fuzzy environment namely all pairs shortest path (APSP) problem. The main contributions of the present study are fivefold: (1) In the interval-valued fuzzy network under consideration, each arc weight is represented in terms of interval-valued fuzzy number. (2) We seek the shortest weights between every pair of nodes in a given interval-valued fuzzy network based on a dynamic approach. (3) In contrast to most existing approaches, which provide the shortest path between two predetermined nodes, the proposed approach provides the interval-valued fuzzy shortest path between every pair of nodes. (4) Similarly to the competing methods in the literature, the proposed approach not only gives the interval-valued fuzzy weights of all pairs shortest path but also provides the corresponding interval-valued fuzzy APSP. (5) The efficiency of the proposed approach is illustrated through two applications of APSP problems in wireless sensor networks and robot path planning problems.
Keywords
Introduction
The aim of the shortest path (SP) problem is to find the best way to traverse a network to get from one point to another with at least weight (time, cost or length). From this point of view, researchers have studied three forms of this problem classified as follows [1]:
Group 1: Finding shortest paths from one node to all other nodes with non-negative arc weights
Group 2: Finding shortest paths from one node to all other nodes with arbitrary arc weights
Group 3: Finding shortest paths from every node to every other node known as all-pairs SP problem.
The SP problem as a network structured optimization problem arises in numerous applications settings and in different forms. This problem arises in telecommunications in order to send a message between two locations with at least time. Moreover, the SP problem appears in transportations industries in order to send a vehicle between two points with at least cost. Also, the problem of finding urban traffic patterns solves a large number of SP problems as sub-problems [1]. Traffic-light networks, supply chain management, motion planning for car-like robots, investment planning, routing and models involving agents provide other applications of SP problem [2, 3]. In addition, SP problems appear frequently as sub-problems in more complex network optimization problems. In such real applications of SP problem, the cost and time values are generally imprecise or vague in nature as they fluctuated with traffic conditions and weather. But, SP problems are formulated with the assumptions that the arc weights are specified in terms of crisp numbers. Therefore, many researchers have focused on solving SP problems in uncertain environment.
Majority of inexact models in handling vague and imprecise data are related to stochastic programming, interval programming, and fuzzy programming models. But, stochastic and interval programming approaches are not very efficient to describe and tackle uncertainties associated with all real-world applications. In fact, in literature in stochastic optimization, parameters are assumed to be with known probability distributions while it is not always possible for a decision maker to determine the probability distribution in an inexact environment. Moreover, interval numbers are a special case of fuzzy numbers. Hence, in this work, we use fuzzy data in order to reflect uncertainty in the all-pairs SP problem belonging to Group 3 as the general case of SP in Group 1 and Group 2. The solution approaches for solving fuzzy SP (FSP) problems generally can be divided into two categories: directed approach and heuristic approach. An overview of the papers which have studied SP problems under fuzzy environment and investigated solution techniques can be summarized as follows.
According to the direct approach, some researchers have generalized present algorithms of this problem in a crisp environment to find the FSP. According to possibility theory, Okada and Soper [4] presented an algorithm to find SP in a network with fuzzy weights in which degree of possibility on an optimum path would be determined for each arc. Moazeni [5] proposed an algorithm based on the Dijkstra algorithm for finding all non-dominated paths in a network with fuzzy weights. Nayeem and Pal [6] presented an algorithm based on acceptance index that either finds the unique FSP or demonstrates a guide in which the best FSP would be chosen by the decision maker. Mahdavi et al. [7] used Floyd-Wrashal to find the FSP from one node to another. They used a distance function for comparing non-dominant fuzzy paths. Hernandes et al. [8] proposed a general algorithm for finding FSP that yields a unique fuzzy path or a set of fuzzy paths based on the decision makers opinion regarding the ranking index. Also, this algorithm works properly in a network with negative fuzzy parameters and is capable of distinguishing a negative circuit in the network. Ramazani et al. [9] used FSP algorithm in traffic forecasting. Deng et al. [10] generalized Dijkstra algorithm for solving this problem in a fuzzy environment which is more efficient than present algorithms due to introducing a new technique for summing up and comparing two fuzzy numbers. Zhang et al. [11] developed a biologically inspired for solving FSP problem without using any order relation between fuzzy numbers. Niroomand et al. [12] used the extension principle for solving the FSP problem. They have decomposed the FSP into two subproblems in order to find the lower and upper bounds of the membership function of the fuzzy cost of the shortest path.
Another approach that is used in solving the SP in a network with fuzzy arc weights is using heuristic algorithms. Hassanzadeh et al. [13] used a genetic algorithm for finding the shortest path in oriented graphs in which fuzzy weights of arcs have different membership functions. To do that, they presented an approximate method for summing up fuzzy numbers with different membership functions in order to find the length of paths. In fact, the fuzzy length of each path is approximately the sum of lengths of arcs in the path. Ebrahiminejad et al. [14] used Particle Swarm Optimization instead of genetic algorithm in order to reduce operation time and to increase convergence speed. In this problem, the position and velocity of each particle is an acceptable path of the graph. In that research, cross over operator is used in a particular way for updating velocity and position vectors of particles. That algorithm achieved to converge more quickly and find the optimum path in a shorter period of time compared to the genetic algorithm. In order to reduce the needed time for finding the shortest path in complicated graphs with fuzzy arcs, Ebrahimnejad et al. [15] used Artificial Bee Colony algorithm in which mutation operator is used for performing employed bees and onlooker bees search.
Despite a wide range of researches that have been done about the SP problem in a fuzzy environment, few have been done for finding an SP with interval-valued fuzzy data. In contrast to most existing approaches which use fuzzy numbers to represent vague data, we use an extension of fuzzy data, namely interval-valued fuzzy data, where the values of membership functions are expressed in terms of intervals rather than crisp numbers, to process fuzzy information in the SP problem under consideration [16, 17]. Dey et al. [18] proposed a procedure based on a genetic algorithm for solving the SP problem with interval-valued fuzzy weights. Enayyattabr et al. [19] developed traditional Dijkstra algorithm to find the cost of interval-valued Pythagorean fuzzy SP from a source node to a destination node. Here, we would propose an algorithm for solving all-pairs SP problem in a network with interval-valued fuzzy weights. To the best of my knowledge, there is no research in literature on solving interval-valued fuzzy all-pairs SP problem. That’s why in this research we would propose a dynamic approach for solving all-pairs SP problem in a network with interval-valued fuzzy weights. In contrast to most existing approaches [4–15], in this work it would be assumed that fuzzy data of the problem have interval-valued trapezoidal fuzzy membership functions. In contrast to most existing approaches [4–6, 13–15], the proposed approach utilizes a simple technique for summing up and comparing two interval-valued trapezoidal fuzzy numbers. In contrast to existing approaches [4–6, 8–15], which provide the shortest path between two predetermined nodes, the proposed approach provides the interval-valued fuzzy shortest path between every arbitrary pair of nodes. Similarly to the competing methods in the literature [6, 10], the proposed approach not only gives the interval-valued fuzzy weights of all pairs shortest path but also provides the corresponding interval-valued fuzzy all-pairs SP. In contrast to heuristic approaches [13–15] that provide an approximate solution to the fuzzy SP or Interval-valued FSP, the proposed approach provides an exact optimal solution.
The remainder of this paper is organized as follows. Some necessary concepts and backgrounds on interval-valued fuzzy set theory are reviewed in Section 3. In Section 3, we first formulate all pairs shortest path problem under interval-valued fuzzy network and then use a dynamic programming algorithm to compute shortest weighted paths for each pair of nodes of the interval-valued fuzzy network. In Section 4, two applications of the proposed algorithm in wireless sensor networks and robot path planning are presented. Lastly, the paper is concluded in Section 5.
Preliminaries
In this section, some basic definitions, the arithmetic operations and the comparison of the level (w L , w U )-interval-valued trapezoidal fuzzy numbers are reviewed [16, 20–22].
The family of all level h–trapezoidal fuzzy numbers is denoted by F TN (h).
The membership function of the upper trapezoidal fuzzy number

The interval–valued trapezoidal fuzzy number.
The signed distance ranking given in Theorem 1 is used to order of level (w L , w U )–interval–valued trapezoidal fuzzy numbers.
In this section, we first give a mathematical formulation of the IVFAPSP problem and then propose a dynamic approach for solving the problem using the signed distance ranking to order interval–valued fuzzy weights.
Interval–valued fuzzy mathematical formulation
Consider a connected and directed network G = (N, E) where N = {1, 2, . . . , n} is the set of nodes and E is the set of arcs (|E| = m). Each arc is denoted by an ordered pair (i, j), where i, j ∈ N. The weight of arc (i, j) is denoted by c ij . A path p st from node s to node t is a sequence of arcs p st = {(s, s1) , (s1, s2) , . . . , (s v , t)} in which the initial node of each arc is same as the terminal node of preceding arc in the sequence. For simplicity, we show this path as p st = {s, s1, s2, . . . , s v , t}. We define the weight of a path as the sum of the weights on the arcs in the path. All pairs shortest path problem is to find shortest weights between every pair of nodes in a given directed network [23]. Now, if the weight of each arc is represented in terms of an interval–valued trapezoidal fuzzy number then the weight of each path between any two given nodes will be an interval–valued trapezoidal fuzzy number. In this case, the problem of finding the shortest path between every pair of nodes in a network with interval–valued trapezoidal fuzzy arc weights is called interval–valued fuzzy all pairs shortest path (IVFAPSP) problem.
Let interval–valued trapezoidal fuzzy weight associated with the arc (i, j), corresponding to the cost necessary to traverse (i, j) from node i, to node j is denoted by
In this case, the interval–valued fuzzy all pairs shortest path problem is formulated as the following interval–valued fuzzy linear programming problem:
The IVFAPSP problem requires determining the IVFSP costs between every pair of nodes in the network. With this in mind, the generic all pairs label-correcting (GAPLC) algorithm is generalized in interval-valued fuzzy environment for solving this problem. The extended GAPLC algorithm is called interval-valued fuzzy GAPLC (IVFGAPLC) algorithm. It is assumed that the network does not contain a negative cycle.
Let [i, j] denotes a pair of nodes i and j in the network G = (N, E). The IVFGAPLC algorithm relies on IVFAPSP optimality conditions. The IVFGAPLC algorithm maintains an interval-valued fuzzy cost label
We now demonstrate if the interval-valued fuzzy costs
This means that
This confirms that
The IVFAPSP optimality conditions immediately yield the following IVFGAPLC algorithm. This algorithm starts with some interval-valued fuzzy cost labels
For i = 1 to n do
For j = 1 to n do
For k = 1 to n do
For i = 1 to n do
For j = 1 to n do
If
The Floyd-Warshall algorithm in the interval–valued fuzzy environment is based on inductive arguments developed by an application of a dynamic programming technique. Hence, in this subsection, we use a dynamic programming algorithm to compute shortest weighted paths for each pair of nodes of the interval–valued fuzzy network. To do this, we first need to derive a recursive formula for the optimal interval–valued fuzzy values.
Let
For a shortest path from node i to node j such that any intermediate nodes on the path are chosen from the set {1, 2, . . . , k}, there are two possibilities:
Case 1: The path does not pass through node k, i.e. node k is not an intermediate node on the path. In this case, we have
Case 2: The path passes through node k, i.e. node k is an intermediate node on the path. In this case, such path consists of a path from node i to node k and a path from node k to node j. Both paths can only contain intermediate nodes in set {1, 2, . . . , k - 1} and consequently have interval-valued fuzzy costs
Combining the two cases we get the dynamic programming formulation as follows:
Hence, a formal description of the extended Floyd-Warshall algorithm in the interval–valued fuzzy environment for finding an interval-valued fuzzy shortest chain cost and an interval-valued fuzzy shortest chain is given as follows:
For i = 1 to n do
For j = 1 to n do
For k = 1 to n do
For i = 1 to n do
For j = 1 to n do
If
Else,
The index pred [i, j] denotes the last node prior to node j in the tentative interval-valued shortest path from node i to node j. Using the predecessor indices, the final path, say P, from node u to node v is extracted as follows. We backtrack along the path P starting at node v. If pred [u, v] =0, the interval-valued fuzzy shortest path does not pass through any intermediate node and path P is just the arc the (u, v). If pred [u, v] = t, then node t is the node prior to node vin P. Similarly, l = pred [v, t] is the node prior to node tin P. This process is continued until we reach node u.
In this section, the efficiency of the proposed algorithm in solving interval-valued fuzzy shortest path problem is demonstrated in wireless sensor networks and robot path planning problems.
Application in wireless sensor networks
Wireless sensor network (WSN) is comprised of lots of sensor nodes that use irreplaceable batteries. These nodes are usually scattered in a geographical area haphazardly. Generally, wireless sensor networks are responsible for collecting data from its environment and passing it to a specific node called
“Sink”. The most restrictive constraint imposed by WSNs is energy sources which limits the lifetime of the networks [24, 25]. The lifetime of the network can be extended by energy aware protocols by saving as much energy as possible. In other words, because the sensor nodes are unreachable, one of very important challenges in a WSN is energy consumption efficiency that prolongs network’s lifetime. Hence, how to find the shortest path for sending data in a WSN that will cause energy consumption reduction is a problem worthy of study. As energy consumption cannot be measured preciously because of environmental conditions, interval-valued fuzzy data is used for modeling the SP problem in a WSN.
Figure 2 shows an example of a WSN with ten sensor nodes. The neighbor nodes are connected to each other through 23 arcs.

A wireless sensor network.
Table 1 shows the needed energy for data transferring between neighbor nodes in terms of interval-valued trapezoidal fuzzy numbers.
Interval-valued fuzzy energy of WSN
We apply the extended Floyd-Warshall algorithm in the interval–valued fuzzy environment given by Algorithm 2 to solve this interval-valued fuzzy WSN problem. The results for consuming minimum energy between every two nodes of the WSN in terms of interval-valued trapezoidal fuzzy numbers are shown in Table 2. The first component of each element shows the lower bound of interval-valued fuzzy membership function of the minimum energy and the second component of each element shows the upper lower bound of interval-valued fuzzy membership function of the minimum energy. The results for paths are shown in Table 3.
Minimum energy for WSN
Results of paths information for WSN
The amount of energy consumption
Using the results of Table 2, the interval-valued fuzzy shortest chain cost between any two nodes is determined. For example, the interval-valued fuzzy shortest path cost between nodes 1 and 10 is 〈 (115, 122, 124, 128 ; 0.6) , (111, 119, 125, 129 ; 0.7)〉. Using the predecessor indices and the results of path information given in Table 3, one can conclude that node 3 is an intermediate node on the path 1 to 10 and path 3 to 10 is just the arc the (3, 10). This means that the corresponding interval-valued fuzzy shortest chain is 1-3-10.
One of the fundamental challenges of the robatic field is robot’s movement. That is why path planning is an eminent issue of robotics research and it is used to enhance autonomy of moving robots in complex environments. The objective of robot path planning problem is to find the shortest path without collide from source point to destination point. Because the amount of energy cannot be measured precisely due to environmental conditions, fuzzy data or its extensions such as interval-valued fuzzy data would be used for modeling the problem and the problem would be called fuzzy or interval-value fuzzy robot path planning problem.
Figure 3 shows a network with 20 nodes and 55 arcs for robot path planning problem. Table 4 gives the amount of energy consumption between nodes in terms of interval-valued trapezoidal fuzzy numbers.

A robot path planning network.
The results for all-pairs shortest paths are shown in Table 5(a)–(d). Using the results of Table 5, the interval-valued fuzzy shortest chain in terms of energy consumption between any two nodes is determined. For example, the interval-valued fuzzy shortest path in terms of energy consumption between nodes 1 and 20 is
The interval-valued fuzzy shortest chain in terms of energy consumption (a)
Continued (b)
Continued (c)
Continued (d)
Using the predecessor indices and the results of path information given in Table 6, one can conclude that the corresponding interval-valued fuzzy shortest chain is 1-2-8-14-18-19-20.
All-pairs path information
Based on the fact that shortest path problem as an important network optimization problem arises in numerous applications such as telecommunications, transportations industries, supply chain management, investment planning, routing and so on, many researchers have studied several types of this problem in crisp and uncertain environments and proposed some interesting algorithms to find the path with lowest weight. Here we formulated interval-valued all pairs shortest path problem as a general case of fuzzy shortest path problem and proposed an algorithm to find the shortest weights between every pair of nodes. To do so, we proved the optimality conditions for the APSP problem in the interval-valued fuzzy network. The dynamic approach proposed in this works utilized the signed distance ranking to order interval-valued fuzzy arc weights and provided simultaneously the interval-valued fuzzy weights of all pairs shortest path and the corresponding interval-valued fuzzy APSP. We illustrated the efficiency of the proposed approach through two applications of APSP problems in wireless sensor networks and robot path planning problems. Because the proposed method is based on the classical SP algorithm, it is easy to learn and apply for obtaining interval-valued fuzzy shortest path between every two nodes of the IVFAPSP problems pertaining to real-world applications. In sum the advantages of the proposed method over the existing methods for solving SP problem in fuzzy environment are discussed as follows: In contrast to the exiting approach [12] that the membership function is derived numerically and no mathematical form is provided, the proposed algorithm derive the mathematical form of the membership function so that the membership degree can be calculated directly. In contrast to the existing methods [4–15], the proposed method provides interval-valued fuzzy optimal shortest path weight that indicates possible outcomes with an interval degree of membership to the decision maker. This is especially useful for strategic decisions in cases more uncertainty exists. In contrast to heuristic approach [12–15] that gives a solution near to optimal solution with high computational effort, the proposed approach not only gives the exact optimal solution, but also needs less computational effort. In contrast to existing approaches [4–6, 8–15] which provide the shortest path between two predetermined nodes, the proposed approach provides the interval-valued fuzzy shortest path between every arbitrary pair of nodes. Similarly to the competing methods in the literature [4, 10], the proposed approach not only gives the interval-valued fuzzy weights of all pairs shortest path but also provides the corresponding interval-valued fuzzy all-pairs SP. This technique decreases the computational effort significantly. Although the existing approach [18] can be used for solving interval-valued fuzzy APSP problem, but it should be implemented Many other areas remain to be researched. Some of these are discussed below. In many network routing problems several conflicting objectives must be considered. The proposed approach can be extended for solving multi objective APSP problem with interval-valued fuzzy parameters. The proposed algorithm cannot be applied in networks with negative interval-valued fuzzy parameters and it cannot detect whether there are negative circuits. The generalization of the proposed algorithm to overcome these shortcomings is an interesting topic for future research. Using interval-valued fuzzy data for modeling other real world problem such indoor air quality [26] and biological wastewater treatment process [27]; is left to the next study.
Footnotes
Acknowledgment
The authors would like to thank the anonymous reviewers and the associate editor for their insightful comments and suggestions.
