Method for scheduling production tasks and related devices

By determining the set of available production lines and optimizing the objective function to generate the optimal scheduling scheme, the problem of low logistics efficiency caused by discrete production line layout is solved, achieving a balance between maximizing capacity and minimizing cost, and improving production efficiency and resource utilization.

CN123140504APending Publication Date: 2026-11-20EVE ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611317801.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The existing production line layout is discrete, resulting in long physical distances between workstations, intersecting and detours in logistics routes, a large amount of ineffective movement and waiting for transfers, a high proportion of non-value-added handling and transshipment operations, low overall logistics efficiency, and scheduling that relies on experience with low efficiency.

Method used

By determining the set of available production lines, current production task data, and production data, constraints and optimization objective functions are established, decision variables are solved, and the optimal scheduling scheme is generated to optimize the allocation of production tasks and resource utilization.

Benefits of technology

It achieves a balance between maximizing production capacity and minimizing costs, improves production efficiency, reduces idle human resources, enhances the matching of worker skills with workstations, and reduces the workload of manual allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140504A_ABST
    Figure CN123140504A_ABST
Patent Text Reader

Abstract

The application provides a production task scheduling method and related device, determines a set of available lines, current production task data and corresponding production data, the current production task data is used to indicate the required quantity and the demand time limit of each product model, and the production data is used to indicate the production capacity and production resource demand of each product model in each line; constraint conditions are determined according to the set of available lines, the current production task data and the production data; decision variables are determined, the decision variables are used to indicate the allocation relationship between production tasks and lines, yield and line activation state; the decision variables are solved according to the constraint conditions and an optimization objective function, so that a first scheduling scheme is obtained. The output scheduling scheme can realize the balance of maximum production capacity and minimum cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of production scheduling technology, and in particular to a method and apparatus for scheduling production tasks. Background Technology

[0002] Most current production lines employ a discrete layout, with workstations scattered according to function, failing to form a continuous workflow. This layout results in long physical distances between workstations and convoluted, intersecting logistics routes. Products require multiple transfers between processes, involving long transport distances, significant inefficient movement and waiting times, a high proportion of non-value-added handling and transfer operations, overall low logistics efficiency, and chaotic and poorly managed on-site workflows. Scheduling relies on experience, leading to low efficiency and poor results. Summary of the Invention

[0003] In view of this, this application provides a production task scheduling method and related apparatus, which can determine the scheduling scheme through reasonable constraints and optimization objectives and further optimize it to obtain the final scheduling scheme, thereby achieving a balance between maximizing capacity and minimizing cost.

[0004] In a first aspect, embodiments of this application provide a method for scheduling production tasks, the method comprising: The set of available production lines, current production task data, and corresponding production data are determined. The current production task data is used to indicate the required quantity and time limit for each product model, and the production data is used to indicate the capacity and production resource requirements of each product model on each production line. Constraints are determined based on the set of available production lines, the current production task data, and the production data. Determine decision variables, which are used to indicate the allocation relationship between production tasks and production lines, output, and production line activation status; The decision variables are solved based on the constraints and the optimization objective function to obtain the first scheduling scheme.

[0005] In one possible embodiment, determining the set of available production lines, current production task data, and corresponding production data includes: Read the current production task table to determine the current production task data, which includes production task identifier, product model data, required quantity data, and required time limit data; Determine the set of available production lines, which includes multiple types of production lines, including at least one of a first type, a second type, and a third type. The first capacity corresponding to the first type, the second capacity corresponding to the second type, and the third capacity corresponding to the third type are arranged in ascending order of numerical value. The first production resource demand corresponding to the first type, the second production resource demand corresponding to the second type, and the third production resource demand corresponding to the third type are arranged in ascending order of numerical value. Obtain a preset product line configuration table to determine the production data for each product model. The production data includes the theoretical daily production capacity, worker demand, and equipment demand data for each product model on each line.

[0006] In one possible embodiment, the constraints include at least one of output constraints, capacity constraints, line mutual exclusion constraints, product size constraints, and product isolation constraints; the step of determining the constraints based on the available line set, the current production task data, and the production data includes: The production constraint is determined based on the demand quantity data. The capacity constraint is determined based on the theoretical daily production capacity data. The mutual exclusion constraint of the line body is determined based on the set of available line bodies. The mutual exclusion constraint of the line body is used to indicate that line bodies that have a physical space sharing relationship cannot be used at the same time. The product size constraint is determined according to the product quantity classification rules, and the product size constraint is used to limit the production time corresponding to different product sizes. The product isolation constraint is determined according to the product family division rules, and the product isolation constraint is used to limit the production interval of the same product family.

[0007] In one possible embodiment, the method further includes: The product quantity classification rules and product family division rules are determined based on historical production task data. The product quantity classification rules are used to classify product scale categories according to the production quantity of the products, and the product family division rules are used to classify product families according to the commonalities of the product production processes.

[0008] In one possible embodiment, determining the decision variables includes: Determine the production quantity variable, which represents the production quantity of each production line for each production task under each preset time period; Determine the line activation variable, which indicates whether the line is enabled in each preset time period; Determine production indication variables, which indicate whether any production task is produced on any production line during each preset time period.

[0009] In one possible embodiment, solving for the decision variables based on the constraints and the objective function to obtain the first scheduling scheme includes: The optimization objective function is determined, which includes at least one of the following: production time optimization function, production delay optimization function, production changeover frequency function, and utilization rate penalty function. The weights corresponding to the production time optimization function, the production delay optimization function, the production changeover frequency function, and the utilization rate penalty function are configured according to preset business priorities. Under the constraints, the decision variables that best fit the optimization objective function are solved to obtain the first scheduling scheme.

[0010] In one possible embodiment, after solving for the decision variables based on the constraints and the optimization objective function to obtain the first scheduling scheme, the method further includes: The line utilization rate corresponding to the first scheduling scheme is determined based on the theoretical daily production capacity data. The production line to be transferred is determined based on the production line utilization rate. The production line utilization rate of the production line to be transferred is lower than a preset utilization rate threshold, and the remaining capacity of the candidate production line is higher than a preset capacity threshold. The target transfer line is determined according to the preset transfer conditions, which include production task compatibility conditions, remaining capacity conditions and activation conditions. The production task compatibility conditions indicate that the line has the function of processing the production tasks of the line to be transferred. The remaining capacity conditions indicate that the remaining capacity is higher than the preset capacity threshold. The activation conditions indicate that the line is in an active state during the last production period of the first scheduling scheme. The production tasks of the line to be transferred are transferred to the target transfer line for processing to obtain the second scheduling scheme.

[0011] In one possible embodiment, after performing post-processing based on the line utilization rate and preset transfer conditions under the first scheduling scheme to obtain the second scheduling scheme, the method further includes: Determine the workstation requirement data corresponding to the second scheduling scheme; Worker allocation data is determined based on the matching results between worker skill data and workstation demand data; The daily statistical data of the second scheduling scheme are determined according to the preset display requirements, and the daily statistical data meets the preset display requirements; The worker allocation data, the daily statistics, and the second scheduling scheme are identified as target display data and displayed.

[0012] In one possible embodiment, determining the set of available line bodies includes: Historical production task data is obtained to determine the historical production scale percentage data and historical production volume data of historical production tasks. The production scale percentage data includes the percentage of production tasks of each production scale. The line type percentage data is determined based on the historical production scale percentage data, and the line quantity data is determined based on the historical production volume data. The line type percentage data is used to indicate the spatial percentage distribution of the first type, the second type, and the third type. If the production data corresponding to the quantity of production lines meets the required quantity data, then the set of available production lines is determined based on the quantity of production lines and the proportion of production line types.

[0013] Secondly, embodiments of this application provide a production task scheduling device, the device comprising: The first determining unit is used to determine the set of available production lines, current production task data, and corresponding production data. The current production task data is used to indicate the required quantity and time limit for each product model, and the production data is used to indicate the capacity and production resource requirements of each product model on each production line. A constraint unit is used to determine constraint conditions based on the set of available production lines, the current production task data, and the production data. The variable unit is used to determine the decision variables, which are used to indicate the allocation relationship between production tasks and production lines, output, and production line activation status. The first scheduling unit is used to solve the decision variables according to the constraints and the optimization objective function to obtain the first scheduling scheme.

[0014] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing steps in any method of the first aspect of this application.

[0015] Fourthly, embodiments of this application provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in any method of the first aspect of embodiments of this application.

[0016] Fifthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any method of the first aspect of this application. The computer program product may be a software installation package.

[0017] As can be seen, through the above-described production task scheduling method and related apparatus, firstly, the set of available production lines, current production task data, and corresponding production data are determined. The current production task data indicates the required quantity and time limit for each product model, while the production data indicates the capacity and production resource requirements of each product model on each production line. Constraints are then determined based on the set of available production lines, the current production task data, and the production data. Decision variables are then determined, indicating the allocation relationship between production tasks and production lines, output, and production line activation status. Finally, the decision variables are solved based on the constraints and the optimization objective function to obtain a first scheduling scheme. Implementing this application allows for automatic loading and parsing of data, construction of multi-dimensional constraints and optimization, and the output scheduling scheme can achieve a balance between maximizing capacity and minimizing cost. Attached Figure Description

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

[0019] Figure 1 A system architecture diagram of a production task scheduling method provided in an embodiment of this application; Figure 2 A flowchart illustrating a production task scheduling method provided in an embodiment of this application; Figure 3 This is a schematic diagram illustrating an example of a usable set of lines provided in an embodiment of this application; Figure 4 A flowchart illustrating another production task scheduling method provided in this application embodiment; Figure 5 This application provides a schematic diagram of a target display data display interface. Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 7 A functional unit block diagram of a production task scheduling device provided in an embodiment of this application; Figure 8A functional unit block diagram of another production task scheduling device provided in an embodiment of this application. Detailed Implementation

[0020] Please see Figure 1 , Figure 1 The system architecture diagram of a production task scheduling method provided in this application embodiment includes a data loading module 110, a basic configuration module 120, a pre-check module 130, and a solution module 140.

[0021] The core of the data loading module 110 can be composed of a table data loading DataLoader class, which is used to read production tasks, product-line configurations, and worker skill information from files. After date parsing, data verification, and format conversion, the discrete data is converted into standardized program-recognizable data. It calculates auxiliary parameters such as the delivery days and scale classification of production tasks. The data loading module 110 can provide data input support for the basic configuration module 120, the pre-check module 130, and the solver module 140.

[0022] The basic configuration module 120 can be used to initialize production lines and define mutual exclusion rules, clarifying the line name, type, group, and mutual exclusion relationship, providing basic support for subsequent constraint construction. The configuration and rules can be adjusted according to the actual production line layout. In this embodiment, a production line refers to the basic scheduling resource unit for organizing production tasks. It can correspond to a physical production line or a logical virtual production line divided from a physical production line based on differences in resources such as personnel and working hours. Multiple production lines can share the same physical space and their parallel operation relationship is constrained by mutual exclusion rules.

[0023] Among them, the pre-inspection module 130 can be integrated into the ProductionSchedulerCP class, traversing all production tasks, calculating the theoretical fastest completion days under the optimal capacity, comparing the required time limits of production tasks to identify high-risk production tasks with a high probability of delay, verifying the matching of product-line configuration, outputting early warning information, and improving scheduling efficiency and feasibility.

[0024] The solution module 140 can be equipped with a solver, which includes three sub-modules: decision variable definition, constraint construction, and optimization objective function design. The solver can be designed based on the CP-SAT solver, which transforms business rules into mathematical constraints, constructs a multi-dimensional hierarchical weighted optimization objective function, and solves for the globally optimal or feasible scheduling solution.

[0025] In one possible embodiment, an intelligent allocation module 150 may also be included, which can accurately match the skill requirements of the workstation with the skill proficiency of the workers, prioritize the allocation according to the skill complexity of the workstation, give priority to workers with less skill coverage, ensure that each person has a single workstation per day, and can mark the allocation status.

[0026] In one possible embodiment, a visualization module 160 may also be included, consisting of a result extraction submodule and an Exporter class, which extracts and organizes key scheduling information, generates multi-dimensional visualization reports, marks abnormal states, and facilitates management personnel to view and execute the schedule.

[0027] As can be seen, the system architecture of the above-mentioned production task scheduling method can realize automated data parsing and processing, improve data processing efficiency, effectively avoid problems such as line conflicts, personnel overload, capacity waste or order delays, effectively improve the matching degree between worker skills and workstations, reduce idle human resources, reduce the workload of manual allocation, improve worker scheduling efficiency, facilitate production management personnel to quickly view, implement and troubleshoot anomalies, and significantly improve the feasibility and optimizability of scheduling solutions.

[0028] Please see Figure 2 , Figure 2 A flowchart illustrating a production task scheduling method provided in this application embodiment specifically includes the following steps: Step 201: Determine the set of available production lines, the current production task data, and the corresponding production data.

[0029] The current production task data is used to indicate the required quantity and time limit for each product model, and the production data is used to indicate the capacity and production resource requirements of each product model on each production line.

[0030] Specifically, the current production task table can be read to determine the current production task data, which includes a production task identifier, product model data, required quantity data, and required delivery time data. The production task identifier can be a number, the product model data can include each product signal, the required quantity data can include the total required quantity and the required quantity for each product model, and the required delivery time data can include the delivery date for each product signal.

[0031] The process involves determining a set of available production lines, which includes multiple types of production lines, including at least one of a first type, a second type, and a third type. The first capacity corresponding to the first type, the second capacity corresponding to the second type, and the third capacity corresponding to the third type are arranged in ascending order of numerical value. Similarly, the first production resource demand corresponding to the first type, the second production resource demand corresponding to the second type, and the third production resource demand corresponding to the third type are also arranged in ascending order of numerical value. The first type can be understood as a short line, the second type as a medium line, and the third type as a long line. Short lines require fewer personnel, fewer production equipment, and have lower capacity, making them suitable for producing products with small production volumes and allowing for quick product model switching, reducing changeover losses. Long lines require more personnel, more production equipment, and have higher capacity, making them suitable for producing products with large production volumes and meeting shipping demands. Medium lines fall between short and long lines and are generally composed of multiple short lines combined.

[0032] To facilitate understanding, the following will be combined with Figure 3 To explain, Figure 3 This is an example schematic diagram of a set of usable lines provided in an embodiment of this application, including unit A1, unit A2, unit B1, unit B2, and unit B3. Unit A1, unit B1, and unit B2 are lines of the first type, i.e., short lines; unit A2, unit B2+B3, unit B3, and unit B1+B2 are lines of the second type, i.e. medium lines; and unit A1+A2 and unit B1+B2+B3 are lines of the third type, i.e. long lines.

[0033] For example, a short-term production line requires 1 person and is suitable for production capacities of less than 1,000 units; a long-term production line requires more than 3 people and is suitable for production capacities of more than 10,000 units and a long production duration; a medium-term production line requires more than 1 person and less than or equal to 3 people and is suitable for production capacities of more than 1,000 and less than 10,000 units. No specific restrictions are made here.

[0034] It should be noted that the aforementioned short, medium, and long lines rely on two actual physical production lines, which can be, for example, two logistics tracks with materials transferred in the form of pallets. This reduces waiting between workstations and the accumulation of work-in-process, enabling continuous production. Products only flow between workstations in units, and there are no long-distance transport actions across units.

[0035] In one possible embodiment, short-line, medium-line, and long-line production can be switched between each other according to actual needs, thereby improving production flexibility.

[0036] In one possible embodiment, historical production task data can be acquired to determine historical production scale percentage data and historical production volume data for historical production tasks. The production scale percentage data includes the proportion of production tasks for each production scale. Based on the historical production scale percentage data, line type percentage data is determined, and based on the historical production volume data, line quantity data is determined. The line type percentage data is used to indicate the spatial proportion distribution of the first type, the second type, and the third type. If the line output data corresponding to the line quantity data meets the demand quantity data, then the available line set is determined based on the line quantity data and the line type percentage data.

[0037] Specifically, historical production scale proportions can be correlated with production line type proportions. For example, large-scale production corresponds to long lines, medium-scale to medium lines, and small-scale to short lines. The classification of production scales can be determined based on preset product quantity classification rules, which will not be elaborated here. It can be understood that the proportion of large-scale production is positively correlated with the spatial proportion of long lines, and similarly, the proportion of small-scale production is positively correlated with the spatial proportion of short lines. That is, the higher the proportion of large-scale production, the higher the spatial proportion of long lines, and vice versa. Thus, by combining spatial proportions with historical production volume data, we can obtain production line quantity data. If the production capacity corresponding to the number of production lines can meet the historical production volume data, then a suitable production line plan can be obtained based on the number of production lines and their spatial proportions. Finally, we can combine this with the current production task demand data to see if the current production line plan's corresponding capacity can meet the demand. If it can, then the production line plan is considered reasonable. If not, the production line can be replanned. Therefore, reasonable production line planning can improve production efficiency and reduce production costs.

[0038] Specifically, a preset product line configuration table is obtained to determine the production data for each product model. The production data includes the theoretical daily production capacity, worker demand data, and equipment demand data for each product model on each line. The theoretical daily production capacity data can be the maximum daily production capacity, calculated based on the theoretical hourly production capacity. The worker demand data can be the required number of workers and their skills, and the equipment demand data can be the required number of production equipment.

[0039] For example, the system reads the product line configuration table to obtain the hourly production capacity U(p,l) of each product p on each line l. Combining this with the daily working hours H, the system calculates the maximum daily production capacity of each product on each line. The calculation formula is as follows: Q_max(p,l) = U(p,l)×H It is evident that by determining the set of available production lines, the current production task data, and the corresponding production data, data support can be provided for establishing constraints in the future.

[0040] Step 202: Determine the constraints based on the available line set, the current production task data, and the production data.

[0041] The constraints include at least one of the following: production constraints, capacity constraints, line mutual exclusion constraints, product scale constraints, and product isolation constraints.

[0042] Specifically, the production constraint is determined based on the demand quantity data, and the production constraint can restrict the production quantity to be equal to the demand quantity.

[0043] Specifically, the capacity constraint is determined based on the theoretical daily production capacity data, and the capacity constraint can limit the daily output from exceeding the theoretical daily production capacity.

[0044] Specifically, the mutual exclusion constraint of the lines is determined based on the set of available lines. This mutual exclusion constraint indicates that lines that share a physical space cannot be used simultaneously. For example... Figure 3 The long line A1+A2 and the medium line A2 cannot be used at the same time.

[0045] The product scale constraint is determined based on the product quantity classification rules. This constraint limits the production time corresponding to different product scales. For example, it can limit the production time of small-scale products to no more than 2 days. If small-batch tasks are broken down into sporadic production over multiple days, it will lead to frequent start-ups and shutdowns of the production line, increased changeovers, and higher management costs. Forcing them to be completed in a concentrated period of time can improve efficiency.

[0046] The product isolation constraint is determined according to the product family classification rules. This constraint is used to limit the production interval of the same product family. For example, it can restrict the continuous production of similar products. This is because products belonging to the same family have similar processes but different models. If they are scheduled on the same production line for two consecutive days, it is easy to cause quality accidents such as incorrect materials or incorrect processes due to confusion of materials or parameters. Separating the production capacity effectively avoids this risk.

[0047] In one possible embodiment, the equipment quantity constraint can also be determined based on production resource requirements. For example, the total daily usage of welding machines can be limited based on welding machine demand data.

[0048] It should be noted that the product quantity classification rules and product family division rules can be determined based on historical production task data. The product quantity classification rules are used to classify scale categories based on the production quantity of products, and the product family division rules are used to classify product families based on the commonalities of product production processes. Specifically, product quantity proportion analysis can be performed to classify scale categories, and product process analysis can be performed to group products with significant process commonalities into a product family. Different product signals within the same product family can also be produced on the same production line without changing equipment or workers.

[0049] As can be seen, by determining the constraints based on the available line set, the current production task data, and the production data, a comprehensive multi-dimensional constraint system can be constructed, thereby improving the reliability of subsequent scheduling.

[0050] Step 203: Determine the decision variables.

[0051] The decision variables are used to indicate the allocation relationship between production tasks and production lines, output, and production line activation status.

[0052] Specifically, the following variables can be defined: a production quantity variable, representing the production quantity of each production line for each production task within each preset time period; a line activation variable, indicating whether the line is activated within each preset time period; and a production indication variable, indicating whether any production task is produced on any production line within each preset time period. In particular, the production quantity variable represents the daily production quantity per production task per line; the line activation variable indicates whether the line is activated on a given day; and the production indication variable indicates whether a specific production task is produced on a specific production line on a given day.

[0053] For example, the production quantity variable x(d,l,o) represents the quantity produced on line l for order o on day d, and its value is a non-negative integer. The line activation variable A(d,l) is a Boolean variable, which takes the value 1 when line l has a production task on day d. The production indicator variable P(d,l,o) is a Boolean variable, which takes the value 1 when x(d,l,o)>0.

[0054] It is evident that by defining decision variables, the reliability of subsequent scheduling can be improved.

[0055] Step 204: Solve for the decision variables based on the constraints and the optimization objective function to obtain the first scheduling scheme.

[0056] The optimization objective function can be determined, which includes at least one of the following: production duration optimization function, production delay optimization function, production changeover frequency function, and utilization rate penalty function. The weights corresponding to the production duration optimization function, the production delay optimization function, the production changeover frequency function, and the utilization rate penalty function are configured according to preset business priorities. Under the constraints, the decision variables that best fit the optimization objective function are solved to obtain the first scheduling scheme.

[0057] Specifically, the weighted optimization objective function is determined as min Z = α1×f1 + α2×f2 + α3×f3 + α4×f4, and the meanings of each term are as follows: f1 represents the total number of production days. The final production day is calculated using the line activation variable A(d,l), expressed as f1 = max{d :∑l A(d,l)>0}.

[0058] f2 represents the total number of delay days. Using the available days D(o), the difference between the actual completion date and the available days is calculated for each production task. The expression is f2 = ∑omax{0, d_finish(o)-D(o)}, where d_finish(o) is the last production day of production task o.

[0059] f3 represents the number of product changes. The production indicator variable P(d,l,o) is used to count the number of different products produced on the same production line on two consecutive days. The expression is f3 =∑(d,l) |{o:P(d,l,o)=1}∩{o:P(d+1,l,o)=0}|.

[0060] f4 is the utilization penalty, which uses the theoretical daily production capacity data Q_max(p,l) to evaluate the capacity utilization efficiency and penalizes cases where the utilization rate is lower than the threshold θ.

[0061] The weighting coefficients α1 to α4 are set according to the preset business priorities, with the delivery date guarantee weight α2 being the highest. The CP-SAT solver can be called to solve the problem, with a maximum solution time of 300 seconds. It returns the optimal values ​​of each decision variable x×(d,l,o), A×(d,l), and P×(d,l,o), generating the first scheduling scheme, which is the set of all production arrangements where x×(d,l,o)>0.

[0062] As can be seen, by solving the decision variables based on the constraints and the optimization objective function to obtain the first scheduling scheme, it is possible to achieve coordinated management and control of various constraints such as production line, personnel, and capacity. It can efficiently balance the three core objectives of production task delivery time, changeover cost and resource utilization, and effectively avoid problems such as production line conflict, personnel overload, capacity waste or production task delay.

[0063] As can be seen, the above-described production task scheduling method first determines the set of available production lines, current production task data, and corresponding production data. The current production task data indicates the required quantity and timeframe for each product model, while the production data indicates the capacity and resource requirements for each product model on each production line. Constraints are then determined based on the set of available production lines, the current production task data, and the production data. Decision variables are then determined, indicating the allocation relationship between production tasks and production lines, output, and production line activation status. Finally, the decision variables are solved based on the constraints and the optimization objective function to obtain a first scheduling scheme. Implementing this application allows for automatic loading and parsing of data, construction of multi-dimensional constraints and optimization, and the output scheduling scheme can achieve a balance between maximizing capacity and minimizing cost.

[0064] The following is combined Figure 4 Another method for scheduling production tasks in the embodiments of this application will be described. Figure 4 A flowchart illustrating another production task scheduling method provided in this application embodiment specifically includes the following steps: Step 401: Determine the set of available production lines, the current production task data, and the corresponding production data.

[0065] Step 402: Determine the constraints based on the available line set, the current production task data, and the production data.

[0066] Step 403: Determine the decision variables.

[0067] Step 404: Solve for the decision variables based on the constraints and the optimization objective function to obtain the first scheduling scheme.

[0068] Step 405: Perform post-processing based on the line utilization rate and preset transfer conditions under the first scheduling scheme to obtain the second scheduling scheme.

[0069] Specifically, the line utilization rate corresponding to the first scheduling scheme can be determined based on the theoretical daily production capacity data; the line to be transferred can be determined based on the line utilization rate, wherein the line utilization rate of the line to be transferred is lower than a preset utilization rate threshold, and the remaining capacity of the candidate transfer line is higher than a preset capacity threshold; the target transfer line can be determined based on preset transfer conditions, wherein the preset transfer conditions include production task compatibility conditions, remaining capacity conditions, and activation conditions, wherein the production task compatibility conditions indicate that the line to be transferred has the function of processing the production tasks of the line to be transferred, the remaining capacity conditions indicate that the remaining capacity is higher than the preset capacity threshold, and the activation conditions indicate that the line is in an active state during the last production period of the first scheduling scheme; the production tasks of the line to be transferred are transferred to the target transfer line for processing to obtain the second scheduling scheme.

[0070] For example, the last production day d_last = max{d:∑(l,o) x×(d,l,o)>0} can be identified from the first scheduling plan. For each active production line l on that day, the line utilization rate is calculated using the theoretical daily capacity data Q_max(p,l) of the step, with the formula Util(l) =∑ox×(d_last,l,o) / Q_max(p(o),l).

[0071] For production lines with a utilization rate Util(l) < 50%, attempt to transfer their tasks to other production lines l'. Transfer requires three conditions: l' is activated on that day (A×(d_last,l') = 1); l' has the configuration to produce the product (U(p(o),l') > 0 exists in the product's production line configuration table); and l' has sufficient remaining capacity (Q_max(p(o),l') - ∑o' x×(d_last,l',o') ≥ x×(d_last,l,o). After a successful transfer, update the schedule and clear the original production line tasks. The system repeats this process until further optimization is impossible. Generate an optimized second scheduling plan.

[0072] Step 406: Determine the workstation demand data corresponding to the second scheduling scheme.

[0073] The workstation demand data can include the demand for the number of workstations and the demand for the skills required for each workstation.

[0074] Step 407: Determine worker allocation data based on the matching results of worker skill data and workstation demand data.

[0075] Among these, the system can achieve precise matching between workstations and workers based on skill proficiency threshold matching and workstation skill complexity ranking principles. It can prioritize the reuse of workers with fewer skill coverage, avoid the waste of multi-skilled workers, effectively improve the matching degree between worker skills and workstations, reduce the waste of human resources, reduce the workload of manual allocation, and improve the efficiency of worker scheduling.

[0076] Step 408: Determine the daily statistical data of the second scheduling scheme based on the preset display requirements.

[0077] The daily statistical data meets the preset display requirements.

[0078] For example, for each production schedule (d,l,o,x×), the required man-hours are calculated using the theoretical hourly capacity U(p,l) as T = x× / U(p(o),l), and the required man-hours are calculated using the production man-hour requirement W(p,l) as ManHour = T×W(p(o),l). The daily man-hour requirement is summarized as DailyManHour(d) = ∑(l,o) ManHour(d,l,o). The daily spot welding machine usage is summarized using the spot welding machine requirement M(p,l) as DailyMachine(d) = ∑(l,o) M(p(o),l)×P×(d,l,o). Delayed production tasks are identified using the available days D(o), and the on-time completion rate OnTime = |{o:d_finish(o)≤D(o)}| / |O| is calculated. The average line utilization rate AvgUtil = ∑(d,l)Util(d,l) / ∑(d,l)A×(d,l) is calculated using the theoretical daily capacity data.

[0079] Step 409: The worker allocation data, the daily statistical data, and the second scheduling scheme are determined as target display data and displayed.

[0080] Scheduling plans and statistical indicators can be written into a spreadsheet file, including daily production plans, order completion summaries, resource usage statistics, etc., for production management personnel to review and implement.

[0081] For example, please refer to Figure 5 , Figure 5 This is a schematic diagram of a target data display interface provided in an embodiment of this application. It clearly presents core information such as scheduling details, order progress, and worker allocation. Simultaneously, it accurately marks abnormal states such as delays and low utilization rates, facilitating quick viewing, implementation, and anomaly troubleshooting for production managers, significantly improving the feasibility and optimizability of the scheduling plan. Further details are omitted here.

[0082] As can be seen, through the above-mentioned production task scheduling method and related apparatus, firstly, the set of available production lines, current production task data, and corresponding production data are determined. The current production task data indicates the required quantity and time limit for each product model, and the production data indicates the capacity and production resource requirements of each product model on each production line. Constraints are then determined based on the set of available production lines, the current production task data, and the production data. Decision variables are then determined, indicating the allocation relationship between production tasks and production lines, output, and production line activation status. The decision variables are solved based on the constraints and the optimization objective function to obtain a first scheduling scheme. Post-processing is then performed based on the production line utilization rate and preset transfer conditions under the first scheduling scheme to obtain a second scheduling scheme. Implementing this application allows for automatic loading and parsing of data, construction of multi-dimensional constraints and optimization, and the output scheduling scheme can achieve a balance between maximizing capacity and minimizing cost.

[0083] For steps not detailed above, please refer to Figure 2 The steps described in the instructions will not be repeated here.

[0084] The following is combined Figure 6 An electronic device according to an embodiment of this application will be described. Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. The electronic device 600 includes a processor 601, a memory 602, and a communication bus 603 for connecting the processor 601 and the memory 602.

[0085] In some possible implementations, memory 602 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM), which is used to store program code executed by electronic device 600 and data transmitted therefrom.

[0086] In some possible implementations, the electronic device 600 also includes a communication interface for receiving and sending data.

[0087] In some possible implementations, processor 601 may be one or more central processing units (CPUs). If processor 601 is a central processing unit (CPU), the central processing unit (CPU) may be a single-core central processing unit (CPU) or a multi-core central processing unit (CPU).

[0088] In some possible implementations, processor 601 may be a baseband chip, a chip, a central processing unit (CPU), a general-purpose processor, a DSP, an ASIC, an FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.

[0089] In specific implementation, the processor 601 in the electronic device 600 executes the program instructions 621 stored in the memory 602 to perform the following operations: The set of available production lines, current production task data, and corresponding production data are determined. The current production task data is used to indicate the required quantity and time limit for each product model, and the production data is used to indicate the capacity and production resource requirements of each product model on each production line. Constraints are determined based on the set of available production lines, the current production task data, and the production data. Determine decision variables, which are used to indicate the allocation relationship between production tasks and production lines, output, and production line activation status; The decision variables are solved based on the constraints and the optimization objective function to obtain the first scheduling scheme.

[0090] In one possible embodiment, determining the set of available production lines, current production task data, and corresponding production data includes: Read the current production task table to determine the current production task data, which includes production task identifier, product model data, required quantity data, and required time limit data; Determine the set of available production lines, which includes multiple types of production lines, including at least one of a first type, a second type, and a third type. The first capacity corresponding to the first type, the second capacity corresponding to the second type, and the third capacity corresponding to the third type are arranged in ascending order of numerical value. The first production resource demand corresponding to the first type, the second production resource demand corresponding to the second type, and the third production resource demand corresponding to the third type are arranged in ascending order of numerical value. Obtain a preset product line configuration table to determine the production data for each product model. The production data includes the theoretical daily production capacity, worker demand, and equipment demand data for each product model on each line.

[0091] In one possible embodiment, the constraints include at least one of output constraints, capacity constraints, line mutual exclusion constraints, product size constraints, and product isolation constraints; the step of determining the constraints based on the available line set, the current production task data, and the production data includes: The production constraint is determined based on the demand quantity data. The capacity constraint is determined based on the theoretical daily production capacity data. The mutual exclusion constraint of the line body is determined based on the set of available line bodies. The mutual exclusion constraint of the line body is used to indicate that line bodies that have a physical space sharing relationship cannot be used at the same time. The product size constraint is determined according to the product quantity classification rules, and the product size constraint is used to limit the production time corresponding to different product sizes. The product isolation constraint is determined according to the product family division rules, and the product isolation constraint is used to limit the production interval of the same product family.

[0092] In one possible embodiment, the method further includes: The product quantity classification rules and product family division rules are determined based on historical production task data. The product quantity classification rules are used to classify product scale categories according to the production quantity of the products, and the product family division rules are used to classify product families according to the commonalities of the product production processes.

[0093] In one possible embodiment, determining the decision variables includes: Determine the production quantity variable, which represents the production quantity of each production line for each production task under each preset time period; Determine the line activation variable, which indicates whether the line is enabled in each preset time period; Determine production indication variables, which indicate whether any production task is produced on any production line during each preset time period.

[0094] In one possible embodiment, solving for the decision variables based on the constraints and the objective function to obtain the first scheduling scheme includes: The optimization objective function is determined, which includes at least one of the following: production time optimization function, production delay optimization function, production changeover frequency function, and utilization rate penalty function. The weights corresponding to the production time optimization function, the production delay optimization function, the production changeover frequency function, and the utilization rate penalty function are configured according to preset business priorities. Under the constraints, the decision variables that best fit the optimization objective function are solved to obtain the first scheduling scheme.

[0095] In one possible embodiment, after solving for the decision variables based on the constraints and the optimization objective function to obtain the first scheduling scheme, the method further includes: The line utilization rate corresponding to the first scheduling scheme is determined based on the theoretical daily production capacity data. The production line to be transferred is determined based on the production line utilization rate. The production line utilization rate of the production line to be transferred is lower than a preset utilization rate threshold, and the remaining capacity of the candidate production line is higher than a preset capacity threshold. The target transfer line is determined according to the preset transfer conditions, which include production task compatibility conditions, remaining capacity conditions and activation conditions. The production task compatibility conditions indicate that the line has the function of processing the production tasks of the line to be transferred. The remaining capacity conditions indicate that the remaining capacity is higher than the preset capacity threshold. The activation conditions indicate that the line is in an active state during the last production period of the first scheduling scheme. The production tasks of the line to be transferred are transferred to the target transfer line for processing to obtain the second scheduling scheme.

[0096] In one possible embodiment, after performing post-processing based on the line utilization rate and preset transfer conditions under the first scheduling scheme to obtain the second scheduling scheme, the method further includes: Determine the workstation requirement data corresponding to the second scheduling scheme; Worker allocation data is determined based on the matching results between worker skill data and workstation demand data; The daily statistical data of the second scheduling scheme are determined according to the preset display requirements, and the daily statistical data meets the preset display requirements; The worker allocation data, the daily statistics, and the second scheduling scheme are identified as target display data and displayed.

[0097] In one possible embodiment, determining the set of available line bodies includes: Historical production task data is obtained to determine the historical production scale percentage data and historical production volume data of historical production tasks. The production scale percentage data includes the percentage of production tasks of each production scale. The line type percentage data is determined based on the historical production scale percentage data, and the line quantity data is determined based on the historical production volume data. The line type percentage data is used to indicate the spatial percentage distribution of the first type, the second type, and the third type. If the production data corresponding to the quantity of production lines meets the required quantity data, then the set of available production lines is determined based on the quantity of production lines and the proportion of production line types.

[0098] As can be seen, through the above-mentioned production task scheduling method and related apparatus, firstly, the set of available production lines, current production task data, and corresponding production data are determined. The current production task data indicates the required quantity and time limit for each product model, and the production data indicates the capacity and production resource requirements of each product model on each production line. Constraints are then determined based on the set of available production lines, the current production task data, and the production data. Decision variables are then determined, indicating the allocation relationship between production tasks and production lines, output, and production line activation status. The decision variables are solved based on the constraints and the optimization objective function to obtain a first scheduling scheme. Post-processing is then performed based on the production line utilization rate and preset transfer conditions under the first scheduling scheme to obtain a second scheduling scheme. Implementing this application allows for automatic loading and parsing of data, construction of multi-dimensional constraints and optimization, and the output scheduling scheme can achieve a balance between maximizing capacity and minimizing cost.

[0099] It should be noted that the specific implementation of each operation can be described in the corresponding description of the method embodiments shown above. The electronic device 600 can be used to execute the method embodiments of this application, and will not be described again here.

[0100] The above primarily describes the solutions of the embodiments of this application from the perspective of the method execution process. It is understood that, in order to achieve the above functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments provided herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0101] This application embodiment can divide the electronic device into functional units according to the above method example. For example, each function can be divided into a separate functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0102] When dividing each function into modules according to its corresponding function. Figure 7 A functional unit block diagram of a production task scheduling device 700 provided in this application embodiment, applied to electronic equipment, the device includes: The first determining unit 710 is used to determine the set of available production lines, current production task data and corresponding production data. The current production task data is used to indicate the required quantity and time limit for each product model. The production data is used to indicate the capacity and production resource requirements of each product model on each production line. Constraint unit 720 is used to determine constraint conditions based on the available line set, the current production task data, and the production data; Variable unit 730 is used to determine decision variables, which are used to indicate the allocation relationship between production tasks and production lines, output, and production line activation status. The first scheduling unit 740 is used to solve the decision variables according to the constraints and the optimization objective function to obtain the first scheduling scheme.

