Production scheduling method, device and storage medium based on multiple machine models and multiple production lines

By sorting and batch dividing the production scheduling method of multiple models and multiple production lines, the problem of unreasonable production scheduling in the existing technology is solved, and more efficient production efficiency and reasonable resource utilization are achieved.

CN118428699BActive Publication Date: 2024-09-24ZHONGKE YUNGU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410884127.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-24
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

The existing multi-model and multi-production line production scheduling method relies on manual experience, which can easily lead to constraint conflicts, reduce production efficiency, and make production scheduling unreasonable.

Method used

By obtaining multiple machine models and production lines to be scheduled, they are divided into multiple batches to be scheduled. Based on the preset production scheduling constraints, the batches to be scheduled are sorted for each model to determine whether candidate production lines exist. Based on the remaining production capacity, determine the quantity that can be scheduled for each batch to be scheduled, and schedule production in sequence according to the production order until all batches to be scheduled are completed.

Benefits of technology

Evenly distributed production scheduling of multiple models is achieved, the production scheduling results are more reasonable, production efficiency is improved, and constraint conflicts are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428699B
    Figure CN118428699B
Patent Text Reader

Abstract

The present application relates to the technical field of production management, and provides a production scheduling method, device and storage medium based on multiple models and multiple production lines. The method includes: obtaining multiple models and multiple production lines of each model, and selecting candidate production lines of each model from the multiple production lines of each model; dividing the number of models to be batched into multiple batches to be scheduled according to the economic batch and delivery units of the candidate production lines of the models; obtaining the scheduling order of the batches to be scheduled for all models based on the preset scheduling constraints; scheduling according to the scheduling order and when there is surplus capacity in the candidate production line corresponding to the model of each batch to be scheduled, determining the number of models of each batch to be scheduled on the corresponding candidate production line on the same day; scheduling the batches to be scheduled according to the number of models of the batch to be scheduled on the same day and the number of models of the batch to be scheduled; when the current scheduling is completed, merging the batches to be scheduled that have not been completed and rescheduling them until all batches to be scheduled are scheduled, and the scheduling results are more reasonable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of production management, and specifically to a production scheduling method, device and storage medium based on multiple machine models and multiple production lines. Background Art

[0002] As factories continue to increase their demand for production capacity and efficiency, it is particularly important to improve production efficiency and ensure production results. At present, in the production process, multiple production lines can be used to simultaneously produce multiple models to improve production efficiency. However, each production line has certain differences in production speed and output for the models it can produce. Therefore, in the face of multi-model multi-line production, reasonable production scheduling needs to be carried out in advance. However, the existing production scheduling of multiple models and multiple production lines often relies on manual experience, unreasonable scheduling, and is prone to constraint conflicts, which reduces product production efficiency. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a production scheduling method, device and storage medium based on multiple models and multiple production lines, so as to solve the problem of unreasonable production scheduling of multiple models and multiple production lines in the prior art.

[0004] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a production scheduling method based on multiple machine models and multiple production lines, comprising:

[0005] Obtain multiple machine models to be scheduled and multiple production lines for each machine model, and select candidate production lines for each machine model from the multiple production lines for each machine model;

[0006] For each machine model, the number of machines to be batched is divided into multiple batches to be scheduled according to the economic batch size and delivery units of the candidate production lines of the machine model;

[0007] Based on the preset production scheduling constraints, multiple batches to be scheduled for each model are sorted to obtain the production scheduling order of the batches to be scheduled for all models;

[0008] In the process of scheduling each batch to be scheduled in sequence according to the scheduling order, it is determined whether there is surplus capacity in the candidate production line corresponding to the model of each batch to be scheduled;

[0009] If there is surplus capacity in the candidate production line corresponding to each batch of models to be scheduled, determine the number of models in each batch of models to be scheduled that can be scheduled on the corresponding candidate production line on the same day;

[0010] For each batch to be scheduled, production is scheduled according to the available quantity of the models in the batch on the day and the number of models included in the batch;

[0011] When the current production scheduling is completed, the batches that have not been completed will be merged and rescheduled until all the batches are completed.

[0012] In an embodiment of the present application, for each machine model, the number of machines to be batched is divided into multiple batches to be scheduled according to the economic batch and the delivery station portion of the candidate production lines of the machine model, including: for each machine model, determining the sum of the economic batch and the delivery station portion of the candidate production lines of the machine model; determining the data interval in which the number of machines to be batched is located, the data interval includes a first interval, a second interval and a third interval, the lower limit value of the first interval is the sum, the upper limit value of the second interval is less than the sum, the lower limit value of the second interval is a preset multiple of the economic batch, and the upper limit value of the third interval is less than the preset multiple of the economic batch; determining a corresponding batch to be scheduled according to the data interval, and updating the number of machines to be batched based on the scheduled production quantity of the machine models included in the batch to be scheduled; returning to the step of determining the data interval in which the number of machines to be batched is located, and determining a batch to be scheduled again according to the data interval in which the updated number of machines to be batched is located, until all the numbers of machines to be batched are batched, and multiple batches to be scheduled of the machine models are obtained.

[0013] In an embodiment of the present application, determining a corresponding batch to be scheduled according to the data interval includes: when the number to be batched is in the first interval, dividing the number to be batched according to the delivery station portions to obtain a batch to be scheduled with the production quantity of the model as the delivery station portions; when the number to be batched is in the second interval, dividing the number to be batched according to the economic batch portions to obtain a batch to be scheduled with the production quantity of the model as the economic batch portion; when the number to be batched is in the third interval, using the number to be batched as a batch to be scheduled.

[0014] In an embodiment of the present application, for each batch to be scheduled, scheduling the batch according to the daily available number of models of the batch to be scheduled and the number of models included in the batch to be scheduled includes: for each batch to be scheduled, when the daily available number is greater than or equal to the number of models, determining the candidate production line as the target production line of the batch to be scheduled; determining the scheduling time of the batch to be scheduled on the target production line, and updating the remaining load table of the target production line based on the number of models to complete the scheduling of the batch to be scheduled.

[0015] In an embodiment of the present application, for each batch to be scheduled, scheduling the batch to be scheduled according to the daily available number of models of the batch to be scheduled and the number of models included in the batch to be scheduled includes: for each batch to be scheduled, when the daily available number is less than the number of models, determining the scheduling completion time of the batch to be scheduled according to the daily available number and the number of models; when the scheduling completion time is less than or equal to the upper limit value of the scheduling time interval for multiple models, determining the candidate production line as the target production line for the batch to be scheduled; determining the scheduling time of the batch to be scheduled on the target production line, and updating the remaining load table of the target production line based on the number of models to complete the scheduling of the batch to be scheduled. In an embodiment of the present application, determining the production completion time of a batch to be scheduled based on the number of models that can be scheduled on the day and the number of models includes: obtaining the daily production capacity of the models of the batch to be scheduled on the candidate production line, and determining the difference between the number of models that can be scheduled on the day and the number of models; determining the number of days for cross-day production scheduling of the batch to be scheduled based on the difference and the daily production capacity of the models of the batch to be scheduled on the candidate production line; determining the production completion time of the batch to be scheduled based on the number of days for cross-day production scheduling and the earliest schedulable time of the candidate production line.

[0016] In an embodiment of the present application, the method also includes: when the production scheduling completion time is greater than the upper limit value of the production scheduling time interval for multiple models, determining whether the production line position identifier of the candidate production line is a preset value; when the production line position identifier of the candidate production line is a preset value, determining that the candidate production line of the batch to be scheduled cannot be replaced, and determining that the production scheduling of the models of the batch to be scheduled has failed; when the production line position identifier of the candidate production line is not a preset value, determining that the candidate production line of the batch to be scheduled is replaceable, and determining that the production scheduling of the batch to be scheduled has not been completed.

