Mohammed Elhenawy1 and Hesham Rakha2

Slides:



Advertisements
Similar presentations
Heuristic Search techniques
Advertisements

Chapter 3 Workforce scheduling.
CS6800 Advanced Theory of Computation
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
Planning under Uncertainty
Approximation Algorithms
1 Maximum matching Max Flow Shortest paths Min Cost Flow Linear Programming Mixed Integer Linear Programming Worst case polynomial time by Local Search.
Ant Colony Optimization Optimisation Methods. Overview.
Online Data Gathering for Maximizing Network Lifetime in Sensor Networks IEEE transactions on Mobile Computing Weifa Liang, YuZhen Liu.
1 Topology Design of Structured Campus Networks by Habib Youssef Sadiq M. SaitSalman A. Khan Department of Computer Engineering King Fahd University of.
1 Algorithms for Bandwidth Efficient Multicast Routing in Multi-channel Multi-radio Wireless Mesh Networks Hoang Lan Nguyen and Uyen Trang Nguyen Presenter:
Ant Colony Optimization: an introduction
Package Transportation Scheduling Albert Lee Robert Z. Lee.
Toshihide IBARAKI Mikio KUBO Tomoyasu MASUDA Takeaki UNO Mutsunori YAGIURA Effective Local Search Algorithms for the Vehicle Routing Problem with General.
IT 60101: Lecture #201 Foundation of Computing Systems Lecture 20 Classic Optimization Problems.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Application of The Improved Hybrid Ant Colony Algorithm in Vehicle Routing Optimization Problem International Conference on Future Computer and Communication,
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Mobile Agent Migration Problem Yingyue Xu. Energy efficiency requirement of sensor networks Mobile agent computing paradigm Data fusion, distributed processing.
Optimal Fueling Strategies for Locomotive Fleets in Railroad Networks Seyed Mohammad Nourbakhsh Yanfeng Ouyang 1 William W. Hay Railroad Engineering Seminar.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Network Flows Chun-Ta, Yu Graduate Institute Information Management Dept. National Taiwan University.
1 An Arc-Path Model for OSPF Weight Setting Problem Dr.Jeffery Kennington Anusha Madhavan.
Graph Algorithms Maximum Flow - Best algorithms [Adapted from R.Solis-Oba]
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Management Science 461 Lecture 7 – Routing (TSP) October 28, 2008.
Section Recursion 2  Recursion – defining an object (or function, algorithm, etc.) in terms of itself.  Recursion can be used to define sequences.
Introduction to Spatial Computing CSE 5ISC
Stable Matching.
Hard Problems Some problems are hard to solve.
Shortest Path Problems
Integer Programming An integer linear program (ILP) is defined exactly as a linear program except that values of variables in a feasible solution have.
Stable Marriage Problem
Introduction to the Design and Analysis of Algorithms
Chapter 10 Iterative Improvement
Scientific Research Group in Egypt (SRGE)
1st November, 2016 Transport Modelling – Developing a better understanding of Short Lived Events Marcel Pooke – Operational Modelling & Visualisation Manager.
Network-Wide Bike Availability Clustering Using the College Admission Algorithm: A Case Study of San Francisco Bay Area Hesham Rakha, Ph.D., P.Eng. Samuel.
Maximum Flow - Best algorithms
Modeling Bike Availability in a Bike-Sharing System Using Machine Learning Hesham Rakha, Ph.D., P.Eng. Samuel Reynolds Pritchard Professor of Engineering,
Chapter 2: Business Efficiency Lesson Plan
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Comparing Genetic Algorithm and Guided Local Search Methods
Chapter 2: Business Efficiency Lesson Plan
1.3 Modeling with exponentially many constr.
Study Guide for ES205 Yu-Chi Ho Jonathan T. Lee Nov. 7, 2000
TransCAD Vehicle Routing 2018/11/29.
MATS Quantitative Methods Dr Huw Owens
Chapter 2: Business Efficiency Business Efficiency
Heuristic Algorithms via VBA
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Applied Combinatorics, 4th Ed. Alan Tucker
3. Brute Force Selection sort Brute-Force string matching
1.3 Modeling with exponentially many constr.
Planning the transportation of elderly to a daycare center
traveling salesman problem
CO Games Development 1 Week 8 Depth-first search, Combinatorial Explosion, Heuristics, Hill-Climbing Gareth Bellaby.
Algorithms (2IL15) – Lecture 7
3. Brute Force Selection sort Brute-Force string matching
Chapter 6 Network Flow Models.
Backtracking and Branch-and-Bound
Heuristic Algorithms via VBA
Heuristic Algorithms via VBA
Artificial Intelligence CIS 342
CSE 550 Computer Network Design
A Neural Network for Car-Passenger matching in Ride Hailing Services.
3. Brute Force Selection sort Brute-Force string matching
Presentation transcript:

Mohammed Elhenawy1 and Hesham Rakha2 A Heuristic for Rebalancing Bike Sharing Systems Based on a Deferred Acceptance Algorithm Mohammed Elhenawy1 and Hesham Rakha2 1. Postdoctoral Fellow, Virginia Tech Transportation Institute, 3500 Transportation Research Plaza, Blacksburg, VA 24061, USA 2. Samuel Reynolds Pritchard Professor of Engineering, Charles E. Via, Jr. Dept. of Civil & Environmental Engineering Director, Center for Sustainable Mobility, Virginia Tech Transportation Institute Courtesy Professor, Bradley Dept. of Electrical and Computer Engineering

Center for Sustainable Mobility Presentation Outline Introduction Bike station rebalancing Heuristic optimization techniques Problem statement Proposed algorithm Tour Construction using the Deferred Acceptance Algorithm Tour Improvement using the 2-opt Local Search Algorithm Example illustration Conclusions Research (n.d.). Retrieved November 11, 2016, from http://cep-probation.org/research-note/ Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Introduction Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Introduction A growing population has resulted in increased traffic congestion and produced air pollution challenges How can we mitigate some of these problems? By encouraging more people to use public transportation However, in big cities, trains and buses generally deliver riders to transit stations near the center of the city, and they then need another transportation mode to get them to their final destination. This is referred to as “the last mile problem” A well-operated bike-sharing system (BSS) can help solve this problem, both relieving roadway congestion and enabling riders to reach their final destination. BSSs require relatively low capital and operational costs, are easy to install and are sustainable and environmentally friendly Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Rebalancing http://thecityfix.com/blog/from-periphery-to-center-does-bike-redistribution-work/ http://thevillager.com/2014/01/02/bike-share-to-keep-rolling-in-blizzard-for-now-but-some-cycles-to-be-shifted-off-streets/ Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Rebalancing BSS’s suffer from a central recurring problem: rebalancing. Rebalancing is a daily problem for operators, who have to find an efficient way to redistribute (i.e., rebalance) bikes from full stations to empty stations to meet expected demand patterns. This redistribution problem is a generalization of the well-known traveler salesman problem (TSP), which involves finding the shortest route passing through each of a collection of locations and then returning to a starting point. Rebalancing is NP-hard, so heuristic optimization techniques are needed to find a near-optimum tour Hesham Rakha Center for Sustainable Mobility

Heuristic Optimization Techniques Hesham Rakha Center for Sustainable Mobility

Heuristic Optimization Techniques Heuristic optimization techniques incorporate stochastic search elements guided by mechanisms that reinforce the search towards promising solutions They attempt to converge to the optimum solution after a large number of search iterations There is no guarantee that they will find the global optimum All heuristic optimization methods have the following main steps: Choose an initial solution Use some generation rule to iteratively construct new solutions Use the objective function to evaluate these new solutions and report the best solution Terminate the iterative search when the stopping criterion is satisfied. Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Problem Statement Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Problem Statement A NotSpot is a bike station that is either empty or full, rendering it useless to people who want to pick up or return a bike Given a fully-connected graph 𝐺 = 𝑉, 𝐸 where 𝑉 is the set of the depot plus the 𝑁 NotSpots in the bike system (i.e. 𝑉=𝑁+1) 𝐸 consists of all the links connecting the vertices in the graph Each node 𝑖 in the graph is assigned an integer 𝛽 𝑖 that equals the number of needed/pick- up bikes. 𝛽 𝑖 is positive if it represents the number of bikes that need to be taken from a NotSpot, making station 𝑖 a pick-up station. 𝛽 𝑖 is negative if it represents the number of needed bikes at a NotSpot, making station 𝑖 a drop-off station. Each link 𝑗 is assigned a cost 𝛾 𝑗 . Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Problem Statement What is the optimum tour for the truck to rebalance the NotSpot stations? Given A list of NotSpots, The distances between each pair of NotSpots, The demand of the NotSpots A single truck with a capacity of 𝑄 The tour is optimum when the objective function 𝑗∈𝐸 𝛾 𝑗 + 𝑖∈𝑉 𝑅 𝑖 is minimized subject to 𝐴𝐶 𝑖 >0 𝑖𝑓 𝛽 𝑖 >0 𝑄− 𝐴𝐶 𝑖 ≥0 𝑖𝑓 𝛽 𝑖 <0 where 𝑅 𝑖 is the residual at NotSpot 𝑖 Q the truck maximum capacity 𝐴𝐶 𝑖 the available bike spots on the truck before serving NotSpot 𝑖 This constraint guarantees that no full truck arrives at a pick-up NotSpot station and no empty truck arrives at a drop-off NotSpot station. Hesham Rakha Center for Sustainable Mobility

