Production line intelligent scheduling method and device, computer equipment and storage medium
By monitoring the task level, equipment priority and workpiece priority in the production line task pool, calculating and sorting the task priority, the low efficiency problem caused by changes in production demand in production line scheduling is solved, and the priority processing of urgent tasks and the improvement of production efficiency are achieved.
Patent Information
- Application Number
- CN202510506604.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-09-12
AI Technical Summary
Existing production line scheduling methods are unable to quickly respond to changes in production demand, resulting in low production efficiency, possible delays in urgent tasks, and an inability to automatically increase the priority of related tasks.
By monitoring the task level, device priority and workpiece priority in the task pool, the task priority is calculated and a target task queue is formed according to the priority sorting to ensure that urgent tasks are processed first.
It enables dynamic adjustment of production sequence according to production demand, ensures that urgent tasks are handled first, and improves production efficiency.
Smart Images

Figure CN120634078A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mold processing technology, and in particular to a production line intelligent scheduling method, device, computer equipment and storage medium. Background Art
[0002] In modern manufacturing, the efficient operation of automated production lines relies on reasonable task scheduling. However, traditional scheduling methods often use a "first-trigger, first-order" approach, which can cause urgent tasks to be delayed while less urgent tasks are prioritized.
[0003] Existing scheduling methods rely solely on waiting times, but this lacks flexibility and cannot quickly respond to changes in production demand, which in turn impacts production efficiency. Furthermore, when a rush order is received, the system cannot automatically prioritize the associated tasks. Therefore, there is an urgent need to develop intelligent, dynamic scheduling technology to address these issues. Summary of the Invention
[0004] Embodiments of the present invention provide a production line intelligent scheduling method, apparatus, computer equipment and storage medium to solve the problem in the prior art of being unable to respond to changes in production demand, resulting in low production efficiency.
[0005] A production line intelligent scheduling method, comprising: When a new scheduling task is added to the task pool or a scheduling task is adjusted, the task levels of all unexecuted scheduling tasks in the task pool, the equipment priorities of all equipment used by the unexecuted scheduling tasks, and the workpiece priorities of all workpieces required to be processed by the unexecuted scheduling tasks are obtained; sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task, to obtain the task priority corresponding to each of the unexecuted scheduled tasks; A target task queue is determined according to all the task priorities, and scheduling tasks are issued and executed according to the target task queue.
[0006] In one embodiment, the task sorting of all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task to obtain the task priority corresponding to each of the unexecuted scheduled tasks includes: Obtaining information weights corresponding to each target information; the target information includes task level, equipment priority, and workpiece priority; The task priority corresponding to each of the unexecuted scheduled tasks is calculated according to the task level and its information weight, the device priority and its information weight, and the workpiece priority and its information weight.
[0007] In one embodiment, the step of sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task to obtain the task priority corresponding to each of the unexecuted scheduled tasks further includes: Obtain the waiting time required for all the unexecuted scheduled tasks; The task priority corresponding to each of the unexecuted scheduled tasks is determined according to the task level, the device priority, the waiting time, and the workpiece priority corresponding to the same unexecuted scheduled task.
[0008] In one embodiment, determining the task priority corresponding to each of the unexecuted scheduled tasks according to the task level, the device priority, the waiting time, and the workpiece priority corresponding to the same unexecuted scheduled task includes: Obtaining a time threshold, and comparing the time threshold with the waiting time corresponding to each of the unexecuted scheduled tasks; If the waiting time exceeds the time threshold, obtaining an adjustment parameter corresponding to the time threshold, and adjusting the waiting time of the unexecuted scheduled task by using the adjustment parameter to obtain an adjusted waiting time; The task priority corresponding to each of the unexecuted scheduled tasks is determined according to the task level and its weight, the device priority and its weight, the adjustment waiting time and its weight, and the workpiece priority and its weight.
[0009] In one embodiment, the step of sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task to obtain the task priority corresponding to each of the unexecuted scheduled tasks further includes: Acquire all task artifacts corresponding to the unexecuted scheduled tasks and the first priority corresponding to each of the task artifacts, as well as all task devices and the second priority corresponding to each of the task devices; Comparing all the first priorities and screening out the first priority with the highest priority to determine as the workpiece priority, and comparing all the second priorities and screening out the second priority with the highest priority to determine as the equipment priority; The task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task are input into a preset task model, and the task priority corresponding to each unexecuted scheduled task is output.
[0010] In one embodiment, before determining the target task queue according to all the task priorities, the method further includes: When it is detected that the number of unexecuted scheduled tasks in the task pool changes or the scheduled tasks are adjusted, the task levels of all unexecuted scheduled tasks in the task pool, the equipment priorities of all equipment used by the unexecuted scheduled tasks, and the workpiece priorities of all workpieces required to be processed by the unexecuted scheduled tasks are obtained; Determine the update priority corresponding to each of the unexecuted scheduled tasks according to the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task; The tasks are issued and executed according to the updated priorities corresponding to the unexecuted scheduled tasks in the updated task queue, where the updated task queue refers to the updated task execution queue corresponding to all the unexecuted scheduled tasks in the task pool.
[0011] In one embodiment, issuing and executing unexecuted scheduled tasks in the target task queue includes: Sorting all the unexecuted scheduled tasks according to the priorities of all the tasks to obtain a target task queue; The unexecuted scheduled tasks in the target task queue are issued and executed.
[0012] An intelligent scheduling device for a production line, comprising: A priority acquisition module is used to acquire the task levels of all unscheduled tasks in the task pool, the equipment priorities of all equipment used by all unscheduled tasks, and the workpiece priorities of all workpieces required to be processed by all unscheduled tasks when a new scheduled task is added to the task pool or a scheduled task is adjusted; a priority determination module, configured to sort all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task, to obtain a task priority corresponding to each of the unexecuted scheduled tasks; The scheduling task execution module is used to determine the target task queue according to all the task priorities, and issue and execute the scheduling task according to the target task queue.
[0013] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the above-mentioned production line intelligent scheduling method.
[0014] A computer-readable storage medium stores a computer program, which implements the above-mentioned production line intelligent scheduling method when executed by a processor.
[0015] The above-mentioned intelligent production line scheduling method, apparatus, computer device, and storage medium include a method for intelligent production line scheduling of the present invention. By adding a new scheduling task to the task pool or adjusting a scheduling task, the task level, device priority, and workpiece priority of all unexecuted scheduling tasks are obtained. By determining the task level, device priority, and workpiece priority of each unexecuted scheduling task, the priority of each unexecuted scheduling task is determined, so that the task priority reflects the urgency of each unexecuted scheduling task, thereby ensuring that urgent tasks are handled first, and further adjusting the production sequence according to production needs, thereby improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0017] Figure 1 is a flow chart of a production line intelligent scheduling method according to one embodiment of the present invention; Figure 2 It is a principle block diagram of an intelligent scheduling device for a production line in one embodiment of the present invention. DETAILED DESCRIPTION
[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0019] In one embodiment, if Figure 1 As shown, a production line intelligent scheduling method is provided, comprising the following steps: S10: When monitoring that a new scheduling task is put into the task pool or a scheduling task is adjusted, the task levels of all unexecuted scheduling tasks in the task pool, the equipment priorities of all equipment used by all unexecuted scheduling tasks, and the workpiece priorities of all workpieces required to be processed by all unexecuted scheduling tasks are obtained.
[0020] Understandably, the task pool refers to a database used to store and issue scheduling tasks. A new scheduling task refers to a scheduling task that is newly put into the task pool. Scheduling tasks refer to the planning and execution of processes such as workpiece processing. Unexecuted scheduling tasks refer to tasks that have not yet been issued for execution. The task level is used to characterize the criticality of the task. The equipment priority is used to characterize the priority of the equipment used for the unexecuted scheduling task. The workpiece priority is used to characterize the priority of the workpiece required to be processed for the unexecuted scheduling task. Among them, the task level, equipment priority and workpiece priority can use numerical values to represent different levels. For example, the task level is 400, the equipment priority is 101 and the workpiece priority is 1000. Scheduling task adjustment refers to adjusting one or more of the task level, equipment priority or workpiece priority of the unexecuted scheduling tasks in the task pool.
[0021] Specifically, the task pool for scheduling tasks is monitored. If no new scheduling tasks are detected in the task pool or the task level / equipment priority / workpiece priority of unexecuted scheduling tasks in the task pool is adjusted, the task is issued and executed according to the current priority. If a new scheduling task is detected in the task pool or the task level / equipment priority / workpiece priority of unexecuted scheduling tasks in the task pool is adjusted, the relevant information of all unexecuted scheduling tasks in the task pool is obtained. Then, from all the relevant information, the task level of all unexecuted scheduling tasks, the equipment priority of all unexecuted scheduling tasks, and the workpiece priority of all workpieces required to be processed by all unexecuted scheduling tasks are extracted.
[0022] In another embodiment, a quantity threshold corresponding to the task pool is obtained. When the number of scheduled tasks in the task pool reaches the quantity threshold, the executed scheduled tasks are deleted and the records of the executed scheduled tasks are transferred to another database for storage and the data information is synchronized to the system to facilitate subsequent reference.
[0023] In another embodiment, the task pool only contains unexecuted scheduled tasks, and when a task in the task pool is issued, the task is deleted from the task pool. In this way, when it is detected that a new scheduled task is added to the task pool or the task level / equipment priority / workpiece priority of an unexecuted scheduled task in the task pool is adjusted, the relevant information of all scheduled tasks in the task pool is obtained, and the task level of all scheduled tasks, the equipment priority of all scheduled tasks, and the workpiece priority of all workpieces to be processed by all scheduled tasks are extracted from all relevant information.
[0024] S20: sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task to obtain the task priority corresponding to each of the unexecuted scheduled tasks.
[0025] It can be understood that the task priority is used to represent the urgency of the unexecuted scheduled task, and a higher priority represents a more urgent task.
[0026] Specifically, the task priority corresponding to each unexecuted scheduling task is determined based on the task level, device priority and workpiece priority corresponding to the same unexecuted scheduling task, that is, the task level, device priority and workpiece priority corresponding to the same unexecuted scheduling task are obtained, and the weight of the task level, the weight of the device priority and the weight of the workpiece priority corresponding to the unexecuted scheduling task are queried and obtained. Then, the priority of the unexecuted scheduling task is processed by the weight of the task level and the task level, the weight of the device priority and the device priority, and the weight of the workpiece priority and the workpiece priority, so as to obtain the task priority corresponding to the unexecuted scheduling task. In this way, the priorities of all unexecuted scheduling tasks are calculated in the above manner to obtain the task priorities corresponding to each unexecuted scheduling task.
[0027] In one embodiment, task levels, device priorities, and workpiece priorities are quantified. For example, task levels are 3 for high, 2 for medium, and 1 for low; device priorities are 3 for high, 2 for medium, and 1 for low; and workpiece priorities are 3 for high, 2 for medium, and 1 for low. For an unscheduled task, assuming its task level is L, its device priority is E, and its workpiece priority is J, the task priority P can be calculated using the following formula: P = W1*L+W2*E+W3*J. For example, if W1 = 0.4, W2 = 0.3, and W3 = 0.3, the task level is high (L = 3), the device priority is medium (E = 2), and the workpiece priority is high (J = 3), then P = 0.4*3+0.3*2+0.3*3 = 2.7. This example is for illustration only and does not represent an actual setup.
[0028] In another embodiment, a hierarchical model is constructed, with task priority as the target layer, and task level, equipment priority, and workpiece priority as the criterion layer. A judgment matrix is constructed through methods such as expert scoring. For example, regarding the relative importance between task level and equipment priority, experts judge based on experience that task level is slightly more important than equipment priority. In this case, the elements in the row corresponding to task level and the column corresponding to equipment priority in the judgment matrix can be set to 3 (indicating slightly important), and the elements in the row corresponding to equipment priority and the column corresponding to task level can be set to one-third. The weight vector of each criterion is calculated, and after a consistency check, a reasonable weight distribution is obtained. Then, based on the score of the task under each criterion (the quantification method is the same as the weighted comprehensive method), the task priority corresponding to each unexecuted scheduled task is calculated. This embodiment is for illustration only and does not represent the actual setting.
[0029] S30: Determine a target task queue according to all the task priorities, and issue and execute the scheduling task according to the target task queue.
[0030] Understandably, the target task queue refers to the task execution queue corresponding to all unexecuted scheduled tasks in the task pool. The task execution queue refers to the execution order of all unexecuted scheduled tasks.
[0031] Specifically, all unexecuted scheduled tasks are sorted according to their priorities. That is, all task priorities are compared using a bubble sort method to obtain a priority sorting result. Unexecuted scheduled tasks corresponding to each task priority are then sorted using the task priorities in the priority sorting result to obtain a target task queue. Scheduled tasks are then issued and executed based on the unexecuted scheduled tasks in the target task queue.
[0032] In one embodiment, if two or more unexecuted scheduled tasks have the same priority, the task level is used as the primary sorting criterion, the device priority is used as the secondary sorting criterion, and the workpiece priority is used as the third sorting criterion. If two unexecuted scheduled tasks are identical, a notification is sent to a preset administrator, who then determines the execution order.
[0033] The intelligent production line scheduling method of the present invention acquires the task level, device priority, and workpiece priority of all unscheduled tasks by adding a new scheduled task to the task pool or adjusting the task level, device priority, and workpiece priority of unscheduled tasks in the task pool. By determining the task level, device priority, and workpiece priority of the scheduled task, the priority of each unscheduled task is determined, so that the task priority reflects the urgency of each unscheduled task, thereby ensuring that urgent tasks are prioritized. This allows the production sequence to be adjusted according to production needs, thereby improving production efficiency.
[0034] In one embodiment, in step S20, determining the task priority corresponding to each of the unexecuted scheduled tasks based on the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task includes: S201, obtaining information weights corresponding to respective target information; the target information includes task level, equipment priority, and workpiece priority.
[0035] S202 : Calculate the task priority corresponding to each of the unexecuted scheduled tasks according to the task level and its information weight, the device priority and its information weight, and the workpiece priority and its information weight.
[0036] It can be understood that the information weight refers to the weight corresponding to each target information, for example, 0.3, 0.2 or 0.4. The weight is set in advance and can be adjusted according to actual conditions.
[0037] Specifically, the information weight corresponding to each target information is retrieved from the task level, device priority, and workpiece priority in the target information, that is, a weight list is obtained. The information weight corresponding to the task level is retrieved from the weight list and determined as the level weight corresponding to the task level. Similarly, the information weight corresponding to the device priority is retrieved from the weight list and determined as the device weight corresponding to the device priority. Similarly, the information weight corresponding to the workpiece priority is retrieved from the weight list and determined as the workpiece weight corresponding to the workpiece priority. Further, based on the task level and its information weight, the device priority and its information weight, and the workpiece priority and its information weight, the task priority corresponding to each unexecuted scheduled task is calculated. Specifically, the task level, device priority, and workpiece priority corresponding to the same unexecuted scheduled task are obtained. The task level and its corresponding level weight, the device priority and its corresponding device weight, and the workpiece priority and its corresponding workpiece weight are then weighted to obtain the task priority corresponding to the unexecuted scheduled task. In this way, by calculating the priorities of all unexecuted scheduled tasks in the above manner, the task priorities corresponding to each of the unexecuted scheduled tasks can be obtained.
[0038] In this embodiment, by obtaining the information weight corresponding to each target information, the importance of different information is determined, and then the task priority is calculated, and the accuracy of the task priority in reflecting the importance of the task is ensured.
[0039] In one embodiment, in step S20, that is, sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task to obtain the task priority corresponding to each of the unexecuted scheduled tasks, further comprising: S203: Obtain the waiting time required for all the unexecuted scheduled tasks.
[0040] S204 : Determine the task priority corresponding to each of the unexecuted scheduled tasks according to the task level, the device priority, the waiting time, and the workpiece priority corresponding to the same unexecuted scheduled task.
[0041] It can be understood that the waiting time refers to the length of time required to wait for executing the task, for example, 5 minutes or 15 minutes.
[0042] Specifically, when it is monitored that a new scheduling task is put into the task pool or the task level / equipment priority / workpiece priority is adjusted, in addition to obtaining the task level of all unexecuted scheduling tasks in the task pool, the equipment priority of the equipment used, and the workpiece priority of the workpiece to be processed, the waiting time required for all unexecuted scheduling tasks is also obtained, that is, the relevant information corresponding to each unexecuted scheduling task is obtained, and then the task level, equipment priority, workpiece priority and waiting time corresponding to the priority are extracted from the relevant information. Furthermore, the task priority corresponding to each unexecuted scheduling task is determined based on the task level, device priority, waiting time and workpiece priority corresponding to the same unexecuted scheduling task, that is, the level weight corresponding to the task level, the device weight corresponding to the device priority, the workpiece weight corresponding to the workpiece priority and the time weight corresponding to the waiting time are queried and obtained, and the task level, device priority, waiting time and workpiece priority corresponding to the same unexecuted scheduling task, and their level weight, device weight, time weight and workpiece weight are weighted, that is, the task level is multiplied by the level weight, the device weight is multiplied by the device priority, the waiting time is multiplied by the time weight and the workpiece priority is multiplied by the workpiece weight, and all the multiplication results are summed up to obtain the task priority corresponding to the unexecuted scheduling task. In this way, by calculating the priorities of all unexecuted scheduling tasks in the above manner, the task priorities corresponding to each unexecuted scheduling task can be obtained.
[0043] In this embodiment, the importance of different information is determined through task level and level weight, device priority and device weight, waiting time and time weight, and workpiece priority and workpiece weight, thereby realizing the calculation of task priority, and thus the task priority can accurately reflect the importance of the scheduled task.
[0044] In one embodiment, in step S204, determining the task priority corresponding to each of the unexecuted scheduled tasks based on the task level, the device priority, the waiting time, and the workpiece priority corresponding to the same unexecuted scheduled task includes: S2041: Obtain a time threshold, and compare the time threshold with the waiting time corresponding to each of the unexecuted scheduled tasks.
[0045] S2042: If the waiting time exceeds the time threshold, obtain an adjustment parameter corresponding to the time threshold, and adjust the waiting time of the unexecuted scheduled task according to the adjustment parameter to obtain an adjusted waiting time.
[0046] S2043 : Determine the task priority corresponding to each of the unexecuted scheduled tasks according to the task level and its weight, the device priority and its weight, the adjustment waiting time and its weight, and the workpiece priority and its weight.
[0047] It is understood that the time threshold refers to the threshold used to evaluate the waiting time, for example, 3 minutes. The adjustment parameter refers to the value used to adjust the waiting time of the scheduled task, for example, 5 minutes. The adjusted waiting time refers to the waiting time after the adjustment.
[0048] Specifically, after obtaining the waiting time, a time threshold is obtained, and the waiting time corresponding to each unexecuted scheduled task is compared with the time threshold. If the waiting time does not exceed the time threshold, the waiting time of the unexecuted scheduled task is not adjusted. If the waiting time exceeds the time threshold, an adjustment parameter corresponding to the time threshold is obtained, and the waiting time of the unexecuted scheduled task is adjusted by the adjustment parameter, that is, the waiting time and the adjustment parameter are differenced, and it is determined whether the difference is greater than or equal to zero. When the difference is less than zero, zero is determined as the adjusted waiting time. When the difference is greater than or equal to zero, the difference is determined as the adjusted waiting time. In this way, the adjusted waiting time corresponding to each unexecuted scheduled task can be obtained. Furthermore, according to the task level and its weight, the device priority and its weight, the adjustment waiting time and its weight, and the workpiece priority and its weight, the task priority corresponding to each unexecuted scheduling task is determined, that is, the level weight corresponding to the task level, the device weight corresponding to the device priority, the workpiece weight corresponding to the workpiece priority, and the time weight corresponding to the adjustment waiting time are obtained, and the task level and its level weight, the device priority and its device weight, the adjustment waiting time and its workpiece weight, and the workpiece priority and its time weight corresponding to the same unexecuted scheduling task are weighted, and the task priority corresponding to the unexecuted scheduling task can be obtained. In this way, by calculating the priorities of all unexecuted scheduling tasks in the above manner, the task priority corresponding to each unexecuted scheduling task can be obtained.
[0049] In this embodiment, the importance of different information is determined through task level and its weight, device priority and its weight, adjustment waiting time and its weight, and workpiece priority and its weight, thereby realizing the calculation of task priority, and thus the task priority can accurately reflect the importance of the task.
[0050] In one embodiment, in step S20, determining the task priority corresponding to each of the unexecuted scheduled tasks based on the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task, further includes: S205 : Acquire all task artifacts corresponding to the unexecuted scheduled tasks and the first priorities corresponding to the task artifacts, as well as all task devices and the second priorities corresponding to the task devices.
[0051] S206: Compare all the first priorities and select the first priority with the highest priority to be determined as the workpiece priority; and compare all the second priorities and select the second priority with the highest priority to be determined as the device priority.
[0052] S207 , inputting the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task into a preset task model, and outputting the task priority corresponding to each unexecuted scheduled task.
[0053] Understandably, the first priority refers to the priority associated with each task artifact. A task artifact refers to the artifact required for processing in each unscheduled task. The second priority refers to the priority associated with each task device. A task device refers to the device used to execute the unscheduled task. The preset task model refers to a neural network model trained with a large amount of sample data and used to calculate task priorities.
[0054] Specifically, when there are multiple task devices and task artifacts in an unexecuted scheduled task, all task artifacts corresponding to the unexecuted scheduled task and the first priority corresponding to each task artifact, as well as all task devices and the second priority corresponding to each task device are obtained. That is, relevant information corresponding to the unexecuted scheduled task is obtained, and all task artifacts and the first priority corresponding to each task artifact, as well as all task devices and the second priority corresponding to each task device are extracted from the relevant information. Then, all first priorities are compared, and the first priority with the highest priority is screened out, and the first priority is determined as the artifact priority. Similarly, all second priorities are compared, and the second priority with the highest priority is screened out, and the second priority is determined as the device priority. Next, obtain the preset task model, and input the task level, equipment priority and workpiece priority corresponding to the same unexecuted scheduling task into the preset task model. The task priority is calculated for the task level, equipment priority and workpiece priority through the priority calculation formula learned during the training of the preset task model. That is, the task level, equipment priority and workpiece priority are weighted by the weight parameters learned during training, and the task priority corresponding to each of the unexecuted scheduling tasks output by the preset task model can be obtained.
[0055] In another embodiment, the task level, device priority, and workpiece priority corresponding to the same unexecuted scheduled task are obtained, and then the task level and its corresponding weight, the device priority and its corresponding weight, and the workpiece priority and its corresponding weight are weighted to obtain the task priority corresponding to the unexecuted scheduled task. In this way, by calculating the priorities of all unexecuted scheduled tasks in the above manner, the task priority corresponding to each unexecuted scheduled task can be obtained.
[0056] In this embodiment, by comparing the first priorities of all task artifacts and the second priorities of all task devices, the artifact priorities and device priorities are screened, thereby realizing the calculation of all task priorities, thereby ensuring the accuracy of the priorities of unexecuted scheduled tasks and reflecting the urgency of unexecuted scheduled tasks.
[0057] In one embodiment, in step S30, determining a target task queue according to all the task priorities, and issuing and executing the scheduled task according to the target task queue includes: S301 , sorting all the unexecuted scheduled tasks according to the priorities of all the tasks to obtain a target task queue.
[0058] S302: Distribute and execute the unexecuted scheduled tasks in the target task queue.
[0059] Specifically, after obtaining the task priority, all task priorities are compared and sorted according to the size of the task priority, thereby obtaining a priority sorting result. Then, all unexecuted scheduled tasks are sorted according to the task priority in the priority sorting result, that is, the unexecuted scheduled tasks are sorted according to the position of the task priority in the priority sorting result, and the target task queue can be obtained. Next, tasks are issued and executed according to the target task queue, that is, when the previous scheduled task is completed, the unexecuted scheduled task with the highest task priority in the target task queue is issued, that is, the first unexecuted scheduled task in the target task queue is issued, and the unexecuted scheduled task is executed.
[0060] In this embodiment, all scheduled tasks are sorted by task priority, thereby obtaining the target task queue, facilitating the subsequent issuance and execution of scheduled tasks, and further enabling priority processing of urgent tasks.
[0061] In one embodiment, before step S30, that is, before issuing and executing the unexecuted scheduled tasks in the target task queue, the process further includes: S40, when it is monitored that the number of unexecuted scheduled tasks in the task pool changes or the scheduled tasks are adjusted, the task levels of all unexecuted scheduled tasks in the task pool, the equipment priorities of all equipment used by the unexecuted scheduled tasks, and the workpiece priorities of the workpieces required to be processed by all unexecuted scheduled tasks are obtained.
[0062] S50 , determining an update priority corresponding to each of the unexecuted scheduled tasks according to the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task.
[0063] S60 , issuing and executing tasks according to the updated priorities corresponding to the unexecuted scheduled tasks in the updated task queue, wherein the updated task queue refers to the updated task execution queue corresponding to all unexecuted scheduled tasks in the task pool.
[0064] Understandably, updating the priority refers to recalculating the result of all unexecuted scheduled tasks. Updating the task queue refers to the updated task execution queue corresponding to all unexecuted scheduled tasks in the task pool.
[0065] Specifically, the unexecuted scheduled tasks in the task pool are monitored in real time. When the number of unexecuted scheduled tasks in the task pool is monitored to change or the scheduled tasks are adjusted, that is, when the scheduled tasks are monitored to be put into the task pool, or when the task level / equipment priority / workpiece priority of the unexecuted scheduled tasks in the task pool is adjusted, the task level of all unexecuted scheduled tasks in the task pool, the equipment priority of all equipment used by the unexecuted scheduled tasks, and the workpiece priority of all workpieces required to be processed by the unexecuted scheduled tasks are obtained. Then, based on the task level, equipment priority, and workpiece priority corresponding to the same unexecuted scheduled task, the update priority corresponding to each unexecuted scheduled task is determined. That is, the task level, equipment priority, and workpiece priority corresponding to the same unexecuted scheduled task are obtained, and the weight of the task level, the weight of the equipment priority, and the weight of the workpiece priority corresponding to the unexecuted scheduled task are queried and obtained. Then, the weight of the task level is weighted with the task level, the weight of the equipment priority is weighted with the equipment priority, and the weight of the workpiece priority is weighted with the workpiece priority to obtain the update priority corresponding to each unexecuted scheduled task. Next, all unexecuted scheduled tasks are sorted according to their update priorities. This involves first comparing all update priorities and then sorting them based on the comparison results to obtain an update priority sorting result. This sorting process then creates an update task queue. Unexecuted scheduled tasks in the update task queue are dispatched and executed in the order they appear.
[0066] In this embodiment, by monitoring the task pool, real-time updating of the priorities of all scheduled tasks is achieved, and the production order is adjusted according to production needs, thereby ensuring priority processing of urgent tasks, ensuring the accuracy of priorities, reflecting the emergency procedures of all scheduled tasks, and thus improving production efficiency.
[0067] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0068] In one embodiment, a production line intelligent scheduling device is provided, which corresponds one-to-one to the production line intelligent scheduling method in the above embodiment. Figure 2 As shown, the production line intelligent scheduling device includes a priority acquisition module 10, a priority determination module 20 and a scheduling task execution module 30. The functional modules are described in detail as follows: The priority acquisition module 10 is used to acquire the task levels of all unscheduled tasks in the task pool, the equipment priorities of all equipment used by all unscheduled tasks, and the workpiece priorities of all workpieces required to be processed by all unscheduled tasks when a new scheduled task is added to the task pool or a scheduled task is adjusted; The priority determination module 20 is configured to input the task level, the equipment priority, and the workpiece priority corresponding to the same unexecuted scheduled task into a preset task model, and output the task priority corresponding to each unexecuted scheduled task; The scheduling task execution module 30 is used to determine a target task queue according to all the task priorities, and to issue and execute the scheduling task according to the target task queue.
[0069] In one embodiment, the priority determination module 20 includes: A weight acquisition unit, configured to acquire information weights corresponding to respective target information; the target information includes task level, equipment priority, and workpiece priority; The priority calculation unit is used to calculate the task priority corresponding to each of the unexecuted scheduled tasks according to the task level and its information weight, the device priority and its information weight, and the workpiece priority and its information weight.
[0070] In one embodiment, the priority determination module 20 further includes: A waiting time unit is used to obtain the waiting time required for all the unexecuted scheduled tasks; The first priority determination unit is configured to determine the task priority corresponding to each of the unexecuted scheduled tasks according to the task level, the device priority, the waiting time, and the workpiece priority corresponding to the same unexecuted scheduled task.
[0071] In one embodiment, the priority determination module 20 further includes: a time comparison unit, configured to obtain a time threshold and compare the time threshold with the waiting time corresponding to each of the unexecuted scheduled tasks; a time adjustment unit, configured to obtain an adjustment parameter corresponding to the time threshold if the waiting time exceeds the time threshold, and adjust the waiting time of the unexecuted scheduled task according to the adjustment parameter to obtain an adjusted waiting time; The second priority determination unit is configured to determine the task priority corresponding to each of the unexecuted scheduled tasks according to the task level and its weight, the device priority and its weight, the adjustment waiting time and its weight, and the workpiece priority and its weight.
[0072] In one embodiment, the priority determination module 20 further includes: an artifact device acquisition unit, configured to acquire all task artifacts corresponding to the unexecuted scheduled tasks and the first priority corresponding to each of the task artifacts, as well as all task devices and the second priority corresponding to each of the task devices; a priority comparison unit, configured to compare all the first priorities and select the first priority with the highest priority to determine as the workpiece priority, and to compare all the second priorities and select the second priority with the highest priority to determine as the device priority; The third priority determination unit is used to input the task level, the equipment priority and the workpiece priority corresponding to the same unexecuted scheduled task into a preset task model, and output the task priority corresponding to each unexecuted scheduled task.
[0073] In one embodiment, the apparatus further comprises: A quantity monitoring module is used to obtain the task levels of all unexecuted scheduled tasks in the task pool, the equipment priorities of all equipment used by all unexecuted scheduled tasks, and the workpiece priorities of all workpieces required to be processed by all unexecuted scheduled tasks when it is detected that the number of unexecuted scheduled tasks in the task pool has changed or the scheduled tasks have been adjusted; a priority updating module, configured to determine an update priority corresponding to each of the unexecuted scheduled tasks according to the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task; The queue update module is used to issue and execute tasks according to the update priority corresponding to each of the unexecuted scheduled tasks in the updated task queue. The updated task queue refers to the updated task execution queue corresponding to all unexecuted scheduled tasks in the task pool.
[0074] In one embodiment, the scheduling task execution module 30 includes: A task sorting unit, configured to sort all the unexecuted scheduled tasks according to the priorities of all the tasks to obtain a target task queue; A task execution unit is used to issue and execute the unexecuted scheduled tasks in the target task queue.
[0075] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the above-mentioned production line intelligent scheduling method.
[0076] For the specific definitions of computer devices, processors, and their various units and modules, please refer to the definitions of the production line intelligent scheduling method above, and will not be repeated here. The various modules in the above-mentioned processor can be implemented in whole or in part by software, hardware, and a combination thereof. It can be understood that the processor includes a processor, a memory, a network interface, and a database connected via a device bus. The various modules of the processor can be embedded in or independent of the processor in hardware form, or can be stored in the memory in software form, so that the processor can call and execute the operations corresponding to the above modules. Among them, the processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores operating devices, computer programs, and a database. The internal memory provides an environment for the operation of the operating devices and computer programs in the non-volatile storage medium. The database is used to store data used by the production line intelligent scheduling method in the above-mentioned embodiment. The network interface is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a production line intelligent scheduling method.
[0077] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned production line intelligent scheduling method is implemented.
[0078] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0079] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0080] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.
Claims
1. A production line intelligent scheduling method, characterized in that: include: When a new scheduling task is added to the task pool or a scheduling task is adjusted, the task levels of all unexecuted scheduling tasks in the task pool, the equipment priorities of all equipment used by the unexecuted scheduling tasks, and the workpiece priorities of all workpieces required to be processed by the unexecuted scheduling tasks are obtained; sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task, to obtain the task priority corresponding to each of the unexecuted scheduled tasks; A target task queue is determined according to all the task priorities, and scheduling tasks are issued and executed according to the target task queue.
2. The production line intelligent scheduling method according to claim 1, characterized in that: The step of sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task to obtain the task priority corresponding to each of the unexecuted scheduled tasks includes: Obtaining information weights corresponding to each target information; the target information includes task level, equipment priority, and workpiece priority; The task priority corresponding to each of the unexecuted scheduled tasks is calculated according to the task level and its information weight, the device priority and its information weight, and the workpiece priority and its information weight.
3. The production line intelligent scheduling method according to claim 1, characterized in that: The step of sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task to obtain the task priority corresponding to each of the unexecuted scheduled tasks further includes: Obtain the waiting time required for all the unexecuted scheduled tasks; The task priority corresponding to each of the unexecuted scheduled tasks is determined according to the task level, the device priority, the waiting time, and the workpiece priority corresponding to the same unexecuted scheduled task.
4. The intelligent scheduling method for a production line according to claim 3, characterized in that: The determining the task priority corresponding to each of the unexecuted scheduled tasks according to the task level, the device priority, the waiting time, and the workpiece priority corresponding to the same unexecuted scheduled task includes: Obtaining a time threshold, and comparing the time threshold with the waiting time corresponding to each of the unexecuted scheduled tasks; If the waiting time exceeds the time threshold, obtaining an adjustment parameter corresponding to the time threshold, and adjusting the waiting time of the unexecuted scheduled task by using the adjustment parameter to obtain an adjusted waiting time; The task priority corresponding to each of the unexecuted scheduled tasks is determined according to the task level and its weight, the device priority and its weight, the adjustment waiting time and its weight, and the workpiece priority and its weight.
5. The production line intelligent scheduling method according to claim 1, characterized in that: The step of sorting all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task to obtain the task priority corresponding to each of the unexecuted scheduled tasks further includes: Acquire all task artifacts corresponding to the unexecuted scheduled tasks and the first priority corresponding to each of the task artifacts, as well as all task devices and the second priority corresponding to each of the task devices; Comparing all the first priorities and screening out the first priority with the highest priority to determine as the workpiece priority, and comparing all the second priorities and screening out the second priority with the highest priority to determine as the equipment priority; The task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task are input into a preset task model, and the task priority corresponding to each unexecuted scheduled task is output.
6. The production line intelligent scheduling method according to claim 1, characterized in that: Before determining the target task queue according to all the task priorities, the method further includes: When it is detected that the number of unexecuted scheduled tasks in the task pool changes or the scheduled tasks are adjusted, the task levels of all unexecuted scheduled tasks in the task pool, the equipment priorities of all equipment used by the unexecuted scheduled tasks, and the workpiece priorities of all workpieces required to be processed by the unexecuted scheduled tasks are obtained; Determine the update priority corresponding to each of the unexecuted scheduled tasks according to the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task; The tasks are issued and executed according to the updated priorities corresponding to the unexecuted scheduled tasks in the updated task queue, where the updated task queue refers to the updated task execution queue corresponding to all the unexecuted scheduled tasks in the task pool.
7. The intelligent scheduling method for a production line according to claim 1, characterized in that: Determining a target task queue according to all the task priorities, and issuing and executing the scheduling task according to the target task queue, includes: Sorting all the unexecuted scheduled tasks according to the priorities of all the tasks to obtain a target task queue; The unexecuted scheduled tasks in the target task queue are issued and executed.
8. A production line intelligent scheduling device, characterized in that: Also includes: A priority acquisition module is used to acquire the task levels of all unscheduled tasks in the task pool, the equipment priorities of all equipment used by all unscheduled tasks, and the workpiece priorities of all workpieces required to be processed by all unscheduled tasks when a new scheduled task is added to the task pool or a scheduled task is adjusted; a priority determination module, configured to sort all the unexecuted scheduled tasks by the task level, the device priority, and the workpiece priority corresponding to the same unexecuted scheduled task, to obtain a task priority corresponding to each of the unexecuted scheduled tasks; The scheduling task execution module is used to determine the target task queue according to all the task priorities, and issue and execute the scheduling task according to the target task queue.
9. A computer device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the production line intelligent scheduling method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the production line intelligent scheduling method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Production task scheduling method and device, storage medium and electronic equipment
CN121481178A