[0017] In an embodiment of the present application, determining whether there is surplus capacity for the candidate production line corresponding to the machine models of each batch to be scheduled includes: obtaining the upper limit value of the scheduling time interval for multiple machine models, and the earliest schedulable time for the candidate production line corresponding to the machine models of each batch to be scheduled; for each batch to be scheduled, when the earliest schedulable time for the candidate production line corresponding to the batch to be scheduled is less than or equal to the upper limit value, determining that there is surplus capacity for the candidate production line; for each batch to be scheduled, when the earliest schedulable time for the candidate production line corresponding to the batch to be scheduled is greater than the upper limit value, determining that there is no surplus capacity for the candidate production line.

[0018] In an embodiment of the present application, the method also includes: when it is determined that there is no excess capacity of the candidate production line, judging whether the production line position identifier of the candidate production line is a preset value; when the production line position identifier of the candidate production line is a preset value, determining that the candidate production line of the batch to be scheduled cannot be replaced, and determining that the production scheduling of the model of the batch to be scheduled has failed; when the production line position identifier of the candidate production line is not a preset value, determining that the candidate production line of the batch to be scheduled is replaceable, determining that the batch to be scheduled has not completed scheduling, and scheduling the batch arranged after the batch to be scheduled.

[0019] In an embodiment of the present application, selecting a candidate production line for each model from multiple production lines of each model includes: obtaining production scheduling modes for multiple models, the production scheduling modes including a multi-production line mode and a single production line mode; when the production scheduling mode is a single production line mode, initializing the production line pointer of each model to point to any one of the multiple production lines of each model; when the production scheduling mode is a multi-production line mode, initializing the production line pointer of each model to point to the main production line among the multiple production lines of each model; and determining the production line pointed to by the initialized production line pointer of each model as the candidate production line of each model.

[0020] In an embodiment of the present application, multiple batches to be scheduled for each model are sorted based on preset scheduling constraints to obtain the scheduling order of batches to be scheduled for all models, including: setting a corresponding index number value for each batch to be scheduled according to the batch order of the multiple batches to be scheduled for each model; based on the index number value of each batch to be scheduled for each model, and in turn according to model marketing demand constraints, model delivery period constraints, model priority constraints, model type constraints and model type distribution balance constraints, sort the multiple batches to be scheduled for each model to obtain the scheduling order of batches to be scheduled for all models.

[0021] In an embodiment of the present application, when the current production scheduling is completed, the batches to be scheduled that have not completed the production scheduling are merged and re-scheduled until the scheduling of all the batches to be scheduled is completed, including: when the current production scheduling is completed, the batches to be scheduled that have not completed the production scheduling are merged and processed to obtain the unscheduled quantity of each model; the candidate production lines of each model are updated, and the number of each model to be batched is updated based on the unscheduled quantity of each model; returning to the step of dividing the number of models to be batched into multiple batches to be scheduled according to the economic batch size and delivery units of the candidate production lines of the model for each model, so as to continue scheduling the new batches to be scheduled according to the corresponding production scheduling order until the scheduling of all the batches to be scheduled is completed.

[0022] A second aspect of the present application provides a production scheduling device based on multiple machine models and multiple production lines, comprising:

[0023] a memory configured to store instructions; and

[0024] The processor is configured to call instructions from the memory and implement the above-mentioned production scheduling method based on multiple models and multiple production lines when executing the instructions.

[0025] A third aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configures the processor to execute the above-mentioned production scheduling method based on multiple models and multiple production lines.

[0026] Through the above scheme, the number of machines to be divided into batches for each model is divided into multiple batches to be scheduled, and the multiple batches to be scheduled for each model are sorted based on the preset scheduling constraints to obtain the scheduling order of the batches to be scheduled for all models. In the process of scheduling each batch to be scheduled in turn according to the scheduling order, if there is surplus production capacity in the candidate production line corresponding to the models of each batch to be scheduled, the number of models of each batch to be scheduled on the corresponding candidate production line that can be scheduled on the same day is determined; for each batch to be scheduled, the batch to be scheduled is scheduled according to the number of models of the batch to be scheduled on the same day and the number of models included in the batch to be scheduled; when the current scheduling is completed, the batches to be scheduled that have not been completed are merged and re-scheduled until the scheduling of all batches to be scheduled is completed. This is suitable for mixed scheduling of multiple models and multiple production lines, which can evenly distribute the scheduling of multiple models and make the scheduling results more reasonable.

[0027] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:

[0029] Figure 1 A schematic diagram of a process flow of a production scheduling method based on multiple machine models and multiple production lines according to an embodiment of the present application is shown;

[0030] Figure 2 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0032] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0033] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0034] Figure 1 The flowchart of the production scheduling method based on multiple models and multiple production lines according to an embodiment of the present application is schematically shown. Figure 1 As shown, in one embodiment of the present application, a production scheduling method based on multiple machine models and multiple production lines is provided, comprising the following steps:

[0035] Step 101: Acquire multiple machine models to be scheduled and multiple production lines for each machine model, and select candidate production lines for each machine model from the multiple production lines for each machine model.

[0036] Before production scheduling, the production schedule can be sent to the planner. The production schedule may include multiple models to be scheduled. Among them, each model may correspond to multiple production lines that can be used to process the corresponding model, specifically, it may include a main production line and multiple sub-production lines. Both the main production line and the sub-production line can be set in advance. For example, the production line with the highest efficiency in producing the corresponding model can be used as the main production line for the corresponding model, and the rest can be used as sub-production lines. When scheduling production, the processor can obtain multiple models to be scheduled and multiple production lines for each model, and can select candidate production lines for each model from the multiple production lines of each model.

[0037] In an embodiment of the present application, selecting a candidate production line for each model from multiple production lines of each model includes: obtaining production scheduling modes for multiple models, the production scheduling modes including a multi-production line mode and a single production line mode; when the production scheduling mode is a single production line mode, initializing the production line pointer of each model to point to any one of the multiple production lines of each model; when the production scheduling mode is a multi-production line mode, initializing the production line pointer of each model to point to the main production line among the multiple production lines of each model; and determining the production line pointed to by the initialized production line pointer of each model as the candidate production line of each model.

[0038] The processor may obtain production scheduling modes for multiple models to be scheduled, wherein the production scheduling modes include a multi-line mode and a single-line mode. In the multi-line mode, for each model, multiple production lines that can produce the model may be used for production scheduling, so that the model can be subsequently produced on multiple production lines that can produce the model. In the single-line mode, for each model, one production line that can produce the model may be used for production scheduling, so that the model can be subsequently produced on one production line that can produce the model.

[0039] When the production scheduling mode is a single production line mode, the processor can initialize the production line pointer of each model to point to any one of the multiple production lines of each model, and can determine the production line pointed to by the initialized production line pointer of each model as the candidate production line of each model. Among them, any production line can be the main production line of the corresponding model, or it can be a secondary production line, which can be set according to needs.

[0040] For example, for each model, if its main production line has some problems and cannot be used to produce the model, then in the single production line mode, any secondary production line can be selected as a candidate production line for the model. If the production efficiency of the model needs to be further improved, the secondary production line with the highest production efficiency can be selected as a candidate production line from multiple secondary production lines that can produce the model. If the main production line has no faults, then in the single production line mode, the main production line can be selected as a candidate production line for the model, so that the model can be produced on the main production line first to ensure the production efficiency of the model in the single production line mode.

[0041] When the production scheduling mode is a multi-line mode, the processor can initialize the line pointer of each model to point to the main line among the multiple lines of each model, and can determine the line pointed to by the initialized line pointer of each model as the candidate line of each model. The main line refers to the production line with the highest efficiency in producing the corresponding model. That is, in the multi-line mode, the corresponding model can be scheduled on the main line first, so that the production efficiency of the model is as high as possible.

[0042] Step 102: for each machine model, the number of machines to be batched is divided into a plurality of batches to be arranged according to the economic batch size and the number of delivery stations of the candidate production lines of the machine model.

[0043] Models are produced on different production lines, and their corresponding economic batches and delivery units may be different. Among them, the economic batch refers to the purchase batch with the lowest storage cost and ordering cost of the model within a certain period of time. The delivery unit refers to the optimal batch that can be delivered in a single time according to the production rhythm of different production lines and the production line layout settings. For each model, the processor can divide the model's to-be-batch quantity into multiple batches to be scheduled according to the economic batch and delivery unit portion of the candidate production line of the model. Among them, each batch to be scheduled can include the scheduled production quantity of the corresponding model. The scheduled production quantity of the models included in any two batches to be scheduled is different. The number of batches to be batched refers to the scheduling demand quantity of the corresponding model, that is, the total number of models that need to be scheduled.

[0044] In an embodiment of the present application, for each machine model, the number of machines to be batched is divided into multiple batches to be scheduled according to the economic batch and the delivery station portion of the candidate production lines of the machine model, including: for each machine model, determining the sum of the economic batch and the delivery station portion of the candidate production lines of the machine model; determining the data interval in which the number of machines to be batched is located, the data interval includes a first interval, a second interval and a third interval, the lower limit value of the first interval is the sum, the upper limit value of the second interval is less than the sum, the lower limit value of the second interval is a preset multiple of the economic batch, and the upper limit value of the third interval is less than the preset multiple of the economic batch; determining a corresponding batch to be scheduled according to the data interval, and updating the number of machines to be batched based on the scheduled production quantity of the machine models included in the batch to be scheduled; returning to the step of determining the data interval in which the number of machines to be batched is located, and determining a batch to be scheduled again according to the data interval in which the updated number of machines to be batched is located, until all the numbers of machines to be batched are batched, and multiple batches to be scheduled of the machine models are obtained.

[0045] For each machine model, the processor can determine the sum of the economic batch and the delivery unit of the candidate production line of the machine model. The processor can determine the data interval where the quantity to be batched is located. The data interval includes a first interval, a second interval, and a third interval. The lower limit value of the first interval is the sum, the upper limit value of the second interval is less than the sum, the lower limit value of the second interval is a preset multiple of the economic batch, and the upper limit value of the third interval is less than the preset multiple of the economic batch. The preset multiple can be customized according to needs. For example, the preset multiple can be set to 1.5.

[0046] The processor can determine a corresponding batch to be scheduled according to the data interval, and can update the number of batches to be scheduled based on the scheduled production quantity of the machine models included in the batch to be scheduled. Afterwards, the processor can return to the step of determining the data interval where the number of batches to be scheduled is located, to re-determine the data interval where the updated number of batches to be scheduled is located, and re-determine a batch to be scheduled according to the data interval where the updated number of batches to be scheduled is located, until all the numbers of batches to be scheduled of the machine models are batched, and multiple batches to be scheduled of the machine models are obtained.

[0047] In an embodiment of the present application, determining a corresponding batch to be scheduled according to the data interval includes: when the number to be batched is in the first interval, dividing the number to be batched according to the delivery station portions to obtain a batch to be scheduled with the production quantity of the model as the delivery station portions; when the number to be batched is in the second interval, dividing the number to be batched according to the economic batch portions to obtain a batch to be scheduled with the production quantity of the model as the economic batch portion; when the number to be batched is in the third interval, using the number to be batched as a batch to be scheduled.

[0048] When the number to be batched is in the first interval, the processor can divide the number to be batched according to the delivery station to obtain a batch to be scheduled with the scheduled production quantity of the model as the delivery station. When the number to be batched is in the second interval, the processor can divide the number to be batched according to the economic batch to obtain a batch to be scheduled with the scheduled production quantity of the model as the economic batch. When the number to be batched is in the third interval, the processor can use the number to be batched as a batch to be scheduled.

[0049] In the embodiment of the present application, the batch to be arranged can be determined by the following formula:

[0050]

[0051] in, refers to the i-th batch of the model to be scheduled, refers to the first interval, refers to the second interval, refers to the third interval, Refers to the number of batches to be distributed. It refers to the economic batch size of the candidate production line of the model. It refers to the delivery units of the candidate production lines of the model.

[0052] When the number to be batched is in the first range, the production quantity of the model can be obtained as the batch to be scheduled for the delivery unit. When the number to be batched is in the second range, the production quantity of the model can be obtained as the batch to be scheduled for the economic batch. When the number to be batched is in the third range, the number to be batched is used as the batch to be scheduled.

[0053] Step 103: Sort the multiple batches to be scheduled for each machine type based on the preset production scheduling constraints to obtain the production scheduling order of the batches to be scheduled for all machine types.

[0054] After determining the multiple batches to be scheduled for each model, the processor may sort the multiple batches to be scheduled for each model based on the preset production scheduling constraints to obtain the production scheduling order of the batches to be scheduled for all models. The preset production scheduling constraints may be set based on production scheduling efficiency and actual production demand.

[0055] In an embodiment of the present application, multiple batches to be scheduled for each model are sorted based on preset scheduling constraints to obtain the scheduling order of batches to be scheduled for all models, including: setting a corresponding index number value for each batch to be scheduled according to the batch order of the multiple batches to be scheduled for each model; based on the index number value of each batch to be scheduled for each model, and in turn according to model marketing demand constraints, model delivery period constraints, model priority constraints, model type constraints and model type distribution balance constraints, sort the multiple batches to be scheduled for each model to obtain the scheduling order of batches to be scheduled for all models.

[0056] For multiple batches to be arranged for each model, the batch order of the multiple batches to be arranged can be determined, and the index number value of each batch to be arranged can be determined according to the batch order of each batch to be arranged. Among them, the index number values ​​of any two batches to be arranged for the same model can be set to be different. The index number values ​​of any two batches to be arranged for different models can be set to be the same or different. The earlier the batch order, the smaller the corresponding index number value.

[0057] The processor can sort the multiple batches to be scheduled for each model in accordance with the model marketing demand constraint, model delivery period constraint, model priority constraint, model type constraint, and model type distribution balance constraint in order to obtain the production order of the batches to be scheduled for all models. That is, the priority of the model marketing demand constraint is higher than the model delivery period constraint, the priority of the model delivery period constraint is higher than the model priority constraint, the priority of the model priority constraint is higher than the model type constraint, and the priority of the model priority constraint is higher than the model type distribution balance constraint. The higher the priority, the earlier it will be scheduled.

[0058] For example, a batching result is provided. The numbers to be batched corresponding to models A, B, and C are Num_a, Num_b, and Num_c, respectively. For model A, its corresponding batches to be arranged include Num_a1, Num_a2, and Num_a3. For model B, its corresponding batches to be arranged include Num_b1, Num_b2, and Num_b3. For model C, its corresponding batches to be arranged include Num_c1, Num_c2, and Num_c3. Among them, since the batching order of the batches to be arranged Num_a1, Num_b1, and Num_c1 in the corresponding models is the same, the index number values ​​of the batches to be arranged Num_a1, Num_b1, and Num_c1 can also be set to the same. The production scheduling order of all batches to be scheduled for models A, B, and C is: Num_a1, Num_b1, Num_c1, Num_a2, Num_b2, Num_c2, Num_a3, Num_b3, and Num_c3.

[0059] Step 104: in the process of scheduling each batch to be scheduled in turn according to the production scheduling order, it is determined whether there is any surplus capacity in the candidate production line corresponding to the machine model of each batch to be scheduled.

[0060] In the process of scheduling each batch to be scheduled in sequence according to the production scheduling order, the processor can determine whether there is any surplus capacity in the candidate production line corresponding to the model of each batch to be scheduled.

