Intelligent ticket buying system for railway travel
By introducing multiple order matching mechanisms and seat optimization mechanisms into the railway ticket purchase system, the problems of high ticket purchase failure rates and resource waste are solved, more efficient seat allocation and revenue increase are achieved, and customer satisfaction and train operation safety are improved. sex.
Patent Information
- Application Number
- CN202410934580.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-08-27
AI Technical Summary
There are problems in the railway ticket purchasing system such as high ticket purchase failure rate, waste of resources, unintentional ticket purchasing behavior and train overcrowding, which lead to potential traffic safety hazards and equipment damage.
Design a smart ticket purchasing system for railway travel, using multiple order matching mechanisms, including time mechanism, personnel type mechanism, site mechanism and critical mechanism. By dividing the willingness period, conversion period and subscription period, seat allocation is optimized to achieve intelligent allocation and Automatic payments and seat optimization during the optimization period.
Effectively reduce unreal ticket purchasing behavior, improve customer satisfaction, increase train occupancy, reduce resource waste, and increase train operating income.
Smart Images

Figure CN118551997A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of railway transportation, and in particular to an intelligent ticket purchasing system for railway travel. Background Art
[0002] Railway travel is becoming more and more popular due to its advantages of fast speed, good safety, comfort, convenience and high punctuality. Online ticket purchase, such as 12306 official ticket purchase, also brings great convenience to people because they do not need to queue up at the station window to buy tickets in advance. However, there are still many problems in the actual operation of online ticket purchase, such as: individual line systems are snapped up as soon as the tickets are released, due to resource constraints, some people believe in online advertising scalpers and lose money, affecting their trips, and tickets are difficult to buy, but after getting on the train, they find that the carriage is empty. There is room for optimization. Due to the relatively concentrated release time of tickets, the ticket purchase failure rate is high, sometimes the system crashes temporarily, the ticket purchase fails due to various reasons after the ticket is successfully grabbed, and the fixed number of tickets cannot be intelligently allocated according to the station. After the tickets are sold out, a user submits a considerable number of standby orders and cancels the excess orders after success. These reasons affect normal ticket purchase, and often there is an abnormal phenomenon that the number of available tickets in the later time is more than before, which leads to the situation that the train is empty on the one hand, and those who want to ride cannot buy tickets, resulting in a great waste of resources. In addition, because the stipulated start time for ticket grabbing conflicts with work, it is impossible to grab tickets, or during the break time, an alarm must be set to change the break time to grab tickets, but the ticket grabbing still fails. This makes it difficult for people who frequently travel between two fixed places, such as office workers, to buy tickets. In addition, passengers' "buying short and riding long" will increase the workload of staff to make up tickets, and sometimes the high-speed rail trains will be seriously overcrowded, making it impossible to run according to the normal plan. It will also shorten the life of the equipment and even cause equipment damage. Especially during the Spring Festival travel rush and the National Day holiday, when there is a great demand for tickets, there is a great traffic safety hazard. Summary of the invention
[0003] The purpose of the present invention is to provide an intelligent railway ticket purchasing system to solve one or more of the above problems.
[0004] A railway travel intelligent ticket purchasing system, the operation process of which includes the following steps: Obtain target train information, the target train information includes seat data information and station information of the target train, the seat data information includes seat type information and rated number of seats of each type, the seat type information is set corresponding to the rated number of seats of each type, and the station information includes the station; A multiple order matching mechanism is established to allocate orders. The parameter nx is set, where x is the number of days when the allocated order reaches the critical value, and n is the number of seats reserved for matching in the critical area within the ticket sales interval every day. The multiple order matching mechanism includes time mechanism, personnel type mechanism, site mechanism and critical mechanism. Each mechanism in the multiple order matching mechanism is used crosswise to allocate orders. The time mechanism includes time point division, which is to divide the time period before the train departure time point according to the pre-set time mechanism division rules to form the intention period, conversion period and subscription period in sequence; The personnel type mechanism is used to classify the orders submitted within the willingness period into immediately generated orders and ordinary orders; The site mechanism includes priority settings, which include parent-child priority or site quantity priority. The critical mechanism is called in order according to the priority to allocate the corresponding to-be-matched orders, where the parent-child priority includes parent priority and child priority. The parent priority is the departure site priority, and the one close to the starting site is given priority over the one far away from the starting site; the child priority is the arrival site priority, and the one close to the terminal station is given priority over the one far away from the terminal station; the site quantity priority is the priority of the number of sites passed between the departure station and the arrival station, and the one with more sites is given priority over the one with less sites; The critical mechanism is used to retrieve the data y of the number of full-journey tickets sold in the same period of the target train in history, the data z of the number of full-journey tickets sold by the target train, calculate the current ticket quantity critical value, which is nx+yz, and then obtain the available remaining seats of the corresponding departure station and the corresponding type; The order is successful, the ticket information is generated, and the seats are reduced.
[0005] In some implementations, the order includes the train number, the departure station, the arrival station, the estimated departure time at the departure station, and identification information; The ticket information includes the train number, departure station, arrival station, estimated departure time at the departure station, and identification information; The identification information is associated with the user's identity information; The seat type information includes type category and type code, and the type category and type code are set correspondingly; The site information also includes a site code, and the site and site code are set accordingly; the setting of the site code facilitates the identification of full-process orders and non-full-process orders, as well as the subsequent matching and splicing operations of non-full-process orders; The intelligent railway travel ticket purchasing system includes a digital wallet module, which is used to perform automatic payment operations after the order is successful, and generate ticket information after the payment is completed; The multiple order matching mechanism also includes a refund preferential scoring mechanism. When the number of seats in the round-trip interval corresponding to the cancelled order is zero, the allocated seats corresponding to the cancelled order are preferentially allocated to the passengers without seats in the same round-trip interval. The time point division also includes an optimization period set between the purchase period and the ticket checking time. The optimization period is used to optimize seats for successful orders, update ticket information and issue tickets.
[0006] In some embodiments, an order submitted within the desired period is a desired order. The processing method of the intention order includes the following steps: The desired orders are divided according to the personnel type mechanism and stored in the corresponding storage space, among which the immediately generated orders are stored in the immediately generated order pool, and the ordinary orders are stored in the waiting matching pool to form the waiting conversion orders; Entering the conversion period, the instant order pool is fully released, the instant orders are directly traded, the corresponding ticket information is generated, and the seats are reduced; Entering the conversion period, the site mechanism and the critical mechanism are operated to allocate the orders to be converted in the matching pool. The allocated orders to be converted are released from the matching pool, and the corresponding ticket information is generated and stored in the ticket storage pool for seat reduction. If there are unallocated orders to be converted after the allocation is completed, the unallocated orders to be converted are still stored in the matching pool. The process of operating the site mechanism and the critical mechanism to allocate the orders to be converted in the matching pool is as follows: Count the number of orders to be converted for each seat type from the same departure station to each arrival station and the number of tickets corresponding to the orders to be matched; Count the number of full-trip tickets sold for each seat type, calculate the current ticket quantity threshold for the current departure station under the same seat type, and then obtain the remaining ticket quantity for the departure station under the current seat type, and determine whether the remaining ticket quantity matches the number of tickets corresponding to the corresponding order to be converted; If the available balance is greater than or equal to the number of tickets corresponding to the corresponding orders to be converted in the pool to be allocated, the match is successful, and all orders to be converted are converted and allocated, released from the pool to be matched, and the corresponding ticket information is formed, and the seats are reduced; The available saleable balance is less than the number of tickets corresponding to the corresponding orders to be converted in the pool to be allocated, and the matching fails. Only part of the orders to be converted are converted successfully. The corresponding orders to be converted are allocated and released according to the priority of the arrival station, and the corresponding ticket information is formed, and the seats are reduced. The unconverted orders to be converted are still stored in the pool to be matched.
[0007] In some implementations, the calculation process of the available remaining capacity for sale at the departure station under the current seat type is as follows: Obtain the rated number of seats of the corresponding type and the current ticket quantity threshold, and record the rated number of seats of the corresponding type as S; Count the number of all orders to be converted that include the departure station in the initial matching pool, recorded as S1; Count the number of all orders to be converted in the initial matching pool that use the departure station as the arrival station, and record it as S2; Get the available remaining seat S0 for the departure station under the current seat type, S0=S-(nx+yz)-S1+S2.
[0008] In some implementations, the implementation process of the personnel type mechanism includes the following steps: Pre-set personnel type judgment conditions; Obtaining a personnel type adjustment request submitted by a user, the content of which corresponds to a personnel type judgment condition; Determine whether the personnel type adjustment request meets the personnel type judgment conditions. If the personnel type adjustment request meets the personnel type judgment conditions, agree to the user's personnel type adjustment request, mark the user's identity information, and record the user's instant generation conditions. The instant generation conditions include round-trip site information. The user submits new order information, and determines whether the departure site and arrival site in the order information are consistent with the round-trip site information in the instant generation conditions. If they are consistent, the order is treated as an instant generation order; if they are not consistent, the order is treated as an ordinary order. If the personnel type adjustment request does not meet the personnel type judgment conditions, do not agree to the user's personnel type adjustment request, do not mark the user's identity information, and all orders submitted by the user are ordinary orders.
[0009] In some implementations, an order submitted during the subscription period is a subscription order, and the subscription order processing process includes the following steps: The purchase orders are traded in real time, the corresponding ticket information is generated, the seats are reduced, and the number of purchase orders traded in real time within the current ticket sales interval is accumulated; When the current cumulative transaction quantity and the critical value of the ticket quantity reach the preset maximum train load, the purchase order transaction restriction mechanism is activated. The execution process of the purchase order transaction restriction mechanism is as follows: Determine whether the purchase order corresponds to a full-trip order. If it is a full-trip order, the purchase order is executed in real time, the quantity is reduced in the yz interval, the corresponding ticket information is formed, and the seat reduction is carried out; if it is a non-full-trip order, the critical area is automatically used to reserve seats to be matched, and the non-full-trip order is matched. The matching includes two methods, namely irregular allocation and regular allocation; Irregular allocation is to combine non-full-trip orders that cannot be traded in real time due to the critical mechanism in a way similar to the "Tetris" end-to-end ticket allocation method. If they are combined into full-trip orders, the corresponding ticket information will be generated and the corresponding seats will be reduced. If the cumulative number of full-trip orders combined on the day is less than the number of reserved seats to be matched in the critical area of the corresponding ticketing interval, there will be vacancies on that day, and the vacant seats will be used for other allocations on that day; if the cumulative number of full-trip orders combined on the day is greater than the number of reserved seats to be matched in the critical area of the corresponding ticketing interval, it will be displayed that the number is insufficient, and the orders exceeding the number of reserved seats to be matched in the critical area of the ticketing interval on that day will be stored in the waiting-to-match pool and wait for the next day's matching; Scheduled allocation: non-full-trip orders that cannot be assembled into full-trip orders are automatically matched and assembled with non-full-trip orders in the waiting-for-matching pool or newly submitted non-full-trip orders once or more each day in a way similar to the "Tetris" head-to-tail ticket allocation method to form assembled orders. The assembled orders are sorted according to the rule that the number of stations contained in the assembled orders is higher than the number of stations contained in the assembled orders, or the number of orders contained in the assembled orders is lower than the number of orders contained in the assembled orders. The assembled orders arranged in front in the waiting-for-matching pool are limited to be called, and the seats that do not overlap with the called orders are also matched successfully at the same time; When all matches on the day are completed, if there are vacancies in the number of seats reserved for matching in the critical area within the ticket sales range of the day, they will be automatically postponed and added to the number of seats reserved for matching in the critical area within the ticket sales range of the next day.
[0010] In some embodiments, the critical mechanism also includes a maximum number of seats that can match the entire journey within the ticketing interval. When the number data z of the full-journey tickets sold by the target train is greater than the number data y of the full-journey orders sold by the target train in the same period, the maximum number of seats that can match the entire journey within the ticketing interval is adjusted. The adjustment process of the mechanism is: The priority in the adjustment mechanism of the maximum number of seats that can match the entire journey within the ticketing interval is implemented. The priority is that the maximum number of seats that can match the entire journey within the ticketing interval close to the departure time is prioritized over the maximum number of seats that can match the entire journey within the ticketing interval far from the departure time for step-by-step adjustment; Get the difference of the current zy; When the difference is less than or equal to n, the maximum number of seats that can match the entire journey in the ticket sales interval closest to the departure time will be automatically reduced according to the difference; When the difference is greater than n, the quotient and remainder obtained when the difference is divided by n are calculated, and the maximum number of seats that can match the entire journey in the corresponding ticket range is reset to zero step by step according to the quotient and the priority in the mechanism, and the maximum number of seats that can match the entire journey in the corresponding ticket range is automatically reduced according to the remainder by adding the quotient to one.
[0011] In some embodiments, the order further includes other selection conditions, including whether there are fellow passengers, whether to accept separate seats, whether to accept seat adjustment, and whether to accept no seat; When selecting "with passengers" in the order, the identity information of the passengers must be provided. The number of tickets included in the order is the number of passengers plus one. The intelligent ticket purchasing system for railway travel includes the distribution principle of co-passengers, which is: When selecting "with passengers" in the order, the passenger's identity information must be provided, and when selecting "not to accept separate seating", if the remaining available seats of the same seat type and the same departure station corresponding to the order are less than the number of tickets corresponding to the corresponding to-be-matched order in the to-be-allocated pool, if the remaining available seats are less than the number of tickets included in the order, the order will not be allocated and will be directly stored in the to-be-matched pool and wait for allocation in the next cycle; During the optimization period, for passengers who have the same car as you, if they choose to accept separate seating or seat adjustment, when the order is successful, the order with seats available will be optimized and adjusted according to the priority relationship of adjacent seats taking precedence over seats in the same car taking precedence over seats in adjacent cars; The order also includes whether there are other related orders. If you select "other related orders" in the order, you must enter the identification information of the related orders. The intelligent ticket purchasing system for railway travel includes the principle of distribution of associated orders, which is: During the order processing, related orders will be processed according to the priority relationship of adjacent seats taking precedence over seats in the same car taking precedence over seats in adjacent cars; During the optimization period, the orders that have been successfully associated with each other but seated separately are optimized and adjusted according to the priority relationship that adjacent seats take precedence over seats in the same car take precedence over seats in adjacent cars.
[0012] In some embodiments, the intelligent ticket purchasing system for railway travel includes a centralized distribution principle for arrival stations, and the centralized distribution principle for arrival stations is to distribute orders for the same arrival station in the same departure station according to the priority relationship that adjacent seats take precedence over seats in the same carriage take precedence over seats in adjacent carriages; In the seat optimization during the optimization period, the passenger distribution principle takes precedence over the associated order distribution principle, and the associated order distribution principle takes precedence over the arrival station concentrated distribution principle; The intelligent ticket purchasing system for railway travel also includes the empty seat optimization principle. The empty seat optimization principle is that when empty seats appear after the passenger distribution principle, the associated order distribution principle and the arrival station concentrated distribution principle are executed, and the round-trip interval corresponding to the empty seat matches the round-trip interval of the successfully allocated order without seats, the seat will be temporarily allocated to the successfully allocated order without seats.
[0013] In some embodiments, the remaining orders to be matched in the previous cycle within the same round trip interval in the pool to be matched are allocated in priority to the remaining orders to be matched in the current cycle; if the remaining orders to be matched in the previous cycle are changed in the current cycle, the formation time of the remaining orders to be matched is updated to the current cycle; All the orders to be matched in the same round trip interval formed in the same cycle in the matching pool are parallel orders.
[0014] The advantages of the intelligent railway travel ticket purchasing system described in the present invention are: it can effectively reduce non-real intention ticket purchasing behavior, such as buying a short ticket and riding a long ticket, improve customer satisfaction, and increase the train occupancy rate, simply to increase the income generated by train operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 Ticket enquiry video Figure 1 ; Figure 2 Ticket enquiry video Figure 2 ; Figure 3 Ticket enquiry video Figure 3 ; Figure 4 Ticket enquiry video Figure 4 ; Figure 5 Ticket enquiry video Figure 5 ; Figure 6 Ticket enquiry video Figure 6 ; Figure 7 Ticket enquiry video Figure 7 ; Figure 8 Assignment view of orders for the first round of a train.
[0016] Fig. 9 Assign a view to the second round of orders for the first round of a certain train.
[0017] Fig.10 Assign a view to the third round of orders for the first round of a certain train.
[0018] Fig.11 Assign a view to a train the second way. DETAILED DESCRIPTION
[0019] The round-trip interval refers to the interval from the departure station to the arrival station. The stations within the round-trip interval include the departure station but exclude the arrival station.
[0020] A full-trip order is an order where the departure station is the first stop and the arrival station is the final stop. Other orders that do not match this are non-full-trip orders.
[0021] The system operation process includes the following steps: Pre-set ticketing intervals; Obtain target train information, the target train information includes seat data information and station information of the target train, the seat data information includes seat type information and rated number of seats of each type, the seat type information is set corresponding to the rated number of seats of each type, and the station information includes the station; A multiple order matching mechanism is established to allocate orders. The parameter nx is set, where x is the number of days when the allocated order reaches the critical value, and n is the number of seats reserved for matching in the critical area within the ticket sales interval every day. The multiple order matching mechanism includes time mechanism, personnel type mechanism, site mechanism and critical mechanism. Each mechanism in the multiple order matching mechanism is used crosswise to allocate orders. The time mechanism includes time point division, which is to divide the time period before the train departure time point according to the pre-set time mechanism division rules to form the intention period, conversion period and subscription period in sequence; The personnel type mechanism is used to classify the orders submitted within the willingness period into immediately generated orders and ordinary orders; The site mechanism includes priority settings, which include parent-child priority or site quantity priority. The critical mechanism is called in order according to the priority to allocate the corresponding to-be-matched orders, where the parent-child priority includes parent priority and child priority. The parent priority is the departure site priority, and the one close to the starting site is given priority over the one far away from the starting site; the child priority is the arrival site priority, and the one close to the terminal station is given priority over the one far away from the terminal station; the site quantity priority is the priority of the number of sites passed between the departure station and the arrival station, and the one with more sites is given priority over the one with less sites; The critical mechanism is used to retrieve the data y of the number of full-journey tickets sold in the same period of the target train in history, the data z of the number of full-journey tickets sold by the target train, calculate the current ticket quantity critical value, which is nx+yz, and then obtain the available remaining seats of the corresponding departure station and the corresponding type; The order is successful, the ticket information is generated, and the seats are reduced.
[0022] The above order also includes the train number, departure station, arrival station, estimated departure time of the departure station, and identification information; The ticket information also includes the train number, departure station, arrival station, estimated departure time at the departure station, and identification information; The identification information is associated with the user's identity information; The seat type information includes type category and type code, and the type category and type code are set correspondingly; The information of each site also includes a site code, and the site and the site code are set correspondingly; The intelligent railway travel ticket purchasing system includes a digital wallet module, which is used to perform automatic payment operations after the order is successful, and generate ticket information after the payment is completed; The multiple order matching mechanism also includes a refund preferential scoring mechanism. When the number of seats in the round-trip interval corresponding to the cancelled order is zero, the allocated seats corresponding to the cancelled order are preferentially allocated to the passengers without seats in the same round-trip interval. The time point division also includes an optimization period set between the purchase period and the ticket checking time. The optimization period is used to optimize seats for successful orders, update ticket information and issue tickets.
[0023] Orders submitted within the intended period are intended orders. The processing method of the intention order includes the following steps: The desired orders are divided according to the personnel type mechanism and stored in the corresponding storage space, among which the immediately generated orders are stored in the immediately generated order pool, and the ordinary orders are stored in the waiting matching pool to form the waiting conversion orders; Entering the conversion period, the instant order pool is fully released, the instant orders are directly traded, the corresponding ticket information is generated, and the seats are reduced; Entering the conversion period, the site mechanism and the critical mechanism are operated to allocate the orders to be converted in the matching pool. The allocated orders to be converted are released from the matching pool, and the corresponding ticket information is generated and stored in the ticket storage pool for seat reduction. If there are unallocated orders to be converted after the allocation is completed, the unallocated orders to be converted are still stored in the matching pool. The process of operating the site mechanism and the critical mechanism to allocate the orders to be converted in the matching pool is as follows: Count the number of orders to be converted for each seat type from the same departure station to each arrival station and the number of tickets corresponding to the orders to be matched; Count the number of full-trip tickets sold for each seat type, calculate the current ticket quantity threshold for the current departure station under the same seat type, and then obtain the remaining ticket quantity for the departure station under the current seat type, and determine whether the remaining ticket quantity matches the number of tickets corresponding to the corresponding order to be converted; If the available balance is greater than or equal to the number of tickets corresponding to the corresponding orders to be converted in the pool to be allocated, the match is successful, all the orders to be converted are converted and allocated, released and traded from the pool to be matched, the corresponding ticket information is formed, the seats are reduced, and the remaining available balance is calculated. The available saleable balance is less than the number of tickets corresponding to the corresponding orders to be converted in the pool to be allocated, and the matching fails. Only part of the orders to be converted are converted successfully. The corresponding orders to be converted are allocated and released according to the priority of the arrival station, and the corresponding ticket information is formed, and the seats are reduced. The unconverted orders to be converted are still stored in the pool to be matched.
[0024] The calculation process of the available remaining capacity for the departure station under the current seat type can be as follows: Obtain the rated number of seats of the corresponding type and the current ticket quantity threshold, and record the rated number of seats of the corresponding type as S; Count the number of all orders to be converted that include the departure station in the initial matching pool, recorded as S1; Count the number of all orders to be converted in the initial matching pool with the departure station as the arrival station, recorded as S2; Get the available remaining seat S0 for the departure station under the current seat type, S0=S-(nx+yz)-S1+S2.
[0025] The implementation process of the above personnel type mechanism may include the following steps: Pre-set personnel type judgment conditions; Obtaining a personnel type adjustment request submitted by a user, the content of which corresponds to a personnel type judgment condition; Determine whether the personnel type adjustment request meets the personnel type judgment conditions. If the personnel type adjustment request meets the personnel type judgment conditions, agree to the user's personnel type adjustment request, mark the user's identity information, and record the user's instant generation conditions. The instant generation conditions include round-trip site information. The user submits new order information, and determines whether the departure site and arrival site in the order information are consistent with the round-trip site information in the instant generation conditions. If they are consistent, the order is treated as an instant generation order; if they are not consistent, the order is treated as an ordinary order. If the personnel type adjustment request does not meet the personnel type judgment conditions, do not agree to the user's personnel type adjustment request, do not mark the user's identity information, and all orders submitted by the user are ordinary orders.
[0026] Orders submitted during the subscription period are subscription orders. The subscription order processing process includes the following steps: The purchase orders are traded in real time, the corresponding ticket information is generated, the seats are reduced, and the number of purchase orders traded in real time within the current ticket sales interval is accumulated; When the current cumulative transaction quantity and the critical value of the ticket quantity reach the preset maximum train load, the purchase order transaction restriction mechanism is activated. The execution process of the purchase order transaction restriction mechanism is as follows: Determine whether the purchase order corresponds to a full-trip order. If it is a full-trip order, the purchase order is executed in real time, the quantity is reduced in the yz interval, the corresponding ticket information is formed, and the seat reduction is carried out; if it is a non-full-trip order, the critical area is automatically used to reserve seats to be matched, and the non-full-trip order is matched. The matching includes two methods, namely irregular allocation and regular allocation; Irregular allocation is to combine non-full-trip orders that cannot be traded in real time due to the critical mechanism in a way similar to the "Tetris" end-to-end ticket allocation method. If they are combined into full-trip orders, the corresponding ticket information will be generated and the corresponding seats will be reduced. If the cumulative number of full-trip orders combined on the day is less than the number of reserved seats to be matched in the critical area of the corresponding ticketing interval, there will be vacancies on that day, and the vacant seats will be used for other allocations on that day; if the cumulative number of full-trip orders combined on the day is greater than the number of reserved seats to be matched in the critical area of the corresponding ticketing interval, it will be displayed that the number is insufficient, and the orders exceeding the number of reserved seats to be matched in the critical area of the ticketing interval on that day will be stored in the waiting-to-match pool and wait for the next day's matching; Scheduled allocation: non-full-trip orders that cannot be assembled into full-trip orders are automatically matched and assembled with non-full-trip orders in the waiting-for-matching pool or newly submitted non-full-trip orders once or more each day in a way similar to the "Tetris" head-to-tail ticket allocation method to form assembled orders. The assembled orders are sorted according to the rule that the number of stations contained in the assembled orders is higher than the number of stations contained in the assembled orders, or the number of orders contained in the assembled orders is lower than the number of orders contained in the assembled orders. The assembled orders arranged in front in the waiting-for-matching pool are limited to be called, and the seats that do not overlap with the called orders are also matched successfully at the same time; When all matches on the day are completed (e.g., overselling of the ticketing interval), if there are vacancies in the number of seats reserved for matching in the critical area within the ticketing interval of the day, they will be automatically postponed and added to the number of seats reserved for matching in the critical area within the ticketing interval of the next day.
[0027] The critical mechanism also includes a mechanism for adjusting the maximum number of seats that can match the entire journey within the ticketing interval. When the number of full-journey tickets sold by the target train, z, is greater than the number of full-journey orders sold by the target train in the same period, y, the mechanism for adjusting the maximum number of seats that can match the entire journey within the ticketing interval is triggered. The adjustment process of this mechanism is as follows: The priority in the adjustment mechanism of the maximum number of seats that can match the entire journey within the ticketing interval is implemented. The priority is that the maximum number of seats that can match the entire journey within the ticketing interval close to the departure time is prioritized over the maximum number of seats that can match the entire journey within the ticketing interval far from the departure time for step-by-step adjustment; Get the difference of the current zy; When the difference is less than or equal to n, the maximum number of seats that can match the entire journey in the ticket sales interval closest to the departure time will be automatically reduced according to the difference; When the difference is greater than n, the quotient and remainder obtained when the difference is divided by n are calculated, and the maximum number of seats that can match the entire journey in the corresponding ticket range is reset to zero step by step according to the quotient and the priority in the mechanism, and the maximum number of seats that can match the entire journey in the corresponding ticket range is automatically reduced according to the remainder by adding the quotient to one.
[0028] The order may also include other selection conditions, including whether there are fellow passengers, whether to accept separate seats, whether to accept seat adjustment, and whether to accept no seat; When selecting "with passengers" in the order, the identity information of the passengers must be provided. The number of tickets included in the order is the number of passengers plus one. The intelligent ticket purchasing system for railway travel includes the distribution principle of co-passengers, which is: When selecting "with passengers" in the order, the passenger's identity information must be provided, and when selecting "not to accept separate seating", if the remaining available seats of the same seat type and the same departure station corresponding to the order are less than the number of tickets corresponding to the corresponding to-be-matched order in the to-be-allocated pool, if the remaining available seats are less than the number of tickets included in the order, the order will not be allocated and will be directly stored in the to-be-matched pool and wait for allocation in the next cycle; During the optimization period, for passengers who have the same car as you, if they choose to accept separate seating or seat adjustment, when the order is successful, the order with seats available will be optimized and adjusted according to the priority relationship of adjacent seats taking precedence over seats in the same car taking precedence over seats in adjacent cars; The order also includes whether there are other related orders. If you select "other related orders" in the order, you must enter the identification information of the related orders. The intelligent ticket purchasing system for railway travel includes the principle of distribution of associated orders, which is: During the order processing, related orders will be processed according to the priority relationship of adjacent seats taking precedence over seats in the same car taking precedence over seats in adjacent cars; During the optimization period, the orders that have been successfully associated with each other but seated separately are optimized and adjusted according to the priority relationship that adjacent seats take precedence over seats in the same car take precedence over seats in adjacent cars.
[0029] The intelligent ticket purchasing system for railway travel may also include a centralized distribution principle for arrival stations, which is to allocate orders for the same arrival station in the same departure station according to the priority relationship that adjacent seats take precedence over seats in the same carriage take precedence over seats in adjacent carriages; In the seat optimization during the optimization period, the passenger distribution principle takes precedence over the associated order distribution principle, and the associated order distribution principle takes precedence over the arrival station concentrated distribution principle; The intelligent ticket purchasing system for railway travel also includes the empty seat optimization principle. The empty seat optimization principle is that when empty seats appear after the passenger distribution principle, the associated order distribution principle and the arrival station concentrated distribution principle are executed, and the round-trip interval corresponding to the empty seat matches the round-trip interval of the successfully allocated order without seats, the seat will be temporarily allocated to the successfully allocated order without seats.
[0030] In some specific implementations, the remaining orders in the previous cycle in the same round trip interval in the matching pool are allocated in priority to the matching orders formed in the current cycle; if the remaining orders in the previous cycle are changed in the current cycle, the formation time of the matching orders is updated to the current cycle; All the orders to be matched in the same round trip interval formed in the same cycle in the matching pool are parallel orders.
[0031] In the specific implementation, one of the specific implementations can be as follows: A smart ticket purchasing system for railway travel, taking the target train described below as an example, the target train information includes seat data information and station data information of the target train, The seat data information of the target train includes seat type information and the rated number of seats of each type, wherein the seat type information includes type category and type code, the type category includes business class, first class and second class, the type code is S, Y, E, S, Y, E correspond to business class, first class and second class respectively, and the rated number of seats of each type includes a business class, b first class and c second class; The data information of each station includes the station and the station code. The station and the station code correspond one to one. The stations include Beijing (starting station), Tianjin, Dezhou, Jinan... Suzhou, Kunshan, Shanghai (terminal station). The station codes include 1, 2, 3, 4... m-2, m-1, m.
[0032] This intelligent railway ticket purchasing system has a digital wallet for users.
[0033] The operation method of the above-mentioned railway travel intelligent ticket purchasing system includes the following steps: S1. Enter the seat data and station data information of the target train.
[0034] S2. Establish a multiple order matching mechanism and set a parameter nx, where x is the number of days when the allocated orders reach the critical value, and n is the seats reserved for matching in the critical area within the ticket sales range every day.
[0035] S4. Obtain the quantity data y of the full-journey tickets sold for this train during the same period in history.
[0036] S5. Obtain the number of full-journey tickets sold when the train officially starts selling tickets 15 days in advance, and the system assigns a critical value of nx+yz.
[0037] S6. Create a user digital wallet.
[0038] The multiple order matching mechanism includes a time mechanism, which includes time point division. The time point division is to divide the time period before the train departure time point according to the pre-set time mechanism division rules to form the intention period, conversion period, subscription period and optimization period in sequence. For example, the intention period is set from 15 days before the official sale to 2 hours before the official sale. The order within the intention period can be cancelled at any time before it is converted into a formal ticket. The conversion period is from 2 hours before the official sale to the official sale, the subscription period is from the official sale period to 30 minutes before the train ticket inspection, and the optimization period is from 30 minutes before the train departure to 15 minutes before the train ticket inspection. The specific time periods can be adjusted as needed.
[0039] The reason for non-genuine intention ticket purchase is that the existing 12306 system still has some problems that need to be improved. For example, if tickets from a certain train's starting station Beijing to its terminal station Shanghai are sold out, but tickets from Beijing to its intermediate station Nanjing are available, if passengers want to arrive on time, they may have to buy short-distance tickets, stay on the train, and buy the tickets at the terminal station, which is a non-genuine intention method.
[0040] Optimize related functions, unify the current ticketing system pre-order and standby into subscription. Subscriptions include immediate orders and pending orders according to the order of submission time. Submissions during the subscription period are generally immediate orders. If all the above orders touch the set critical line, the critical line corresponds to (nx+yz), and they are automatically transferred to the waiting pool for matching results. For example, the first station goes directly to the terminal station, the migrant workers and students in the group purchase service, and the users who meet certain conditions apply for fixed station orders through frequent round-trip review, etc., which can be traded in real time, and other orders are waiting for system matching.
[0041] People submit all the real intention order information of a train through 12306 from 9:00 30 days in advance to 7:00 15 days in advance (intention period) during this period. E means second class, Y means first class, S means business class, the Arabic numerals in front indicate the station to station, and the numbers behind indicate the number of tickets to be purchased. E1-2 1 means 1 second-class ticket from Beijing to Tianjin, S1-4 2 means 2 business tickets from Beijing to Jinan, Y1-m-2 1 means 1 first-class ticket from Beijing to Suzhou, E1-m-2 1, E1- m 2, E2-3 1, E5-m 2, etc. All tickets are converted for the first time during the conversion period, which is 7:00 to 9:00 15 days in advance. New orders can be accepted during the conversion period, or new orders can be submitted during the subscription period.
[0042] Taking the c second-class seats with the most ticket options as an example, among the above-mentioned purchased tickets, there are automatically counted c1 second-class tickets starting with E with the starting station being 1, i.e. Beijing Station, and those sorted in the order of the terminal stations being m, m-1, m-2...3, 2. The number of tickets with the least number of stations being E1-2 is c2.
[0043] Among the above-mentioned purchased tickets, the second-class tickets starting with E and whose boarding station is 2, i.e., Tianjin Station, are automatically counted and sorted in the order of the final stations m, m-1, m-2...4, 3, totaling c3 tickets.
[0044] And so on, until all tickets with the second-class tickets starting with E and the boarding station being the last station m-1 (Kunshan) to the terminal station m are automatically counted among the above-mentioned purchased tickets.
[0045] The departure stations counted during the conversion period are the starting station Beijing, and the tickets purchased are sold in order from the longest to the shortest. For the same destination, the submission time is not considered in order, and all orders are parallel orders to prevent ticket snatching. However, if the ticket is changed, priority can be given to the same circumstances.
[0046] If the passenger flow is very large and the tickets are in short supply, the tickets for some sections are generally sold out during the ticket sales process at 9:00 am or 15 days in advance. The principles are the same in both cases. For example, if the ticket sales start at 9:00 am 15 days in advance and the ticket reaches the critical point directly, the conversion period will execute the following steps: If c-(15n+yz)>c1, all the second-class tickets starting with E and with the starting station 1, i.e. Beijing Station, will be successfully booked. The user's digital wallet will automatically deduct the money to generate the ticket information. The system will reduce the corresponding seats. The model diagram will be displayed as an inverted staircase, as shown in the figure below. Figure 8 shown.
[0047] Among them, the full-trip order does not need to be matched, and the transaction is completed directly, and the ticket information is generated (the ticket is the full-trip ticket). It is used as a deduction for the empty seats of other non-full-trip orders except the second stop as the departure station. Figure 8 Matching and conversion are carried out from top to bottom, similar to the "Tetris" end-to-end ticket allocation method (this is similar to the "Tetris" end-to-end ticket allocation method. The execution principle can be that when the departure station of a non-full-trip order is the same as the arrival station of another non-full-trip order, the two non-full-trip orders can be connected end to end). Try to splice the non-full-trip orders into segmented orders from the starting station to the terminal station. In the case of multiple splicing to form segmented orders with the same path, the smaller number of segments will be given priority. If it is not possible to connect end to end to form a full-trip order, the empty interval will be empty and wait for the next matching, which will be used for the real-time transaction orders added later during the subscription period, such as Fig. 9 shown.
[0048] The number of tickets that can be sold if the second station is the departure station and the number of seats that do not exceed the critical number is c-(15n+yz)-c1+c2. If c-(15n+yz)-c1+c2〉c3, then all the second-class tickets starting with E with the boarding station 2, i.e. Tianjin Station, totaling c3, are successful. The user's digital wallet automatically deducts the money to generate the ticket information, and the system reduces the corresponding seats, such as Fig.10 As shown; After that, all second-class tickets starting with E with the boarding station 3, i.e., Dezhou, 4, Jinan, 5, .... m-1 Kunshan will be matched in turn, and all orders that have not reached the critical point will be successful. After the ticket information is generated, the system will reduce the corresponding seats. For the third station and beyond, orders submitted by users for purchase at one or more stations will reach the set critical point at 9:00 a.m. 15 days in advance when they are allocated. That is, the orders touch the set critical line. Those that cannot be successfully converted according to the passenger's preset conditions will be automatically transferred to the waiting matching pool to wait for successful matching. Entering the critical interval (i.e., if Figure 8-Figure 11 In each figure, the areas covered by two different shadows correspond to the regular and irregular allocation of the order system yz and nx respectively.
[0049] The first round of system conversion data ends at 9:00 am 15 days before departure, and at the same time, it begins to accept ticket purchase information (i.e. purchase orders) for all stations. Orders that do not reach the critical point are directly converted, with the same seat and as close as possible, similar to "Tetris", so that the seat is occupied throughout the journey and plays the greatest role. Orders that exceed the critical point are still automatically transferred to the waiting pool to wait for successful matching.
[0050] Generally speaking, the total number of train passengers is often greater than the actual number of seats available for sale. To avoid wasting resources, the number of passengers with more seats than the number of seats available will be displayed as "no seats available". There is a difference d between the two. When users apply for orders and compare them with available seats, there may be special cases where there are discontinuous seats or no seats available due to critical restrictions. For example, if the user agrees in advance that the seat can be changed, that is, the seats are not different throughout the journey, or agrees to the no seat option, the system will successfully match and feedback relevant information to the user, such as changing seats or no seats available. Passengers without tickets can choose a suitable location such as a seat in the dining car.
[0051] Later, if someone cancels an order in an empty section, or there are empty seats in a certain section after the critical matching area is matched, the system will give priority to filling the corresponding seats for the empty sections.
[0052] The number of unticketed passengers waiting to be allocated cannot exceed the above difference d. Once it is reached, it indicates that the train has reached its maximum capacity. The train will automatically use the reserved seats in the critical area within the daily ticket sales range to select the corresponding seats in the range exceeding the fixed capacity.
[0053] Irregular allocation is to connect the non-full-course orders after entering the critical zone in real time, and to piece together the full-course orders in a "Tetris" style, with the end-to-end connected segmented orders and the smaller number of segments. Orders that meet the requirements (that is, the departure station of the segmented orders formed by splicing is the starting station, and the arrival station is the terminal station) are successfully matched in real time, and the ticket information is directly generated, and the corresponding seats are reduced. The number of seats reserved for matching in the critical area within the ticket sales range every day is reduced by 1, that is, (n-1).
[0054] Because there are enough critical spaces to allocate, full-course orders can be traded in real time from 15 days in advance to the last day. Non-full-course orders can be converted during the conversion period, or matched and traded in real time during the subscription period. Non-full-course orders that enter the critical period have a certain amount of automatic matching space every day. If this amount is vacant on the day, it will be automatically postponed (that is, the remaining amount will be added to the number of seats n reserved for matching in the corresponding critical area of the next day). If the amount is insufficient, the order will wait for the next day's matching. The above constitutes a multiple order matching mechanism.
[0055] For timed allocation, orders that cannot be combined into a full order can be matched only once a day, or automatically allocated once at a certain time (the specific number of executions and time intervals can be pre-set in the corresponding program code). Orders are sorted by the number of stations after the end-to-end order is combined. The one with the same number of stations is given priority, and can also be sorted directly by the number of stations in a single order.
[0056] For non-full-trip orders, if a certain section of a seat is idle, it will automatically participate in the next round of system matching.
[0057] Users can modify their order information according to actual conditions, such as changing "only agreeing to the same seat throughout the journey" to "seat can be changed", "no seat can be changed" or vice versa.
[0058] If the passenger flow is normal except for major holidays, the ticket conditions of all intervals will not reach the critical state on the day 15 days in advance. When the critical parameter arrives later, the corresponding value of the critical interval (i.e. nx+yz) will decrease accordingly due to the decrease of x.
[0059] When ticket sales are stopped just before departure, the system will make a final match with the available seats based on the real-time situation of empty seats and all purchase orders, and provide timely feedback to passengers on success, failure or seat adjustment.
[0060] After the ticket sales are completed and before the passengers board the bus, the system can partially adjust the seat allocation based on whether someone refunds or changes their ticket or the seat type. The system will make real-time optimizations or suggestions to improve the passenger experience, increase the load rate, and reduce resource waste.
[0061] The priority of the first match is sorted by station and long and short distance, and can also be sorted directly by the number of stations. The full-trip order is still directly executed in real time. Here, E1-m-1, E2-m, E1-m-2, E2-m-1, E3-m.. .... E m-1-m are executed in order. The principle is shown in Fig.11 shown.
[0062] After one or more rounds of reaching a critical state according to the number of stations, the orders in the ticket sales interval can be sorted and allocated in two ways according to the conversion period priority.
[0063] Administrators can adjust the number and types of carriages before they are fully sold based on the data of seats to be allocated and already filled, such as adjusting business class seats to first or second class seats, and adjusting 8 carriages to 16 carriages, to better meet the travel needs of the public.
[0064] For example, after the implementation of the new ticket booking system, because the number of people getting on the train at a certain station has increased significantly compared to before, the train stop time is relatively short. In this case, the system can be optimized to evenly distribute the passengers at this station to each carriage, and give priority to the middle seats. The booking feedback information will include the passenger's waiting number at the front or rear door of carriage, with the middle seat first to prevent the luggage from affecting the movement of the people behind. At the same time, the train stop time can be extended by optimizing the running speed to ensure that everyone can get on board.
[0065] Take G103 as an example: Combine Figure 1 and Figure 2 The content shown is that for tickets booked on May 26, 2024 and for trains departing on May 27, there are no tickets from Beijing to Shanghai for the full-journey G103 order, but there are tickets from Beijing to Xuzhou, so there is the possibility of buying a short trip and riding a long trip.
[0066] Combination Figure 3 As shown, I want to book 5 G1 second-class tickets from Beijing to Shanghai at 11:40 on May 22, 2024, but combined with Figure 4 The content shown is sufficient at 14:19, which means there are tickets. If two families of 6 people travel in the morning, the ticket booking should not be successful, but it can be successful in the afternoon.
[0067] Combination Figures 5 to 7 The content shown is that G5 bought a ticket for the May 22 train on May 21. There are no second-class tickets from Beijing to Shanghai, but there is 1 ticket from Beijing to Nanjing, and there are sufficient tickets from Nanjing to Shanghai.
[0068] The above undisclosed matters can all be implemented using existing technologies, so they will not be elaborated here.
[0069] For ordinary technicians, several similar variations and improvements can be made without departing from the creative concept of the present invention, and these should also be regarded as the protection scope of the present invention.
Claims
1. A smart railway ticket purchasing system, characterized in that: The system operation process includes the following steps: Obtain target train information, the target train information includes seat data information and station information of the target train, the seat data information includes seat type information and rated number of seats of each type, the seat type information is set corresponding to the rated number of seats of each type, and the station information includes the station; A multiple order matching mechanism is established to allocate orders. The parameter nx is set, where x is the number of days when the allocated order reaches the critical value, and n is the number of seats reserved for matching in the critical area within the ticket sales interval every day. The multiple order matching mechanism includes time mechanism, personnel type mechanism, site mechanism and critical mechanism. Each mechanism in the multiple order matching mechanism is used crosswise to allocate orders. The time mechanism includes time point division, which is to divide the time period before the train departure time point according to the pre-set time mechanism division rules to form the intention period, conversion period and subscription period in sequence; The personnel type mechanism is used to classify the orders submitted within the willingness period into immediately generated orders and ordinary orders; The site mechanism includes priority settings, which include parent-child priority or site quantity priority. The critical mechanism is called in order according to the priority to allocate the corresponding orders to be matched. The parent-child priority includes parent priority and child priority. The parent priority is the departure site priority, and the one close to the starting site is given priority over the one far away from the starting site; the child priority is the arrival site priority, and the one close to the terminal station is given priority over the one far away from the terminal station. The priority of the number of stations is the priority of the number of stations passed between the departure station and the arrival station. The station with more stations takes precedence over the station with fewer stations. The critical mechanism is used to retrieve the data y of the number of full-journey tickets sold in the same period of the target train in history, the data z of the number of full-journey tickets sold by the target train, calculate the current ticket quantity critical value, which is nx+yz, and then obtain the available remaining seats of the corresponding departure station and the corresponding type; The order is successful, the ticket information is generated, and the seats are reduced.
2. According to claim 1, a smart railway travel ticket purchasing system, wherein: The order includes the train number, departure station, arrival station, estimated departure time from the departure station, and identification information; The ticket information includes the train number, departure station, arrival station, estimated departure time at the departure station, and identification information; The identification information is associated with the user's identity information; The seat type information includes type category and type code, and the type category and type code are set correspondingly; The information of each site also includes a site code, and the site and the site code are set correspondingly; The intelligent railway travel ticket purchasing system includes a digital wallet module, which is used to perform automatic payment operations after the order is successful, and generate ticket information after the payment is completed; The multiple order matching mechanism also includes a refund preferential scoring mechanism. When the number of seats in the round-trip interval corresponding to the cancelled order is zero, the allocated seats corresponding to the cancelled order are preferentially allocated to the passengers without seats in the same round-trip interval. The time point division also includes an optimization period set between the purchase period and the ticket checking time. The optimization period is used to optimize seats for successful orders, update ticket information and issue tickets.
3. A railway travel intelligent ticket purchasing system according to claim 1 or 2, wherein: Orders submitted within the intended period are intended orders. The processing method of the intention order includes the following steps: The desired orders are divided according to the personnel type mechanism and stored in the corresponding storage space, among which the immediately generated orders are stored in the immediately generated order pool, and the ordinary orders are stored in the waiting matching pool to form the waiting conversion orders; Entering the conversion period, the instant order pool is fully released, the instant orders are directly traded, the corresponding ticket information is generated, and the seats are reduced; Entering the conversion period, the site mechanism and the critical mechanism are operated to allocate the orders to be converted in the matching pool. The allocated orders to be converted are released from the matching pool, and the corresponding ticket information is generated and stored in the ticket storage pool for seat reduction. If there are unallocated orders to be converted after the allocation is completed, the unallocated orders to be converted are still stored in the matching pool. The process of operating the site mechanism and the critical mechanism to allocate the orders to be converted in the matching pool is as follows: Count the number of orders to be converted for each seat type from the same departure station to each arrival station and the number of tickets corresponding to the orders to be matched; Count the number of full-trip tickets sold for each seat type, calculate the current ticket quantity threshold for the current departure station under the same seat type, and then obtain the remaining ticket quantity for the departure station under the current seat type, and determine whether the remaining ticket quantity matches the number of tickets corresponding to the corresponding order to be converted; If the available balance is greater than or equal to the number of tickets corresponding to the corresponding orders to be converted in the pool to be allocated, the match is successful, and all orders to be converted are converted and allocated, released from the pool to be matched, and the corresponding ticket information is formed, and the seats are reduced; The available saleable balance is less than the number of tickets corresponding to the corresponding orders to be converted in the pool to be allocated, and the matching fails. Only part of the orders to be converted are converted successfully. The corresponding orders to be converted are allocated and released according to the priority of the arrival station, and the corresponding ticket information is formed, and the seats are reduced. The unconverted orders to be converted are still stored in the pool to be matched.
4. According to claim 3, a smart railway travel ticket purchasing system, wherein: The calculation process of the available remaining capacity at the departure station under the current seat type is as follows: Obtain the rated number of seats of the corresponding type and the current ticket quantity threshold, and record the rated number of seats of the corresponding type as S; Count the number of all orders to be converted that include the departure station in the initial matching pool, recorded as S1; Count the number of all orders to be converted in the initial matching pool with the departure station as the arrival station, recorded as S2; Get the available remaining seat S0 for the departure station under the current seat type, S0=S-(nx+yz)-S1+S2.
5. According to claim 3, a smart railway travel ticket purchasing system, wherein: The implementation process of the personnel type mechanism includes the following steps: Pre-set personnel type judgment conditions; Obtaining a personnel type adjustment request submitted by a user, the content of which corresponds to a personnel type judgment condition; Determine whether the personnel type adjustment request meets the personnel type judgment conditions. If the personnel type adjustment request meets the personnel type judgment conditions, agree to the user's personnel type adjustment request, mark the user's identity information, and record the user's instant generation conditions. The instant generation conditions include round-trip site information. The user submits new order information, and determines whether the departure site and arrival site in the order information are consistent with the round-trip site information in the instant generation conditions. If they are consistent, the order is treated as an instant generation order; if they are not consistent, the order is treated as an ordinary order. If the personnel type adjustment request does not meet the personnel type judgment conditions, do not agree to the user's personnel type adjustment request, do not mark the user's identity information, and all orders submitted by the user are ordinary orders.
6. According to claim 3, a smart railway travel ticket purchasing system, wherein: Orders submitted during the subscription period are subscription orders. The subscription order processing process includes the following steps: The purchase orders are traded in real time, the corresponding ticket information is generated, the seats are reduced, and the number of purchase orders traded in real time within the current ticket sales interval is accumulated; When the current cumulative transaction quantity and the critical value of the ticket quantity reach the preset maximum train load, the purchase order transaction restriction mechanism is activated. The execution process of the purchase order transaction restriction mechanism is as follows: Determine whether the purchase order corresponds to a full-trip order. If it is a full-trip order, the purchase order is executed in real time, the quantity is reduced in the yz interval, the corresponding ticket information is formed, and the seat reduction is carried out; if it is a non-full-trip order, the critical area is automatically used to reserve seats to be matched, and the non-full-trip order is matched. The matching includes two methods, namely irregular allocation and regular allocation; Irregular allocation is to combine non-full-trip orders that cannot be traded in real time due to the critical mechanism in a way similar to the "Tetris" end-to-end ticket allocation method. If they are combined into full-trip orders, the corresponding ticket information will be generated and the corresponding seats will be reduced. If the cumulative number of full-trip orders combined on the day is less than the number of seats reserved for matching in the critical area of the corresponding ticketing interval, there will be vacancies on that day, and the vacant seats will be used for other allocations on that day; if the cumulative number of full-trip orders combined on the day is greater than the number of seats reserved for matching in the critical area of the corresponding ticketing interval, it will be displayed that the number is insufficient, and the orders exceeding the number of seats reserved for matching in the critical area of the ticketing interval on that day will be stored in the waiting-to-match pool and wait for the next day's matching; Scheduled allocation: non-full-trip orders that cannot be assembled into full-trip orders are automatically matched and assembled with non-full-trip orders in the waiting-for-matching pool or newly submitted non-full-trip orders once or more each day in a way similar to the "Tetris" head-to-tail ticket allocation method to form assembled orders. The assembled orders are sorted according to the rule that the assembled orders with more stops have priority over those with fewer stops, or the assembled orders with fewer orders have priority over those with more orders. The assembled orders in the front of the waiting-for-matching pool are limited to be called, and those that do not overlap with the called orders are also successfully matched at the same time; When all matches on the day are completed, if there are vacancies in the number of seats reserved for matching in the critical area within the ticket sales range of the day, they will be automatically postponed and added to the number of seats reserved for matching in the critical area within the ticket sales range of the next day.
7. A railway travel intelligent ticket purchasing system according to claim 6, wherein: The critical mechanism also includes a mechanism for adjusting the maximum number of seats that can match the entire journey within the ticketing interval. When the number of full-journey tickets sold by the target train, z, is greater than the number of full-journey orders sold by the target train in the same period, y, the mechanism for adjusting the maximum number of seats that can match the entire journey within the ticketing interval is triggered. The adjustment process of this mechanism is as follows: The priority in the adjustment mechanism of the maximum number of seats that can match the entire journey within the ticketing interval is implemented. The priority is that the maximum number of seats that can match the entire journey within the ticketing interval close to the departure time is prioritized over the maximum number of seats that can match the entire journey within the ticketing interval far from the departure time for step-by-step adjustment; Get the difference of the current zy; When the difference is less than or equal to n, the maximum number of seats that can match the entire journey in the ticket sales interval closest to the departure time will be automatically reduced according to the difference; When the difference is greater than n, the quotient and remainder obtained when the difference is divided by n are calculated, and the maximum number of seats that can match the entire journey in the corresponding ticket range is reset to zero step by step according to the quotient and the priority in the mechanism, and the maximum number of seats that can match the entire journey in the corresponding ticket range is automatically reduced according to the remainder by adding the quotient to one.
8. A railway travel intelligent ticket purchasing system according to claim 7, wherein: The order also includes other selection conditions, including whether there are fellow passengers, whether to accept separate seats, whether to accept seat adjustment, and whether to accept no seat; When selecting "with passengers" in the order, the identity information of the passengers must be provided. The number of tickets included in the order is the number of passengers plus one. The intelligent ticket purchasing system for railway travel includes the distribution principle of co-passengers, which is: When selecting "with passengers" in the order, the passenger's identity information must be provided, and when selecting "not to accept separate seating", if the remaining available seats of the same seat type and the same departure station corresponding to the order are less than the number of tickets corresponding to the corresponding to-be-matched order in the to-be-allocated pool, if the remaining available seats are less than the number of tickets included in the order, the order will not be allocated and will be directly stored in the to-be-matched pool and wait for allocation in the next cycle; During the optimization period, for passengers who have the same car as you, if they choose to accept separate seating or seat adjustment, when the order is successful, the order with seats available will be optimized and adjusted according to the priority relationship of adjacent seats taking precedence over seats in the same car taking precedence over seats in adjacent cars; The order also includes whether there are other related orders. If you select "other related orders" in the order, you must enter the identification information of the related orders. The intelligent ticket purchasing system for railway travel includes the principle of distribution of associated orders, which is: During the order processing, related orders will be processed according to the priority relationship of adjacent seats taking precedence over seats in the same car taking precedence over seats in adjacent cars; During the optimization period, the orders that have been successfully associated with each other but seated separately are optimized and adjusted according to the priority relationship that adjacent seats take precedence over seats in the same car take precedence over seats in adjacent cars.
9. A railway travel intelligent ticket purchasing system according to claim 8, wherein: The intelligent ticket purchasing system for railway travel includes the principle of centralized distribution of arrival stations. The principle of centralized distribution of arrival stations is to allocate orders for the same arrival station in the same departure station according to the priority relationship that adjacent seats take precedence over seats in the same carriage take precedence over seats in adjacent carriages; In the seat optimization during the optimization period, the passenger distribution principle takes precedence over the associated order distribution principle, and the associated order distribution principle takes precedence over the arrival station concentrated distribution principle; The intelligent ticket purchasing system for railway travel also includes the empty seat optimization principle. The empty seat optimization principle is that when empty seats appear after the passenger distribution principle, the associated order distribution principle and the arrival station concentrated distribution principle are executed, and the round-trip interval corresponding to the empty seat matches the round-trip interval of the successfully allocated order without seats, the seat will be temporarily allocated to the successfully allocated order without seats.
10. A railway travel intelligent ticket purchasing system according to claim 6, wherein: The remaining orders in the previous cycle in the same round trip interval in the matching pool are allocated first before the matching orders formed in the current cycle; if the remaining orders in the previous cycle are changed in the current cycle, the formation time of the matching orders will be updated to the current cycle; All the orders to be matched in the same round trip interval formed in the same cycle in the matching pool are parallel orders.