The Proposed Algorithm Hesham Rakha Center for Sustainable Mobility

The Proposed Algorithm The proposed algorithm consists of a tour construction algorithm and a tour improvement algorithm The tour construction algorithm uses the deferred acceptance algorithm N times to match two disjoint sets: the partial tour and the NotSpot stations The matching is done such that at the end of the construction phase, each constructed tour includes all NotSpot stations and each NotSpot station appears only once in the tour. Tour improvement uses the 2-opt algorithm to improve the constructed tours and then selects the best tour as the solution to the given problem. The quality of the solution found by the 2-opt depends on the initial solution that is constructed by the deferred acceptance algorithm. Hesham Rakha Center for Sustainable Mobility

Deferred Acceptance Algorithm This algorithm was first proposed by Gale and Shapley to find a stable assignment of 𝑛 men and 𝑛 women where each person has an ordered preference list of the opposite sex for marriage. The algorithm consists of a set of rules that finds a stable assignment, where no couple has an incentive to quit their assigned mate and form a new match. The algorithm begins with each man proposing to the first woman in his preference list. Then each woman keeps the most interesting proposals based on her preference list and rejects other proposals, if any. At the end of the first round, any woman who received a proposal has a proposal in the deferred acceptance state. The men rejected in the previous round then propose to their second choices. Consequently, each woman keeps the best of the current and deferred offers and rejects any others. This process continues until each man has a deferred proposal. At this point, each of the women accepts the proposal she holds and the algorithm terminates. Hesham Rakha Center for Sustainable Mobility

Tour Construction Using the Deferred Acceptance Algorithm Construct 𝑁 partial tours, each consisting of the depot and one of the 𝑁 NotSpots Update the truck capacity for each partial tour For 𝑓=1:𝑁−1 Each NotSpot 𝑖 builds its preference of partial tour 𝑘∈ 1,2,…,𝑁 based on the residual at NotSpot 𝑖 if it were appended to partial tour 𝑘. Each tour builds its station preference list using (𝛼𝑄− 𝐻 𝑖 ) 2 +β𝐷 Run the deferred acceptance algorithm to match the stations with the partial tours Update the current available bikes on each tour truck after expanding the partial tour Return N constructed tours, with each tour being a Hamiltonian path (𝛼𝑄− 𝐻 𝑖 ) 2 +β∗𝐷 (1) where 𝑄 is the maximum truck capacity 𝛼 is a constant between 0.1 and 1.0 𝐻 𝑖 is the number of available bikes on the truck after serving NotSpot 𝑖 β is a constant ∈[0,1] 𝐷 is the distance in meters between the last station in the tour and NotSpot 𝑖 Hesham Rakha Center for Sustainable Mobility

The 2-opt Local Search Algorithm The algorithm locally searches the neighborhood by removing two edges from the solution and reconnects the two paths created so that the new solution is valid. The new solution replaces the original if it minimizes the objective function. The process of removing two edges, constructing a new valid solution, and evaluating the new solution continues until no 2-opt improvements can be found. The quality of the solution found by the 2-opt depends on the initial solution constructed by deferred acceptance algorithm. A 2-Opt move: original tour on the left and resulting tour on the right Source: https://www.cs.ubc.ca/~hutter/previous-earg/EmpAlgReadingGroup/TSP-JohMcg97.pdf Hesham Rakha Center for Sustainable Mobility

Tour Improvement Using the 2-opt Local Search Algorithm For each tour constructed by the deferred acceptance algorithm, calculate the total tour cost using β 𝑗∈𝐸 𝐷 𝑗 + 𝑖∈𝑉 R 𝑖 2 For 𝑓=1: 𝑁 Find all possible 2-opts of the constructed tour 𝑓 For each 2-opt of the constructed tour 𝑓, calculate the total tour cost and find the best modified tour If the best 2-opt tour has less cost than the original tour constructed by the deferred acceptance algorithm, replace the original tour 𝑓 with its modified 2-opt tour The solution is the best trip out of the 𝑁 tours β∗ 𝑗∈𝐸 𝐷 𝑗 + 𝑖∈𝑉 R 𝑖 2 (2) where, 𝐷 𝑗 is the length of link 𝑗 in meters 𝑅 𝑖 is the residual at NotSpot 𝑖 β is a constant ∈[0,1] Hesham Rakha Center for Sustainable Mobility

Tour Construction Example Consider a fully connected uni- directed graph consisting of three NotSpot stations and a depot Assume the vertices form a square with each side 1,000 meters long, with the exception of the link between 𝑆1 and 𝑆2, which has a length of 1,200 meters Set 𝛽, Q and 𝛼 equal to 0.002, 10, and 0.5, respectively Assume the truck has four bikes when it leaves the depot. Example graph where the number in parentheses is the NotSpot demand. Hesham Rakha Center for Sustainable Mobility

Tour Construction Example Construct three partial tours, where each consists of the depot and one of the three NotSpot stations, then update the truck capacity 𝐻 of each tour as shown below 𝐷𝑒𝑝𝑜𝑡𝑆1 ( 𝐻 𝑆1 =10) 𝐷𝑒𝑝𝑜𝑡𝑆2 𝐻 𝑆2 =6 𝐷𝑒𝑝𝑜𝑡𝑆3 ( 𝐻 𝑆3 =0) Set the preference list for each partial tour using (𝛼𝑄− 𝐻 𝑖 ) 2 +𝛽𝐷. Set the preference list for each NotSpot such that the partial tours that minimize the residual at the NotSpot are on the top of the list The parameter 𝛼 is set to 0.5 to give preference to pick-up or drop-off stations that bring the truck to its half capacity. The preference list for the two sets of players Hesham Rakha Center for Sustainable Mobility

Tour Construction Example Match the NotSpots with the partial tours using the deferred acceptance algorithm. The three partial tours are expanded as shown 𝐷𝑒𝑝𝑜𝑡𝑆1 𝑆3 𝐷𝑒𝑝𝑜𝑡𝑆2 𝑆1 𝐷𝑒𝑝𝑜𝑡𝑆3𝑆2 Update the currently available bikes number for each truck, following the expanded partial tours. Check the number of stations in the partial tour; if the number is less than three, then go to step 2. When the partial tours make offers, the first and second partial tours choose S3 and the third partial tour chooses S2. S3 accepts the first partial tour (S3’s first choice) and S2 accepts the second partial tour. In a second stage, the second partial tour makes an offer to S1, which accepts, and the game results in a stable match. Based on the matching outcome, the three partial tours are expanded as shown in the Figure 𝐷𝑒𝑝𝑜𝑡𝑆1 𝑆3 𝐷𝑒𝑝𝑜𝑡𝑆2 𝑆 𝐷𝑒𝑝𝑜𝑡𝑆3 𝑆2 Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Model Testing Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Model Testing One advantage of the proposed algorithm is that it only has two hyper parameters: 𝛼 and 𝛽 In the first set of experiments, we set 𝛼 and 𝛽 equal to 0.5 and 0.2, respectively. The proposed algorithm was tested using real data collected by Dell’Amico et al. from La Spezia, Italy; Wisconsin, US; and Ottawa, Canada For the sake of comparison with another heuristic algorithm, we chose the same instances used to test the ACO algorithm Performance comparison of the proposed algorithm and the ACO solution value for real world instance   ACO Proposed Algorithm N Q Total distance Total residual LaSpezia 20 30 21,518 1 21,475 23,488 10 23,908 23,529 Ottawa 21 17,178 17,166 17,604 2 Madison 28 34,029 8  35,877 8 34,706 34,420 38,677 37,271 The proposed algorithm was coded in Matlab 2015b Hesham Rakha Center for Sustainable Mobility

Best known solution value Model Testing We also tested the algorithm using other real instances where the absolute total demand was not close to zero. The instances were collected from Denver, United States; Dublin, Ireland; Ciudad de Mexico, Mexico and Minneapolis, United States and they have absolute total demands of 35, 64, 87 and 92, respectively. In solving this set of instances, we varied 𝛼 from 0.1 to 1.0 and determined the best solution. Performance comparison of the proposed algorithm and the best known solution value for real world instance   Best known solution value Proposed Algorithm N Q Total distance Total residual 𝜶 Denver 51 30 51,583 53,740 5 0.7 20 53,369 57,116 15 0.9 10 67,025 63,281 25 0.4 Dublin 45 33,548 41,274 34 39,786 40,489 44 1.0 11 54,392 48,172 53 Ciudad de Mexico 90 88,227 79,234 57 0.2 116,418 88,213 67 0.3 17 109,573 91,188 70 Minneapolis 116 137,843 186,716 62 186,449 237,856 72 298,886 294,405 82 0.6 The proposed algorithm was coded in Matlab 2015b Hesham Rakha Center for Sustainable Mobility

Center for Sustainable Mobility Conclusions We proposed a new bi-level BSS balancing algorithm: Upper level: Tour construction using the deferred acceptance algorithm to solve the BSS rebalancing problem Lower level: Tour improvement We compared the proposed algorithm to the ACO algorithm: The results show that our proposed algorithm outperforms the ACO in most instances. We solved medium size instances with up to 116 NotSpots and then compared our solution to the best-known solution” We found that our solution was better than the best-known solution for half the instances. Hesham Rakha Center for Sustainable Mobility

Questions?

Supplementary material Hesham Rakha Center for Sustainable Mobility