[0061] In an embodiment of the present application, determining whether there is surplus capacity for the candidate production line corresponding to the machine models of each batch to be scheduled includes: obtaining the upper limit value of the scheduling time interval for multiple machine models, and the earliest schedulable time for the candidate production line corresponding to the machine models of each batch to be scheduled; for each batch to be scheduled, when the earliest schedulable time for the candidate production line corresponding to the batch to be scheduled is less than or equal to the upper limit value, determining that there is surplus capacity for the candidate production line; for each batch to be scheduled, when the earliest schedulable time for the candidate production line corresponding to the batch to be scheduled is greater than the upper limit value, determining that there is no surplus capacity for the candidate production line.

[0062] The processor can obtain the upper limit value of the production scheduling time interval for multiple models, as well as the earliest schedulable time of the candidate production line corresponding to the model of each batch to be scheduled. Among them, the upper limit value of the production scheduling time interval refers to the maximum time of the time range input for the planned production scheduling. For each batch to be scheduled, when the earliest schedulable time of the candidate production line corresponding to the batch to be scheduled is greater than the upper limit value, the processor can determine that there is no remaining capacity in the production capacity of the candidate production line, that is, within the production scheduling range, the production capacity on the candidate production line is full. For each batch to be scheduled, when the earliest schedulable time of the candidate production line corresponding to the batch to be scheduled is less than or equal to the upper limit value, the processor can determine that there is remaining capacity in the production capacity of the candidate production line, that is, within the production scheduling range, the production capacity on the candidate production line is not full.

[0063] In an embodiment of the present application, the method also includes: when it is determined that there is no excess capacity of the candidate production line, judging whether the production line position identifier of the candidate production line is a preset value; when the production line position identifier of the candidate production line is a preset value, determining that the candidate production line of the batch to be scheduled cannot be replaced, and determining that the production scheduling of the model of the batch to be scheduled has failed; when the production line position identifier of the candidate production line is not a preset value, determining that the candidate production line of the batch to be scheduled is replaceable, determining that the batch to be scheduled has not completed scheduling, and scheduling the batch arranged after the batch to be scheduled.

[0064] When it is determined that there is no remaining capacity of the candidate production line, the processor can determine whether the production line position identifier of the candidate production line is a preset value. The production line position identifier can identify whether the corresponding candidate production line is the last optional production line of the corresponding model. The preset value can be customized according to the actual situation. For example, the preset value can be set to 1.

[0065] If the line position identifier of the candidate line is a preset value, it can be determined that the candidate line is the last production line that can produce the model of the batch to be scheduled, and the processor can determine that the candidate line of the batch to be scheduled cannot be replaced, and can determine that the production scheduling of the model of the batch to be scheduled has failed. In one embodiment, the processor can also update and record the reason why the model of the batch to be scheduled cannot be scheduled.

[0066] If the production line position identifier of the candidate production line is not a preset value, it can be determined that the candidate production line is not the last production line that can produce the model corresponding to the batch to be scheduled, and there are other optional production lines for the models of the batch to be scheduled. At this time, the processor determines that the candidate production line of the batch to be scheduled is replaceable, and determines that the batch to be scheduled has not completed production scheduling, and schedules the batch after the batch to be scheduled.

[0067] Step 105: When there is surplus capacity in the candidate production line corresponding to each batch of machine models to be scheduled, determine the number of machine models in each batch of machine models to be scheduled that can be scheduled on the corresponding candidate production line on the same day.

[0068] In the case that there is surplus capacity in the candidate production line corresponding to the models of each batch to be scheduled, the processor can determine the number of models of each batch to be scheduled that can be scheduled on the corresponding candidate production line on the same day. Specifically, for each batch to be scheduled, the processor can obtain the scheduling time pointer of the candidate production line corresponding to the models of the batch to be scheduled, and the scheduling time pointer defines the earliest time position at which the candidate production line can be scheduled. Afterwards, the processor can determine the cumulative occupancy time of all scheduled models on the candidate production line on the day according to the scheduling time pointer, that is, the occupied time of the candidate production line on the day, and determine the available time of the candidate production line on the day according to the occupied time on the day, that is, the remaining load on the day. Then, the processor can determine the number of models of the batch to be scheduled on the candidate production line on the same day according to the available time on the day and the daily capacity of the models of the batch to be scheduled on the candidate production line.

[0069] In one embodiment, the number of machines of each batch to be scheduled that can be scheduled on the corresponding candidate production line on the same day can be determined according to the following formula:

[0070]

[0071] in, It refers to the number of machine types i that can be scheduled on the candidate production line on the same day. It refers to the cumulative occupancy time of all scheduled machine types j on the candidate production line on that day. Refers to the available time of the candidate production line on the same day, It refers to the number of machine types j that have been arranged on the candidate production line. It refers to the daily production capacity of the scheduled model j on the candidate production line. It refers to the daily production capacity of model i in the batch to be scheduled on the candidate production line.

[0072] In one embodiment, before determining the number of models of each batch to be scheduled that can be scheduled on the corresponding candidate production line on the same day, it is also possible to determine whether the candidate production line needs to meet the corresponding model type constraint. If the candidate production line does not need to meet the corresponding model type constraint, the number of models of each batch to be scheduled that can be scheduled on the corresponding candidate production line on the same day can be determined. If the candidate production line needs to meet the corresponding model type constraint, it can be determined whether the candidate production line meets the corresponding model type constraint on the same day. If the candidate production line meets the corresponding model type constraint on the same day, and the batch to be scheduled is not a scheduled model, the number of models of each batch to be scheduled that can be scheduled on the corresponding candidate production line on the same day can be determined, and new research and development products that meet the production requirements can be given for filling and scheduling. If the candidate production line does not meet the corresponding model type constraint on the same day, the number of models of each batch to be scheduled that can be scheduled on the corresponding candidate production line on the same day can be determined.

[0073] Step 106: For each batch to be scheduled, the production of the batch to be scheduled is scheduled according to the daily available quantity of the machine models in the batch to be scheduled and the number of machine models included in the batch to be scheduled.

[0074] For each batch to be scheduled, the processor can schedule the batch according to the daily available quantity of the models in the batch to be scheduled and the number of models included in the batch to be scheduled.

[0075] In an embodiment of the present application, for each batch to be scheduled, scheduling the batch according to the daily available number of models of the batch to be scheduled and the number of models included in the batch to be scheduled includes: for each batch to be scheduled, when the daily available number is greater than or equal to the number of models, determining the candidate production line as the target production line of the batch to be scheduled; determining the scheduling time of the batch to be scheduled on the target production line, and updating the remaining load table of the target production line based on the number of models to complete the scheduling of the batch to be scheduled.

[0076] For each batch to be scheduled, if the number of available batches on that day is greater than or equal to the number of models, then the candidate production line can schedule the number of models of the batch to be scheduled at one time on that day. At this time, the processor can determine the candidate production line as the target production line for the batch to be scheduled. The processor can determine the production scheduling time of the batch to be scheduled on the target production line, and update the remaining load table of the target production line based on the number of models to complete the production scheduling for the batch to be scheduled. At this time, the scheduling time pointer of the candidate production line can also be updated.

[0077] In an embodiment of the present application, for each batch to be scheduled, scheduling the batch to be scheduled according to the daily available number of models of the batch to be scheduled and the number of models included in the batch to be scheduled includes: for each batch to be scheduled, when the daily available number is less than the number of models, determining the scheduling completion time of the batch to be scheduled according to the daily available number and the number of models; when the scheduling completion time is less than or equal to the upper limit value of the scheduling time interval for multiple models, determining the candidate production line as the target production line for the batch to be scheduled; determining the scheduling time of the batch to be scheduled on the target production line, and updating the remaining load table of the target production line based on the number of models to complete the scheduling of the batch to be scheduled.

[0078] For each batch to be scheduled, if the number that can be scheduled on that day is less than the number of models, the candidate production line cannot schedule the number of models in the batch to be scheduled at one time on that day. At this time, the processor can determine the scheduling completion time of the batch to be scheduled based on the number that can be scheduled on that day and the number of models. When the scheduling completion time is less than or equal to the upper limit of the scheduling time interval for multiple models, it can be determined that the candidate production line will be used to produce the models of the batch to be scheduled, and the models of the batch to be scheduled can be completed within the scheduling time interval. At this time, the processor can determine the candidate production line as the target production line for the batch to be scheduled. The processor can determine the scheduling time of the batch to be scheduled on the target production line, and update the remaining load table of the target production line based on the number of models to complete the scheduling of the batch to be scheduled.

[0079] In an embodiment of the present application, the method also includes: when the production scheduling completion time is greater than the upper limit value of the production scheduling time interval for multiple models, determining whether the production line position identifier of the candidate production line is a preset value; when the production line position identifier of the candidate production line is a preset value, determining that the candidate production line of the batch to be scheduled cannot be replaced, and determining that the production scheduling of the models of the batch to be scheduled has failed; when the production line position identifier of the candidate production line is not a preset value, determining that the candidate production line of the batch to be scheduled is replaceable, and determining that the production scheduling of the batch to be scheduled has not been completed.

[0080] When the production completion time is greater than the upper limit of the production time interval for multiple models, it can be determined that the candidate production line is used to produce the models of the batch to be scheduled. The models of the batch to be scheduled may not be completed within the production time interval. At this time, the processor can determine whether the production line position identifier of the candidate production line is a preset value. Among them, the production line position identifier can identify whether the corresponding candidate production line is the last optional production line for the corresponding model. The preset value can be customized according to the actual situation. For example, the preset value can be set to 1.

[0081] If the line position identifier of the candidate production line is a preset value, it can be determined that the candidate production line is the last production line that can produce the model of the batch to be scheduled, and the processor can determine that the candidate production line of the batch to be scheduled cannot be replaced, and can determine that the production scheduling of the model of the batch to be scheduled has failed. In one embodiment, the processor can also update and record the reason why the model of the batch to be scheduled cannot be scheduled. If the line position identifier of the candidate production line is not a preset value, it can be determined that the candidate production line is not the last production line that can produce the model of the batch to be scheduled, and there are other optional production lines for the model of the batch to be scheduled. At this time, the processor determines that the candidate production line of the batch to be scheduled can be replaced, and determines that the batch to be scheduled has not completed the production scheduling, and schedules the batch after the batch to be scheduled.

[0082] In an embodiment of the present application, determining the production completion time of a batch to be scheduled based on the number of models that can be scheduled on the day and the number of models includes: obtaining the daily production capacity of the models of the batch to be scheduled on the candidate production line, and determining the difference between the number of models that can be scheduled on the day and the number of models; determining the number of days for cross-day production scheduling of the batch to be scheduled based on the difference and the daily production capacity of the models of the batch to be scheduled on the candidate production line; determining the production completion time of the batch to be scheduled based on the number of days for cross-day production scheduling and the earliest schedulable time of the candidate production line.

[0083] The processor can obtain the daily production capacity of the models of the batch to be scheduled on the candidate production line, and determine the difference between the number that can be scheduled on that day and the number of models, that is, the remaining number of models that cannot be scheduled on that day. Afterwards, the processor can determine the number of days for the cross-day scheduling of the batch to be scheduled based on the difference and the daily production capacity of the models of the batch to be scheduled on the candidate production line. Specifically, the ratio between the difference and the daily production capacity of the models of the batch to be scheduled on the candidate production line can be determined, and the ratio can be rounded up to obtain the number of days for cross-day scheduling. Then, the processor can determine the scheduling completion time of the batch to be scheduled based on the number of days for cross-day scheduling and the earliest schedulable time of the candidate production line. Specifically, the attendance information of the candidate production line can be obtained, and the attendance information defines the production time of the candidate production line. Afterwards, the sum of the number of days for cross-day scheduling and the earliest schedulable time can be determined as the scheduling completion time of the batch to be scheduled.

[0084] Step 107: When the current production scheduling is completed, the batches to be scheduled that have not been completed are merged and rescheduled until all the batches to be scheduled are completed.

[0085] When the current production scheduling is completed, that is, all the batches to be scheduled are scheduled once, at this time, the batches to be scheduled that have not been completed can be merged and rescheduled until all the batches to be scheduled are completed. Specifically, the unscheduled models can be re-batch-divided to re-cycle the production until all models are scheduled.

[0086] In an embodiment of the present application, when the current production scheduling is completed, the batches to be scheduled that have not completed the production scheduling are merged and re-scheduled until the scheduling of all the batches to be scheduled is completed, including: when the current production scheduling is completed, the batches to be scheduled that have not completed the production scheduling are merged and processed to obtain the unscheduled quantity of each model; the candidate production lines of each model are updated, and the number of each model to be batched is updated based on the unscheduled quantity of each model; returning to the step of dividing the number of models to be batched into multiple batches to be scheduled according to the economic batch size and delivery units of the candidate production lines of the model for each model, so as to continue scheduling the new batches to be scheduled according to the corresponding production scheduling order until the scheduling of all the batches to be scheduled is completed.

[0087] When the current production scheduling is completed, the processor can merge the unscheduled batches for processing to obtain the unscheduled quantity of each model. The processor can update the candidate production lines of each model, and update the batch quantity of each model based on the unscheduled quantity of each model, and can return to the step of dividing the batch quantity of each model into multiple batches for each model according to the economic batch and delivery unit of the candidate production line of the model, so as to continue to schedule the new batches in the corresponding scheduling order until all the batches are scheduled.

[0088] In one embodiment, another production scheduling method based on multiple machine models and multiple production lines is provided, and the steps of the production scheduling method include:

[0089] 1) Data collection: The data received by production planning and scheduling mainly include two aspects: on the one hand, the parameters configured and input by the planner, including: production scheduling time interval, priority rules, and constraint rules. Among them, the priority rules include whether to consider marketing demand and whether to consider model priority. The priority of marketing demand is higher than that of model. The constraint rules include whether to consider model type constraints and whether to enable the secondary production line. When enabled, the main production line of the model is prioritized for scheduling. On the other hand, the original basic data involved in production planning and scheduling include: planned input scheduling data, marketing demand data, factory model information table, attendance calendar table, and factory production line information table. The production scheduling data of planned input mainly includes the planned quantity and expected completion date of each model within the production scheduling interval. The marketing demand data mainly includes the demand quantity, demand date, and demand type of the model, and the quantity is included in the total amount of production scheduling data of planned input. The demand types are divided into mandatory marketing demand, insertion order demand, and non-mandatory marketing demand. The priority of demand type is higher than the priority of demand date. The factory model information table mainly includes model priority, similar model group, production line, optimized distribution units corresponding to each production line, and daily production capacity load. The attendance calendar table records the attendance data of each workshop in the factory. The factory production line information table records the production line distribution information of each workshop in the factory.

[0090] 2) Data preprocessing: During data preprocessing, first initialize the capacity load remaining table, generate the full load capacity of each production line every day within the production scheduling time interval, and record the daily capacity remaining situation of each production line, the list of scheduled products and the corresponding quantity percentage list when planning production. Assuming that the working hours of the production line equipment are fixed every day, set to 1, the daily load number of the product on the production line is , the unit processing efficiency of the product on the production line is used The ratio of represents that the production load capacity standards of the same production line for different products are unified in dimension. Secondly, the production scheduling data and marketing demand data of the planned investment are pre-processed and merged into the demand data to be scheduled.

[0091] 3) Batch production: During the manufacturing process, the factory needs to ensure that the material distribution plan is accurate, the product variety is balanced, and the economic cost of production is guaranteed. Each product model is set with the corresponding optimized distribution platform. and economic batch . According to the differences in factory layout, equipment resources, and product models, the and This will result in a variety of batch parameters, and the waiting demand data needs to be scheduled in batches, and the parameter constraints of the corresponding production line must be met during batching to ensure production efficiency and economic benefits. A batch rule algorithm is designed for division.

