Tobacco leaf formula warehouse ex-warehouse sorting and sheet uniform blending method and tobacco leaf formula warehouse ex-warehouse sorting and sheet uniform blending system

By calculating the priority value of tobacco leaf packs and the distribution characteristics of flakes, the system achieves the sorting of tobacco leaf formulas from the library and the uniform blending of flakes, solving the problems of uneven tobacco leaf mixing and discontinuous flake blending in cigarette production, thus improving product quality and production efficiency.

CN121836581APending Publication Date: 2026-04-10HUBEI CHINA TOBACCO INDUSTRY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUBEI CHINA TOBACCO INDUSTRY CO LTD
Filing Date
2026-01-19
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In current cigarette production, the sorting of tobacco leaf formulas from the library relies on manual experience and a simple polling algorithm, resulting in uneven mixing of tobacco leaves and poor continuity of thin-sheet blending, which affects the quality stability of cigarette products and production efficiency.

Method used

By obtaining the bill of materials, calculating the priority value of tobacco leaves and tobacco bales to generate an initial outbound sequence, inserting thin tobacco bales according to preset constraints, analyzing the distribution characteristics of the thin bales and adjusting the flow rate settings, the uniform blending of tobacco leaves and thin bales is achieved.

Benefits of technology

It improves the uniformity of tobacco leaf blending and the continuity of sheet blending, ensures the consistency of cigarette product quality, reduces the risk of production interruption, optimizes operating costs, and improves the stability and efficiency of the production line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121836581A_ABST
    Figure CN121836581A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for warehouse-out sorting and uniform slice blending of a tobacco leaf formula warehouse, and the method comprises the steps: obtaining a bill of materials containing tobacco leaf packets and slice tobacco packets of each grade, calculating the priority value of each tobacco leaf packet of each grade, and carrying out the sorting to generate an initial warehouse-out sequence of main tobacco leaf packets; inserting the sheet tobacco bales into the initial warehouse-out sequence of the tobacco bales of the main tobacco leaves according to preset constraint conditions to obtain a final warehouse-out sequence; obtaining a main line material total amount and a main line flow parameter, and calculating batch total time; analyzing the sheet distribution characteristics of the sheet tobacco bales according to the final warehouse-out sequence, determining a distribution adjustment factor according to the distribution characteristics of the sheet tobacco bales, obtaining the total sheet weight of the sheet tobacco bales from the bill of material, and calculating the flow setting value of the sheet electronic scale; and according to the flow set value of the sheet electronic scale and the final warehouse-out sequence, a warehouse-out instruction is constructed, and according to the warehouse-out instruction, the cigarette packet warehouse-out operation is executed, so that the operation stability, the production efficiency and the product quality of the cigarette production line are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automation technology in tobacco processing and cigarette production, and in particular to a method and system for sorting tobacco leaf formulas from a storage library and uniformly blending thin sheets. Background Technology

[0002] In the cigarette production line, the order of tobacco leaf formulations leaving the warehouse is a key link between material storage and subsequent processing. Its rationality is directly related to the processing quality and production efficiency of subsequent processes, and has an important impact on the final quality of cigarette products.

[0003] Currently, cigarette production employs a traditional method of releasing tobacco packages from storage, relying primarily on manual experience or simple polling algorithms to plan the release sequence. Electronic scale flow settings are also based on accumulated manual experience. However, manual experience and simple polling algorithms cannot achieve a reasonable distribution of tobacco packages of different grades, leading to uneven mixing of tobacco leaves within the storage cabinet and directly affecting the stability of cigarette product quality. Furthermore, the distribution of sheet tobacco packages lacks effective control, easily resulting in continuous discharge exceeding the unpacking system's processing capacity, causing path blockages. This can also lead to interruptions or uneven distribution of sheet blending, reducing the continuity and compliance of sheet blending and compromising the accuracy and consistency of the cigarette formula. In addition, the experience-based electronic scale flow settings cannot be dynamically optimized according to the actual discharge pattern, further exacerbating quality fluctuations and efficiency losses during production. Summary of the Invention

[0004] This invention provides a method and system for sorting tobacco leaf formulas from the warehouse and uniformly blending flakes, in order to solve the problems of poor uniformity of tobacco leaf mixing, poor continuity and compliance of flake blending, and the resulting poor operational stability, low production efficiency and low product quality control level of cigarette production lines.

[0005] According to one aspect of the present invention, a method for sorting tobacco leaf formulations from a library and uniformly blending tobacco flakes is provided, comprising:

[0006] Obtain a bill of materials (BOM) containing tobacco leaf bales and sheet bales of various grades; calculate the priority value of each tobacco leaf bale of each grade based on the BOM, and generate an initial outbound sequence of main tobacco leaf bales sorted by priority value; insert sheet bales into the initial outbound sequence of main tobacco leaf bales according to preset constraints to obtain the final outbound sequence; obtain the total material quantity and flow rate parameters of the main line, and calculate the total batch time based on the total material quantity and flow rate parameters of the main line; analyze the sheet distribution characteristics of the sheet bales based on the final outbound sequence, and determine the distribution adjustment factor based on the distribution characteristics of the sheet bales; wherein, the sheet distribution characteristics include the uniformity of the distribution of sheet bales in the sequence, the number of sheet bales continuously outbound, and the average discharge interval between sheet bales; obtain the total sheet weight of the sheet bales from the BOM, and calculate the flow rate setting value of the sheet electronic scale based on the total sheet weight, the total batch time, and the distribution adjustment factor; construct an outbound instruction based on the flow rate setting value of the sheet electronic scale and the final outbound sequence, and execute the tobacco bale outbound operation according to the outbound instruction.

[0007] According to another aspect of the present invention, a device for sorting tobacco leaf formulations from a storage library and uniformly blending tobacco flakes is provided, comprising:

[0008] The Bill of Materials (BOM) module is used to obtain a bill of materials containing tobacco leaf bales and sheet tobacco bales of various grades.

[0009] The initial outbound module is used to calculate the priority value of each tobacco leaf bale of each grade according to the bill of materials, and generate the initial outbound sequence of the main tobacco leaf bales by sorting them according to the priority value.

[0010] The final outbound module is used to insert the sheet tobacco packs into the initial outbound sequence of the main tobacco leaf packs according to preset constraints, so as to obtain the final outbound sequence.

[0011] The batch total time module is used to obtain the total amount of mainline materials and the mainline flow parameters, and to calculate the total batch time based on the total amount of mainline materials and the mainline flow parameters.

[0012] The adjustment factor module is used to analyze the sheet distribution characteristics of the sheet cigarette packs based on the final outbound sequence, and to determine the distribution adjustment factor based on the distribution characteristics of the sheet cigarette packs. The sheet distribution characteristics include the uniformity of the distribution of sheet cigarette packs in the sequence, the number of sheet cigarette packs continuously outbound, and the average outbound interval between sheet cigarette packs.

[0013] The flow setting module is used to obtain the total weight of the sheet cigarette pack from the bill of materials, and calculate the flow setting value of the sheet electronic scale based on the total weight of the sheet, the total batch time, and the distribution adjustment factor.

[0014] The outbound instruction module is used to construct outbound instructions based on the flow rate setting value of the sheet electronic scale and the final outbound sequence, and to execute the outbound operation of cigarette packs according to the outbound instructions.

[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0016] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the tobacco leaf formula library sorting and uniform blending method according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute the method for sorting out tobacco leaf formulations from the library and uniformly blending thin flakes as described in any embodiment of the present invention.

[0018] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the method as described in any embodiment of the present invention.

[0019] The technical solution of this invention involves obtaining a bill of materials containing tobacco leaf bales and sheet tobacco bales of various grades, calculating the priority value of each tobacco leaf bale of each grade based on the bill of materials, and generating an initial outbound sequence of main tobacco leaf bales according to the priority values. This ensures that tobacco leaf bales of the same grade are evenly distributed, avoids clustering, improves the mixing uniformity of tobacco leaves of different grades, and guarantees the stability of the basic quality of cigarette products. Then, sheet tobacco bales are inserted into the initial outbound sequence of main tobacco leaf bales according to preset constraints to obtain the final outbound sequence, ensuring the continuity and compliance of sheet blending and improving the consistency of cigarette indicators. The total amount of main line materials and the main line flow rate are obtained to calculate the total batch time. In the process, the distribution characteristics of the flakes are analyzed based on the final outbound sequence to determine the distribution adjustment factor. Based on the total weight of the flakes, the total batch time, and the adjustment factor, the flow rate setting value of the flake electronic scale is calculated to achieve dynamic flow rate adaptation to the distribution characteristics, avoid local over- or under-flow, and improve the accuracy of flake blending. Finally, the outbound instruction is constructed and executed based on the flow rate setting value and the final outbound sequence. The entire process is automated, reducing the risk of production interruption and the cost of manual intervention, reducing the probability of quality rework and equipment wear, strengthening the consistency of formula execution and the controllability of product quality, while optimizing operating costs and comprehensively improving the operational stability, production efficiency, and product quality control level of the cigarette production line.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart of a method for sorting tobacco leaf formulations from a library and uniformly blending thin flakes according to Embodiment 1 of the present invention;

[0023] Figure 2 This is a flowchart of another method for sorting and uniformly blending tobacco leaf formulations from the library according to Embodiment 2 of the present invention;

[0024] Figure 3 This is a flowchart of another method for sorting tobacco leaf formulas from the warehouse and uniformly blending thin slices according to Embodiment 3 of the present invention;

[0025] Figure 4 This is a schematic diagram of a tobacco leaf formula warehouse sorting and thin-flake uniform blending device according to Embodiment 4 of the present invention;

[0026] Figure 5 This is a schematic diagram of the structure of an electronic device for implementing the tobacco leaf formula library sorting and uniform blending method of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] Example 1

[0030] Figure 1 This is a flowchart of a method for sorting and uniformly blending tobacco leaf formulations from a storage facility, as provided in Embodiment 1 of the present invention. This embodiment is applicable to situations involving tobacco leaf dispensing and blending. This method can be executed by a device for sorting and uniformly blending tobacco leaf formulations from a storage facility. This device can be implemented in hardware and / or software and is generally configured in an electronic device. Figure 1 As shown, the method includes:

[0031] S110. Obtain a bill of materials containing tobacco leaf packs and sheet packs of various grades.

[0032] In this embodiment of the invention, the bill of materials can be specifically understood as: a detailed document containing the quantity, specifications and weight of tobacco leaf bales of each grade required for the current production batch, as well as relevant parameters of sheet tobacco bales, which is the basic data file for subsequent priority calculation and outbound sequence generation.

[0033] S120. Calculate the priority value of each tobacco leaf bale for each grade according to the bill of materials, and generate the initial outbound sequence of the main tobacco leaf bales by sorting them according to the priority values.

[0034] In this embodiment of the invention, the priority value can be specifically understood as: a sorting criterion calculated based on the total number of tobacco bales of each grade and the serial number of a single bale in the corresponding grade, used to achieve uniform distribution of tobacco bales of the same grade in the outbound sequence. The initial outbound sequence of the main tobacco bales can be specifically understood as: a sequence containing only the outbound order of tobacco bales of each grade, which is the basic sequence for subsequent thin-sheet tobacco bale insertion operations.

[0035] Specifically, a bill of materials (BOM) containing tobacco leaf bales and sheet tobacco bales of various grades is obtained from data sources such as production management systems or tobacco formula management platforms. The priority value of each tobacco leaf bale is calculated based on relevant information for each grade in the BOM. For example, the priority value of each tobacco leaf bale of each grade can be calculated using methods such as grade weighting, inventory turnover priority, or process adaptability scoring, based on information such as grade category, inventory location, or processing characteristics in the BOM. Typically, bales with high process adaptability are assigned higher priority values, and bales with longer inventory backlogs are prioritized. Finally, all tobacco leaf bales are sorted according to their priority values ​​to generate an initial outbound sequence for the main tobacco leaf bales. This ensures a uniform distribution of tobacco leaf bales of different grades within the sequence, avoiding clustering of bales of the same grade and laying the foundation for subsequent sheet tobacco insertion and blending processing.

[0036] Optionally, based on the above embodiments, calculating the priority value of each tobacco bale of each grade according to the bill of materials, and generating an initial outbound sequence of main tobacco bales according to the priority values, may include:

[0037] Based on the total number of tobacco bales in each grade and the serial number of each tobacco bale in that grade, calculate the priority value of each tobacco bale in each grade; arrange all tobacco bales in ascending order of priority value to obtain the initial outbound sequence of the main tobacco bales.

[0038] Specifically, for each tobacco grade i in the bill of materials, the total number of tobacco bales N_i for that grade and the sequence number k of each bale within that grade are extracted. Then, the priority value P of each bale is calculated using the formula P=(k-0.5) / N_i, ensuring the priority value ranges between 0 and 1. The priority values ​​of all tobacco bales for all grades are summarized, and all bales are uniformly sorted in ascending order of priority value to obtain the initial outbound sequence of the main tobacco bales. For example, if a grade has 4 bales with priority values ​​of 0.125, 0.375, 0.625, and 0.875, after sorting, they would approximately be located at positions 1 / 8, 3 / 8, 5 / 8, and 7 / 8 of the sequence, respectively. Finally, the initial outbound sequence of the main tobacco bales is generated based on the sorting results, ensuring that bales of the same grade are evenly distributed within the sequence, avoiding clustering of bales of the same grade, and laying a foundation for uniform arrangement for subsequent thin-sheet insertion and tobacco blending processing.

[0039] Priority values ​​are calculated based on the total number of tobacco packs for each grade and the grade-specific serial number of each pack. This allows for precise definition of the relative position of each pack in the outbound sequence using quantifiable numerical indicators, avoiding the subjectivity and randomness of traditional manual sorting or simple polling, making the sorting rules more scientific and repeatable. The priority value calculation logic ensures that packs of the same grade are evenly spaced in the sequence. For example, the more packs there are within a grade, the finer the priority value distribution of each pack, fundamentally preventing the problem of packs of the same grade clustering together. This creates a prerequisite for the thorough mixing of tobacco leaves of different grades in the storage cabinet. By uniformly sorting all tobacco packs according to their priority values ​​from smallest to largest to generate the initial outbound sequence, cross-arrangement of packs of different grades can be achieved, increasing the contact area and mixing efficiency of tobacco leaves of different grades in the processing flow, ensuring the consistency of the basic formula of cigarette products. At the same time, the entire sorting process does not require manual intervention or adjustment, reducing human error, making the sorting results traceable, and facilitating quality control and process optimization during production.

[0040] S130. Insert the thin tobacco bales into the initial outbound sequence of the main tobacco leaf bales according to the preset constraints to obtain the final outbound sequence.

[0041] In this embodiment of the invention, the preset constraints can be specifically understood as: pre-set rules for inserting thin-sheet tobacco packages to ensure the uniformity of blending and the stability of production equipment operation. These rules serve as the basis for determining whether the insertion position of the thin-sheet tobacco packages is compliant, and may specifically include multi-dimensional restrictions such as quantity, interval, and process compatibility. The final outbound sequence can be specifically understood as: after inserting the thin-sheet tobacco packages into the initial outbound sequence containing only tobacco leaf packages at compliant positions, the resulting complete outbound sequence list includes both tobacco leaf packages and thin-sheet tobacco packages, and all outbound sequences satisfy the preset constraints. This list is used to guide the outbound operation of the tobacco packages.

[0042] Specifically, based on the total number of sheet tobacco packages in the bill of materials, the ideal insertion interval for the sheets is calculated. For example, the ideal insertion interval can be calculated by dividing the initial outbound sequence length of the main tobacco leaf packages by (total number of sheet tobacco packages + 1), thus determining the ideal insertion position for each sheet tobacco package. Then, based on preset constraints (such as limits on the continuous outbound quantity of sheets, outbound interval limits, the requirement that the sheet tobacco package insertion position avoid tobacco leaf package grade switching nodes, and the requirement that the hourly outbound quantity of sheets does not exceed the production line's sheet tobacco processing capacity limit, etc., which can be set according to production needs), the ideal position is checked to ensure compliance with the constraints. If it does not comply, the insertion position is adjusted using a preset search strategy. For example, the search can be performed progressively from the ideal insertion position towards either end of the sequence, or by adapting alternative positions according to constraint priority. Typically, if an ideal insertion position for a sheet tobacco package triggers the constraint of exceeding the continuous outbound quantity limit, the nearest position to both ends of the sequence with an interval greater than or equal to a preset number of tobacco leaf packages can be searched as a compliant insertion point. Alternatively, if the ideal position is at a tobacco leaf grade switching node, it can be inserted at a preset offset number of positions towards the end of the sequence. Finally, all the thin tobacco flakes are inserted into the compliant positions and merged with the initial outbound sequence of the main tobacco leaf bales to generate the final outbound sequence. This ensures that the flakes are evenly distributed in the sequence and do not trigger constraints related to the production process and equipment operation, thus guaranteeing the uniformity of the blending of tobacco leaves and flakes and the stable operation of the production line.

[0043] S140. Obtain the total amount of mainline materials and the mainline flow rate parameters, and calculate the total batch time based on the total amount of mainline materials and the mainline flow rate parameters.

[0044] In this embodiment of the invention, the total material volume of the main line can be specifically understood as: the total weight of all tobacco leaf bales in the current production batch, which determines the total processing load of the production line and is used to calculate the total batch time. The main line flow rate parameter can be specifically understood as: the pre-set material conveying volume per unit time of the tobacco leaf processing main line, used to measure the processing efficiency of the production line; its value must match the rated processing capacity of the production line equipment. The total batch time can be specifically understood as: the total time required to complete the processing of all tobacco leaves in the current production batch, calculated from the ratio of the total material volume of the main line to the main line flow rate, and used for subsequent calculation of the flow rate setting value of the sheet electronic scale.

[0045] Specifically, the total amount of main line materials and the main line flow parameters are obtained from data sources such as the production management system, the central control system of the tobacco processing production line, or the process parameter database. The total processing time of the current production batch is calculated by using the formula: total batch time = total amount of main line materials / main line flow parameters.

[0046] S150. Analyze the distribution characteristics of thin tobacco packages based on the final outbound sequence, and determine the distribution adjustment factor based on the distribution characteristics of thin tobacco packages.

[0047] Among them, the distribution characteristics of thin sheet cigarette packs include the uniformity of distribution of thin sheet cigarette packs in the sequence, the number of thin sheet cigarette packs continuously discharged, and the average discharge interval between thin sheet cigarette packs.

[0048] In this embodiment of the invention, the flake distribution characteristics can be specifically understood as: indicators related to the arrangement of flake tobacco bales in the final outgoing sequence, including distribution uniformity, the number of consecutively outgoing flake tobacco bales, and the average outgoing interval between flake tobacco bales, used to determine the rationality of flake blending and to determine the distribution adjustment factor. The average outgoing interval can be specifically understood as: the arithmetic mean of the number of tobacco bales between adjacent flake tobacco bales, reflecting the overall spacing level of the flake tobacco bales in the sequence, used to measure the density of the flake distribution. The distribution adjustment factor can be specifically understood as: a correction coefficient dynamically set based on the flake distribution characteristics, used to adjust the flow rate setting value of the flake electronic scale to adapt the flow rate to the actual flake distribution state, ensuring blending accuracy.

[0049] Specifically, the exact location of all sheet tobacco bales is determined from the final outbound sequence. The distribution uniformity, consecutive outbound quantity, and average outbound interval of the sheet tobacco bales are analyzed. For distribution uniformity, the ideal insertion interval is first calculated as the total number of tobacco leaf bales / (total number of sheet tobacco bales + 1). Then, the actual outbound intervals between all adjacent sheet tobacco bales are counted, and the average and standard deviation of the actual intervals are calculated. The uniformity coefficient is obtained by dividing the standard deviation by the average. The deviation rate is calculated using the formula: |Actual Interval Average - Ideal Insertion Interval| / Ideal Insertion Interval. The uniformity coefficient and deviation rate are compared with the corresponding preset uniformity coefficient interval and preset uniformity deviation interval to determine the corresponding degree of uniformity. For the consecutive outbound quantity of sheet tobacco bales, it is determined by summing the consecutive arrangement of adjacent sheet tobacco bales without tobacco leaf bales. For the average outbound interval, the number of tobacco leaf bales between every two adjacent sheet tobacco bales is first calculated to obtain a single actual interval. Then, all single actual intervals are summed and divided by the total number of intervals to obtain the average outbound interval.

[0050] Finally, based on the distribution characteristics of these three dimensions, the corresponding distribution adjustment factor is determined according to preset rules. For example, a standard value for the distribution adjustment factor is first set. When the distribution uniformity is uneven, the factor is adjusted synchronously according to the degree of coefficient deviation. If the actual interval corresponding to the distribution uniformity is generally smaller than the ideal insertion interval, it indicates that the sheet arrangement is too dense. In this case, the distribution adjustment factor is lowered to below the standard value to reduce the local sheet supply. If the actual interval corresponding to the distribution uniformity is generally larger than the ideal insertion interval, it indicates that the sheet arrangement is too sparse. In this case, the distribution adjustment factor is raised to above the standard value to make up for the local sheet supply gap. When there is continuous discharge of sheet cigarette packs, the distribution adjustment factor is lowered to below the standard value. When the average discharge interval between sheet cigarette packs is greater than the ideal insertion interval, the distribution adjustment factor is raised to above the standard value. When the average discharge interval is less than the ideal insertion interval, the distribution adjustment factor is lowered to below the standard value. At the same time, all adjustment actions must be limited to the preset factor adjustment range.

[0051] S160. Obtain the total weight of the sheet cigarette pack from the bill of materials, and calculate the flow rate setting value of the sheet electronic scale based on the total weight of the sheet, the total batch time, and the distribution adjustment factor.

[0052] In this embodiment of the invention, the total weight of the sheet can be specifically understood as the sum of the weights of all sheet tobacco packs in the bill of materials for the current production batch, which determines the total amount of sheet added during batch processing. The flow rate setting value of the sheet electronic scale can be specifically understood as the set value of the material conveying rate of the sheet electronic scale per unit time, which is used to guide the process parameters for the sheet electronic scale to accurately add sheet, and affects the uniformity of blending sheet and tobacco leaves.

[0053] Specifically, the total weight of all sheet tobacco packages is obtained from the bill of materials, i.e., the total weight of the sheets. Combined with the calculated total batch time, the basic flow rate for sheet distribution is calculated by dividing the total sheet weight by the total batch time. This basic flow rate represents the theoretical distribution rate under the condition that the sheets are evenly distributed and there is no continuous outbound flow. Then, the basic flow rate is corrected according to the distribution adjustment factor. The flow rate is multiplied by the distribution adjustment factor to calculate the flow rate setting value of the sheet electronic scale. This achieves the adaptation of the flow rate setting to the distribution characteristics of the sheets and the processing rhythm of the production line. For example, if the sheet arrangement is too dense, the flow rate is lowered by adjusting the factor; if the sheet arrangement is too sparse, the flow rate is increased by adjusting the factor, ensuring the uniformity of the blending of sheets and tobacco leaves.

[0054] S170. Construct an outbound instruction based on the flow rate setting value of the thin-film electronic scale and the final outbound sequence, and execute the outbound operation of the cigarette packs according to the outbound instruction.

[0055] In this embodiment of the invention, the outbound instruction can be specifically understood as: a set of operation instructions that integrates information such as the outbound sequence of tobacco packages, the delivery time node, and the sheet delivery rate, used to guide the scheduling and processing operations of tobacco packages on the production line.

[0056] Specifically, the flow rate setting of the sheet weighing scale is associated with the final outbound sequence. The flow rate setting is broken down into the dispensing rate parameter corresponding to each sheet tobacco bale in the sequence. Simultaneously, the outbound time window and sequence for each group of tobacco bales are determined by combining the outbound order of the tobacco leaf bales in the sequence. Based on this association information, an outbound instruction is constructed, including a tobacco bale outbound sequence table, a sheet dispensing rate parameter table, and time-triggered rules. The outbound sequence table corresponds to the arrangement of the final outbound sequence, the dispensing rate parameter table corresponds to the flow rate setting of the sheet weighing scale, and the time-triggered rules ensure seamless connection between the tobacco bale outbound and processing stages. Finally, the production line's central control system receives and parses the outbound instruction, automatically scheduling the storage equipment to retrieve the corresponding tobacco bales according to the preset order and rate. The bales are then transported to the designated processing station via a conveyor line, while the sheet weighing scale precisely dispenses the sheets according to the flow rate setting, completing the entire tobacco bale outbound operation. This ensures uniform blending of tobacco leaves and sheets during processing, guaranteeing the consistency of the final product's formula.

[0057] The technical solution of this invention involves obtaining a bill of materials containing tobacco leaf bales and sheet tobacco bales of various grades, calculating the priority value of each tobacco leaf bale of each grade based on the bill of materials, and generating an initial outbound sequence of main tobacco leaf bales according to the priority values. This ensures that tobacco leaf bales of the same grade are evenly distributed, avoids clustering, improves the mixing uniformity of tobacco leaves of different grades, and guarantees the stability of the basic quality of cigarette products. Then, sheet tobacco bales are inserted into the initial outbound sequence of main tobacco leaf bales according to preset constraints to obtain the final outbound sequence, ensuring the continuity and compliance of sheet blending and improving the consistency of cigarette indicators. The total amount of main line materials and the main line flow rate are obtained to calculate the total batch time. In the process, the distribution characteristics of the flakes are analyzed based on the final outbound sequence to determine the distribution adjustment factor. Based on the total weight of the flakes, the total batch time, and the adjustment factor, the flow rate setting value of the flake electronic scale is calculated to achieve dynamic flow rate adaptation to the distribution characteristics, avoid local over- or under-flow, and improve the accuracy of flake blending. Finally, the outbound instruction is constructed and executed based on the flow rate setting value and the final outbound sequence. The entire process is automated, reducing the risk of production interruption and the cost of manual intervention, reducing the probability of quality rework and equipment wear, strengthening the consistency of formula execution and the controllability of product quality, while optimizing operating costs and comprehensively improving the operational stability, production efficiency, and product quality control level of the cigarette production line.

[0058] Example 2

[0059] Figure 2This is a flowchart of another method for sorting and uniformly blending tobacco leaf formulations from the warehouse according to Embodiment 2 of the present invention. This embodiment is a refinement of the above embodiment's step of "inserting the thin-sheet tobacco bales into the initial warehouse sequence of the main tobacco leaf bales according to preset constraints to obtain the final warehouse sequence." Figure 2 As shown, the method includes:

[0060] S210. Obtain a bill of materials containing tobacco leaf packs and sheet packs of various grades.

[0061] S220. Calculate the priority value of each tobacco leaf bale for each grade according to the bill of materials, and generate the initial outbound sequence of the main tobacco leaf bales by sorting them according to the priority values.

[0062] S230. Based on the total number of sheet tobacco bales and the total number of leaf tobacco bales, calculate the ideal insertion interval of sheet tobacco bales and the corresponding ideal insertion position in the initial outbound sequence of main leaf tobacco bales.

[0063] In this embodiment of the invention, the ideal insertion interval can be specifically understood as: to achieve a uniform distribution of thin tobacco bales in the initial outgoing sequence of main tobacco bales, the theoretical number of tobacco bales between adjacent thin tobacco bales, calculated by the total number of main tobacco bales and the total number of thin tobacco bales, is used to determine the ideal insertion position of the thin tobacco bales. The ideal insertion position can be specifically understood as: the theoretical arrangement node of the thin tobacco bales in the initial outgoing sequence of main tobacco bales, calculated based on the ideal insertion interval, is the initial target position for the thin tobacco bale insertion operation.

[0064] S240. Perform a constraint compliance check on each ideal insertion position. If the ideal insertion position does not meet the constraint conditions, adjust the insertion position through a preset search strategy and insert the thin tobacco pack into the compliant position in the initial outbound sequence of the adjusted main tobacco pack to obtain the final outbound sequence.

[0065] In this embodiment of the invention, the constraint compliance check can be specifically understood as: comparing the ideal insertion position of the sheet with preset constraint conditions to determine whether the position meets the requirements for uniform sheet blending and stable operation of the production line. The preset search strategy can be specifically understood as: a standardized method for finding nearby compliant alternative positions when the ideal insertion position does not meet the constraint conditions.

[0066] Specifically, based on the total number of sheet tobacco bales T and the total number of leaf tobacco bales M in the bill of materials, the ideal insertion interval I of the sheet tobacco bales is calculated using I=M / (T+1). This interval represents the theoretical number of leaf tobacco bales that should be arranged between adjacent sheet tobacco bales. Then, the ideal insertion position P_ideal corresponding to each sheet tobacco bale in the initial outbound sequence of the main leaf tobacco bales is calculated using P_ideal=round(I×n), where n is the sequence number of the sheet tobacco bale, ranging from 1 to T and being an integer, and round(I×n) represents rounding the result of I×n to the nearest integer. Subsequently, a constraint compliance check is performed on each ideal insertion position to verify whether the position meets the preset constraint conditions. If the ideal insertion position does not meet the constraint requirements, a preset search strategy is activated to progressively search for compliant positions that meet all constraint conditions within the interval before and after the ideal position. Finally, all sheet tobacco bales are inserted into the adjusted compliant positions and integrated with the initial outbound sequence of the main leaf tobacco bales to obtain the final outbound sequence that balances uniformity and compliance.

[0067] Optionally, based on the above embodiments, the constraints may include: the number of continuously discharged thin tobacco packages is less than or equal to a preset upper limit value; the minimum discharge interval between thin tobacco packages is greater than or equal to a preset lower limit value for the number of main tobacco leaf packages; and the maximum discharge interval between thin tobacco packages is less than or equal to a preset upper limit value for the number of main tobacco leaf packages.

[0068] Specifically, the insertion of thin sheets must meet three constraints: the number of consecutive thin sheet packs discharged must not exceed the limit, i.e., the number of consecutively discharged thin sheet packs is less than or equal to a preset upper limit (e.g., 3), to prevent the unpacking system from becoming clogged due to processing too many thin sheet packs in a short time; the minimum discharge interval between thin sheets must not be lower than the threshold, i.e., the minimum discharge interval between thin sheet packs is greater than or equal to the preset lower limit of the number of main tobacco leaf packs (e.g., 8 tobacco leaf packs), to avoid the spacing between adjacent thin sheets being too close, which would lead to a long period of thin sheet material interruption in subsequent processing; and the maximum discharge interval must not be higher than the threshold, i.e., the maximum discharge interval between thin sheet packs is less than or equal to the preset upper limit of the number of main tobacco leaf packs (e.g., 20 tobacco leaf packs), to prevent the thin sheet arrangement from being too sparse and affecting the continuity of blending tobacco leaves and thin sheets. Subsequently, for each ideal insertion position of the thin tobacco pack, it is checked one by one whether it meets these three types of constraints. If the ideal insertion position does not meet any of the constraints, the position is determined to be non-compliant, and a preset search strategy is triggered to adjust the insertion position until a compliant position that meets all constraints is found. In the end, it is ensured that the insertion of the thin tobacco pack meets both the equipment operation requirements and the process requirements for uniform blending.

[0069] By setting constraints such as the number of continuously discharged thin tobacco bales being less than or equal to a preset upper limit, the minimum discharge interval between thin tobacco bales being greater than or equal to a preset lower limit for the number of main tobacco leaf bales, and the maximum discharge interval between thin tobacco bales being less than or equal to a preset upper limit for the number of main tobacco leaf bales, the number of continuously discharged thin tobacco bales can be limited. This prevents blockages and jams in the unpacking system and conveying equipment due to excessive instantaneous load, ensuring continuous and stable operation of the production line. Setting a minimum discharge interval lower limit can prevent concentrated discharge of thin tobacco bales caused by excessively short discharge intervals between adjacent thin tobacco bales. This approach addresses the issue of potential problems and mitigates the risk of product formula fluctuations caused by instantaneous imbalances in the mixing ratio of tobacco leaves and flakes, as well as the risk of flake material shortages. Setting a maximum discharge interval effectively prevents flake tobacco packs from being too sparsely distributed in the discharge sequence, ensuring the continuity and uniformity of flake feeding throughout the processing, guaranteeing thorough mixing of tobacco leaves and flakes, and improving the consistency of the final product formula. At the same time, the synergistic effect of these three constraints balances the safety of equipment operation with the precision of the blending process, reduces operational errors caused by manual adjustments, and achieves standardized and refined control of the tobacco pack discharge process.

[0070] Optionally, based on the above embodiments, adjusting the insertion position through a preset search strategy may include:

[0071] Starting from the ideal insertion position, the search range is gradually expanded in both directions before and after the initial outbound sequence of the main tobacco leaf bale. Each expanded position is verified to ensure that all constraints are met. The first position that passes the constraint compliance check is determined as the compliant position of the thin tobacco bale.

[0072] Specifically, the ideal insertion position of the thin tobacco bale is used as the starting point for the search. From this starting point, the search range is gradually expanded in both directions before and after the initial outbound sequence of the main tobacco leaf bale. That is, the search interval is gradually extended in the preceding direction (position with smaller sequence number) and the following direction (position with larger sequence number) of the initial outbound sequence of the main tobacco leaf bale. For example, the constraint compliance check is first performed on the position one adjacent to the ideal position. If it does not comply with the rules, the next position is checked. If both do not comply with the rules, the search continues to expand to the two positions before and after, and so on (the search step increment can be set according to business needs) until all positions are traversed. During the expansion process, the constraint compliance check is performed on each candidate position to verify whether it meets all constraint conditions. The first expanded position that passes the constraint compliance check is determined as the compliant position of the thin tobacco bale. This ensures search efficiency while ensuring that the insertion position is as close as possible to the ideal node, maintaining the overall uniformity of the thin tobacco leaf distribution.

[0073] By using the ideal insertion position as the starting point for the search, the compliant position can be ensured to be as close as possible to the theoretically uniformly distributed nodes. This avoids the overall distribution of the flakes deviating from the preset uniformity target due to excessive position adjustments, thus maintaining the basic uniformity of the blending of tobacco leaves and flakes from the source. The bidirectional extended search method can effectively expand the search range of compliant positions compared to unidirectional search, reducing the probability of search failure due to the absence of compliant positions on one side, improving the success rate and efficiency of position adjustments, and ensuring the continuity of the production process. Using the first position that passes the full constraint verification as the final insertion position can reduce unnecessary search steps, avoid the increase in system computing power consumption and time costs caused by excessive search, achieve the goal of quickly locating compliant positions, avoid equipment and process risks such as unpacking system blockage and flake material shortage, and ensure the consistency and stability of the final product formula.

[0074] Optionally, based on the above embodiments, starting from the ideal insertion position, the search range is gradually expanded in both directions before and after the initial outbound sequence of the main tobacco leaf bale, and each expanded position is verified to ensure that all constraints are met. The first position that passes the constraint compliance check is determined as the compliant position of the sheet tobacco bale. This may include:

[0075] Starting from the ideal insertion position of the thin tobacco bale, a search offset incrementing from 0 is set, and the search range is expanded sequentially backward and forward of the ideal insertion position according to the offset. During the expansion of the search range backward of the ideal insertion position, the sum of the ideal insertion position and the search offset is calculated to obtain the candidate position. After verifying that the candidate position does not exceed the total length of the initial outbound sequence of the main tobacco bale, the position is verified against preset verification rules to determine if it meets all constraints. If it does, the candidate position is determined as the compliant position for the thin tobacco bale. If the candidate position does not meet all constraints, the search range is expanded forward of the ideal insertion position according to the offset, and the difference between the ideal insertion position and the search offset is calculated to obtain the candidate position. The candidate position is then verified to be no less than... After reaching 0, the system verifies whether the position meets all constraints using preset verification rules. If it does, the candidate position ahead is determined as the compliant position for the thin tobacco pack. If the candidate position ahead does not meet all constraints, the search offset is incremented and updated, and the system returns to perform the operation of expanding the search range sequentially behind and in front of the ideal insertion position according to the offset. The preset verification rules include: verifying whether the interval between the candidate position and the already inserted thin tobacco pack position is greater than or equal to the preset lower limit of the number of main tobacco packs; verifying whether the interval between the candidate position and the already inserted thin tobacco pack position is less than or equal to the preset upper limit of the number of main tobacco packs; verifying whether the number of thin tobacco packs continuously discharged after inserting the candidate position is less than or equal to the preset upper limit; and verifying whether the remaining thin tobacco packs after inserting the candidate position still meet all constraints.

[0076] In this embodiment of the invention, the search offset can be specifically understood as: the step size for expanding the search forward and backward based on the ideal insertion position, with an initial value of 0 and gradually increasing, which is the core parameter controlling the expansion range of the search. The rear candidate position can be specifically understood as: the candidate position obtained by expanding towards a larger direction from the ideal insertion position towards the initial exit sequence number of the main tobacco leaf bale, calculated as ideal insertion position + search offset. The front candidate position can be specifically understood as: the candidate position obtained by expanding towards a smaller direction from the ideal insertion position towards the initial exit sequence number of the main tobacco leaf bale, calculated as ideal insertion position - search offset. The preset verification rule can be specifically understood as: a full-dimensional judgment rule for verifying whether the candidate insertion position is compliant, specifically including: interval constraints, continuous quantity constraints, and remaining sheet compliance constraints.

[0077] Specifically, starting from the ideal insertion position of the tobacco leaf pack, an initial search offset of 0 is set, and a cyclic search process is initiated. First, the candidate positions are calculated based on the offset, and it is verified whether the position is less than or equal to the total length of the initial outgoing sequence of the main tobacco leaf pack (to avoid exceeding the limit). Then, it is verified by preset verification rules, including whether the interval between the candidate position and the already inserted slice position is within preset upper and lower limits, whether the number of consecutive slices after insertion is less than or equal to the preset upper limit, and whether there are still compliant insertion positions for the remaining slices after insertion. If all conditions are met, the candidate position is directly determined as a compliant position. If the candidate position is not compliant, the candidate position is calculated again, and it is verified whether the position is greater than or equal to 0 (to avoid exceeding the limit), and then verified by the same preset verification rules. If all conditions are met, the candidate position is determined as a compliant position. If neither the candidate position nor the candidate position meets all the constraints, the offset is increased and the above search and verification steps are repeated. If no compliant position is found after traversing the entire sequence, the insertion process is terminated and an error message is output. The determination of whether there are still compliant insertion positions for the remaining slices after insertion can be achieved in the following way: Based on the set of inserted slice positions and the current candidate position, the theoretical insertion interval of the remaining slices is deduced by combining the ideal insertion interval formula. Then, this theoretical interval is compared with the effective range of the initial outbound sequence of the main tobacco leaf bale. At the same time, the process of the remaining slices sequentially searching for compliant positions according to the bidirectional search strategy is simulated to verify whether there are positions within the theoretical interval that meet all constraints such as the upper and lower limits of the interval and the upper limit of the continuous quantity. If all remaining slices can find corresponding compliant positions during the simulation, it is determined that the current candidate position will not affect the subsequent slice arrangement. Otherwise, it is determined that the current candidate position is unusable, and the search offset needs to be increased to expand the range to find candidate positions that can both meet the constraints of the current slice and ensure the compliant insertion of the remaining slices.

[0078] In a specific example, the entire process uses coded loop logic (such as a for loop iterating over offsets) and the isValidPosition method (i.e., a pre-defined validation rule function that integrates interval, consecutive quantity, and remaining sheet constraint validation) to automate and accurately find compliant positions. This ensures that the position is as close as possible to the ideal node while also ensuring that the entire process complies with process and equipment constraints. For example: for (int offset = 0; offset < sequence.size(); offset++) {int rightPos = idealPosition + offset; if (rightPos <= sequence.size() && isValidPosition(rightPos, existingPositions)) { return rightPos;}int leftPos = idealPosition - offset; if (leftPos >= 0 && isValidPosition(leftPos, existingPositions)) {return leftPos;}}.

[0079] In the code, `for (int offset = 0; offset < sequence.size(); offset++)` implements the loop logic of incrementing the offset from 0 and traversing the entire sequence. `sequence.size()` is the total length of the initial output sequence of the main tobacco leaf bales, and `offset` is the search offset of integer type. `rightPos = idealPosition + offset` and `leftPos = idealPosition - offset` correspond to the calculation of the candidate positions behind (rightPos) and in front (leftPos), respectively. `idealPosition` is the ideal insertion position. The `isValidPosition` method encapsulates the preset validation rules, and `existingPositions` is the set of positions of all thin tobacco bales that have been successfully inserted into the initial output sequence of the main tobacco leaf bales.

[0080] By driving a bidirectional search with incremental offsets, and prioritizing verification from the area closest to the ideal position, the final selected compliant position is ensured to be as close as possible to the theoretically uniformly distributed nodes. This minimizes the impact of position adjustments on the overall uniformity of the sheet distribution, laying the foundation for the uniform blending of tobacco leaves and sheets. The ordered search logic, with a front-to-back approach and subsequent front-to-front verification of candidate positions, avoids invalid search steps, improves the efficiency of finding compliant positions, and ensures the timeliness of production line outbound sequence planning. Pre-set verification rules cover interval upper and lower limits, consecutive outbound quantities, and the compliance of remaining sheets. This ensures that the current sheet insertion position meets the immediate requirements of equipment operation and process blending, while also proactively avoiding the chain reaction of subsequent sheets not being compliantly arranged due to the current position selection. This achieves coordinated optimization of individual tobacco packs and the overall sequence arrangement. The entire search and verification process uses a programmed and standardized execution logic, achieving accurate positioning of compliant positions without manual intervention. This reduces operational errors caused by manual adjustments and improves the stability and consistency of outbound sequence planning.

[0081] S250: Obtain the total amount of mainline materials and the mainline flow rate parameters, and calculate the total batch time based on the total amount of mainline materials and the mainline flow rate parameters.

[0082] S260. Analyze the sheet distribution characteristics of the thin tobacco packs based on the final outbound sequence, and determine the distribution adjustment factor based on the distribution characteristics of the thin tobacco packs. Among them, the sheet distribution characteristics include the uniformity of the distribution of thin tobacco packs in the sequence, the number of thin tobacco packs continuously outbound, and the average outbound interval between thin tobacco packs.

[0083] S270. Obtain the total weight of the sheet cigarette pack from the bill of materials, and calculate the flow rate setting value of the sheet electronic scale based on the total weight of the sheet, the total batch time, and the distribution adjustment factor.

[0084] S280. Construct an outbound instruction based on the flow rate setting value of the thin-film electronic scale and the final outbound sequence, and execute the outbound operation of the cigarette packs according to the outbound instruction.

[0085] The technical solution of this invention obtains a bill of materials containing tobacco leaf bales and sheet bales of various grades, calculates the priority value of each tobacco leaf bale of each grade based on the bill of materials, and generates an initial outbound sequence of main tobacco leaf bales by sorting them according to the priority values. By combining the total number of sheet bales and the total number of tobacco leaf bales, the ideal insertion interval and corresponding ideal insertion position are calculated, which allows the sheet bales to initially form a uniform distribution trend in the main tobacco leaf sequence, avoiding the initial layout problems of sheet bales being concentrated or excessively dispersed. A constraint compliance check is performed on each ideal insertion position, which can pre-screen insertion points that do not meet the preset rules, avoiding production risks caused by improper placement from the source, and ensuring that the sheet insertion process meets the process requirements. When the ideal insertion position does not meet the constraint conditions, the search is expanded and the insertion position is adjusted through a preset search strategy, which can accurately find the insertion position that meets all constraints. The compliant position, closest to the ideal location, ensures the overall uniformity of the sheet distribution while avoiding imbalances caused by position adjustments. Finally, the sheet cigarette packs are inserted into the compliant position to form the final outbound sequence, ensuring production continuity and improving product quality consistency. The entire sheet insertion process is based on quantitative calculations and rule verification, replacing the traditional method relying on manual experience, reducing subjective errors from human operation, and making the sheet distribution more controllable and repeatable. The total material volume and flow rate of the main line are obtained to calculate the total batch time. Based on the final outbound sequence, the sheet distribution characteristics are analyzed to determine the distribution adjustment factor. The flow rate setting value of the sheet electronic scale is calculated based on the total sheet weight, total batch time, and adjustment factor. Finally, the outbound instruction is constructed and executed based on the flow rate setting value and the final outbound sequence, comprehensively improving the operational stability, production efficiency, and product quality control level of the cigarette production line.

[0086] Example 3

[0087] Figure 3 This is a flowchart of another method for sorting and uniformly blending tobacco leaf formulations from the library, as provided in Embodiment 3 of the present invention. This embodiment is a refinement of the step of "determining the distribution adjustment factor based on the distribution characteristics of the tobacco leaf packs" in the above embodiment. Figure 3 As shown, the method includes:

[0088] S310. Obtain a bill of materials containing tobacco leaf packs and sheet packs of various grades.

[0089] S320. Calculate the priority value of each tobacco leaf bale for each grade according to the bill of materials, and generate the initial outbound sequence of the main tobacco leaf bales by sorting them according to the priority values.

[0090] S330. Insert the thin tobacco bales into the initial outbound sequence of the main tobacco leaf bales according to the preset constraints to obtain the final outbound sequence.

[0091] S340. Obtain the total amount of mainline materials and the mainline flow rate parameters, and calculate the total batch time based on the total amount of mainline materials and the mainline flow rate parameters.

[0092] S350. Analyze the distribution characteristics of the thin tobacco packs based on the final outbound sequence. If the thin tobacco packs are evenly distributed and there are no consecutive outbound thin tobacco packs, then set the distribution adjustment factor to the preset standard factor. The thin tobacco pack distribution characteristics include the uniformity of the thin tobacco pack distribution in the sequence, the number of consecutively outbound thin tobacco packs, and the average outbound interval between thin tobacco packs.

[0093] S360. If the distribution of cigarette packs is uniform and there is continuous discharge of thin cigarette packs, then the preset standard factor is reduced according to the continuous discharge quantity, and the reduction result is used as the distribution adjustment factor.

[0094] S370. If the distribution of thin tobacco packs is uneven, the preset standard factor shall be adjusted according to the degree of deviation of the interval from the standard value, and the adjustment result shall be used as the distribution adjustment factor.

[0095] Specifically, based on the final outbound sequence analysis of the distribution characteristics of the thin tobacco packages, if the thin tobacco packages are evenly distributed and there is no continuous outbound, this is the ideal state of thin package arrangement. There is no need to adjust the standard factor. The preset standard factor (usually 1) is directly set as the distribution adjustment factor to ensure that the thin package electronic scale delivers according to the theoretical basic flow rate and matches the tobacco processing rhythm.

[0096] If the thin tobacco packs are evenly distributed but there is continuous outflow, the overall distribution of the thin packs is uniform, but there are local continuous outflows, which can easily lead to excessive thin packs being added during this stage. It is necessary to gradually reduce the standard factor according to the number of groups with continuous outflows and the continuous duration of each group, with a preset ratio gradient. The higher the degree of continuity (the more groups and the longer the continuous length of a single group), the greater the reduction in the factor, thereby reducing the amount of thin packs added during the continuous outflow stage and avoiding local mixing imbalances.

[0097] If the distribution of the thin tobacco sheets is uneven, a two-way adjustment is needed, considering both the deviation rate between the actual average discharge interval and the ideal interval, and the degree of deviation of the uniformity coefficient. If the actual average discharge interval is generally greater than the ideal interval, it indicates that the sheet arrangement is too sparse, and the factor should be appropriately increased to compensate for insufficient sheet supply in some areas. If the actual average discharge interval is generally less than the ideal interval, it indicates that the sheet arrangement is too dense, and the factor should be appropriately decreased to avoid excessive sheet supply in some areas. At the same time, the adjustment range must follow the preset upper and lower limit thresholds of the factor to ensure that the factor is within the reasonable range required by the production line process.

[0098] Through the above-mentioned differential adjustments, a distribution adjustment factor that is precisely adapted to the actual distribution state of the sheet is finally generated, providing a basis for correcting the calculation of the flow setting value of the sheet electronic scale.

[0099] In a specific example, the process of a method for sorting tobacco leaf formulations from the warehouse and uniformly blending thin-leaf tobacco is as follows: Production work orders are obtained from the manufacturing management system, and the bill of materials is parsed to determine that a certain batch contains 3 packs of Grade A tobacco (600 kg total), 2 packs of Grade B tobacco (400 kg total), and 3 packs of thin-leaf tobacco (540 kg total); then, the priority values ​​of each grade of tobacco pack are calculated, and the main tobacco leaf sequence is sorted as A1 (0.167), B1 (0.25), A2 (0.5), B2 (0.75), and A3 (0.833); then, based on the number of main tobacco leaf packs M=5 and the number of thin-leaf tobacco packs T=3, the ideal insertion interval I=1.25 is calculated, resulting in… At the ideal insertion positions T1=1, T2=3, and T3=4, after constraint checks and adjustments, the final outbound sequence A1, T1, B1, A2, T2, B2, A3, and T3 is obtained after inserting the sheet. Subsequently, based on the main line flow rate of 1000 kg / h and the total main line material volume of 1000 kg, the batch time is calculated to be 1 hour, and the basic sheet flow rate is calculated to be 540 kg / h. Considering the characteristics of suitable average interval of sheet distribution and no continuous discharge, the distribution adjustment factor is taken as 1.0, and the final sheet flow rate is determined to be 540 kg / h. Finally, the final outbound sequence and sheet flow rate setting value are converted into outbound instructions and sent to the formula library control system for sequential execution.

[0100] In a specific example, a tobacco leaf formula library sorting and thin-slice uniform blending system can be developed using Java and the Spring Boot framework. It includes three core classes: PreSortingAlgorithm, ThinSliceInserter, and FlowCalculator. The PreSortingAlgorithm class implements the main sorting algorithm, calculating the priority of tobacco packages using the calculatePriority method according to the formula P=(k-0.5) / N, and using the validateConstraints method to verify constraints such as the number of consecutive thin slices not exceeding the limit. The ThinSliceInserter class implements the thin-slice insertion algorithm, using the findValidPosition method to achieve ideal... A bidirectional search algorithm, starting from a location and expanding outwards, finds compliant insertion positions. The `isValidPosition` method verifies the interval and continuity constraints between candidate positions and existing sheets. The `FlowCalculator` class implements a sheet flow calculation algorithm. First, it calculates the basic flow rate based on the total weight of the sheets and the total batch time. Then, it calculates the distribution adjustment factor using the `calculateAdjustmentFactor` method, combining sheet distribution characteristics (adjusting the factor downwards for continuous output and upwards for uneven distribution). Finally, it outputs an optimized flow setting value that adapts to the buffer constraints. Simultaneously, the `application.yml` configuration file sets algorithm parameters such as priority calculation formulas, upper limits for the number of consecutive sheets, upper and lower limits for intervals, and upper and lower limits for flow adjustment factors to ensure the system operates according to preset rules.

[0101] S380. Obtain the total weight of the sheet cigarette pack from the bill of materials, and calculate the flow rate setting value of the sheet electronic scale based on the total weight of the sheet, the total batch time, and the distribution adjustment factor.

[0102] S390. Construct an outbound instruction based on the flow rate setting value of the thin-film electronic scale and the final outbound sequence, and execute the outbound operation of the cigarette packs according to the outbound instruction.

[0103] The technical solution of this invention involves obtaining a bill of materials containing tobacco leaf packages and sheet tobacco packages of various grades, calculating the priority value of each tobacco leaf package of each grade based on the bill of materials, and generating an initial outbound sequence of main tobacco leaf packages by sorting them according to the priority values. Then, sheet tobacco packages are inserted into the initial outbound sequence of main tobacco leaf packages according to preset constraints to obtain the final outbound sequence. The total material volume and flow rate of the main line are obtained to calculate the total batch time. Based on the final outbound sequence, the distribution characteristics of the sheet tobacco packages are analyzed. When the sheet tobacco packages are evenly distributed and there are no continuous outbound situations, the distribution adjustment factor is set to a preset standard factor, which ensures that the flow rate is accurately matched with the uniform outbound mode, ensuring that the total weight of the sheet tobacco is evenly distributed according to the total batch time, avoiding excessive or insufficient blending in certain areas, and ensuring the accuracy of the sheet tobacco blending ratio in the cigarette formula. When the sheet tobacco packages are evenly distributed but there are continuous outbound situations, the standard factor is reduced according to the number of continuous outbound shipments. This can offset the short-term thinning caused by continuous outbound shipments by lowering the flow rate. The centralized supply of sheet tobacco prevents blockages in the unpacking system caused by excessive instantaneous material load, while also preventing excessive proportion of sheet tobacco in continuous sections from disrupting the consistency of cigarette flavor. When the distribution of sheet tobacco packs is uneven, the standard factor is adjusted according to the degree of deviation from the standard value. This allows for precise flow compensation for localized insufficient sheet tobacco due to excessively large intervals or localized excessive sheet tobacco due to excessively small intervals. By optimizing the flow rate through adaptive factor adjustments, the blending deviation caused by uneven distribution is compensated for, ensuring that the total blending amount of sheet tobacco is dynamically balanced throughout the entire production batch. This guarantees the overall uniformity and accuracy of sheet tobacco blending, while also adapting to the process requirements of different discharge scenarios, further enhancing the stability and controllability of cigarette product quality. The flow rate setting value of the sheet tobacco electronic scale is calculated based on the total weight of sheet tobacco, the total batch time, and the adjustment factor. Finally, the outbound instructions are constructed and executed based on the flow rate setting value and the final outbound sequence, comprehensively improving the operational stability, production efficiency, and product quality control level of the cigarette production line.

[0104] Example 4

[0105] Figure 4 This is a schematic diagram of a tobacco leaf formula warehouse sorting and flake uniform blending device provided in Embodiment 4 of the present invention. Figure 4 As shown, the device includes: a bill of materials module 410, an initial outbound module 420, a final outbound module 430, a batch total time module 440, an adjustment factor module 450, a flow rate setting module 460, and an outbound instruction module 470, wherein:

[0106] The bill of materials module 410 is used to obtain a bill of materials containing tobacco leaf packs and sheet packs of various grades.

[0107] The initial outbound module 420 is used to calculate the priority value of each tobacco leaf bale of each grade according to the bill of materials, and generate the initial outbound sequence of the main tobacco leaf bales by sorting them according to the priority value.

[0108] The final outbound module 430 is used to insert the thin tobacco bales into the initial outbound sequence of the main tobacco leaf bales according to preset constraints, so as to obtain the final outbound sequence.

[0109] The batch total time module 440 is used to obtain the total amount of mainline materials and the mainline flow parameters, and to calculate the total batch time based on the total amount of mainline materials and the mainline flow parameters.

[0110] The adjustment factor module 450 is used to analyze the sheet distribution characteristics of the sheet cigarette packs based on the final outbound sequence, and to determine the distribution adjustment factor based on the distribution characteristics of the sheet cigarette packs; wherein, the sheet distribution characteristics include the uniformity of the distribution of sheet cigarette packs in the sequence, the number of sheet cigarette packs continuously outbound, and the average outbound interval between sheet cigarette packs;

[0111] The flow setting module 460 is used to obtain the total weight of the sheet cigarette pack from the bill of materials, and calculate the flow setting value of the sheet electronic scale based on the total weight of the sheet, the total batch time, and the distribution adjustment factor.

[0112] The outbound instruction module 470 is used to construct an outbound instruction based on the flow rate setting value of the sheet electronic scale and the final outbound sequence, and to execute the outbound operation of the cigarette packs according to the outbound instruction.

[0113] The technical solution of this invention involves obtaining a bill of materials containing tobacco leaf bales and sheet tobacco bales of various grades, calculating the priority value of each tobacco leaf bale of each grade based on the bill of materials, and generating an initial outbound sequence of main tobacco leaf bales according to the priority values. This ensures that tobacco leaf bales of the same grade are evenly distributed, avoids clustering, improves the mixing uniformity of tobacco leaves of different grades, and guarantees the stability of the basic quality of cigarette products. Then, sheet tobacco bales are inserted into the initial outbound sequence of main tobacco leaf bales according to preset constraints to obtain the final outbound sequence, ensuring the continuity and compliance of sheet blending and improving the consistency of cigarette indicators. The total amount of main line materials and the main line flow rate are obtained to calculate the total batch time. In the process, the distribution characteristics of the flakes are analyzed based on the final outbound sequence to determine the distribution adjustment factor. Based on the total weight of the flakes, the total batch time, and the adjustment factor, the flow rate setting value of the flake electronic scale is calculated to achieve dynamic flow rate adaptation to the distribution characteristics, avoid local over- or under-flow, and improve the accuracy of flake blending. Finally, the outbound instruction is constructed and executed based on the flow rate setting value and the final outbound sequence. The entire process is automated, reducing the risk of production interruption and the cost of manual intervention, reducing the probability of quality rework and equipment wear, strengthening the consistency of formula execution and the controllability of product quality, while optimizing operating costs and comprehensively improving the operational stability, production efficiency, and product quality control level of the cigarette production line.

[0114] Based on the above embodiments, the initial outbound module 420 is specifically used for:

[0115] Based on the total number of tobacco bales in each grade and the serial number of each tobacco bale in that grade, calculate the priority value of each tobacco bale in each grade; arrange all tobacco bales in ascending order of priority value to obtain the initial outbound sequence of the main tobacco bales.

[0116] Based on the above embodiments, the final outbound module 430 is specifically used for:

[0117] Based on the total number of sheet tobacco bales and the total number of leaf tobacco bales, calculate the ideal insertion interval of sheet tobacco bales and the corresponding ideal insertion position in the initial outbound sequence of main leaf tobacco bales. Perform a constraint compliance check on each ideal insertion position. If the ideal insertion position does not meet the constraint conditions, adjust the insertion position through a preset search strategy and insert the sheet tobacco bales into the compliant position in the adjusted initial outbound sequence of main leaf tobacco bales to obtain the final outbound sequence.

[0118] Based on the above embodiments, the constraints may include: the number of continuously discharged thin tobacco packages is less than or equal to a preset upper limit value; the minimum discharge interval between thin tobacco packages is greater than or equal to a preset lower limit value for the number of main tobacco leaf packages; and the maximum discharge interval between thin tobacco packages is less than or equal to a preset upper limit value for the number of main tobacco leaf packages.

[0119] Based on the above embodiments, the final outbound module 430 is further used for:

[0120] Starting from the ideal insertion position, the search range is gradually expanded in both directions before and after the initial outbound sequence of the main tobacco leaf bale. Each expanded position is verified to ensure that all constraints are met. The first position that passes the constraint compliance check is determined as the compliant position of the thin tobacco bale.

[0121] Based on the above embodiments, the final outbound module 430 is further used for:

[0122] Starting from the ideal insertion position of the thin tobacco bale, a search offset incrementing from 0 is set, and the search range is expanded sequentially backward and forward of the ideal insertion position according to the offset. During the expansion of the search range backward of the ideal insertion position, the sum of the ideal insertion position and the search offset is calculated to obtain the candidate position. After verifying that the candidate position does not exceed the total length of the initial outbound sequence of the main tobacco bale, the position is verified against preset verification rules to determine if it meets all constraints. If it does, the candidate position is determined as the compliant position for the thin tobacco bale. If the candidate position does not meet all constraints, the search range is expanded forward of the ideal insertion position according to the offset, and the difference between the ideal insertion position and the search offset is calculated to obtain the candidate position. The candidate position is then verified to be no less than... After reaching 0, the system verifies whether the position meets all constraints using preset verification rules. If it does, the candidate position ahead is determined as the compliant position for the thin tobacco pack. If the candidate position ahead does not meet all constraints, the search offset is incremented and updated, and the system returns to perform the operation of expanding the search range sequentially behind and in front of the ideal insertion position according to the offset. The preset verification rules include: verifying whether the interval between the candidate position and the already inserted thin tobacco pack position is greater than or equal to the preset lower limit of the number of main tobacco packs; verifying whether the interval between the candidate position and the already inserted thin tobacco pack position is less than or equal to the preset upper limit of the number of main tobacco packs; verifying whether the number of thin tobacco packs continuously discharged after inserting the candidate position is less than or equal to the preset upper limit; and verifying whether the remaining thin tobacco packs after inserting the candidate position still meet all constraints.

[0123] Based on the above embodiments, the factor module 450 is adjusted to specifically be used for:

[0124] If the thin tobacco packs are evenly distributed and there is no continuous outflow of thin tobacco packs, the distribution adjustment factor is set to the preset standard factor; if the thin tobacco packs are evenly distributed and there is continuous outflow of thin tobacco packs, the preset standard factor is reduced according to the continuous outflow quantity, and the reduction result is used as the distribution adjustment factor; if the thin tobacco packs are not evenly distributed, the preset standard factor is adjusted according to the degree of deviation of the interval from the standard value, and the adjustment result is used as the distribution adjustment factor.

[0125] The tobacco leaf formula library sorting and flake uniform blending device provided in this embodiment of the invention can execute the tobacco leaf formula library sorting and flake uniform blending method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0126] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0127] Example 5

[0128] Figure 5 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0129] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0130] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0131] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the method of sorting tobacco leaf formulas from the library and uniformly blending thin sheets, i.e.:

[0132] Obtain a bill of materials (BOM) containing tobacco leaf bales and sheet bales of various grades; calculate the priority value of each tobacco leaf bale of each grade based on the BOM, and generate an initial outbound sequence of main tobacco leaf bales sorted by priority value; insert sheet bales into the initial outbound sequence of main tobacco leaf bales according to preset constraints to obtain the final outbound sequence; obtain the total material quantity and flow rate parameters of the main line, and calculate the total batch time based on the total material quantity and flow rate parameters of the main line; analyze the sheet distribution characteristics of the sheet bales based on the final outbound sequence, and determine the distribution adjustment factor based on the distribution characteristics of the sheet bales; wherein, the sheet distribution characteristics include the uniformity of the distribution of sheet bales in the sequence, the number of sheet bales continuously outbound, and the average discharge interval between sheet bales; obtain the total sheet weight of the sheet bales from the BOM, and calculate the flow rate setting value of the sheet electronic scale based on the total sheet weight, the total batch time, and the distribution adjustment factor; construct an outbound instruction based on the flow rate setting value of the sheet electronic scale and the final outbound sequence, and execute the tobacco bale outbound operation according to the outbound instruction.

[0133] In some embodiments, the method for sorting and uniformly blending tobacco leaf formulations from the library can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for sorting and uniformly blending tobacco leaf formulations from the library as described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method for sorting and uniformly blending tobacco leaf formulations from the library by any other suitable means (e.g., by means of firmware).

[0134] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0135] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0136] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0137] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0138] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0139] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0140] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0141] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for sorting tobacco leaf formulations from a storage library and uniformly blending the leaves, characterized in that, include: Obtain the bill of materials containing tobacco leaf packs and sheet packs of various grades; Calculate the priority value of each tobacco leaf bale for each grade based on the bill of materials, and generate the initial outbound sequence of the main tobacco leaf bales by sorting them according to the priority values; According to the preset constraints, the thin tobacco bales are inserted into the initial outbound sequence of the main tobacco leaf bales to obtain the final outbound sequence; Obtain the total amount of mainline materials and the mainline flow rate parameters, and calculate the total batch time based on the total amount of mainline materials and the mainline flow rate parameters; The distribution characteristics of thin tobacco packs were analyzed based on the final outbound sequence, and the distribution adjustment factor was determined based on the distribution characteristics of the thin tobacco packs. The thin tobacco pack distribution characteristics include the uniformity of the distribution of thin tobacco packs in the sequence, the number of thin tobacco packs continuously outbound, and the average outbound interval between thin tobacco packs. Obtain the total weight of the sheet cigarette pack from the bill of materials, and calculate the flow rate setting value of the sheet electronic scale based on the total weight of the sheet, the total batch time, and the distribution adjustment factor; The outbound instruction is constructed based on the flow rate setting value of the thin-film electronic scale and the final outbound sequence, and the outbound operation of the cigarette packs is executed according to the outbound instruction.

2. The method according to claim 1, characterized in that, Calculate the priority value of each tobacco bale for each grade based on the bill of materials, and generate the initial outbound sequence of main tobacco bales according to the priority values, including: Based on the total number of tobacco bales in each grade and the serial number of each tobacco bale in that grade, calculate the priority value of each tobacco bale in each grade. Arrange all tobacco leaf bales in ascending order of priority value to obtain the initial outbound sequence of the main tobacco leaf bales.

3. The method according to claim 1, characterized in that, According to preset constraints, the thin tobacco bales are inserted into the initial outbound sequence of the main tobacco leaf bales to obtain the final outbound sequence, including: Based on the total number of sheet tobacco bales and the total number of leaf tobacco bales, calculate the ideal insertion interval of sheet tobacco bales and the corresponding ideal insertion position in the initial outbound sequence of main leaf tobacco bales; For each ideal insertion position, a constraint compliance check is performed. If the ideal insertion position does not meet the constraint conditions, the insertion position is adjusted through a preset search strategy, and the thin tobacco pack is inserted into the compliant position in the initial outbound sequence of the adjusted main tobacco pack, thus obtaining the final outbound sequence.

4. The method according to claim 1, characterized in that, The constraints include: the number of continuously discharged thin tobacco packages is less than or equal to the preset upper limit; the minimum discharge interval between thin tobacco packages is greater than or equal to the preset lower limit of the number of main tobacco leaf packages; and the maximum discharge interval between thin tobacco packages is less than or equal to the preset upper limit of the number of main tobacco leaf packages.