[0103] As can be seen, through the above-described production task scheduling method and related apparatus, firstly, the set of available production lines, current production task data, and corresponding production data are determined. The current production task data indicates the required quantity and time limit for each product model, while the production data indicates the capacity and production resource requirements of each product model on each production line. Constraints are then determined based on the set of available production lines, the current production task data, and the production data. Decision variables are then determined, indicating the allocation relationship between production tasks and production lines, output, and production line activation status. Finally, the decision variables are solved based on the constraints and the optimization objective function to obtain a first scheduling scheme. Implementing this application allows for automatic loading and parsing of data, construction of multi-dimensional constraints and optimization, and the output scheduling scheme can achieve a balance between maximizing capacity and minimizing cost.

[0104] It should be noted that the specific implementation of each operation can be described in the corresponding description of the method embodiments shown above. The production task scheduling device 700 can be used to execute the method embodiments of this application, and will not be described again here.

[0105] When using integrated units, the following is combined with Figure 8 Another production task scheduling device 800 in the embodiments of this application will be described in detail. The production task scheduling device 800 includes a processing unit 801 and a communication unit 802. The processing unit 801 is used to perform any step as described in the above method embodiments, and when performing data transmission such as sending, the communication unit 802 can be selectively invoked to complete the corresponding operation.

[0106] The production task scheduling device 800 may further include a storage unit 803 for storing program code and data. The processing unit 801 may be a processor, the communication unit 802 may be a wireless communication module, and the storage unit 803 may be a memory; the processing unit 801 is specifically used for: The set of available production lines, current production task data, and corresponding production data are determined. The current production task data is used to indicate the required quantity and time limit for each product model, and the production data is used to indicate the capacity and production resource requirements of each product model on each production line. Constraints are determined based on the set of available production lines, the current production task data, and the production data. Determine decision variables, which are used to indicate the allocation relationship between production tasks and production lines, output, and production line activation status; The decision variables are solved based on the constraints and the optimization objective function to obtain the first scheduling scheme.

[0107] As can be seen, through the above-described production task scheduling method and related apparatus, firstly, the set of available production lines, current production task data, and corresponding production data are determined. The current production task data indicates the required quantity and time limit for each product model, while the production data indicates the capacity and production resource requirements of each product model on each production line. Constraints are then determined based on the set of available production lines, the current production task data, and the production data. Decision variables are then determined, indicating the allocation relationship between production tasks and production lines, output, and production line activation status. Finally, the decision variables are solved based on the constraints and the optimization objective function to obtain a first scheduling scheme. Implementing this application allows for automatic loading and parsing of data, construction of multi-dimensional constraints and optimization, and the output scheduling scheme can achieve a balance between maximizing capacity and minimizing cost.

