CN112258229A - Method and device for generating corresponding relation between fare gears and train - Google Patents
Method and device for generating corresponding relation between fare gears and train Download PDFInfo
- Publication number
- CN112258229A CN112258229A CN202011134628.2A CN202011134628A CN112258229A CN 112258229 A CN112258229 A CN 112258229A CN 202011134628 A CN202011134628 A CN 202011134628A CN 112258229 A CN112258229 A CN 112258229A
- Authority
- CN
- China
- Prior art keywords
- fare
- gear
- train
- seat number
- parameter value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000005315 distribution function Methods 0.000 claims abstract description 42
- 230000006870 function Effects 0.000 claims description 118
- 230000002354 daily effect Effects 0.000 claims description 49
- 238000009826 distribution Methods 0.000 claims description 41
- 230000005540 biological transmission Effects 0.000 claims description 24
- 230000001186 cumulative effect Effects 0.000 claims description 20
- 238000003860 storage Methods 0.000 claims description 16
- 230000003203 everyday effect Effects 0.000 claims description 14
- 238000009825 accumulation Methods 0.000 claims description 4
- 238000012384 transportation and delivery Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000010354 integration Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 239000002904 solvent Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0283—Price estimation or determination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
Landscapes
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Primary Health Care (AREA)
- Tourism & Hospitality (AREA)
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Abstract
The embodiment of the invention provides a method and a device for generating a corresponding relation between fare gears and a train. Generating the seat number corresponding to each fare gear according to the acquired demand distribution function; establishing a corresponding relation between the number of the trains and the number of the seats; establishing a corresponding relation between the seat number corresponding to each fare gear and the seat number corresponding to each train; and generating the corresponding relation between the fare gear and the train according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train and the seat number, the fare gear and the train set. According to the technical scheme provided by the invention, the corresponding relation between the fare gear and the train can be generated according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train and the seat number, the fare gear and the train set, so that the accuracy and the scientificity of the corresponding relation between the fare gear and the train are improved, and more scientific price can be made by assisting each train.
Description
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of computers, in particular to a method and a device for generating a corresponding relation between a fare gear and a train.
[ background of the invention ]
With the trend of marketization guidance of railway transportation enterprises becoming more and more obvious, in order to be closer to market demands and improve competitiveness when competing with air transportation, road transportation and waterway transportation, the railway transportation enterprises need to implement more flexible and diversified price strategies. In the related technology, the corresponding relation between the fare gear and the train is generally determined subjectively by price managers, so that the accuracy of generating the corresponding relation between the fare gear and the train is reduced.
[ summary of the invention ]
In view of this, the embodiment of the present invention provides a method and an apparatus for generating a corresponding relationship between a fare gear and a train, so as to improve accuracy of generating the corresponding relationship between the fare gear and the train.
On one hand, the embodiment of the invention provides a method for generating a corresponding relation between a fare gear and a train, which comprises the following steps:
generating the seat number corresponding to each fare gear according to the acquired demand distribution function;
establishing a corresponding relation between each train in the train set and the number of seats; establishing a corresponding relation between the fare gear and the number of seats according to the set fare gear and the number of seats corresponding to each train in the train set;
and generating the corresponding relation between the fare gear and the train according to the corresponding relation between the fare gear and the seat number, the corresponding relation between each train in the train set and the seat number, the fare gear and the train set.
Optionally, the generating the corresponding relationship between the fare gear and the train according to the corresponding relationship between the fare gear and the number of seats, the corresponding relationship between each train in the train set and the number of seats, the fare gear and the train set includes:
determining the priority sequence of each train in the train set according to the corresponding driving time of each train in the train set;
establishing a corresponding relation between the trains in the first priority order and the first-gear fare gears;
judging whether the difference value obtained by subtracting the set first parameter value from the set train number of the total train set and then subtracting 1 is equal to the difference value of the set last-gear fare gear and the set second parameter value;
if the fact that the number of the trains in the total train set is subtracted by the first parameter value and then is subtracted by 1 and is not equal to the difference value between the last fare gear and the second parameter value is judged, the seat numbers corresponding to the trains in a specific priority sequence are summed to generate a first seat number, wherein the specific priority sequence comprises a first priority sequence and a second priority sequence, the first priority sequence comprises a priority sequence equal to a set third parameter value, and the second priority sequence comprises a priority sequence equal to the first parameter value;
inquiring the seat number corresponding to the first train set according to the corresponding relation between each train in the train set and the seat number to generate a second seat number, wherein the first train set comprises trains corresponding to the third priority sequence, and the third priority sequence comprises a priority sequence equal to the sum of the first parameter value and 1;
inquiring the seat number corresponding to the first fare gear according to the corresponding relation between the fare gears and the seat number to generate a third seat number, wherein the first fare gear comprises a fare gear equal to a second parameter value;
judging whether the difference value between the third seat number and the first seat number is larger than the second seat number of a set multiple or not;
and if the difference value between the third seat number and the first seat number is larger than the second seat number of a set multiple, establishing the corresponding relation between the first train set and the first fare gear.
Optionally, the establishing of the correspondence between the first train set and the first fare gear includes:
adding 1 to the set fourth parameter value;
and enabling the first parameter value to be equal to the fourth parameter value, and continuously executing the step of judging whether the difference value obtained by subtracting the set first parameter value from the number of the trains in the set total train set and then subtracting 1 from the set first parameter value is equal to the difference value between the set last-gear fare gear and the set second parameter value.
Optionally, the method further comprises:
if the difference value obtained by subtracting the first parameter value from the number of the trains in the total train set and subtracting 1 from the first parameter value is equal to the difference value obtained by subtracting the first parameter value from the last fare gear and the second parameter value, establishing a corresponding relation between a second fare gear and a second train set, wherein the second fare gear comprises a fare gear which is equal to the difference value obtained by subtracting the first fare gear from the last fare gear and the second parameter value, the second train set comprises trains corresponding to a fourth priority sequence, and the fourth priority sequence comprises a priority sequence which is equal to the difference value obtained by subtracting the first parameter value from the number of the trains in the total train set and subtracting 1 from the number of the trains in the total train set.
Optionally, the method further comprises:
if the difference value between the third seat number and the first seat number is judged to be smaller than or equal to the second seat number of the set multiple, establishing a corresponding relation between a third train set and a third fare gear, wherein the third train set comprises trains corresponding to a fifth priority order, the third fare gear comprises a fare gear equal to the second parameter value plus 1, and the fifth priority order comprises a priority order equal to the fourth parameter value plus 1;
adding 1 to the second parameter value;
adding 1 to the fourth parameter value;
inquiring the seat number corresponding to a fourth train set according to the corresponding relation between each train in the train set and the seat number to generate a fourth seat number, wherein the fourth train set comprises trains corresponding to a sixth priority order, and the sixth priority order comprises a priority order equal to the fourth parameter value;
judging whether the difference value between the third seat number and the fourth seat number is greater than 0;
if the difference value between the third seat number and the fourth seat number is larger than 0, enabling the third parameter value to be equal to the fourth parameter value;
making the first parameter value equal to the third parameter value, and continuing to execute the step of judging whether the difference value obtained by subtracting the set first parameter value from the number of the trains in the set total train set and then subtracting 1 is equal to the difference value between the set last-gear fare gear and the set second parameter value;
and if the difference value between the third seat number and the fourth seat number is judged to be less than or equal to 0, continuing to execute the step of adding 1 to the second parameter value.
Optionally, before determining the number of the origin seats of the set fare gear according to the acquired demand distribution function, the method includes:
acquiring passenger sending amount of each fare gear every day;
determining the number of the sending quantity groups and each group span according to the obtained maximum value of the passenger sending quantity and the minimum value of the passenger sending quantity, merging the daily passenger sending quantity into the group to which the daily passenger sending quantity belongs, and generating a sending quantity group;
generating a probability value corresponding to the daily passenger sending quantity according to the sending quantity group and the passenger sending quantity of each fare gear every day, and generating a density function of the sending quantity group;
performing integral operation on the density function to generate an accumulated density function;
fitting Poisson distribution according to the fitting mean value and the standard deviation to generate a Poisson distribution function;
fitting normal distribution according to the fitting mean value and the standard deviation to generate a normal distribution function;
and calculating the mean square error values of the Poisson distribution function and the normal distribution function, and selecting the distribution function with the small mean square error value as the density distribution function of the passenger sending quantity of each gear.
Optionally, the generating a probability value corresponding to the daily passenger transmission amount according to the transmission amount group and the passenger transmission amount of each fare gear every day includes:
according to the sending amount group, the passenger sending amount generation daily passenger sending amount of each fare gear every day is classified into a sending amount group;
and generating the probability corresponding to the daily passenger sending quantity according to the frequency corresponding to the acquired daily passenger sending quantity group and the set days. Optionally, the generating a probability density function according to the cumulative density function and the transmission amount group includes:
according to the sequence of the fare gears from high to low, starting from the highest fare, substituting the set special fare gear into the probability density function to generate a first probability density function;
performing integral operation on the first probability density function to generate a first demand distribution accumulation probability function;
and generating a first expected revenue function according to the first demand distribution cumulative probability function and the specific fare gear.
Optionally, after determining the expected revenue corresponding to the specific fare gear according to the demand distribution cumulative probability function, the method includes:
substituting the set comprehensive fares of fare gears which are except the specific fare gear and are lower than the specific fare gear into the probability density function to generate a second probability density function;
performing integral operation on the second probability density function to generate a second demand distribution cumulative probability function;
generating a second expected income function according to the second demand distribution cumulative probability function and the gear comprehensive fare;
and comparing the first expected income function with the second expected income function, and determining the number of seats corresponding to the specific fare gear and the number of seats corresponding to the fare gears except the specific fare gear.
On the other hand, an embodiment of the present invention provides a device for generating a corresponding relationship between a fare gear and a train, including:
the first generation module is used for generating the seat number corresponding to each fare gear according to the acquired density distribution function;
the first establishing module is used for establishing the corresponding relation between each train in the train set and the number of seats;
the second establishing module is used for establishing the corresponding relation between the fare gear and the seat number according to the set fare gear and the seat number corresponding to each train in each train set;
and the second generation module is used for generating the corresponding relation between the fare gear and the train according to the corresponding relation between the fare gear and the seat number, the corresponding relation between each train in the train set and the seat number, the fare gear and the train set.
In another aspect, an embodiment of the present invention provides a storage medium, including: the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the generation method of the corresponding relation between the fare gears and the train.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, where the program instructions are loaded by the processor and executed to implement the steps of the method for generating the corresponding relationship between the fare gear and the train.
In the technical scheme of the method for generating the corresponding relation between the fare gears and the train, the number of seats corresponding to each fare gear is generated according to the acquired demand distribution function; establishing a corresponding relation between the train set and the number of seats; establishing a corresponding relation between the seat number corresponding to each fare gear and the seat number corresponding to each train; and generating a corresponding relation between the fare gear and the train set according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train set and the seat number, the fare gear and the train set. According to the technical scheme provided by the invention, the corresponding relation between the fare gear and the train set can be generated according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train set and the seat number, the fare gear and the train set, so that the accuracy and the scientificity of the corresponding relation between the fare gear and each train are improved, and the trains are assisted to make more scientific prices.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a flowchart of a method for generating a corresponding relationship between fare gears and a train according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for generating a corresponding relationship between fare gears and trains according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for generating probabilities corresponding to daily passenger deliveries of FIG. 2;
FIG. 4 is a flow chart of a method of generating the density function of FIG. 2;
FIG. 5 is a flowchart of a method for generating a corresponding relationship between fare gears and trains as shown in FIG. 2;
fig. 6 is a schematic structural diagram of a device for generating a corresponding relationship between fare gears and a train according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a second generation module shown in FIG. 6;
fig. 8 is a schematic diagram of a computer device according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The embodiment of the invention provides a method for generating a corresponding relation between fare gears and a train. Fig. 1 is a flowchart of a method for generating a corresponding relationship between a fare gear and a train according to an embodiment of the present invention, as shown in fig. 1, the method includes:
and 102, generating the seat number corresponding to each fare gear according to the acquired density distribution function.
In the embodiment of the invention, each step is executed by computer equipment.
In an embodiment of the present invention, determining which demand distribution function to select includesfj(x)∈(gj(x),hj(x))。
As an alternative, the independent variable X in the demand distribution function is used as the number of seats corresponding to each fare gear.
And step 104, establishing a corresponding relation between each train in the train set and the number of seats.
In the embodiment of the invention, each train in the train set corresponds to the seat number one by one. For example, a correspondence relationship between the train with the train number 1 and the seat number of 200 in the train set is established.
And 106, establishing a corresponding relation between the fare gear and the seat number according to the set fare gear and the seat number corresponding to each train in each train set.
In the embodiment of the invention, the ticket price gear corresponds to the seat number one by one. For example, a corresponding relationship between the fare gear with the fare gear 1 and the seat number with the seat number of 200 is established.
And 108, generating a corresponding relation between the fare gear and the train according to the corresponding relation between the fare gear and the seat number, the corresponding relation between each train in the train set and the seat number, the fare gear and the train set.
In the technical scheme of the method for generating the corresponding relation between the fare gears and the train, the number of seats corresponding to each fare gear is generated according to the acquired demand distribution function; establishing a corresponding relation between the train set and the number of seats; establishing a corresponding relation between the seat number corresponding to each fare gear and the seat number corresponding to each train; and generating a corresponding relation between the fare gear and the train set according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train set and the seat number, the fare gear and the train set. According to the technical scheme provided by the invention, the corresponding relation between the fare gear and the train set can be generated according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train set and the seat number, the fare gear and the train set, so that the accuracy and the scientificity of the corresponding relation between the fare gear and each train are improved, and the trains are assisted to make more scientific prices.
The embodiment of the invention provides another method for generating a corresponding relation between fare gears and a train. Fig. 2 is a flowchart of another method for generating a corresponding relationship between fare gears and trains according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
In the embodiment of the invention, each step is executed by computer equipment.
In the embodiment of the invention, as an alternative, the passenger sending amount of each fare gear every day is obtained from the database, and the passenger sending amount of each fare gear every day can be written as: xijWherein X isijCan be used for representing the passenger sending amount of the j fare gear on the ith day.
And step 204, determining the number of the transmission quantity groups and each group span according to the acquired maximum value of the passenger transmission quantity and the acquired minimum value of the passenger transmission quantity, merging the daily passenger transmission quantity into the group to which the daily passenger transmission quantity belongs, and generating the transmission quantity group.
In particular, by the formulaCalculating the maximum value of the passenger transmission amount and the minimum value of the passenger transmission amount to generate a transmission amount group, wherein max (X)ij) The maximum value of passenger traffic, min (X)ij) Is composed ofThe minimum value of the passenger sending quantity, W is the span of the sending quantity group.
And step 206, generating a probability value corresponding to the daily passenger sending amount according to the sending amount group and the passenger sending amount of each fare gear every day, and generating a density function of the sending amount group.
In an embodiment of the present invention, fig. 3 is a flowchart of a method for generating a probability corresponding to a daily passenger sending amount in fig. 2, and as shown in fig. 3, step 206 specifically includes:
In particular, by the formulaCalculating the passenger sending quantity of each fare gear every day and sending quantity group to generate corrected daily passenger sending quantity, wherein W is the span of the sending quantity group, and X is the span of the sending quantity groupijFor each passenger's delivery per fare class per day,the corrected daily passenger delivery amount.
In particular, by the formulaCalculating the transmission amount frequency corresponding to the corrected daily passenger transmission amount and the set number of days to generate the probability corresponding to the daily passenger transmission amount,the frequency corresponding to the corrected daily passenger sending amount is n is the set number of days,the probability corresponding to the corrected daily passenger sending quantity is the final daily passenger sending quantity pairThe probability of response.
And step 208, generating a density function according to the probability and the daily passenger sending quantity.
In an embodiment of the present invention, fig. 4 is a flowchart of a method for generating the density function in fig. 2, and as shown in fig. 4, step 208 specifically includes:
and 2082, generating a fitting mean value according to the probability and the daily passenger sending quantity.
In particular, by the formulaCalculating the probability and the daily passenger sending amount to generate a fitting average value, wherein,in order to be a probability,for the corrected daily passenger deliveries, μjIs the fitted mean.
And 2084, generating a standard deviation according to the probability, the daily passenger sending quantity and the fitting mean value.
In particular, by the formulaCalculating the probability, the daily passenger sending amount and the fitting mean value to generate a standard deviation, wherein,in order to be a probability,for the corrected daily passenger deliveries, μjTo fit the mean, σjIs the standard deviation.
And 2086, generating a probability density function according to the fitted mean value and the standard deviation.
And 210, performing integral operation on the probability density function to generate a probability distribution cumulative density function.
In particular, by the formulaCalculating the probability and the daily passenger sending amount to generate a fitting average value, wherein,in order to be a probability,for the corrected daily passenger deliveries, μjIs the fitted mean.
By the formulaCalculating the probability, the daily passenger sending amount and the fitting mean value to generate a standard deviation, wherein,in order to be a probability,for the corrected daily passenger deliveries, μjTo fit the mean, σjIs the standard deviation.
In this step, the mean value mu is fittedjAnd standard deviation σjFitting the Poisson distribution to generate a Poisson density function
And step 214, fitting normal distribution according to the fitting mean value and the standard deviation to generate a normal distribution function.
As an alternative, in particular, by formulaCalculating the fitting mean value and standard deviation to generate normal distribution densityDegree function of, whereinjTo fit the mean, σjIs standard deviation, fj(x) Is a normal distribution density function.
In particular, by the formulaIntegrating the density function to generate an accumulated density function, wherein fj(x) Is a normal distribution density function, Fj(x) Cumulative density function for normal distribution.
And step 216, calculating the mean square error values of the Poisson distribution function and the normal distribution function, and selecting the distribution function with the small mean square error value as the density distribution function of the passenger sending quantity of each stage.
In particular, by the formulafj(x)∈(gj(x),hj(x) Is compared to select which probability distribution function to use, where fj(x) As a function of the density, the density of the particles,is a probability, gj(x) Is a normal probability density function, hj(x) As a function of Poisson probability density, SjThe sum of the variances of the differences of the true density function and the fitted density function.
Step 216 is followed by:
and step S1, sequencing all fare gears from high to low, and substituting the set specific fare gear into the probability density function from the highest-gear fare to generate a first probability density function.
In this step, the specific fare gear is set to P1A particular fare gear P to be set1Substituting probability density function gj(x) Generating a first probability density function g1(t)。
And step S2, performing integral operation on the first probability density function to generate a first demand distribution accumulation probability function.
In particular, the amount of the solvent to be used,by the formulaPerforming an integral operation on the first probability density function to generate a first demand distribution cumulative probability function, wherein g1(t) is a first probability density function, G1(x) A probability function is accumulated for the first demand distribution.
And step S3, generating a first expected profit function according to the first demand distribution cumulative probability function and the first gear fare gear.
In particular, by the formula Rx1=P1×(1-G1(x) Computing a first demand distribution cumulative probability function and a first gear fare gear to generate a first expected revenue function, wherein P1For the first gear fare gear, G1(x) Accumulating a probability function, R, for the first demand distributionx1Is a first expected revenue function.
And step S4, substituting the set comprehensive fares of other fare gears except the specific fare gear and lower than the specific fare gear into the probability density function to generate a second probability density function.
In this step, the comprehensive fares of other fare gears except the specific fare gear and lower than the fare gear are set asThe set gear is integrated with the fareSubstituting probability density function gj(x) Generating a second probability density function
And step S5, performing integral operation on the second probability density function to generate a second demand distribution accumulation probability function.
In particular, by the formulaPerforming an integration operation on the second probability density function to generate a second demand distribution cumulative probability function, wherein,in order to be a function of the second probability density,a probability function is accumulated for the second demand distribution.
And step S6, generating a second expected income function according to the second demand distribution accumulated probability function and the gear comprehensive fare.
In particular, by the formulaCalculating a second demand distribution accumulated probability function and a gear comprehensive fare to generate a second expected income function, wherein,the method is a comprehensive fare for the gears,a probability function is accumulated for the second demand distribution,as a second desired revenue function.
And step S7, comparing the first expected income function with the second expected income function, and determining the seat number corresponding to the specific fare gear, wherein the total seat number minus the seat number corresponding to the specific fare gear is the total seat number corresponding to other fare gears except the specific fare gear and lower than the specific fare gear.
And step 218, generating the seat number corresponding to each fare gear according to the acquired density distribution function.
As an alternative, the independent variable X in the demand distribution function is used as the number of seats corresponding to each fare gear.
In the embodiment of the invention, as another alternative, in order to ensure that the train income is maximized, if a certain shift ticket price is selected, the number of seats corresponding to the x-th seat number to the y-th seat number should be sold at the shift ticket price gear preferentially, and if the number of seats exceeding the y number should be sold at the ticket price lower than the shift ticket price gear, the number of seats corresponding to the shift ticket price gear is y-x.
And step 220, establishing a corresponding relation between each train in the train set and the number of seats.
In the embodiment of the invention, each train in the train set corresponds to the seat number one by one.
And step 222, establishing a corresponding relation between the fare gear and the seat number according to the set fare gear and the seat number corresponding to each train in each train set.
In the embodiment of the invention, the ticket price gear corresponds to the seat number one by one.
And 224, generating a corresponding relation between the fare gear and the train according to the corresponding relation between the fare gear and the seat number, the corresponding relation between each train in the train set and the seat number, the fare gear and the train set.
In the embodiment of the invention, the corresponding relation between the fare gears and the train set comprises the following steps: the corresponding relation between the train set with the first priority order and the first fare gear, the corresponding relation between the first train set and the first fare gear, the corresponding relation between the second fare gear and the second train set and the corresponding relation between the third train set and the third fare gear.
In an embodiment of the present invention, fig. 5 is a flowchart of a method for generating a corresponding relationship between a fare gear and a train in fig. 2, and as shown in fig. 5, step 224 specifically includes:
and step 2242, determining the priority sequence of each train in the train set according to the corresponding running time of each train in the train set.
According to the embodiment of the invention, the priority sequence of each train in the train set can be determined according to the set starting time corresponding to the train. For example, the priority order of the trains in the train set corresponding to the start time of 8:00 to 10:00 is 1, and the priority order of the trains in the train set corresponding to the start time of 0:00 to 8:00 is 2. The priority order of each train in the train set can be set according to the actual situation.
And step 2244, establishing a corresponding relation between the train with the first priority sequence and the first-gear fare gear.
In the embodiment of the invention, the first-gear fare is P1Establishing the corresponding relation P between the train with the first priority sequence and the first-gear fare gear1 1。
In the embodiment of the invention, the number of the set trains in the total train set is K, the set first parameter value is z, the set last-gear fare gear is J, and the set second parameter value is K. Alternatively, the initial value of the first parameter value z is 1, and the initial value of the second parameter value k is 1.
In this step, it is determined whether K-z-1 is equal to J-K.
In the embodiment of the invention, if the difference value obtained by subtracting the set first parameter value from the set train number of the total train set and then subtracting 1 is equal to the difference value between the set last-gear fare gear and the set second parameter value, the train number of the remaining train set is equal to the remaining fare gear; and if the difference value obtained by subtracting the set first parameter value from the set train number of the total train set and then subtracting 1 is not equal to the difference value between the set last fare gear and the set second parameter value, the number of the trains in the rest train set is not equal to the rest fare gear.
In the embodiment of the present invention, the initial value of the third parameter value q is 1.
In the embodiment of the invention, the formula is usedSumming the seat numbers corresponding to the trains with the specific priority order to generate a first seat number, wherein q is a third parameter value, z is a first parameter value,the number of seats corresponding to the train with the specific priority order is A, and A is the first number of seats.
In the embodiment of the invention, the database stores the seat number corresponding to the first train set.
And step 2252, inquiring the seat number corresponding to the first fare gear according to the corresponding relationship between the fare gears and the seat number to generate a third seat number, wherein the first fare gear comprises a fare gear equal to the second parameter value.
In the embodiment of the invention, the database stores the seat number corresponding to the first fare gear.
In an embodiment of the present invention, the setting multiple includes 1/2.
As an alternative, m is judgedkWhether the difference with A is greater than mz+1A/2, wherein mkIs as followsThree seats, A being the first seat number, mz+1Is the second number of seats.
In the embodiment of the invention, if the difference value between the third seat number and the first seat number is judged to be larger than the second seat number of the set multiple, the rest seats are more than half of the seat number corresponding to the next train; if the difference value between the third seat number and the first seat number is smaller than or equal to the second seat number of the set multiple, the remaining seat number is smaller than or equal to half of the seat number corresponding to the next train.
And step 2256, establishing a corresponding relationship between the first train set and the first fare gear.
In the embodiment of the invention, the first fare gear corresponding to the first train set can be inquired according to the first train set.
2260, the first parameter value is equal to the fourth parameter value, and step 2246 is executed continuously.
And 2262, establishing a corresponding relationship between a third train set and a third fare gear, wherein the third train set comprises trains corresponding to a fifth priority order, the third fare gear comprises a fare gear equal to the second parameter value plus 1, and the fifth priority order comprises a priority order equal to the fourth parameter value plus 1.
In the embodiment of the invention, the third fare gear corresponding to the third train set can be inquired according to the third train set.
2264, add 1 to the second parameter value.
2266, add 1 to the fourth parameter value.
2268, querying the seat number corresponding to a fourth train set according to the correspondence between the train set and the seat number, and generating the fourth seat number, where the fourth train set includes trains corresponding to a sixth priority order, and the sixth priority order includes a priority order equal to the fourth parameter value.
In the embodiment of the invention, m is judgedkAndis greater than 0, wherein mkThe number of the third seats is the number of the third seats,the fourth number of seats.
In the embodiment of the invention, if the difference value between the third seat number and the fourth seat number is judged to be greater than 0, the third seat number is greater than the fourth seat number; if the difference value between the third seat number and the fourth seat number is less than or equal to 0, the third seat number is less than or equal to the fourth seat number.
According to the embodiment of the invention, the second fare gear corresponding to the second train set can be inquired according to the second train set.
In the technical scheme of the method for generating the corresponding relation between the fare gears and the train, the number of seats corresponding to each fare gear is generated according to the acquired demand distribution function; establishing a corresponding relation between the train set and the number of seats; establishing a corresponding relation between the seat number corresponding to each fare gear and the seat number corresponding to each train; and generating a corresponding relation between the fare gear and the train set according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train set and the seat number, the fare gear and the train set. According to the technical scheme provided by the invention, the corresponding relation between the fare gear and the train set can be generated according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train set and the seat number, the fare gear and the train set, so that the accuracy and the scientificity of the corresponding relation between the fare gear and each train are improved, and the trains are assisted to make more scientific prices.
In the technical scheme provided by the embodiment of the invention, a mathematical algorithm based on historical data is provided, the defect that the fare gears are customized by human subjectively in the related technology is overcome, the demand distribution functions under different fare gears can be fitted, the expected income functions under different fare gears can be calculated, the number of the starting seats corresponding to different fare gears is determined by comparing the expected income functions, the configuration of train resources can be optimized by differential pricing, the income distribution of each train in each train set is adjusted, and the aim of improving the total income is fulfilled.
The embodiment of the invention provides a device for generating a corresponding relation between fare gears and a train. Fig. 6 is a schematic structural diagram of a device for generating a corresponding relationship between fare gears and a train according to an embodiment of the present invention, as shown in fig. 6, the device includes: a first generation module 11, a first establishment module 12, a second establishment module 13 and a second generation module 14.
The first generating module 11 is configured to generate the number of seats corresponding to each fare gear according to the obtained density distribution function.
The first establishing module 12 is configured to establish a corresponding relationship between each train in the train set and the number of seats.
The second establishing module 13 is configured to establish a corresponding relationship between the fare gear and the number of seats according to the set fare gear and the number of seats corresponding to each train in each train set.
The second generating module 14 is configured to generate a corresponding relationship between the fare gear and the train according to the corresponding relationship between the fare gear and the number of seats, the corresponding relationship between each train in the train set and the number of seats, the fare gear and the train set.
In this embodiment of the present invention, the second generating module 14 specifically includes: a determination submodule 141, a first establishing submodule 142, a first judgment submodule 143, a first generation submodule 144, a second generation submodule 145, a third generation submodule 146, a second judgment submodule 147 and a second establishing submodule 148.
The determining submodule 141 is configured to determine a priority order of each train in the train set according to the driving time corresponding to each train in the train set.
The first establishing submodule 142 is used for establishing the corresponding relation between the train with the first priority order and the first-gear fare gear.
The first determining submodule 143 is configured to determine whether a difference between the set number of trains in the total train set minus the set first parameter value minus 1 is equal to a difference between the set last-shift fare gear and the set second parameter value, and if it is determined that the difference between the set number of trains in the total train set minus the first parameter value minus 1 is not equal to the difference between the last-shift fare gear and the second parameter value, trigger the first generating submodule 144 to sum seat numbers corresponding to trains in a specific priority order to generate the first seat number, where the specific priority order includes a priority order equal to the set third parameter value, and the second priority order includes a priority order equal to the first parameter value.
The second generating submodule 145 is configured to query the number of seats corresponding to the first train set according to the correspondence between each train in the train set and the number of seats, and generate a second number of seats, where the first train set includes trains corresponding to a third priority order, and the third priority order includes a priority order equal to the sum of the first parameter value and 1.
The third generating sub-module 146 is configured to query the seat number corresponding to the first fare gear according to the corresponding relationship between the fare gear and the seat number, and generate a third seat number, where the first fare gear includes a fare gear equal to the second parameter value.
The second determining sub-module 147 is configured to determine whether a difference between the third number of seats and the first number of seats is greater than a second number of seats of a set multiple, and trigger the second establishing sub-module 148 to establish a corresponding relationship between the first train set and the first fare gear if the difference between the third number of seats and the first number of seats is greater than the second number of seats of the set multiple.
In this embodiment of the present invention, the second generating module 14 further includes: a first plus one submodule 149 and a first valuation submodule 150.
The first plus one submodule 149 is used to add 1 to the set fourth parameter value.
The first assignment submodule 150 is configured to make the first parameter equal to the fourth parameter, and trigger the first determination submodule 143 to continue to perform the step of determining whether a difference between the set number of trains in the total train set minus the set first parameter and minus 1 is equal to a difference between the set last fare gear and the set second parameter.
In this embodiment of the present invention, the second generating module 14 further includes: a third build submodule 151.
If the first determining submodule 143 determines that the difference between the train number of the total train set minus the first parameter value minus 1 is equal to the difference between the last fare gear and the second parameter value, it triggers the third establishing submodule 151 to establish a correspondence between the second fare gear and the second train set, where the second fare gear includes a fare gear equal to the difference between the last fare gear and the second parameter value, the second train set includes trains corresponding to a fourth priority order, and the fourth priority order includes a priority order equal to the difference between the train number of the total train set minus the first parameter value minus 1.
In this embodiment of the present invention, the second generating module 14 further includes: a fourth creation sub-module 152, a second plus one sub-module 153, a third plus one sub-module 154, a fourth generation sub-module 155, a third determination sub-module 156, a second assignment sub-module 157, and a third assignment sub-module 158.
If the second determining sub-module 147 determines that the difference between the third seat number and the first seat number is smaller than or equal to the second seat number of the set multiple, the fourth establishing sub-module 152 is triggered to establish the corresponding relationship between the third train set and the third fare gear, where the third train set includes trains corresponding to the fifth priority order, the third fare gear includes fare gears equal to the second parameter value plus 1, and the fifth priority order includes priority orders equal to the fourth parameter value plus 1.
The second plus one submodule 153 is used to add 1 to the second parameter value.
The third plus one sub-module 154 is used to add 1 to the fourth parameter value.
The fourth generation submodule 155 is configured to query the seat number corresponding to the fourth train set according to the correspondence between each train in the train set and the seat number, and generate the fourth seat number, where the fourth train set includes trains corresponding to a sixth priority order, and the sixth priority order includes a priority order equal to the fourth parameter value.
The third determining sub-module 156 is configured to determine whether a difference between the third seat number and the fourth seat number is greater than 0, and trigger the second assignment sub-module 157 to make the third parameter equal to the fourth parameter if the difference between the third seat number and the fourth seat number is greater than 0.
The third assignment submodule 158 is configured to make the first parameter equal to the third parameter, and trigger the first determination submodule 143 to continue to perform the step of determining whether the difference between the set number of trains in the total train set minus the set first parameter and minus 1 is equal to the difference between the set last fare gear and the set second parameter.
If the third determining sub-module 156 determines that the difference between the third seat number and the fourth seat number is less than or equal to 0, the second adding sub-module 153 is triggered to continue to perform the step of adding 1 to the second parameter value.
In the embodiment of the present invention, the apparatus further includes: the device comprises an acquisition module 15, a third generation module 16, a fourth generation module 17, a fifth generation module 18, a sixth generation module 19, a seventh generation module 20, an eighth generation module 21 and a ninth generation module 22.
The obtaining module 15 is used for obtaining passenger sending amount of each fare gear every day.
The third generation module 16 is configured to determine the number of the transmission amount groups and each group span according to the obtained maximum value of the passenger transmission amount and the minimum value of the passenger transmission amount, and merge the daily passenger transmission amount into the group to which the passenger transmission amount belongs, thereby generating a transmission amount group.
The fourth generation module 17 is configured to generate a probability corresponding to the daily passenger sending amount according to the sending amount group and the passenger sending amount of each fare class per day.
The fifth generation module 18 is configured to generate a density function based on the probability and the daily passenger traffic. The sixth generating module 19 is configured to perform an integration operation on the density function to generate an accumulated density function.
The seventh generating module 20 is configured to fit the poisson distribution according to the fit mean and the standard deviation, and generate a poisson density function.
The eighth generating module 21 is configured to fit the normal distribution according to the fit mean and the standard deviation, and generate a normal distribution function.
The ninth generating module 22 is configured to calculate a mean square error value of the poisson distribution function and the normal distribution function, and select a distribution function with a small mean square error value as a density distribution function of the passenger transmission amount of each class.
In the embodiment of the present invention, the fourth generating module 17 is specifically configured to group the passenger sending volume of each fare gear in each day into the sending volume group according to the sending volume group; and generating the probability corresponding to the daily passenger sending quantity according to the frequency corresponding to the acquired daily passenger sending quantity group and the set days.
In the embodiment of the present invention, the fifth generating module 18 is specifically configured to generate a fitting average according to the probability and the daily passenger sending amount; generating a standard deviation according to the probability, the daily passenger sending amount and the fitting mean value; and generating a density function according to the fitted mean value and the standard deviation.
In the embodiment of the present invention, the apparatus further includes: a tenth generation module 23, an eleventh generation module 24 and a twelfth generation module 25.
The tenth generating module 23 is configured to substitute the set specific fare gear into the probability density function from the highest fare gear to generate the first probability density function according to the ranking of the fare gears from high to low.
The eleventh generating module 24 is configured to perform an integration operation on the first probability density function to generate a first demand distribution cumulative probability function.
The twelfth generating module 25 is configured to generate a first expected revenue function according to the first demand distribution cumulative probability function and the first gear fare gear.
In the embodiment of the present invention, the apparatus further includes: a thirteenth generating module 26, a fourteenth generating module 27, a fifteenth generating module 28 and a determining module 29.
The thirteenth generating module 26 is configured to substitute the set comprehensive fares of other fare gears, which are not the specific fare gear and are lower than the fare gear, into the probability density function, so as to generate a second probability density function.
The fourteenth generating module 27 is configured to perform an integral operation on the second probability density function to generate a second demand distribution cumulative probability function.
The fifteenth generating module 28 is configured to generate a second expected revenue function according to the second demand distribution cumulative probability function and the gear integrated fare.
The determining module 29 is configured to compare the first expected revenue function with the second expected revenue function, and determine the seat number corresponding to the specific fare gear and the seat numbers corresponding to other fare gears except the specific fare gear and lower than the fare gear.
The device for generating the corresponding relationship between the fare gear and the train provided by this embodiment can be used to implement the method for generating the corresponding relationship between the fare gear and the train in fig. 1 and fig. 2, and for specific description, reference may be made to an embodiment of the method for generating the corresponding relationship between the fare gear and the train, and a description thereof will not be repeated here.
In the technical scheme of the method for generating the corresponding relation between the fare gears and the train, the number of seats corresponding to each fare gear is generated according to the acquired demand distribution function; establishing a corresponding relation between the train set and the number of seats; establishing a corresponding relation between the seat number corresponding to each fare gear and the seat number corresponding to each train; and generating a corresponding relation between the fare gear and the train set according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train set and the seat number, the fare gear and the train set. According to the technical scheme provided by the invention, the corresponding relation between the fare gear and the train set can be generated according to the corresponding relation between the fare gear and the seat number, the corresponding relation between the train set and the seat number, the fare gear and the train set, so that the accuracy and the scientificity of the corresponding relation between the fare gear and each train are improved, and the trains are assisted to make more scientific prices.
The embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, where each step of the embodiment of the method for generating a correspondence between a fare gear and a train is executed by controlling a device on which the storage medium is located when the program runs, and reference may be made to the embodiment of the method for generating a correspondence between a fare gear and a train for specific description.
The embodiment of the present invention provides a computer device, which includes a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded and executed by the processor to implement the steps of the above-mentioned method for generating a correspondence between a fare gear and a train.
Fig. 8 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 8, the computer device 30 of this embodiment includes: the processor 31, the memory 32, and the computer program 33 stored in the memory 32 and capable of running on the processor 31, where the computer program 33 is executed by the processor 31 to implement the generation method applied to the corresponding relationship between the fare gears and the train in the embodiment, and in order to avoid repetition, details are not repeated here. Alternatively, the computer program is executed by the processor 31 to implement the functions of each model/unit in the generating device applied to the corresponding relationship between the fare gears and the train in the embodiment, which are not repeated herein to avoid repetition.
The computer device 30 includes, but is not limited to, a processor 31, a memory 32. Those skilled in the art will appreciate that fig. 8 is merely an example of a computer device 30 and is not intended to limit the computer device 30 and that it may include more or fewer components than shown, or some components may be combined, or different components, e.g., the computer device may also include input output devices, network access devices, buses, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 32 may be an internal storage unit of the computer device 30, such as a hard disk or a memory of the computer device 30. The memory 32 may also be an external storage device of the computer device 30, such as a plug-in hard disk provided on the computer device 30, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 32 may also include both internal and external storage units of the computer device 30. The memory 32 is used for storing computer programs and other programs and data required by the computer device. The memory 32 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (13)
1. A method for generating a corresponding relation between fare gears and trains is characterized by comprising the following steps:
generating the seat number corresponding to each fare gear according to the obtained density distribution function;
establishing a corresponding relation between each train in the train set and the number of seats;
establishing a corresponding relation between the fare gear and each train in the train set according to the set fare gear and the number of seats corresponding to each train in the train set;
and generating the corresponding relation between the fare gear and the train according to the corresponding relation between the fare gear and the seat number, the corresponding relation between each train in the train set and the seat number, the fare gear and the train set.
2. The method according to claim 1, wherein generating the correspondence between the fare gear and the train according to the correspondence between the fare gear and the number of seats, the correspondence between each train in the train set and the number of seats, the fare gear and the train set comprises:
determining the priority sequence of each train in the train set according to the corresponding driving time of each train in the train set;
establishing a corresponding relation between the trains in the first priority order and the first-gear fare gears;
judging whether the difference value obtained by subtracting the set first parameter value from the set train number of the total train set and then subtracting 1 is equal to the difference value of the set last-gear fare gear and the set second parameter value;
if the fact that the number of the trains in the total train set is subtracted by the first parameter value and then is subtracted by 1 and is not equal to the difference value between the last fare gear and the second parameter value is judged, the seat numbers corresponding to the trains in a specific priority sequence are summed to generate a first seat number, wherein the specific priority sequence comprises a first priority sequence and a second priority sequence, the first priority sequence comprises a priority sequence equal to a set third parameter value, and the second priority sequence comprises a priority sequence equal to the first parameter value;
inquiring the seat number corresponding to the first train set according to the corresponding relation between each train in the train set and the seat number to generate a second seat number, wherein the first train set comprises trains corresponding to the third priority sequence, and the third priority sequence comprises a priority sequence equal to the sum of the first parameter value and 1;
inquiring the seat number corresponding to the first fare gear according to the corresponding relation between the fare gears and the seat number to generate a third seat number, wherein the first fare gear comprises a fare gear equal to a second parameter value;
judging whether the difference value between the third seat number and the first seat number is larger than the second seat number of a set multiple or not;
and if the difference value between the third seat number and the first seat number is larger than the second seat number of a set multiple, establishing the corresponding relation between the first train set and the first fare gear.
3. The method of claim 2, wherein said establishing a correspondence of said first set of trains to said first fare gear comprises:
adding 1 to the set fourth parameter value;
and enabling the first parameter value to be equal to the fourth parameter value, and continuously executing the step of judging whether the difference value obtained by subtracting the set first parameter value from the number of the trains in the set total train set and then subtracting 1 from the set first parameter value is equal to the difference value between the set last-gear fare gear and the set second parameter value.
4. The method of claim 2, further comprising:
if the difference value obtained by subtracting the first parameter value from the number of the trains in the total train set and subtracting 1 from the first parameter value is equal to the difference value obtained by subtracting the first parameter value from the last fare gear and the second parameter value, establishing a corresponding relation between a second fare gear and a second train set, wherein the second fare gear comprises a fare gear which is equal to the difference value obtained by subtracting the first fare gear from the last fare gear and the second parameter value, the second train set comprises trains corresponding to a fourth priority sequence, and the fourth priority sequence comprises a priority sequence which is equal to the difference value obtained by subtracting the first parameter value from the number of the trains in the total train set and subtracting 1 from the number of the trains in the total train set.
5. The method of claim 2, further comprising:
if the difference value between the third seat number and the first seat number is judged to be smaller than or equal to the second seat number of the set multiple, establishing a corresponding relation between a third train set and a third fare gear, wherein the third train set comprises trains corresponding to a fifth priority order, the third fare gear comprises a fare gear equal to the second parameter value plus 1, and the fifth priority order comprises a priority order equal to the fourth parameter value plus 1;
adding 1 to the second parameter value;
adding 1 to the fourth parameter value;
inquiring the seat number corresponding to a fourth train set according to the corresponding relation between each train in the train set and the seat number to generate a fourth seat number, wherein the fourth train set comprises trains corresponding to a sixth priority order, and the sixth priority order comprises a priority order equal to the fourth parameter value;
judging whether the difference value between the third seat number and the fourth seat number is greater than 0;
if the difference value between the third seat number and the fourth seat number is larger than 0, enabling the third parameter value to be equal to the fourth parameter value;
making the first parameter value equal to the third parameter value, and continuing to execute the step of judging whether the difference value obtained by subtracting the set first parameter value from the number of the trains in the set total train set and then subtracting 1 is equal to the difference value between the set last-gear fare gear and the set second parameter value;
and if the difference value between the third seat number and the fourth seat number is judged to be less than or equal to 0, continuing to execute the step of adding 1 to the second parameter value.
6. The method according to claim 1, wherein determining the number of origin agents of the set fare gears according to the obtained demand distribution function is preceded by:
acquiring passenger sending amount of each fare gear every day;
determining the number of the sending quantity groups and each group span according to the obtained maximum value of the passenger sending quantity and the minimum value of the passenger sending quantity, merging the daily passenger sending quantity into the group to which the daily passenger sending quantity belongs, and generating a sending quantity group;
generating probability corresponding to daily passenger sending quantity according to the sending quantity group and the passenger sending quantity of each fare gear every day; generating a density function according to the probability and the daily passenger sending quantity;
performing integral operation on the density function to generate an accumulated density function;
fitting Poisson distribution according to the fitting mean value and the standard deviation to generate a Poisson distribution function;
fitting normal distribution according to the fitting mean value and the standard deviation to generate a normal distribution function;
and calculating the mean square error values of the Poisson distribution function and the normal distribution function, and selecting the distribution function with the small mean square error value as the density distribution function of the passenger sending quantity of each gear.
7. The method of claim 6, wherein generating a probability value corresponding to a daily passenger traffic based on the set of traffic and the passenger traffic for each fare class per day, and wherein generating a density function for the set of traffic comprises:
according to the sending amount group, the passenger sending amount of each fare gear every day is classified into a sending amount group;
and generating the probability corresponding to the daily passenger sending quantity according to the frequency corresponding to the acquired daily passenger sending quantity group and the set days.
8. The method of claim 6, wherein generating a density function based on the probability and the daily passenger traffic comprises:
generating a fitting mean value according to the probability and the daily passenger sending quantity;
generating a standard deviation according to the probability, the daily passenger sending quantity and the fitting mean value;
generating a density function from the fitted mean and the standard deviation.
9. The method of claim 6, wherein generating a probability density function based on the cumulative density function and the set of transmission amounts comprises:
according to the sequence of the fare gears from high to low, starting from the highest fare, substituting the set special fare gear into the probability density function to generate a first probability density function;
performing integral operation on the first probability density function to generate a first demand distribution accumulation probability function;
and generating a first expected revenue function according to the first demand distribution cumulative probability function and the specific fare gear.
10. The method of claim 9, wherein determining the expected revenue for a particular fare class according to the demand distribution cumulative probability function comprises:
substituting the set comprehensive fares of all fare gears except the specific fare gear and lower than the specific fare gear into the probability density function to generate a second probability density function;
performing integral operation on the second probability density function to generate a second demand distribution cumulative probability function;
generating a second expected income function according to the second demand distribution cumulative probability function and the gear comprehensive fare;
and comparing the first expected income function with the second expected income function, and determining the seat number corresponding to the specific fare gear and the seat number corresponding to the fare gears except the specific fare gear.
11. A generation device of corresponding relation of fare gears and trains is characterized by comprising the following components:
the first generation module is used for generating the seat number corresponding to each fare gear according to the acquired density distribution function;
the first establishing module is used for establishing the corresponding relation between each train in the train set and the number of seats;
the second establishing module is used for establishing the corresponding relation between the fare gear and the seat number according to the set fare gear and the seat number corresponding to each train in each train set;
and the second generation module is used for generating the corresponding relation between the fare gear and the train according to the corresponding relation between the fare gear and the seat number, the corresponding relation between each train in the train set and the seat number, the fare gear and the train set.
12. A storage medium, comprising: the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the method for generating the corresponding relation between the fare gear and the train according to any one of claims 1 to 10.
13. A computer device comprising a memory for storing information comprising program instructions and a processor for controlling the execution of the program instructions, characterized in that the program instructions are loaded and executed by the processor to implement the steps of the method of generating a correspondence of fare gears to trains according to any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011134628.2A CN112258229A (en) | 2020-10-21 | 2020-10-21 | Method and device for generating corresponding relation between fare gears and train |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011134628.2A CN112258229A (en) | 2020-10-21 | 2020-10-21 | Method and device for generating corresponding relation between fare gears and train |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112258229A true CN112258229A (en) | 2021-01-22 |
Family
ID=74263735
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011134628.2A Pending CN112258229A (en) | 2020-10-21 | 2020-10-21 | Method and device for generating corresponding relation between fare gears and train |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112258229A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113627971A (en) * | 2021-06-30 | 2021-11-09 | 中国铁道科学研究院集团有限公司电子计算技术研究所 | Ticket amount distribution method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110675182A (en) * | 2019-08-23 | 2020-01-10 | 中铁程科技有限责任公司 | Ticket pricing method and device, storage medium and server |
CN110992083A (en) * | 2019-11-18 | 2020-04-10 | 中铁程科技有限责任公司 | Data processing method and device for determining fare, storage medium and terminal |
-
2020
- 2020-10-21 CN CN202011134628.2A patent/CN112258229A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110675182A (en) * | 2019-08-23 | 2020-01-10 | 中铁程科技有限责任公司 | Ticket pricing method and device, storage medium and server |
CN110992083A (en) * | 2019-11-18 | 2020-04-10 | 中铁程科技有限责任公司 | Data processing method and device for determining fare, storage medium and terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113627971A (en) * | 2021-06-30 | 2021-11-09 | 中国铁道科学研究院集团有限公司电子计算技术研究所 | Ticket amount distribution method and device |
CN113627971B (en) * | 2021-06-30 | 2024-04-02 | 中国铁道科学研究院集团有限公司电子计算技术研究所 | Ticket allocation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110443715B (en) | Fund product recommendation method, device, equipment and computer readable storage medium | |
JP2002521756A (en) | Computer-implemented value management tools for asset-intensive manufacturers | |
WO2021042896A1 (en) | Big data-based vehicle valuation method and system, device and readable storage medium | |
CN108416619B (en) | Consumption interval time prediction method and device and readable storage medium | |
CN113657495A (en) | Insurance product recommendation method, device and equipment based on probability prediction model | |
CN111695842A (en) | Distribution scheme determination method and device, electronic equipment and computer storage medium | |
CN112258229A (en) | Method and device for generating corresponding relation between fare gears and train | |
Dan et al. | Improved multi-agent system for the vehicle routing problem with time windows | |
CN106557842A (en) | The method and device of prediction K lines | |
CN112819507A (en) | Service pushing method and device, electronic equipment and readable storage medium | |
CN111260384B (en) | Service order processing method, device, electronic equipment and storage medium | |
CN116245458A (en) | Inventory management method and device based on artificial intelligence, electronic equipment and medium | |
CN115202890B (en) | Data element production resource space distribution method, system and equipment | |
CN111652471A (en) | List distribution control method and device, electronic equipment and storage medium | |
CN115689245A (en) | Method and device for determining rider's saddle bill quantity in different scenes | |
CN110516872A (en) | Information processing method and device, storage medium and electronic equipment | |
CN115271817A (en) | Lottery drawing management method and device, computer equipment and storage medium | |
CN109190946A (en) | Business revenue data determination method, device, electronic equipment and storage medium | |
CN116187675A (en) | Task allocation method, device, equipment and storage medium | |
CN108665177A (en) | Resource allocation methods and device | |
CN115049383A (en) | Combined payment recommendation method and device, electronic equipment and storage medium | |
CN113837677A (en) | Method, device and equipment for determining logistics line generation strategy | |
US8688488B2 (en) | Method and apparatus for the prediction of order turnaround time in an information verification system | |
CN106875029B (en) | Resource object information pushing method and device | |
CN111008204B (en) | Quotation library processing method and device, storage medium and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |