Tobacco leaf dispatching method, device and equipment for primarily cured tobaccos and storage medium

Time series analysis and customized solutions are used to predict tobacco leaf demand and raw material yard surplus, combined with BP neural network and path planning algorithm, to transport directly from the raw material yard to the re-curing site, which solves the problem of long storage time of first-cured tobacco and dependence on scheduling experience. , achieving efficient and accurate tobacco leaf dispatching.

CN118780436APending Publication Date: 2024-10-15YUNNAN TOBACCO LEAF
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410923357.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing technology lacks real-time prediction of demand for tobacco leaves and monitoring of remaining quantities in cargo yards and raw material yards, resulting in long storage times of first-cured tobacco in unfavorable environments, increasing the risk of mildew, and scheduling relies on experience and lacks automation solutions.

Method used

The time series analysis technology ARIMA is used to predict demand, a customized plan is used to determine the dispatch point, the Holt-winters exponential smoothing algorithm and BP neural network are used to calculate the expected margin, and the path planning algorithm is combined to optimize the dispatch path and transport directly from the raw material yard to the re-baking site. , to avoid returning to the cargo yard for unified dispatch.

Benefits of technology

Real-time prediction of the future production volume of the raw material yard is achieved, which reduces transportation costs and time efficiency, reduces the risk of mildew, and improves scheduling efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780436A_ABST
    Figure CN118780436A_ABST
Patent Text Reader

Abstract

The invention provides a tobacco leaf dispatching method, device and equipment for primary flue-cured tobaccos and a storage medium, and the method comprises the steps: obtaining a tobacco leaf re-drying plan including the demand quantity of various primary flue-cured tobaccos; using a user-defined scheme to determine the scheduling point of the primary flue-cured tobacco in the tobacco redrying plan, in the user-defined scheme, if a goods yard cannot meet the demand quantity of a certain type of primary flue-cured tobacco and any raw material yard capable of meeting the demand quantity of the type of primary flue-cured tobacco does not exist, determining the scheduling point of the primary flue-cured tobacco; if yes, using a prediction algorithm to calculate the predicted margin of the type of the primary flue-cured tobaccos after the next production cycle of each raw material field is ended, and determining the scheduling point of the type of the primary flue-cured tobaccos according to the predicted margin; and calculating a scheduling path from each scheduling point to the re-drying station by adopting a path planning algorithm, and scheduling the loaded initially-dried tobaccos by adopting the scheduling path. According to the method, under the condition that the remaining amount of the tobacco leaves in the goods yard and each raw material yard cannot meet the demand of the flue-cured tobacco, the predicted remaining amount of each raw material yard in the next period is calculated by using the prediction algorithm, and scientific scheduling of the tobacco leaves is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of production scheduling, and in particular to a tobacco leaf scheduling method, device, equipment and storage medium for primary flue-cured tobacco. Background Art

[0002] Tobacco leaf scheduling is to send tobacco leaves to stations of other processes. The quality of its scheduling strategy directly affects the progress of tobacco leaf production. The present invention is mainly applied to the scheduling of primary flue-cured tobacco. Therefore, a scientific scheduling method is needed to maximize the supply of primary flue-cured tobacco leaves to respond to the rhythm of overall production.

[0003] In the technologies related to the scheduling of first-cured tobacco, scheduling mainly relies on the experience of the staff. The staff often decides to send a truckload of first-cured tobacco to the re-drying point as long as the truckload of first-cured tobacco leaves is produced, without understanding the production progress of the re-drying. Whether the truckload of first-cured tobacco leaves should be re-dried immediately is related to the production plan. If the production demand decides not to re-dry this type of first-cured tobacco for the time being, the first-cured tobacco will be stored for a long time in an unfavorable environment, causing a huge risk of mildew.

[0004] Based on the above analysis of the development status of this technical field, the existing technology lacks a solution for real-time prediction of tobacco leaf demand, simultaneous monitoring of the surplus situation in the cargo yard and various raw material yards, and automatic dispatch of tobacco leaves. Summary of the invention

[0005] The object of the present invention is to provide a tobacco leaf scheduling method, device, equipment and storage medium for primary flue-cured tobacco, aiming to solve the above-mentioned problems in the prior art.

[0006] According to a first aspect of an embodiment of the present invention, a method for scheduling tobacco leaves of primary flue-cured tobacco is provided, comprising:

[0007] Obtain the tobacco redrying plan including the demand for various types of first-cured tobacco;

[0008] Use a custom scheme to determine the dispatching point of the first-cured tobacco in the tobacco redrying plan. In the custom scheme, if the freight yard cannot meet the demand for a certain type of first-cured tobacco, and there is no raw material yard that can meet the demand for this type of first-cured tobacco, then use a prediction algorithm to calculate the estimated surplus of this type of first-cured tobacco after the next production cycle of each raw material yard, and determine the dispatching point of this type of first-cured tobacco based on the estimated surplus;

[0009] A path planning algorithm is used to calculate the dispatching path from each dispatching point to the redrying site, and the dispatching path is used to dispatch the loaded primary-cured tobacco.

[0010] According to a second aspect of an embodiment of the present invention, a tobacco leaf scheduling device for primary flue-cured tobacco is provided, comprising:

[0011] The tobacco leaf redrying plan acquisition module is used to obtain the tobacco leaf redrying plan including the demand for various types of primary flue-cured tobacco;

[0012] The scheduling point determination module is used to determine the scheduling point of the first-cured tobacco in the tobacco redrying plan using a custom scheme, wherein in the custom scheme, if the freight yard cannot meet the demand for a certain type of first-cured tobacco, and there is no raw material yard that can meet the demand for this type of first-cured tobacco, then a prediction algorithm is used to calculate the estimated surplus of this type of first-cured tobacco after the end of the next production cycle of each raw material yard, and the scheduling point of this type of first-cured tobacco is determined based on the estimated surplus;

[0013] The dispatching path planning module is used to calculate the dispatching path from each dispatching point to the redrying site using a path planning algorithm, and to dispatch the loaded primary-cured tobacco using the dispatching path.

[0014] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the tobacco leaf scheduling method for first-cured tobacco provided in the first aspect of the present disclosure are implemented.

[0015] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a program for implementing information transmission is stored, and when the program is executed by a processor, the steps of the tobacco leaf scheduling method for primary flue-cured tobacco provided in the first aspect of the present disclosure are implemented.

[0016] The technical solution provided by the embodiment of the present invention includes the following beneficial effects: when the remaining tobacco leaves in the freight yard and each raw material yard cannot meet the demand, a prediction algorithm is used to calculate the estimated remaining amount of each raw material yard in the next cycle, and the future production volume of each raw material yard is predicted in real time to screen out the raw material yard that can meet the demand, so as to facilitate the direct transportation of tobacco leaves from the raw material yard to the destination site, without the need to return the tobacco leaves to the freight yard for unified scheduling, thereby saving transportation costs and time efficiency.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1is a flow chart of a method for dispatching tobacco leaves of first-cured tobacco according to an embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of the BP neural network structure of an embodiment of the present invention;

[0021] Figure 3 is a schematic diagram of a tobacco leaf scheduling device for primary flue-cured tobacco according to an embodiment of the present invention;

[0022] Figure 4 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0024] Method Embodiment

[0025] According to an embodiment of the present invention, a method for scheduling tobacco leaves of primary flue-cured tobacco is provided. Figure 1 : is a flow chart of the method for scheduling tobacco leaves for primary flue-cured tobacco according to an embodiment of the present invention. The present invention requires a production plan that meets customer needs. The production plan generally requires different types of tobacco leaves. Tobacco leaf scheduling refers to the scheduling of the required types of tobacco leaves. The demand and surplus are determined for the corresponding types, such as Figure 1 As shown, the tobacco leaf scheduling method for primary flue-cured tobacco according to an embodiment of the present invention specifically includes:

[0026] In step S110, a tobacco redrying plan including the demand for various types of primary-cured tobacco is obtained, specifically including:

[0027] The tobacco leaf redrying task is generally concentrated in a certain period of the year, which lasts for two months. That is, the redrying of all the first-cured tobacco produced must be completed within these two months. However, the maximum amount of first-cured tobacco that can be stored in the redrying station is limited. Steps S110 to S130 are mainly aimed at real-time scheduling during this period. Preferably, the total output of first-cured tobacco in the next year can be predicted in advance at the end of the year before scheduling to grasp or regulate the output of first-cured tobacco, which specifically includes:

[0028] The autoregressive model of ARIMA, a time series analysis technique, is used to predict the total production of various types of first-cured tobacco leaves for the next year. The annual production of first-cured tobacco leaves in the past fifteen years is obtained, and the prediction problem of total production is converted into a time series prediction problem. ARIMA combines three statistical models to predict future values, including autoregressive AR, difference I and moving average MA.

[0029] In the solution process, the mean of the existing time series is used as the center, and the standard deviation of the time series twice above and below the center is used as the boundary. The data beyond the boundary is eliminated, and the mean is calculated according to Formula 2, and the standard deviation is calculated according to Formula 3:

[0030]

[0031] in, represents the mean of the time series, x i represents the sample value at the i-th moment, n represents the total length of the time series, σ represents the standard deviation of the time series, and As the boundary, the data outside the interval are regarded as abnormal data and removed to ensure the accuracy of the autoregressive model;

[0032] Preferably, after obtaining the total output forecast result, the user's redrying plan can be obtained in advance to estimate whether the predicted production volume of various types of primary flue-cured tobacco leaves can meet the plan. If not, negotiate with the primary flue-cured tobacco manufacturer to increase the output; if the plan can be met, but the predicted total output is too high, it is likely that the actual redrying in the next year may exceed the maximum amount of primary flue-cured tobacco that the redrying site can accommodate at a certain time, then it is also possible to negotiate with the manufacturer to control the amount of scheduling in the next year;

[0033] Step S110 starts with actual scheduling, obtaining a tobacco redrying plan including the demand for various types of primary flue-cured tobacco from the user demand side, that is, the corresponding amount of each type of primary flue-cured tobacco required for user redrying, which is determined according to actual demand.

[0034] In step S120, a custom scheme is used to determine the scheduling point of the first-cured tobacco in the tobacco redrying plan. In the custom scheme, if the freight yard cannot meet the demand for a certain type of first-cured tobacco, and there is no raw material yard that can meet the demand for this type of first-cured tobacco, a prediction algorithm is used to calculate the estimated surplus of this type of first-cured tobacco after the next production cycle of each raw material yard, and the scheduling point of this type of first-cured tobacco is determined according to the estimated surplus, which specifically includes:

[0035] In this embodiment, there are freight yards and raw material yards. The first-cured tobacco is sent to the freight yard after being produced in the raw material yard. The freight yard then sends various types of first-cured tobacco to the re-curing station according to demand. Generally, there is one freight yard and multiple raw material yards in one area.

[0036] Custom solutions include:

[0037] If the freight yard can meet the demand for a certain type of first-cured tobacco, the freight yard will be directly used as the dispatch point for this type of first-cured tobacco;

[0038] If the freight yard cannot meet the demand for a certain type of first-cured tobacco, but there is a raw material yard that can meet the demand for this type of first-cured tobacco, then one of the raw material yards that meets the demand will be selected as the dispatch point;

[0039] If the freight yard cannot meet the demand for a certain type of first-cured tobacco, and there is no raw material yard that can meet the demand for this type of first-cured tobacco, the exponential smoothing prediction algorithm is used to calculate the expected surplus of this type of first-cured tobacco after the next production cycle of each raw material yard, and the scheduling point of this type of first-cured tobacco is determined based on the expected surplus.

[0040] In actual scheduling, it is divided into multiple production cycles. The exponential smoothing prediction algorithm is used to calculate the expected surplus of this type of flue-cured tobacco after the end of the next production cycle of each raw material field. The scheduling points of this type of flue-cured tobacco are determined based on the expected surplus, including:

[0041] According to the Holt-winters exponential smoothing algorithm of formula 1, based on the actual data collection of existing raw material fields, the expected surplus of each raw material field at the end of the next production cycle is predicted:

[0042]

[0043] in, represents the expected margin at the end of the tth period, y t represents the actual margin at the current prediction time of the tth period, α represents a smoothing index greater than 0 and less than 1, and y t Theoretically, it represents the actual margin at the end of the tth cycle. However, the acquisition time belongs to a certain moment in the tth cycle, not necessarily the measurement at the end of the cycle. Therefore, the current measured margin is used as the approximate actual margin at the end of the cycle.

[0044] From formula 1, we can see that the estimated margin of each production cycle is related to the estimated margin of the previous cycle. The length of the recursive cycle depends on the effect of the smoothing algorithm. The estimated margin at the first calculation moment in each recursive cycle can be approximately expressed by the actual value.

[0045] The standard error of the smoothed prediction is shown in Formula 4:

[0046]

[0047] Among them, S represents the standard error, and n represents the number of original data in the time series;

[0048] For the exponential smoothing algorithm, the prediction effect can be judged according to the standard error of the prediction. Generally, if the accuracy R-sq is greater than or equal to 80%, the prediction is considered accurate. In exponential smoothing, a self-learning method is adopted to optimize the results of the smoothed prediction by combining the information such as variety, grade, number of pieces, origin, etc. corresponding to the production plan, so that the results can better meet the actual situation of production and processing.

[0049] If there is a raw material yard where the estimated surplus exceeds the demand, one of the raw material yards that meets the prediction conditions is selected as the scheduling point. In this case, there is no need to schedule the first-cured tobacco from the raw material yard to the freight yard. It can be directly dispatched to the re-drying site after the next production cycle. In this case, it is necessary to wait until enough tobacco leaves are produced in the next cycle before loading. If there is no raw material yard where the estimated surplus exceeds the demand, a neural network model is used to screen multiple raw material yards as scheduling points. In this case, this type of first-cured tobacco does not wait for the next cycle, but a combined scheduling method of multiple raw material yards with surplus in this cycle is adopted.

[0050] The neural network model specifically includes a pre-trained BP neural network;

[0051] Among them, the input layer of the BP neural network represents the demand for primary flue-cured tobacco, the hidden layer represents the nodes of each raw material field, the value of the hidden layer node represents the contribution of the corresponding raw material field, the output layer represents the cost target of the distance, the weight between the input layer and the hidden layer is the proportion of the contribution to the demand, and the weight between the hidden layer and the output layer is the straight-line distance between each raw material field and the redrying site;

[0052] Figure 2 Schematic diagram of the BP neural network structure of an embodiment of the present invention. Figure 2 As shown, a neural network module with five raw material field nodes is shown. The input layer represents the node N of the demand for a certain type of primary flue-cured tobacco; M1...M5 represent the proportion that each raw material field needs to bear, and the sum of M1 to M5 is 1; A1 to A5 represent the straight-line distance weights, the longer the distance, the more consumption, the lower the weight, and the value of A is fixed; R represents the output layer.

[0053] Using the neural network model to select multiple raw material sites as scheduling points specifically includes:

[0054] Under the premise that the amount contributed by each raw material field node in the hidden layer does not exceed the corresponding initial flue-cured tobacco surplus, and the sum of all weights between the input layer and the hidden layer is 1, the weights between the input layer nodes and each hidden layer node are adjusted to minimize the output of the output layer, and the hidden layer nodes corresponding to the weights between the final input layer and the hidden layer greater than 0 are used as the scheduling points, and the values ​​of the hidden layer nodes are used as the amount of initial flue-cured tobacco that the corresponding scheduling points need to contribute;

[0055] The BP neural network of the embodiment of the present invention is equivalent to that N is the demand for a certain type of first-cured tobacco, which needs to be shared by 5 raw material fields, the sum of N1 to N5 is N, which is regulated by the ratio represented by M, but the transportation cost of each raw material field is different, and for each raw material field, the larger the transportation volume, the higher the cost, so it is hoped that the raw material field with a higher cost will bear a smaller amount; in the process of training, the result of the output R value is back-propagated to continuously adjust the value of M, and the BP is adaptively adjusted until the R value increases and reaches the convergence level, and the training ends.

[0056] After screening out multiple raw material yards, it is equivalent to supplying the destination site in the form of a combination of the current surplus. Since the manpower and transportation costs consumed by supplying from multiple scheduling points are higher than those from a single scheduling point, the single-line scheduling method in which the exponential smoothing algorithm predicts that the surplus of a certain raw material yard will be sufficient in the next cycle is given priority.

[0057] If, under extremely unlikely circumstances, the sum of the remaining tobacco leaves in all raw material yards cannot meet the needs of the destination site, then wait for normal production scheduling, and use a custom plan to determine the scheduling point after the next production cycle.

[0058] In step S130, a path planning algorithm is used to calculate the dispatching path from each dispatching point to the redrying station, and the dispatching path is used to dispatch the loaded primary flue-cured tobacco, which specifically includes:

[0059] The MDHFVRP algorithm is used to calculate the dispatch path from the dispatch point to the redrying site; MDHFVRP usually refers to the path planning problem of a fixed fleet of vehicles to achieve the goal of minimizing time cost;

[0060] In the embodiment of the present invention, the objective function is the total scheduling time, and the constraint condition is the set time window. The time window in the vehicle routing problem refers to the time range accepted by the re-roasting point, that is, the re-roasting station may require the first-roasted tobacco to be delivered within a specific time period. If this range is exceeded, a penalty cost will be incurred;

[0061] In the process of solving, a solution is initially generated, local improvements are made based on the current solution, and then a heuristic method is used for global search, such as crossover and mutation of genetic algorithms, particle swarm optimization, etc. to achieve the global optimum until the predetermined number of iterations is reached and the optimal scheduling path is obtained:

[0062] The method further comprises:

[0063] During the scheduling process, the scheduling plan is adjusted according to the feedback information of the actual situation, including transportation delays, raw material losses, tobacco leaf curing quality, etc., to ensure the accuracy and efficiency of scheduling and dynamically respond to changes;

[0064] If the tobacco leaf formula or the company's planned quantity changes before the actual transportation of the tobacco truck, the scheduling point can be directly re-determined. When the tobacco truck has already started actual transportation, the shortfall can be used as the demand for another scheduling.

[0065] To sum up, in response to the existing problems, the tobacco scheduling method invented this time uses the time series analysis technology ARIMA to predict demand, so as to grasp the progress of the production plan in advance; a custom plan is used to obtain the scheduling point and the amount that each scheduling point needs to bear. When the tobacco residue in the freight yard and each raw material yard cannot meet the demand, the Holt-winters exponential smoothing algorithm is used to predict the expected residue of each raw material yard in the next cycle, so as to grasp the future production of each raw material yard in real time. If there is a raw material yard with an expected residue that can cover the demand in the next cycle, then wait for the raw material yard to produce, otherwise, multiple raw material yards are combined based on the current residue to carry out Scheduling, since the time consumption of multi-scheduling point transportation is higher than that of a single point, giving priority to single-field scheduling in the next cycle can improve scheduling efficiency; and when selecting the raw material field combination, a custom BP neural network is selected. The hidden layer is the contribution of each raw material field node, the output layer is the cost target, and the weight between the input layer and the hidden layer is the proportion of each contribution to the demand. Therefore, the BP neural network can select a multi-field combination that minimizes the global cost and can meet the demand; in many cases in the custom plan, tobacco leaves are directly transported from the raw material field to the destination site, without the need to return the tobacco leaves to the freight yard for unified scheduling, saving transportation costs and time efficiency.

[0066] Device Embodiment

[0067] According to an embodiment of the present invention, a tobacco leaf scheduling device for primary flue-cured tobacco is provided. Figure 3 Schematic diagram of a tobacco leaf scheduling device for primary flue-cured tobacco according to an embodiment of the present invention. Figure 3 As shown, the tobacco leaf scheduling device for primary flue-cured tobacco according to an embodiment of the present invention specifically includes:

[0068] The tobacco leaf redrying plan acquisition module 30 is used to acquire the tobacco leaf redrying plan including the demand for various types of primary-cured tobacco;

[0069] The scheduling point determination module 32 is used to determine the scheduling point of the primary flue-cured tobacco in the tobacco redrying plan using a custom scheme, wherein in the custom scheme, if the freight yard cannot meet the demand for a certain type of primary flue-cured tobacco, and there is no raw material yard that can meet the demand for this type of primary flue-cured tobacco, then a prediction algorithm is used to calculate the estimated surplus of this type of primary flue-cured tobacco after the next production cycle of each raw material yard, and the scheduling point of this type of primary flue-cured tobacco is determined according to the estimated surplus, specifically for:

[0070] Custom solutions include:

[0071] If the freight yard can meet the demand for a certain type of first-cured tobacco, the freight yard will be directly used as the dispatch point for this type of first-cured tobacco;

[0072] If the freight yard cannot meet the demand for a certain type of first-cured tobacco, but there is a raw material yard that can meet the demand for this type of first-cured tobacco, then one of the raw material yards that meets the demand will be selected as the dispatch point;

[0073] If the freight yard cannot meet the demand for a certain type of first-cured tobacco, and there is no raw material yard that can meet the demand for this type of first-cured tobacco, the exponential smoothing prediction algorithm is used to calculate the expected surplus of this type of first-cured tobacco after the next production cycle of each raw material yard, and the scheduling point of this type of first-cured tobacco is determined based on the expected surplus.

[0074] The exponential smoothing prediction algorithm is used to calculate the expected surplus of this type of flue-cured tobacco after the next production cycle of each raw material field. The scheduling points of this type of flue-cured tobacco are determined based on the expected surplus, including:

[0075] According to the Holt-winters exponential smoothing forecasting algorithm of formula 1, the expected surplus of each raw material field at the end of the next production cycle is predicted:

[0076]

[0077] in, represents the expected margin at the end of the tth period, y t represents the actual margin at the current prediction time of the tth period, and α represents a smoothing index greater than 0 and less than 1;

[0078] If there is a raw material yard where the estimated surplus exceeds the demand, one of the raw material yards that meets the forecast conditions is selected as the scheduling point and scheduled after the next production cycle ends; if there is no raw material yard where the estimated surplus exceeds the demand, the neural network model is used to screen multiple raw material yards as scheduling points.

[0079] The neural network model specifically includes a pre-trained BP neural network.

[0080] Among them, the input layer of the BP neural network represents the demand for primary flue-cured tobacco, the hidden layer represents the nodes of each raw material field, the value of the hidden layer node represents the contribution of the corresponding raw material field, the output layer represents the cost target of the distance, the weight between the input layer and the hidden layer is the proportion of the contribution to the demand, and the weight between the hidden layer and the output layer is the straight-line distance between each raw material field and the redrying site.

[0081] The dispatching path planning module 34 is used to calculate the dispatching path from each dispatching point to the redrying station by using the path planning algorithm, and dispatch the loaded primary flue-cured tobacco by using the dispatching path, specifically for:

[0082] The MDHFVRP algorithm is used to calculate the scheduling path from the scheduling point to the redrying site.

[0083] To sum up, in response to the existing problems, the tobacco scheduling device for the first flue-cured tobacco invented in this invention uses the time series analysis technology ARIMA to predict the demand, so as to grasp the progress of the production plan in advance; a custom plan is used to obtain the scheduling point and the amount that each scheduling point needs to bear. When the tobacco residue in the freight yard and each raw material yard cannot meet the demand, the Holt-winters exponential smoothing algorithm is used to predict the expected residue of each raw material yard in the next cycle, so as to grasp the future production situation of each raw material yard in real time. If there is a raw material yard with an expected residue that can cover the demand in the next cycle, then wait for the raw material yard to produce, otherwise combine multiple raw material yards based on the current residue. For scheduling, since the time consumption of multi-scheduling point transportation is higher than that of a single point, giving priority to single-field scheduling in the next cycle can improve scheduling efficiency; and when selecting the raw material field combination, a custom BP neural network is selected, the hidden layer is the contribution of each raw material field node, the output layer is the cost target, and the weight between the input layer and the hidden layer is the proportion of each contribution to the demand. Therefore, the BP neural network can select a multi-field combination that minimizes the global cost and can meet the demand; in many cases in the custom plan, the tobacco leaves are directly transported from the raw material field to the destination site, and there is no need to return the tobacco leaves to the freight yard for unified scheduling, which saves transportation costs and time efficiency.