[0092] Specifically, assuming the model Quantity to be invested in batches In the main production line Optimized delivery batches , economic batch , the steps of the batch rule algorithm are as follows:

[0093] Step 1: Loop judgment Is it greater than If greater than or equal to, then split the batch equal , and the number of items to be queued Minus . Until it is split to Less than .

[0094] Step 2: If remaining Greater than 1.5 times, then the remaining Split into two batches, one batch is equal to , the remaining ones are taken as the last batch. Otherwise, the remaining planned number is directly taken as the last batch.

[0095] Step 3: Output the partitioned batch list .

[0096] 4) Sort all batches of multiple models: first obtain several batches of each model by model (each batch has the same model), and then sort different batches by priority. In the inventory production mode, the first priority is marketing demand, with the priority of mandatory marketing demand > insert marketing demand > non-mandatory marketing demand > non-marketing demand. The delivery date of the planned production schedule is expected to be higher the earlier the latest delivery date, and the higher the model priority, the earlier the production schedule. For models with the same priority, the production mold replacement time is considered, and similar models are prioritized to reduce the number of mold changes. While meeting the mold change constraint (the fewer the better), it is necessary to consider the balance of product production types to prevent inventory from failing to meet demand. Several batches of the same model are set with index number values ​​in batch order, so that when the demand data to be scheduled is sorted by priority, the batches of models with the same priority can be arranged alternately, making production more realistic.

[0097] 5) According to the parameters configured and input by the planner in 1), the rule-based scheduling algorithm adopts forward scheduling, and uses the time pointer to record the earliest time position that each production line can currently schedule. When the input parameters select to enable multiple production lines, the main production line can be scheduled first, and then the priority constraint schedule sequence is used to loop the demand data to obtain the model, batch quantity, and optional production line of the current batch of products, and plan and schedule. The specific steps are as follows:

[0098] Step 1: Plan the production data to be scheduled and initialize the production line pointer and the time pointer for scheduling .

[0099] Step 2: Get the current production demand data (machine model, batch quantity), according to Get the production line number , Is the mark The last optional production line of the model is extracted using the pointer function Current time position .

[0100] Step 3: Determine if , , It is the maximum time of the time range entered in the production plan, indicating that within the production schedule, The production capacity of the optional production line is full and cannot be scheduled. All remaining batches of the model cannot be scheduled for production, and the reasons why production cannot be scheduled are updated.

[0101] Step 4: If , , indicating that the production capacity of the current production line is full, and the production line can be changed. After marking, jump to step 2 to schedule the next batch.

[0102] Step 5: If , according to the configuration parameters and Determine the current production schedule of the production line. If the input parameters need to consider the type of machine restrictions (the production line produces different models every day and needs to change molds. The mold change time of the similar model group is shorter, and the mold change time of the non-similar model group is longer. Adding the model type constraint can limit the upper limit of the mold change time and be closer to actual production), jump to step 5.1, otherwise, jump to step 6.

[0103] Step 5.1: If the model type constraint is reached on the day and the current batch model is not a scheduled model, calculate whether there is any remaining capacity on the day. If there is remaining capacity, fill it in and schedule production by screening the new R&D products that meet the production requirements in the pending demand data until the capacity of the day is full or all new R&D demand data are traversed, and update the remaining load table and time pointer.

[0104] Step 5.2: If the aircraft type restriction is not met on that day, skip to step 6.

[0105] Step 6: According to Calculate the remaining load for the day , after rounding off to get the remaining load for the day, if , Refers to the number of models in the current batch, indicating that they can be sorted at one time, inserted into the result list, update the remaining load table, and call the pointer update function to update Otherwise, go to step 7.

[0106] Step 7: If the order cannot be fully booked on the same day, split the batch quantity into two parts and obtain the excess quantity. , divided by the daily load Round up to get the theoretical number of days , according to the attendance information, each non-attendance day Add 1 to calculate the end time of the current batch . Determine whether it can be met within the time frame.

[0107] Step 7.1: If , go to step 3 for judgment.

[0108] Step 7.2: If , divide this batch by day for production scheduling, insert into the result list, update the remaining load table, call the pointer update function to update If this batch is not the last batch in the waiting demand table, jump to step 2 and continue the cyclic update.

[0109] Step 8: When all the batches in the waiting schedule have been scheduled once, it is necessary to collect and batch the plans that have not yet been scheduled according to the factory and model based on the production scheduling mark, and then call the re-batch function to batch them. After batching, update the production line pointer plus 1, and then jump to step 2 to continue scheduling until all the plans in the waiting schedule are scheduled.

[0110] Through the above scheme, the number of machines to be divided into batches for each model is divided into multiple batches to be scheduled, and the multiple batches to be scheduled for each model are sorted based on the preset scheduling constraints to obtain the scheduling order of the batches to be scheduled for all models. In the process of scheduling each batch to be scheduled in turn according to the scheduling order, if there is surplus production capacity in the candidate production line corresponding to the models of each batch to be scheduled, the number of models of each batch to be scheduled on the corresponding candidate production line that can be scheduled on the same day is determined; for each batch to be scheduled, the batch to be scheduled is scheduled according to the number of models of the batch to be scheduled on the same day and the number of models included in the batch to be scheduled; when the current scheduling is completed, the batches to be scheduled that have not been completed are merged and re-scheduled until the scheduling of all batches to be scheduled is completed. This is suitable for mixed scheduling of multiple models and multiple production lines, which can evenly distribute the scheduling of multiple models and make the scheduling results more reasonable.

[0111] Figure 1 FIG. 1 is a flow chart of a production scheduling method based on multiple machine models and multiple production lines in one embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0112] In one embodiment, a production scheduling device based on multiple machine models and multiple production lines is provided, comprising:

[0113] a memory configured to store instructions; and

[0114] The processor is configured to call instructions from the memory and implement the above-mentioned production scheduling method based on multiple models and multiple production lines when executing the instructions.

[0115] In one embodiment, a storage medium is provided, on which a program is stored, and when the program is executed by a processor, the above-mentioned production scheduling method based on multiple models and multiple production lines is implemented.

[0116] In one embodiment, a processor is provided, and the processor is used to run a program, wherein when the program is run, the above-mentioned production scheduling method based on multiple models and multiple production lines is executed.

[0117] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 2 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data such as the scheduling results of each batch to be scheduled. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a scheduling method based on multiple models and multiple production lines is implemented.

[0118] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0119] The embodiment of the present application provides a device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: obtaining multiple machine models to be scheduled and multiple production lines of each machine model, and selecting a candidate production line of each machine model from the multiple production lines of each machine model; for each machine model, dividing the number of batches to be scheduled of the machine model into multiple batches to be scheduled according to the economic batch and the number of delivery units of the candidate production lines of the machine model; sorting the multiple batches to be scheduled of each machine model based on preset scheduling constraints to obtain the scheduling order of the batches to be scheduled of all machine models; In the process of scheduling each batch to be scheduled in sequence according to the production scheduling order, determine whether there is surplus capacity in the candidate production line corresponding to the model of each batch to be scheduled; in the case that there is surplus capacity in the candidate production line corresponding to the model of each batch to be scheduled, determine the number of models in each batch to be scheduled that can be scheduled on the corresponding candidate production line on the same day; for each batch to be scheduled, schedule the batch according to the number of models in the batch to be scheduled that can be scheduled on the same day and the number of models included in the batch to be scheduled; when the current scheduling is completed, merge the batches that have not completed the scheduling and re-schedule them until all the batches to be scheduled are scheduled.