[0108] It should be noted that the specific implementation of each operation can be described in the corresponding description of the method embodiments shown above. The production task scheduling device 800 can be used to execute the method embodiments of this application, and will not be described again here.

[0109] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes an electronic device.

[0110] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may include an electronic device.

Claims

1. A method for scheduling production tasks, characterized in that, The method includes: The set of available production lines, current production task data, and corresponding production data are determined. The current production task data is used to indicate the required quantity and time limit for each product model, and the production data is used to indicate the capacity and production resource requirements of each product model on each production line. Constraints are determined based on the set of available production lines, the current production task data, and the production data. Determine decision variables, which are used to indicate the allocation relationship between production tasks and production lines, output, and production line activation status; The decision variables are solved based on the constraints and the optimization objective function to obtain the first scheduling scheme.

2. The method according to claim 1, characterized in that, The determination of the available production line set, current production task data, and corresponding production data includes: Read the current production task table to determine the current production task data, which includes production task identifier, product model data, required quantity data, and required time limit data; Determine the set of available production lines, which includes multiple types of production lines, including at least one of a first type, a second type, and a third type. The first capacity corresponding to the first type, the second capacity corresponding to the second type, and the third capacity corresponding to the third type are arranged in ascending order of numerical value. The first production resource demand corresponding to the first type, the second production resource demand corresponding to the second type, and the third production resource demand corresponding to the third type are arranged in ascending order of numerical value. Obtain a preset product line configuration table to determine the production data for each product model. The production data includes the theoretical daily production capacity, worker demand, and equipment demand data for each product model on each line.

3. The method according to claim 2, characterized in that, The constraints include at least one of the following: output constraints, capacity constraints, line mutual exclusion constraints, product size constraints, and product isolation constraints; determining the constraints based on the available line set, the current production task data, and the production data includes: The production constraint is determined based on the demand quantity data. The capacity constraint is determined based on the theoretical daily production capacity data. The mutual exclusion constraint of the line body is determined based on the set of available line bodies. The mutual exclusion constraint of the line body is used to indicate that line bodies that have a physical space sharing relationship cannot be used at the same time. The product size constraint is determined according to the product quantity classification rules, and the product size constraint is used to limit the production time corresponding to different product sizes. The product isolation constraint is determined according to the product family division rules, and the product isolation constraint is used to limit the production interval of the same product family.

4. The method according to claim 3, characterized in that, The method further includes: The product quantity classification rules and product family division rules are determined based on historical production task data. The product quantity classification rules are used to classify product scale categories according to the production quantity of the products, and the product family division rules are used to classify product families according to the commonalities of the product production processes.

5. The method according to claim 1, characterized in that, The determined decision variables include: Determine the production quantity variable, which represents the production quantity of each production line for each production task under each preset time period; Determine the line activation variable, which indicates whether the line is enabled in each preset time period; Determine production indication variables, which indicate whether any production task is produced on any production line during each preset time period.

6. The method according to claim 1, characterized in that, The step of solving for the decision variables based on the constraints and the objective function to obtain the first scheduling scheme includes: The optimization objective function is determined, which includes at least one of the following: production time optimization function, production delay optimization function, production changeover frequency function, and utilization rate penalty function. The weights corresponding to the production time optimization function, the production delay optimization function, the production changeover frequency function, and the utilization rate penalty function are configured according to preset business priorities. Under the constraints, the decision variables that best fit the optimization objective function are solved to obtain the first scheduling scheme.

7. The method according to claim 2, characterized in that, After solving for the decision variables based on the constraints and the objective function to obtain the first scheduling scheme, the method further includes: The line utilization rate corresponding to the first scheduling scheme is determined based on the theoretical daily production capacity data. The production line to be transferred is determined based on the production line utilization rate. The production line utilization rate of the production line to be transferred is lower than a preset utilization rate threshold, and the remaining capacity of the candidate production line is higher than a preset capacity threshold. The target transfer line is determined according to the preset transfer conditions, which include production task compatibility conditions, remaining capacity conditions and activation conditions. The production task compatibility conditions indicate that the line has the function of processing the production tasks of the line to be transferred. The remaining capacity conditions indicate that the remaining capacity is higher than the preset capacity threshold. The activation conditions indicate that the line is in an active state during the last production period of the first scheduling scheme. The production tasks of the line to be transferred are transferred to the target transfer line for processing to obtain the second scheduling scheme.

8. The method according to any one of claims 1-7, characterized in that, After performing post-processing based on the line utilization rate and preset transfer conditions under the first scheduling scheme to obtain the second scheduling scheme, the method further includes: Determine the workstation requirement data corresponding to the second scheduling scheme; Worker allocation data is determined based on the matching results between worker skill data and workstation demand data; The daily statistical data of the second scheduling scheme are determined according to the preset display requirements, and the daily statistical data meets the preset display requirements; The worker allocation data, the daily statistics, and the second scheduling scheme are identified as target display data and displayed.

9. The method according to claim 2, characterized in that, The determination of the available line body set includes: Historical production task data is obtained to determine the historical production scale percentage data and historical production volume data of historical production tasks. The production scale percentage data includes the percentage of production tasks of each production scale. The line type percentage data is determined based on the historical production scale percentage data, and the line quantity data is determined based on the historical production volume data. The line type percentage data is used to indicate the spatial percentage distribution of the first type, the second type, and the third type. If the production data corresponding to the quantity of production lines meets the required quantity data, then the set of available production lines is determined based on the quantity of production lines and the proportion of production line types.

10. An electronic device, characterized in that, include: A processor, a memory, and one or more programs; the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps of the method as described in any one of claims 1-9.

11. A computer storage medium, characterized in that, The computer storage medium stores a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the method as described in any one of claims 1-9.