[0084] Electronic device embodiment

[0085] Figure 4 4 is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device 400 may include at least one processor 410 and a memory 420. The processor 410 may execute instructions stored in the memory 420. The processor 410 is connected to the memory 420 through a data bus. In addition to the memory 420, the processor 410 may also be connected to an input device 430, an output device 440, and a communication device 450 through a data bus.

[0086] The processor 410 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0087] Memory 420 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0088] In the disclosed embodiment, executable instructions are stored in the memory 420, and the processor 410 can read the executable instructions from the memory 420 and execute the instructions to implement all or part of the steps of the tobacco leaf scheduling method for primary flue-cured tobacco in any of the above exemplary embodiments.

[0089] Computer Readable Storage Medium Embodiments

[0090] In addition to the above-mentioned methods and devices, the exemplary embodiments of the present disclosure may also be a computer program product or a computer-readable storage medium storing the computer program product, wherein the computer product includes computer program instructions that can be executed by a processor to implement all or part of the steps described in any of the tobacco leaf scheduling methods for primary flue-cured tobacco in the above-mentioned exemplary embodiments.

[0091] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages ​​such as Java, C++, etc., and also conventional procedural programming languages ​​such as "C" language or similar programming languages ​​and scripting languages ​​(e.g., Python). The program code may be executed entirely on the user computing device, partially on the user computing device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0092] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of readable storage media include: a static random access memory (SRAM) with one or more wires electrically connected, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk, or any suitable combination of the above.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for dispatching tobacco leaves of first-cured tobacco, characterized in that: include: Obtain the tobacco redrying plan including the demand for various types of first-cured tobacco; Determine the dispatch point of the first-cured tobacco in the tobacco redrying plan using a custom scheme, wherein, in the custom scheme, if the freight yard cannot meet the demand for a certain type of first-cured tobacco, and there is no raw material yard that can meet the demand for this type of first-cured tobacco, then use a prediction algorithm to calculate the expected surplus of this type of first-cured tobacco after the end of the next production cycle of each raw material yard, and determine the dispatch point of this type of first-cured tobacco according to the expected surplus; A path planning algorithm is used to calculate a dispatching path from each dispatching point to the redrying site, and the dispatching path is used to dispatch the loaded primary-cured tobacco.

2. The method according to claim 1, characterized in that The customized solution specifically includes: If the freight yard can meet the demand for a certain type of first-cured tobacco, the freight yard will be directly used as the dispatch point for this type of first-cured tobacco; If the freight yard cannot meet the demand for a certain type of first-cured tobacco, but there is a raw material yard that can meet the demand for this type of first-cured tobacco, then one of the raw material yards that meets the demand will be selected as the dispatch point; If the freight yard cannot meet the demand for a certain type of first-cured tobacco, and there is no raw material yard that can meet the demand for this type of first-cured tobacco, the exponential smoothing prediction algorithm is used to calculate the expected surplus of this type of first-cured tobacco after the next production cycle of each raw material yard, and the scheduling point of this type of first-cured tobacco is determined based on the expected surplus.

