Abstract
In the current era of digitization and the rise of e-commerce sector over the past decade, it becomes essential to identify and address issues surrounding e-commerce logistics. The current study addresses the problem of location based inventory routing for delivery from warehouse to various destinations. The study uses a dynamic meta-heuristic approach, Ant Colony Optimization (ACO), to solve this problem in e-commerce. A sensitivity analysis is done to identify the coefficient values to be fixed for the ACO Engine. The longitude and latitude coordinates from Google Maps are mapped to distance metrics between the warehouse and the delivery destinations for orders to be delivered on a particular day. The analysis is conducted for a total of 346 locations and the total distance to be travelled came out to be 690.29 km using the proposed approach. Findings of the study can be applicable in multiple domains of e-commerce logistics and other graph based routing problems.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
Keywords
- Inventory routing problem
- E-commerce
- Ant colony optimization
- Location inventory problem
- Travelling salesman problem
1 Introduction
India has an Internet user base of over 460 MillionFootnote 1 (as per Statista) with approximately 6 million new users being added every month. This huge inflow of internet users has opened several business avenues. The buying and selling of products and services over the internet is often referred to as e-commerce. The buying and selling of goods have seen some tremendous growth in past decades. The number of e-commerce consumers is exponentially increasing day by day. Further, the growth of smart phones and internet is contributing to this exponential growth in this e-commerce sector. In emerging economy like India, China, Indonesia and Brazil amongst others, the e-commerce presence is expanding every year as the consumer is becoming comfortable in online shopping.
Apart from online payments made towards these purchases, cash on delivery is a dominating payment method especially in India [1]. The retail market of India is expecting growth of from 2.5% in 2016 to 5% in 2020 [2]. Further, the total valuation of e-commerce market in India was estimated at 27.5 billion USD in 2016 and the expected growth of e-commerce industry is at a CAGR of 31% which can touch 30 billion USD in 2020 [3]. As per the Indian e-commerce industry analysis the e-commerce industry of India is going upward and it is expected to surpass the US in 2034. It is expected to become the second largest next only to China. The growth is triggered by the surrounding ecosystem. Increase in the internet reach and smart phone penetration enables the Indian users to take this leap.
For any e-commerce company, customer satisfaction and service level is determined by three important decisions including facility location decision, inventory decision and transportation decision [4]. The current study, however, caters primarily to the strategic warehouse location and transportation optimization. The study focuses on a combination of location inventory problem, location routing problem and the inventory routing problem. The advancement of information technology with information capturing as the focus that is available during real-time operations opens several new research directions [5].
Machine learning in the current scenario, is often used in interpreting huge volume of data and is proven to be very helpful in decision making [6]. Thus, the current study also explores swarm intelligence in context of online retail logistic operation optimization. Swarm intelligence algorithms are inspired by social insects such as honey bees, bird flocks, ants or any other social animal. For the dynamicity of routing in e-commerce, this study specifically focuses on ant colony optimization for solving the Location based Inventory Routing Problem (LIRP). These swarm based approaches have found applications in domains as varied as energy [7], wireless networks [8], social media content popularity [9] and spam [10], scheduling and resource management [11] amongst others. The subsequent subsections focus on the review of existing literature, the research methodology adopted and the findings of the study.
2 Related Work
The academic literature illustrates on several approaches that have been proposed for the Vehicle Routing Problem (VRP). These can be broadly classified as classical heuristics, these are exact solutions and were developed mostly from 1960–1990, and meta-heuristics that provide approximate solutions and have become popular over the last few decades [12, 13]. Literature also highlights the emerging importance of vehicle routing and meta-heuristics, specifically in the form of nature inspired and swarm intelligence algorithms.
This section discusses the literature surrounding heuristic solutions to routing problems and applications of swarm intelligence in various domains. The solutions to vehicle routing problems were available as early as 1960s [13]. The classical heuristics follow a merging and assigning process, where the technique merges existing routes using savings criteria where the aim is to minimize the route length followed by the assignment of vertices to routes using insertion cost [14]. Other methods include the sequential improvement [15, 16], the sweep algorithm [17], petal algorithms [18] and clusterfirst, route-second approach [19]. Other existing studies with exact solutions were using mathematical models like spanning tree [20]. Gendreau et al. [21] proposed a Tabu search heuristic approach for solving the same.
The exact mathematical and heuristic solutions for vehicle routing problems were followed by meta-heuristics, probabilistic models like meta-strategy simulated annealing is also used for approximating to a globally optimum solution for the problem [22]. Bio-inspired computing algorithms are being popularly used in various case scenarios including classification, clustering, regression and outlier detection problems [23,24,25,26]. Further, literature also has evidences of theories inspired from nature, an ant based system is used for finding the shortest path for the vehicle for routing [27]. The literature has proposed hybrid meta-heuristic approaches to solve hard combinatorial optimization problems like the ones under consideration in this study. Studies also focus on Genetic Algorithms and many of its hybrid variants with and without trip delimiters for solving the problem at hand [28]. Any feasible chromosome sequence is an optimal route that can be used by the vehicle.
This study focuses on using the existing ant colony optimization for routing [29] in the e-commerce domain. With the current explosion in the e-commerce sector, the need to provide an optimal route for delivery through the same warehouse is a great example of the existing Travelling Salesman Problem. This can be used to solve logistic problems optimally. The subsequent section discusses the proposed approach, the dataset used and the findings of the study.
3 Research Methodology
For the purpose of simplicity the current study works on some assumptions that only one vehicle will do the delivery, only Delhi and Gurgaon is used as the location, a warehouse captures the Delhi and Gurgaon location and that the vehicle returns back to warehouse. For capturing the address location as latitude and longitude, the Google Maps API is used. Further, ant colony optimization is applied for the current Travelling Salesman Problem (TSP) [30]. The algorithm is adopted with slight modification for the current vehicle routing problem since routing has to start from the warehouse and not randomly. Figure 1 illustrates the process followed for getting the best route for solving the location based inventory problem in the study.
3.1 Data Description
Online Retail data has been adopted from University of California machine learning repository. The data contain record of 293 days sales record with 541909 entries as represented in Table 1. Further, an extra column has been added to data file with the Delhi and Gurgaon addresses. A total of 468 addresses have been chosen and mapped to online retail data. For Delhi, North, South, East and West Delhi has been considered. Similarly, for Gurgaon, the areas have been divided in urban and rural.
The subsequent subsection discusses the ACO engine and how the routing can be modeled mathematically.
3.2 Mathematical Model
The ACO is a probabilistic meta-heuristic technique which can be used for identifying an optimal path in the graph based on behavior of ants travelling a path between the ant colony and the food source. The current study passes the distance metrics for vehicle routing to the ACO engine and the mathematical formulation/model for the same is elaborated in the current sub-section. The section discusses how ACO’s pheromone trail update process can be utilized for seeking an optimal path from the warehouse to different destinations.
For the purpose of analysis, historical data is used to find the area which has received maximum number of orders which is basically the mode in the data. This helps in identifying the location where the warehouse can be established. Now, for the purpose of vehicle routing, the Google Maps API is used to identify the latitude (LAT) and longitude (LNG) of the address location that is further converted in meters for computing the distance between the two address i and j using the Haversine Formula [31] as per Eqs. 1–3.
where R is the radius of the earth (Mean Radius = 6,371 km).
After calculating the distance between addresses we need to construct the distance graph so that every demand point is represented by a variable V1, V2, V3, … … … Vn with variable Vi having values Value1, Value2, Value3, … … … Valuen. The graph thus constructed would be G = (V, n) and the total number of vertices in the graph becomes n * (n − 1)/2. Each variable Vi vertex vi,j having value Valueij. The graph has a single root node (warehouse) from where the routing run is initiated leading to creation of a bidirectional symmetric graph.
The current study uses the ant system algorithm which is the first variant of ACO algorithm [32, 33]. The ant system works on pheromone values that are updated by all the ants completing their tour. The problem comprises of a network flow model where the ants have a probability (Probx,y) that helps them to choose the path to be taken. This path is from a node x to node y in the flow network. Every path has a probability associated with it which is given by Eq. 4.
where τx,y is the pheromone amount present on path from node x to node y.
φx,y, represents the desirability of the path from node x to node y and is often the inverse of the distance between x and y i.e. lesser the distance (often Euclidean distance), greater is the path desirability as expressed in Eq. 5.
Lastly, α is a constant representative of the importance given to a particular pheromone trail and β is a constant which represents the importance given to the vision/ant memory. To find the appropriate values for α and β, a sensitivity analysis is conducted for achieving optimum results.
Further, once the probability for each path is computed, the pheromone trails need to be updated after every iteration depending on the paths chosen by the traveling ants. These trails are updated by the ants that have updated their tour as per Eq. 6.
where i represents the number of ants in the colony, ρ is the evaporation rate of the pheromone and \( \Delta \tau_{x,y}^{z} \) is indicative of the amount of pheromone deposited by zth ant on the path from node x to node y (i.e. edge (x, y) in the flow network (Eq. 7).
where LenTourz is the length of the tour of ant z.
In the current sceanrio of online retail, the source will always be the warehouse and destinations would be the addresses on which the packages are to be delivered. The result of the above ACO engine gives the optimal path for routing which is used for location based inventory delivery. To achive optimal results, certain metrics in the ACO model need to be fixed for which a sensitivity analysis is conducted.
4 Sensitivity Analysis
For the purpose of finding out the optimal vehicle route the ACO is used which is able to find a sub-optimal path. As discussed in the mathematical model, the importance of visibility of pheromone trails can be controlled via Alpha (α), Beta (β) and Rho (ρ), these values need to be identified for optimal results. Further, the ACO engine runs for a particular number of iterations updating the paths in very iteration. The optimization is often directly proportional to the number of ant agents and number of iterations. However, the same needs to be identified and set. This section also explores various combinations of number of ant and number of iterations to achieve the most optimal routing path. Figure 2 represents the plots for all coefficients for sensitivity analysis.
The current study uses ACO to solve the location based inventory routing problem for delivery of packages for an online retail firm. The study uses a sensitivity analysis to identify values for coefficients that result in the most optimal route for delivering the inventory. Table 2 summarizes the coefficients used in the ACO engine to generate the path.
The above variables are fed into the model for routing the vehicle from the warehouse to the destinations. Figure 3 illustrates the optimal path generated from the ACO engine in terms of longitude and latitude coordinates.
The total number of locations are 346 and the total distance to be travelled is 690.29 km as identified through the sensitivity analysis.
5 Conclusion and Future Scope
Ant colony optimization is one of the possible solution of location based inventory routing problem. It is able to find the sub-optimal route in dynamic routing as compared to any static algorithm like Dijkstra, Prim’s or Kruskal. This study analyzes ordinal data find the Sub optimal path. The optimization increases as the number of ants and number of iterations increased. The ACO engine can be used in various machine learning applications including both supervised an unsupervised techniques and proves to be reusable in variety of applications. ACO has the ability to adapt to the situation at hand and take corrective action and thus it is well suited for solving problems in dynamic environments like online retail.
This study highlights how powerful ACO is and how the positive feedback system can be used as an optimization tool. ACO can also be used as a broader class of problems. The computation power required for application of the algorithm in case scenarios is quite high. Other possible applications of ACO could be an integration with neural network [34], immune network [35], evolution strategies [36], genetic algorithms [37], job scheduling and project scheduling among others.
We believe there is further scope of the optimization and further work can be done in area of improvement of ACO. The approach can be combined with other static algorithms for taking advantage of the benefits of both for dynamicity of the problems. For a multi-warehouse problem, a clustering algorithm can also be integrated to cluster the delivery locations keeping the warehouse as centroids and then using ACO for generating the routes and assigning suitable delivery agents.
References
Hawk, S.: A comparison of B2C e-commerce in developing countries. Electron. Commer. Res. 4(3), 181–199 (2004)
Doger, K., Tanwar, P.: Fulfilled! India’s e-commerce retail logistics growth story (2015)
FICCI, & KPMG.# Shootingforthestars: Indian media and entertainment industry report (2015)
Ballou, R.H.: The evolution and future of logistics and supply chain management. Eur. Bus. Rev. 19(4), 332–348 (2007)
Secomandi, N.: Comparing neuro-dynamic programming algorithms for the vehicle routing problem with stochastic demands. Comput. Oper. Res. 27(11–12), 1201–1225 (2000)
Ali, H., Kar, A.K.: Discriminant analysis using ant colony optimization – an intra- algorithm exploration. Procedia Comput. Sci. 132, 880–889 (2018)
Barbagallo, D., Di Nitto, E., Dubois, D.J., Mirandola, R.: A bio-inspired algorithm for energy optimization in a self-organizing data center. In: Weyns, D., Malek, S., de Lemos, R., Andersson, J. (eds.) SOAR 2009. LNCS, vol. 6090, pp. 127–151. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-14412-7_7
Kulkarni, R.V., Venayagamoorthy, G.K., Cheng, M.X.: Bio-inspired node localization in wireless sensor networks. In: IEEE International Conference on Systems, Man and Cybernetics, pp. 205–210. IEEE (2009)
Aswani, R., Ghrera, S.P., Kar, A.K., Chandra, S.: Identifying buzz in social media: a hybrid approach using artificial bee colony and k-nearest neighbors for outlier detection. Soc. Netw. Anal. Min. 7(1), 38 (2017)
Aswani, R., Kar, A.K., Ilavarasan, P.V.: Detection of spammers in twitter marketing: a hybrid approach using social media analytics and bio inspired computing. Inf. Syst. Front. 20(3), 515–530 (2018)
Guddeti, R.M., Buyya, R.: A hybrid bio-inspired algorithm for scheduling and resource management in cloud environment. IEEE Trans. Serv. Comput. (2017). https://doi.org/10.1109/tsc.2017.2679738
Laporte, G.: The vehicle routing problem: an overview of exact and approximate algorithms. Eur. J. Oper. Res. 59(3), 345–358 (1992)
Laporte, G., Gendreau, M., Potvin, J.Y., Semet, F.: Classical and modern heuristics for the vehicle routing problem. Int. Trans. Oper. Res. 7(4–5), 285–300 (2000)
Clarke, G., Wright, J.W.: Scheduling of vehicles from a central depot to a number of delivery points. Oper. Res. 12(4), 568–581 (1964)
Mole, R.H., Jameson, S.R.: A sequential route-building algorithm employing a generalised savings criterion. J. Oper. Res. Soc. 27(2), 503–511 (1976)
Christofides, N., Mingozzi, A., Toth, P.: The vehicle routing problem. In: Christofides, N., Mingozzi, A., Toth, P., Sandi, C. (eds.) Combinatorial Optimization. Wiley, Chichester (1979)
Gillett, B.E., Miller, L.R.: A heuristic algorithm for the vehicle dispatch problem. Oper. Res. 22, 240–349 (1974)
Agarwal, Y., Mathur, K., Salkin, H.M.: A setpartitioning based exact algorithm for the vehicle routing problem. Networks 19(7), 731–749 (1989)
Fisher, M.L., Jaikumar, R.: A generalized assignment heuristic for vehicle routing. Networks 11(2), 109–124 (1981)
Christofides, N., Mingozzi, A., Toth, P.: Exact algorithms for the vehicle routing problem, based on spanning tree and shortest path relaxations. Math. Program. 20(1), 255–282 (1981)
Gendreau, M., Hertz, A., Laporte, G.: A tabu search heuristic for the vehicle routing problem. Manag. Sci. 40(10), 1276–1290 (1994)
Osman, I.H.: Metastrategy simulated annealing and tabu search algorithms for the vehicle routing problem. Ann. Oper. Res. 41(4), 421–451 (1993)
Kar, A.K.: Bio inspired computing–A review of algorithms and scope of applications. Expert Syst. Appl. 59, 20–32 (2016)
Chakraborty, A., Kar, A.K.: Swarm intelligence: a review of algorithms. In: Patnaik, S., Yang, X.-S., Nakamatsu, K. (eds.) Nature-Inspired Computing and Optimization. MOST, vol. 10, pp. 475–494. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-50920-4_19
Aswani, R., Ghrera, S.P., Chandra, S.: A novel approach to outlier detection using modified grey wolf optimization and k-nearest neighbors algorithm. Indian J. Sci. Technol. 9(44) (2016)
Aswani, R., Ghrera, S.P., Chandra, S., Kar, A.K.: Outlier detection among influencer blogs based on off-site web analytics data. In: Kar, A.K., et al. (eds.) I3E 2017. LNCS, vol. 10595, pp. 251–260. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-68557-1_23
Bullnheimer, B., Hartl, R.F., Strauss, C.: An improved ant system algorithm for the vehicle routing problem. Ann. Oper. Res. 89, 319–328 (1999)
Prins, C.: A simple and effective evolutionary algorithm for the vehicle routing problem. Comput. Oper. Res. 31(12), 1985–2002 (2004)
Bell, J.E., McMullen, P.R.: Ant colony optimization techniques for the vehicle routing problem. Adv. Eng. Inform. 18(1), 41–48 (2004)
Gass, S.I., Fu, M.C. (eds.): Encyclopedia of Operations Research and Management Science. Springer, Boston, MA (2013). https://doi.org/10.1007/978-1-4419-1153-7
Robusto, C.C.: The cosine-haversine formula. Am. Math. Mon. 64(1), 38–40 (1957)
Dorigo, M., Maniezzo, V., Colorni. A.: Positive feedback as a search strategy. Technical Report 91–016, Dipartimento di Elettronica, Politecnico di Milano, Milan, Italy (1991)
Dorigo, M., Maniezzo, V., Colorni. A.: Ant system: optimization by a colony of cooperating agents. IEEE Trans. Syst. Man Cybern. Part B, 26(1), 29–41 (1996)
Rumelhart, D.E., Hinton, G.E., Williams, R.J.: Learning representations by back-propagating errors. Nature 323(6088), 533 (1986)
Bersini, H.: The immune recruitment mechanism: a selective evolutionary strategy. In: Proceedings of ICGA-91, pp. 520–526 (1991)
Rechenberg, I.: Evolutionsstrategie–Optimierung technisher Systeme nach Prinzipien der biologischen Evolution (1973)
Goldberg, D.E., Holland, J.H.: Genetic algorithms and machine learning. Mach. Learn. 3(2), 95–99 (1988)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 IFIP International Federation for Information Processing
About this paper
Cite this paper
Aswani, R., Kar, A.K., Vigneswara Ilavarasan, P., Krishna, R. (2018). Solving Location Based Inventory Routing Problem in E-Commerce Using Ant Colony Optimization. In: Al-Sharhan, S., et al. Challenges and Opportunities in the Digital Era. I3E 2018. Lecture Notes in Computer Science(), vol 11195. Springer, Cham. https://doi.org/10.1007/978-3-030-02131-3_48
Download citation
DOI: https://doi.org/10.1007/978-3-030-02131-3_48
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-02130-6
Online ISBN: 978-3-030-02131-3
eBook Packages: Computer ScienceComputer Science (R0)