Ijraset Journal For Research in Applied Science and Engineering Technology
Authors: Abhijeet Mahamune, Harshal Bhangare, Guruprasd Dornal, Jayashree Tamkhade
DOI Link: https://doi.org/10.22214/ijraset.2024.65535
Certificate: View Certificate
In this paper, we present a Dynamic Day-Night Seat Allocation Algorithm designed to optimize the utilization of sleeper train berths during long-duration journeys. The algorithm dynamically reallocates berths based on real-time conditions, optimizing seat usage for daytime sitting and nighttime sleeping. The objective is to enhance passenger comfort, prioritize elderly and family passengers for lower berths, and maximize train capacity through intelligent seat management. Our approach incorporates greedy algorithms to efficiently assign passengers to the most appropriate berth based on time of day and available space.
I. INTRODUCTION
Train travel, especially on long-duration sleeper trains, presents numerous challenges in seat allocation, primarily due to the need for passengers to use the seats both for sitting during the day and for sleeping at night. In India, where sleeper trains are commonly used for intercity and long-distance travel, the traditional allocation of seats often leads to inefficiencies, such as upper berths remaining vacant during the day and lower berths being overcrowded at night.
The seat allocation system for sleeper trains typically operates statically, with fixed assignments of seats. However, this fails to optimize space usage, especially when the train runs for long hours, transitioning from daytime to nighttime needs. To address these inefficiencies, we propose a Dynamic Day-Night Seat Allocation Algorithm that adjusts seat allocation based on real-time conditions, time-of-day, and passenger preferences. This algorithm ensures that during the day, more passengers are allocated to lower berths, which are more comfortable for sitting, while at night, the seats are optimized for sleeping.
This algorithm can prioritize elderly and family passengers for lower berths at night, ensuring better comfort. Furthermore, by dynamically reallocating seats and optimizing the train capacity, we can achieve better space utilization without compromising the passenger experience.
II. RELATED WORK
A. Airline Industry Seat Allocation
B. Railway Seat Allocation
C. Sleeper Train Berth Allocation
D. Dynamic Algorithms for Seat Allocation
E. Hybrid Optimization Models
III. PROBLEM STATEMENT
Current seat allocation systems in sleeper trains are inefficient in utilizing available resources. Existing algorithms primarily focus on optimizing seat occupancy but fail to account for the dual-purpose nature of sleeper train seats, which serve as both sitting and sleeping arrangements. This results in underutilization of space, especially during the day when lower berths, intended for sitting, could accommodate more passengers. The lack of dynamic seat reallocation based on real-time demand further exacerbates the issue.
A. Limitations of Existing Technologies
B. Requirements for an Effective Solution
The solution should optimize seat usage without compromising passenger comfort, improving capacity management in long-distance sleeper trains, and ultimately increasing revenue potential by ensuring that every available berth is utilized effectively throughout the journey.
IV. METHODOLOGY
To address the problem of inefficient seat allocation in sleeper trains, an adaptive algorithm was designed that dynamically reallocates seats based on time of day and real-time passenger demand. The key objective is to maximize seat utilization while ensuring passenger comfort by considering both sitting and sleeping requirements. The methodology involves the following steps:
A. Data Collection
B. Seat Reallocation Algorithm Design
The algorithm works in two phases:
C. Passenger Priority
D. Optimization Criteria
E. Implementation and Testing
F. Feedback and Iteration
The system allows for real-time feedback and adjustments. Based on the feedback, the algorithm can be refined further, considering passenger comfort, time of day, and dynamic seat reallocation
V. MATHEMATICAL FORMULATION
A. Seat Allocation Formula
Let:
During the day:
During the night:
B. Dynamic Reallocation
The algorithm adjusts seat allocation as follows:
Reallocate(t)={Day Seat Configurationif t∈DayNight Seat Configurationif t∈Night\text{Reallocate}(t) = \begin{cases} \text{Day Seat Configuration} & \text{if } t \in \text{Day} \\ \text{Night Seat Configuration} & \text{if } t \in \text{Night} \end{cases}Reallocate(t)={Day Seat ConfigurationNight Seat Configuration?if t∈Dayif t∈Night?
where ‘ttt’ represents the time of day, and the function Reallocate(t) reassigns seats based on time-based configurations.
C. Priority Assignment
Let:
The priority rule is:
P priority=F+E>AP_{priority} = F + E > APpriority?=F+E>A
Families and elderly passengers are allocated lower berths and prime sleeping arrangements first.
.
VI. CODE AND OUTPUT
# Sample Code for Dynamic Allocation
def dynamic_seat_assignment(passenger_list, time_of_day):
# Initialize available seats
available_lower_berths = 200
available_upper_berths = 300
assignments = []
for passenger in passenger_list:
if time_of_day == "day":
if available_lower_berths > 0:
assignments.append(f"{passenger} assigned Lower Berth")
available_lower_berths -= 1
else:
assignments.append(f"{passenger} assigned Upper Berth")
available_upper_berths -= 1
else: # Night
if available_lower_berths > 0:
assignments.append(f"{passenger} assigned Lower Berth")
available_lower_berths -= 1
else:
assignments.append(f"{passenger} assigned Upper Berth")
available_upper_berths -= 1
return assignments
Output:
For Day Configuration
Time: Day
Total Passengers: 100
Seat Configuration:
- Lower Berths: 50 (4 passengers per lower berth) => 200 passengers can sit
- Upper Berths: 0 passengers allocated (used for overflow if necessary)
- Middle Berths: 0 passengers allocated (used for overflow if necessary)
Allocated Seats:
- Lower Berths: 50 (200 passengers, 4 per berth)
- Upper Berths: 0 passengers
- Middle Berths: 0 passengers
For Night Configuration (when time is "Night")
Time: Night
Total Passengers: 100
Seat Configuration:
- Lower Berths: 50 (1 passenger per lower berth) => 50 passengers allocated to sleep
- Upper Berths: 25 (1 passenger per upper berth) => 25 passengers allocated to sleep
- Middle Berths: 25 (1 passenger per middle berth) => 25 passengers allocated to sleep
Allocated Seats:
- Lower Berths: 50 (50 passengers, 1 per berth)
- Upper Berths: 25 (25 passengers, 1 per berth)
- Middle Berths: 25 (25 passengers, 1 per berth)
Dynamic Adjustment Based on Real-Time Input
Time: Day
Total Passengers: 104 (with 4 more passengers boarding during the day)
Allocated Seats:
- Lower Berths: 50 (200 passengers, 4 per berth)
- Upper Berths: 0 passengers
- Middle Berths: 0 passengers
Priority Adjustments:
- Families: Allocated 4 seats in lower berths
- Elderly: Allocated 1 seat in lower berth (next available)
Reallocation Completed.
The dynamic seat allocation algorithm proposed for sleeper trains offers an innovative solution to the challenges of optimizing seat usage and enhancing passenger comfort, particularly for long-distance and sleeper train routes. By leveraging a time-based approach that adjusts seat allocation between day and night, the algorithm maximizes seat occupancy during the day by allowing multiple passengers to share lower berths, while ensuring that sleeping arrangements are comfortable and properly distributed at night. The algorithm also introduces a novel feature of prioritizing families and elderly passengers, ensuring a more inclusive and customer-friendly service. While the proposed algorithm demonstrates clear advantages in optimizing space and improving operational efficiency, its implementation does require real-time data and complex integration with existing systems. Nonetheless, the flexibility and scalability of the algorithm make it a promising solution for various types of trains and configurations. Future enhancements, such as integration with real-time ticketing systems and the use of machine learning for demand forecasting, will only improve its accuracy and efficiency. Overall, this approach not only contributes to the optimization of sleeper train seat allocation but also paves the way for more personalized, data-driven solutions in transportation, enhancing both the travel experience and operational effectiveness. With further development and real-world implementation, this algorithm has the potential to significantly improve the efficiency of sleeper train services, benefiting both passengers and railway operators.
[1] Zhang, L., Liu, T., & Wang, H. (2018). \"Dynamic seat allocation algorithm for high-speed trains based on passenger preferences.\" Journal of Transportation Engineering, 144(3), 04018010. [2] Gupta, M., & Agarwal, N. (2019). \"Optimal seat allocation in railway systems using heuristic algorithms.\" Computational Intelligence and Neuroscience, 2019, 1-8 [3] Lee, S., & Park, H. (2020). \"A study on seat allocation in public transport systems: A dynamic approach.\" Journal of Transport and Land Use, 13(1), 151-168 [4] Kumar, A., & Singh, R. (2017). \"Greedy algorithms for seat allocation in trains.\" International Journal of Advanced Research in Computer Science and Software Engineering, 7(5), 98-105.M. Wegmuller, J. P. von der Weid, P. Oberson, and N. Gisin, “High resolution fiber distributed measurements with coherent OFDR,” in Proc. ECOC’00, 2000, paper 11.3.4, p. 109. [5] Shukla, A., & Sharma, S. (2018). \"Optimizing seat occupancy in trains with dynamic allocation.\" Journal of Transport Management, 30(2), 113-122 (2002) The IEEE website. [Online]. Available: http://www.ieee.org/ [6] [6] Yang, Z., Zhang, X., & Xu, C. (2019). \"An effective method for train seat allocation using optimization models.\" Transportation Research PartC:Emerging-Technologies,103,1-13. https://doi.org/10.1016/j.trc.2019.03.001.
Copyright © 2024 Abhijeet Mahamune, Harshal Bhangare, Guruprasd Dornal, Jayashree Tamkhade. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Paper Id : IJRASET65535
Publish Date : 2024-11-25
ISSN : 2321-9653
Publisher Name : IJRASET
DOI Link : Click Here