3. The method according to claim 2, characterized in that The method of using an exponential smoothing prediction algorithm to calculate the estimated surplus of the type of first-cured tobacco after the next production cycle of each raw material field ends, and determining the dispatching point of the type of first-cured tobacco according to the estimated surplus specifically includes: According to the Holt-winters exponential smoothing forecasting algorithm of formula 1, the expected surplus of each raw material field at the end of the next production cycle is predicted: in, represents the expected margin at the end of the tth period, y t represents the actual margin at the current prediction time of the tth period, and α represents a smoothing index greater than 0 and less than 1; If there is a raw material farm where the estimated surplus exceeds the demand, one of the raw material farms that meets the forecast conditions is selected as the scheduling point and scheduled after the next production cycle ends; if there is no raw material farm where the estimated surplus exceeds the demand, a neural network model is used to screen multiple raw material farms as scheduling points.

4. The method according to claim 3, characterized in that The neural network model specifically includes a pre-trained BP neural network. The input layer of the BP neural network represents the demand for primary flue-cured tobacco, the hidden layer represents the nodes of each raw material field, the value of the hidden layer node represents the contribution of the corresponding raw material field, the output layer represents the cost target of the distance, the weight between the input layer and the hidden layer is the proportion of the contribution to the demand, and the weight between the hidden layer and the output layer is the straight-line distance between each raw material field and the redrying site; The use of a neural network model to select multiple raw material sites as scheduling points specifically includes: Under the premise that the amount contributed by each raw material field node in the hidden layer does not exceed the corresponding initial flue-cured tobacco surplus, and the sum of all weights between the input layer and the hidden layer is 1, the weights between the input layer nodes and each hidden layer node are adjusted to minimize the output of the output layer, and the hidden layer nodes corresponding to the final weights greater than 0 between the input layer and the hidden layer are used as the scheduling points, and the values ​​of the hidden layer nodes are used as the amount of initial flue-cured tobacco that the corresponding scheduling points need to contribute.

5. The method according to claim 1, characterized in that The use of a path planning algorithm to calculate the scheduling path from each scheduling point to the redrying site specifically includes: using an MDHFVRP algorithm to calculate the scheduling path from the scheduling point to the redrying site.

6. A tobacco leaf scheduling device for first-cured tobacco, characterized in that: include: The tobacco leaf redrying plan acquisition module is used to obtain the tobacco leaf redrying plan including the demand for various types of primary flue-cured tobacco; A scheduling point determination module is used to determine the scheduling point of the primary flue-cured tobacco in the tobacco redrying plan using a custom scheme, wherein, in the custom scheme, if the freight yard cannot meet the demand for a certain type of primary flue-cured tobacco, and there is no raw material yard that can meet the demand for this type of primary flue-cured tobacco, a prediction algorithm is used to calculate the estimated surplus of this type of primary flue-cured tobacco after the end of the next production cycle of each raw material yard, and the scheduling point of this type of primary flue-cured tobacco is determined according to the estimated surplus; The dispatching path planning module is used to calculate the dispatching path from each dispatching point to the redrying site by using a path planning algorithm, and to dispatch the loaded primary-cured tobacco by using the dispatching path.

7. The device according to claim 6, characterized in that The scheduling point determination module is specifically used for: If the freight yard can meet the demand for a certain type of first-cured tobacco, the freight yard will be directly used as the dispatch point for this type of first-cured tobacco; If the freight yard cannot meet the demand for a certain type of first-cured tobacco, but there is a raw material yard that can meet the demand for this type of first-cured tobacco, then one of the raw material yards that meets the demand will be selected as the dispatch point; If the freight yard cannot meet the demand for a certain type of first-cured tobacco, and there is no raw material yard that can meet the demand for this type of first-cured tobacco, the exponential smoothing prediction algorithm is used to calculate the expected surplus of this type of first-cured tobacco after the next production cycle of each raw material yard, and the scheduling point of this type of first-cured tobacco is determined based on the expected surplus.

8. The device according to claim 6, characterized in that The scheduling path planning module is specifically used to calculate the scheduling path from the scheduling point to the redrying site using the MDHFVRP algorithm.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the tobacco leaf scheduling method for primary flue-cured tobacco are implemented as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an implementation program for information transmission, and when the program is executed by a processor, the steps of the tobacco leaf scheduling method for primary flue-cured tobacco according to any one of claims 1 to 5 are implemented.