5. The method according to claim 3, characterized in that, Adjust the insertion position using a preset search strategy, including: Starting from the ideal insertion position, the search range is gradually expanded in both directions before and after the initial outbound sequence of the main tobacco leaf bale. Each expanded position is verified to ensure that all constraints are met. The first position that passes the constraint compliance check is determined as the compliant position of the thin tobacco bale.

6. The method according to claim 5, characterized in that, Starting from the ideal insertion position, the search range is gradually expanded in both directions before and after the initial outbound sequence of the main tobacco leaf bale. Each expanded position is verified to ensure that all constraints are met. The first position to pass the constraint compliance check is determined as the compliant position of the sheet tobacco bale, including: Starting from the ideal insertion position of the thin cigarette pack, a search offset incrementing from 0 is set, and the search range is expanded sequentially to the rear and front of the ideal insertion position according to the offset. During the process of expanding the search range behind the ideal insertion position according to the offset, the sum of the ideal insertion position and the search offset is calculated to obtain the candidate position behind. After verifying that the candidate position does not exceed the total length of the initial outbound sequence of the main tobacco leaf bale, the position is verified to meet all constraints according to the preset verification rules. If it does, the candidate position is determined as the compliant position of the thin tobacco bale. If the candidate position behind does not meet all the constraints, the search range is expanded forward of the ideal insertion position according to the offset, and the difference between the ideal insertion position and the search offset is calculated to obtain the candidate position in front. After verifying that the candidate position ahead is not less than 0, the position is verified to meet all constraints by using preset verification rules. If it meets the constraints, the candidate position ahead is determined as the compliant position of the thin tobacco pack. If the candidate position in front does not meet all the constraints, the search offset is incremented and updated, and the operation of expanding the search range to the rear and front of the ideal insertion position in turn according to the offset is returned. The preset verification rules include: verifying whether the interval between the candidate position and the position of the inserted tobacco leaf pack is greater than or equal to the preset lower limit of the number of main tobacco leaf packs; verifying whether the interval between the candidate position and the position of the inserted tobacco leaf pack is less than or equal to the preset upper limit of the number of main tobacco leaf packs; verifying whether the number of tobacco leaf packs continuously discharged after inserting the candidate position is less than or equal to the preset upper limit; and verifying whether the remaining tobacco leaf packs after inserting the candidate position can still meet all the constraints.

7. The method according to claim 1, characterized in that, The distribution adjustment factor is determined based on the distribution characteristics of the thin tobacco packs, including: If the thin cigarette packs are evenly distributed and there is no continuous outbound shipment of thin cigarette packs, then the distribution adjustment factor will be set to the preset standard factor. If the distribution of thin tobacco packs is uniform and there is continuous discharge of thin tobacco packs, then the preset standard factor is reduced according to the continuous discharge quantity, and the reduction result is used as the distribution adjustment factor. If the distribution of the thin tobacco packs is uneven, the preset standard factor is adjusted according to the degree of deviation of the interval from the standard value, and the adjustment result is used as the distribution adjustment factor.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the tobacco leaf formula library sorting and uniform blending method according to any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the method for sorting tobacco leaf formulations from the library and uniformly blending thin flakes as described in any one of claims 1-7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method for sorting tobacco leaf formulations from the library and uniformly blending thin flakes according to any one of claims 1-7.