Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5. Airport send and pickup service orders make pairs Description: One online ride hailing company can fulfil many airport transfer arders every day. In order
5. Airport send and pickup service orders make pairs Description: One online ride hailing company can fulfil many airport transfer arders every day. In order to reduce the time and cost without orders, the company pairs pickup and send orders, if they have the same car type and same airport. Besides the arrival time of airport send order must be earlier than the send time of airport pickup order. Then they will assign the pair orders to one driver. Question: How to match the airport send and pickup orders, with the sum of car idle time minimized? Tips: 1. This is a maximum weight matching problem. 2. weigh(i,j)-idle duration-the book pickup timestamp of pickup service order - the book arrival time of send service order Example: y list iten: order_1d,car_type, book_tine, atpport_nane Input: send_orders=[ "s_arder 1,1,28226211 12:80: 80, airport 1, "s_order 2,1,20220211 12:30:00, sirport1", "s_order3,1,2922-62-11 12:19:00, atrport1", "s_order4,2,2022-82-12 12:30:08, airport2", "s_order5,2,2022-82-12 18:27:00, ateport2", "s_ardert, 1,2822-82-12 19:38:08, airportz", "s_order7, 2,2022-82-12 20:15:00, sirpert2" 1 pickup_orders=[ "P_order 1,1,28226211 12:28: DA, airport1", "p_order 2,2,20228211 14:30:08, a irport. , "P_opder3,2,2822-62-12 12:45:06, atrport2", "P_order4, 2, 2022-32-12 12:15: 08, airport2", "P_opder5,2,2022-82-12 19:20:00, a1fpert2", "P_ardere, 2, 2822-82-12 26:38: 08, airportz", "P_order7, 2,20228212 20:00:00, sirpert2" 1 Output: pair_ordersm [
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started