[0120] In one embodiment, for each machine model, the number of machines to be batched is divided into multiple batches to be scheduled according to the economic batch and the number of delivery stations of the candidate production lines of the machine model, including: for each machine model, determining the sum of the economic batch and the number of delivery stations of the candidate production lines of the machine model; determining the data interval where the number of machines to be batched is located, the data interval includes a first interval, a second interval and a third interval, the lower limit value of the first interval is the sum, the upper limit value of the second interval is less than the sum, the lower limit value of the second interval is a preset multiple of the economic batch, and the upper limit value of the third interval is less than the preset multiple of the economic batch; determining a corresponding batch to be scheduled according to the data interval, and updating the number of machines to be batched based on the scheduled production quantity of the machine models included in the batch to be scheduled; returning to the step of determining the data interval where the number of machines to be batched is located, and determining a batch to be scheduled again according to the data interval where the updated number of machines to be batched is located, until all the numbers of machines to be batched are batched, and multiple batches to be scheduled of the machine models are obtained.

[0121] In one embodiment, determining a corresponding batch to be scheduled according to the data interval includes: when the number to be batched is in the first interval, dividing the number to be batched according to the delivery station portion to obtain a batch to be scheduled with the production quantity of the model as the delivery station portion; when the number to be batched is in the second interval, dividing the number to be batched according to the economic batch portion to obtain a batch to be scheduled with the production quantity of the model as the economic batch portion; when the number to be batched is in the third interval, using the number to be batched as the batch to be scheduled.

[0122] In one embodiment, for each batch to be scheduled, scheduling the batch according to the daily available number of models in the batch and the number of models included in the batch includes: for each batch to be scheduled, when the daily available number is greater than or equal to the number of models, determining the candidate production line as the target production line for the batch to be scheduled; determining the scheduling time for the batch to be scheduled on the target production line, and updating the remaining load table of the target production line based on the number of models to complete the scheduling for the batch to be scheduled.

[0123] In one embodiment, for each batch to be scheduled, scheduling the batch according to the daily schedulable quantity of the models of the batch to be scheduled and the number of models included in the batch to be scheduled includes: for each batch to be scheduled, when the daily schedulable quantity is less than the number of models, determining the scheduling completion time of the batch to be scheduled according to the daily schedulable quantity and the number of models; when the scheduling completion time is less than or equal to the upper limit value of the scheduling time interval for multiple models, determining the candidate production line as the target production line of the batch to be scheduled; determining the scheduling time of the batch to be scheduled on the target production line, and updating the remaining load table of the target production line based on the number of models to complete the scheduling of the batch to be scheduled. In one embodiment, determining the production completion time of a batch to be scheduled based on the number of models that can be scheduled on the day and the number of models includes: obtaining the daily production capacity of the models of the batch to be scheduled on the candidate production line, and determining the difference between the number of models that can be scheduled on the day and the number of models; determining the number of days for the cross-day production scheduling of the batch to be scheduled based on the difference and the daily production capacity of the models of the batch to be scheduled on the candidate production line; and determining the production completion time of the batch to be scheduled based on the number of days for the cross-day production scheduling and the earliest schedulable time of the candidate production line.

[0124] In one embodiment, the method also includes: when the production scheduling completion time is greater than the upper limit value of the production scheduling time interval for multiple models, determining whether the production line position identifier of the candidate production line is a preset value; when the production line position identifier of the candidate production line is a preset value, determining that the candidate production line of the batch to be scheduled cannot be replaced, and determining that the production scheduling of the models of the batch to be scheduled has failed; when the production line position identifier of the candidate production line is not a preset value, determining that the candidate production line of the batch to be scheduled can be replaced, and determining that the scheduling of the batch to be scheduled has not been completed.

[0125] In one embodiment, determining whether there is any excess capacity in the candidate production lines corresponding to the machine models in each batch to be scheduled includes: obtaining the upper limit values ​​of the scheduling time intervals for multiple machine models, and the earliest schedulable time of the candidate production lines corresponding to the machine models in each batch to be scheduled; for each batch to be scheduled, when the earliest schedulable time of the candidate production lines corresponding to the batch to be scheduled is less than or equal to the upper limit value, determining that there is any excess capacity in the candidate production lines; for each batch to be scheduled, when the earliest schedulable time of the candidate production lines corresponding to the batch to be scheduled is greater than the upper limit value, determining that there is no excess capacity in the candidate production lines.

[0126] In one embodiment, the method also includes: when it is determined that there is no excess capacity of the candidate production line, judging whether the production line position identifier of the candidate production line is a preset value; when the production line position identifier of the candidate production line is a preset value, determining that the candidate production line of the batch to be scheduled cannot be replaced, and determining that the production scheduling of the model of the batch to be scheduled has failed; when the production line position identifier of the candidate production line is not a preset value, determining that the candidate production line of the batch to be scheduled is replaceable, and determining that the batch to be scheduled has not completed the production scheduling, and scheduling the batch arranged after the batch to be scheduled.

[0127] In one embodiment, selecting a candidate production line for each model from multiple production lines for each model includes: obtaining production scheduling modes for multiple models, the production scheduling modes including a multi-production line mode and a single production line mode; when the production scheduling mode is a single production line mode, initializing the production line pointer for each model to point to any one of the multiple production lines for each model; when the production scheduling mode is a multi-production line mode, initializing the production line pointer for each model to point to the main production line among the multiple production lines for each model; and determining the production line pointed to by the initialized production line pointer for each model as the candidate production line for each model.

[0128] In one embodiment, multiple batches to be scheduled for each model are sorted based on preset scheduling constraints to obtain the scheduling order of the batches to be scheduled for all models, including: setting a corresponding index number value for each batch to be scheduled according to the batch order of the multiple batches to be scheduled for each model; based on the index number value of each batch to be scheduled for each model, and in turn according to the model marketing demand constraints, model delivery period constraints, model priority constraints, model type constraints and model type distribution balance constraints, the multiple batches to be scheduled for each model are sorted to obtain the scheduling order of the batches to be scheduled for all models.

[0129] In one embodiment, when the current production scheduling is completed, the batches to be scheduled that have not completed the production scheduling are merged and re-scheduled until the scheduling of all the batches to be scheduled is completed, including: when the current production scheduling is completed, the batches to be scheduled that have not completed the production scheduling are merged and processed to obtain the unscheduled quantity of each model; the candidate production lines of each model are updated, and the number of each model to be batched is updated based on the unscheduled quantity of each model; returning to the step of dividing the number of models to be batched into multiple batches to be scheduled according to the economic batch size and delivery units of the candidate production lines of each model, so as to continue scheduling the new batches to be scheduled according to the corresponding production scheduling order until the scheduling of all the batches to be scheduled is completed.

[0130] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps of a production scheduling method based on multiple machine models and multiple production lines.

[0131] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0132] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0133] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0135] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0136] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0137] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0138] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0139] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A production scheduling method based on multiple machine models and multiple production lines, characterized in that: The production scheduling method comprises: Obtain multiple machine models to be scheduled and multiple production lines for each machine model, and select candidate production lines for each machine model from the multiple production lines for each machine model; For each machine model, the number of machines to be batched is divided into multiple batches according to the economic batch and delivery unit of the candidate production line of the machine model. The economic batch refers to the purchase batch with the lowest storage cost and ordering cost of the machine model in a certain period of time, and the delivery unit refers to the optimal batch that can be delivered at a time based on the production rhythm of different production lines and the production line layout settings; Based on the preset production scheduling constraints, multiple batches to be scheduled for each model are sorted to obtain the production scheduling order of the batches to be scheduled for all models; In the process of scheduling each batch to be scheduled in sequence according to the scheduling order, determining whether there is surplus capacity in the candidate production line corresponding to the machine model of each batch to be scheduled; If there is surplus capacity in the candidate production line corresponding to each batch of models to be scheduled, determine the number of models in each batch of models to be scheduled that can be scheduled on the corresponding candidate production line on the same day; For each batch to be scheduled, the batch to be scheduled is scheduled according to the daily available quantity of the machine models of the batch to be scheduled and the number of machine models included in the batch to be scheduled; When the current production scheduling is completed, the batches that have not been completed will be merged and rescheduled until all the batches are completed. Wherein, for each machine model, dividing the number of the machine model to be batched into multiple batches to be arranged according to the economic batch and the number of delivery units of the candidate production line of the machine model includes: For each machine type, determine the sum between the economic batch and the delivery unit of the candidate production line of the machine type; Determine the data interval in which the quantity to be batched is located, the data interval includes a first interval, a second interval and a third interval, the lower limit value of the first interval is the sum, the upper limit value of the second interval is less than the sum, the lower limit value of the second interval is a preset multiple of the economic batch, and the upper limit value of the third interval is less than the preset multiple of the economic batch; Determine a corresponding batch to be scheduled according to the data interval, and update the number to be batched based on the scheduled production quantity of the machine models included in the batch to be scheduled; Return to the step of determining the data interval of the quantity to be batched, and determine another batch to be arranged according to the updated data interval of the quantity to be batched, until all the quantities to be batched of the machine model are batched, thereby obtaining multiple batches to be arranged of the machine model; Determining a corresponding batch to be sorted according to the data interval includes: When the quantity to be batched is within the first interval, the quantity to be batched is divided according to the delivery station portion to obtain a batch to be scheduled whose scheduled production quantity of the machine model is the delivery station portion; When the number to be batched is within the second interval, the number to be batched is divided according to the economic batch to obtain a batch to be scheduled whose production quantity of the machine model is the economic batch; When the number to be divided into batches is within the third interval, the number to be divided into batches is used as the batch to be arranged.

2. The production scheduling method based on multiple machine models and multiple production lines according to claim 1 is characterized in that: For each batch to be scheduled, scheduling the batch to be scheduled according to the daily schedulable quantity of the machine models of the batch to be scheduled and the quantity of the machine models included in the batch to be scheduled includes: For each batch to be scheduled, if the number of machines that can be scheduled on that day is greater than or equal to the number of machine models, determine the candidate production line as the target production line of the batch to be scheduled; Determine the production scheduling time of the batch to be scheduled on the target production line, and update the remaining load table of the target production line based on the number of machine models to complete the production scheduling for the batch to be scheduled.

3. The production scheduling method based on multiple machine models and multiple production lines according to claim 1 is characterized in that: For each batch to be scheduled, scheduling the batch to be scheduled according to the daily schedulable quantity of the machine models of the batch to be scheduled and the quantity of the machine models included in the batch to be scheduled includes: For each batch to be scheduled, when the available quantity on the day is less than the number of machine models, determine the production completion time of the batch to be scheduled according to the available quantity on the day and the number of machine models; When the production scheduling completion time is less than or equal to the upper limit value of the production scheduling time interval for the multiple machine models, determining the candidate production line as the target production line of the batch to be scheduled; Determine the production scheduling time of the batch to be scheduled on the target production line, and update the remaining load table of the target production line based on the number of machine models to complete the production scheduling for the batch to be scheduled.

4. The production scheduling method based on multiple machine models and multiple production lines according to claim 3 is characterized in that: Determining the production completion time of the batch to be scheduled according to the quantity that can be scheduled on the day and the number of machine models includes: Obtain the daily production capacity of the machine type of the batch to be scheduled on the candidate production line, and determine the difference between the number that can be scheduled on that day and the number of the machine type; Determine the number of days for scheduling the batch across days according to the difference and the daily production capacity of the model of the batch to be scheduled on the candidate production line; The production scheduling completion time of the batch to be scheduled is determined according to the number of days for the cross-day production scheduling and the earliest schedulable production time of the candidate production line.

5. The production scheduling method based on multiple machine models and multiple production lines according to claim 3 is characterized in that: The method further comprises: In a case where the production scheduling completion time is greater than an upper limit value of the production scheduling time interval for the multiple machine models, determining whether the production line position identifier of the candidate production line is a preset value; When the production line position identifier of the candidate production line is a preset value, it is determined that the candidate production line of the batch to be scheduled cannot be replaced, and the production scheduling of the model of the batch to be scheduled fails; When the production line position identifier of the candidate production line is not the preset value, it is determined that the candidate production line of the batch to be scheduled is replaceable, and it is determined that the production scheduling of the batch to be scheduled has not been completed.

6. The production scheduling method based on multiple machine models and multiple production lines according to claim 1 is characterized in that: Determining whether there is surplus capacity for the candidate production line corresponding to each batch of machine models to be scheduled includes: Obtaining upper limits of production scheduling time intervals for the multiple machine models and the earliest schedulable production time of the candidate production lines corresponding to each machine model in the batch to be scheduled; For each batch to be scheduled, if the earliest schedulable time of the candidate production line corresponding to the batch to be scheduled is less than or equal to the upper limit value, determining that there is excess capacity in the production capacity of the candidate production line; For each batch to be scheduled, when the earliest schedulable production time of the candidate production line corresponding to the batch to be scheduled is greater than the upper limit value, it is determined that there is no excess capacity of the candidate production line.

7. The production scheduling method based on multiple machine models and multiple production lines according to claim 1 is characterized in that: The method further comprises: When it is determined that there is no excess capacity of the candidate production line, determining whether the production line position identifier of the candidate production line is a preset value; When the production line position identifier of the candidate production line is a preset value, it is determined that the candidate production line of the batch to be scheduled cannot be replaced, and the production scheduling of the model of the batch to be scheduled fails; When the production line position identifier of the candidate production line is not the preset value, it is determined that the candidate production line of the batch to be scheduled is replaceable, and it is determined that the production scheduling of the batch to be scheduled has not been completed, and the batch arranged after the batch to be scheduled is scheduled.

8. The production scheduling method based on multiple machine models and multiple production lines according to claim 1 is characterized in that: The candidate production lines for each model are selected from multiple production lines for each model, including: Obtaining production scheduling modes of the multiple machine models, wherein the production scheduling modes include a multi-production line mode and a single production line mode; When the production scheduling mode is the single production line mode, the production line pointer of each machine model is initialized to point to any one of the multiple production lines of each machine model; When the production scheduling mode is the multi-production line mode, the production line pointer of each machine model is initialized to point to the main production line among the multiple production lines of each machine model; The production line pointed to by the production line pointer of each model after initialization is determined as the candidate production line of each model.

9. The production scheduling method based on multiple machine models and multiple production lines according to claim 1 is characterized in that: The method of sorting the multiple batches to be scheduled for each machine type based on the preset production scheduling constraints to obtain the production scheduling sequence of the batches to be scheduled for all machine types includes: According to the batching order of the multiple batches to be arranged for each machine model, a corresponding index number value is set for each batch to be arranged; Based on the index number value of each batch to be scheduled of each model, and in turn according to the model marketing demand constraints, model delivery period constraints, model priority constraints, model type constraints and model type distribution balance constraints, multiple batches to be scheduled for each model are sorted to obtain the production order of the batches to be scheduled for all models.

10. The production scheduling method based on multiple machine models and multiple production lines according to claim 1, characterized in that: In the case where the current production scheduling is completed, the batches to be scheduled that have not been completed are merged and rescheduled until all the batches to be scheduled are completed, including: When the current production scheduling is completed, the batches to be scheduled that have not been completed will be merged and processed to obtain the unscheduled quantity of each model; Update the candidate production lines for each model, and update the number of each model to be batched based on the unscheduled number of each model; Back to the step of dividing the number of each machine model into multiple batches to be scheduled according to the economic batch size and delivery units of the candidate production line of the machine model, and continue to schedule the new batches to be scheduled according to the corresponding production sequence until all batches to be scheduled are scheduled.

11. A production scheduling device based on multiple machine models and multiple production lines, characterized in that: The production scheduling device comprises: A memory configured to store instructions; and a processor configured to call the instructions from the memory and implement the production scheduling method based on multiple models and multiple production lines according to any one of claims 1 to 10 when executing the instructions.

12. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for enabling a machine to execute a production scheduling method based on multiple machine models and multiple production lines according to any one of claims 1 to 10.