Inspection method based on multi-device cooperation

By constructing mathematical models of tasks and equipment in the intelligent inspection system and optimizing task allocation using the Lagrange multiplier mechanism, the resource allocation problem in multi-device collaborative scheduling is solved, achieving efficient and flexible task scheduling and equipment load balancing, thereby improving the system's response speed and accuracy.

CN121638830AActive Publication Date: 2026-03-10HUNAN BOXIN CHUANGYUAN INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-04
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing intelligent inspection systems cannot effectively allocate tasks and schedule resources when multiple devices are working together to perform tasks. They cannot flexibly respond to dynamic changes in task priorities and device workloads, resulting in suboptimal scheduling results and an inability to respond to urgent tasks in a timely manner.

Method used

Tasks and devices are mapped to a mathematical model to construct task sets and device sets. An objective function is constructed using the Lagrange multiplier mechanism. Task response pressure and device load constraints are combined to generate task and device allocation results. Convergent scheduling is achieved by iteratively updating the multipliers.

Benefits of technology

It achieves efficient task allocation under multiple constraints, ensures priority processing of urgent tasks, balances equipment load, improves the response speed and accuracy of the scheduling system, and is suitable for large-scale task scheduling scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121638830A_ABST
    Figure CN121638830A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent inspection system and multi-device cooperative scheduling, and discloses an inspection method based on multi-device cooperation. Modeling inspection tasks and equipment in a unified manner in a scheduling period, registering time, types and maximum operation duration parameters, and constructing an executable relation of the task equipment; calculating residual response time, and generating normalized task priority according to the residual response time and the execution duration; and setting task unique allocation, equipment maximum load and task performability constraint, introducing Lagrange optimization, selecting tasks for equipment according to task density, iteratively updating until convergence, generating an execution sequence sorted according to residual response time, and issuing the execution sequence. Through the steps, task attributes are unified, the equipment capacity is quantified, unbalance caused by single time or duration sorting is avoided, timeliness and load are considered under multiple constraints, tasks can be executed, the equipment is not overloaded, and the resource utilization rate and the task completion rate are increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent inspection systems and multi-device collaborative scheduling technology, specifically to an inspection method based on multi-device collaboration. Background Technology

[0002] With the rapid development of intelligent devices and automation technologies, inspection and maintenance are becoming increasingly widespread across various industries. Traditional inspection methods typically rely on manual operation, which is not only inefficient but also poses high safety risks and labor intensity. To address these issues, intelligent inspection systems have been widely adopted, particularly in hazardous environments, equipment monitoring, and factory production lines. Utilizing various sensors, robots, drones, and other equipment, intelligent inspection systems can autonomously perform tasks such as equipment inspection and fault detection, improving both work efficiency and safety.

[0003] However, existing intelligent inspection systems still face many challenges. First, effectively allocating tasks and scheduling equipment resources becomes a significant challenge when multiple devices collaborate on tasks. Existing multi-device task scheduling methods are typically based on pre-defined rules or simple heuristic algorithms. These methods fail to fully consider multiple constraints such as task priority, device load capacity, and task timeliness, leading to suboptimal scheduling results. Therefore, achieving efficient device collaboration within limited resources and timeframes is a pressing issue for intelligent inspection systems. Most existing scheduling methods rely on static planning and fixed device task allocation strategies. For example, some traditional methods allocate tasks manually or through a rotation mechanism, but these methods do not fully consider dynamic changes in task priority, device workload, and inter-device collaboration. Therefore, the task allocation and scheduling process is often influenced by constraints, making it difficult to flexibly respond to sudden tasks and complex environmental changes. Furthermore, many existing technologies also suffer from the inability to update scheduling results in real time. For emergency tasks and tasks triggered by urgent alarms, existing systems often cannot adjust task priorities and device scheduling schemes in a timely manner, thus affecting task response speed and execution effectiveness. In complex task environments, especially when multiple tasks and multiple devices are executed together, the coordination between devices and the dynamic adjustment of tasks become particularly important.

[0004] Therefore, this case aims to propose an inspection method based on multi-device collaboration. First, tasks and devices are mapped into a mathematical model to establish a task set, a device set, and an executability matrix between them. Then, response pressure and normalized priority are constructed based on the remaining response time and expected execution time of the tasks to effectively measure the urgency and importance of the tasks. Next, the Lagrange multiplier mechanism is introduced to transform the task allocation problem into maximizing an objective function under three constraints: unique task allocation constraint, maximum device load constraint, and task executability constraint. Subsequently, for each device, an executable subset is selected based on task density sorting to quickly generate allocation results. Finally, the multipliers are iteratively updated with a step size and convergence is detected. After meeting a preset error threshold, the final allocation results are converted into an execution sequence ordered by remaining response time and issued for implementation. Summary of the Invention

[0005] This invention provides an inspection method based on multi-device collaboration, which helps to solve the problems mentioned in the background art.

[0006] This invention provides the following technical solution: a multi-device collaborative inspection method, comprising: Get the independent inspection tasks within the scheduling period, establish a task set, and register the task generation time parameter, expected execution duration parameter, maximum allowed response time parameter, and task type parameter; Obtain the inspection equipment that can participate in the scheduling, establish the equipment set, register the start absolute time parameter, the maximum running time limit parameter of the inspection equipment and the equipment type parameter, and construct the task equipment executability matrix; The system time is obtained on the timeline, the remaining response time is calculated based on the task parameters, the response pressure is constructed based on the remaining response time, and a normalized task priority is generated by combining the execution duration. Set up a Boolean variable for task device allocation and establish unique task allocation constraints, maximum device load constraints, and task executability constraints. A Lagrange objective function is constructed using task parameters, equipment parameters, task and equipment allocation Boolean variables, and Lagrange multipliers. The objective function is maximized under the constraints of unique task allocation, maximum equipment load, and task executability. For each inspection device, the task is selected from largest to smallest based on the task device executability matrix and task density to generate the task device allocation result; The Lagrange multipliers of each inspection device are updated using step size and load difference in iteration rounds, and the convergence of the task device allocation results is checked. After the convergence condition determined by the convergence judgment error threshold is met, a task execution sequence sorted by the remaining response time is generated for each inspection device according to the converged task device allocation result, and then sent to the corresponding inspection device for execution.

[0007] Optionally, the step of obtaining independent inspection tasks within the scheduling period, establishing a task set, and registering task generation time parameters, expected execution duration parameters, maximum allowed response time parameters, and task type parameters specifically includes: Within the current scheduling period, receive multiple independent inspection tasks, count the total number of independent inspection tasks, and assign a task number index to each independent inspection task. Create a task set according to the task number index, and create a corresponding task object for each independent inspection task in the task set; In each task object, set the task generation time parameter, the expected execution duration parameter, the maximum allowed response time parameter from the time the task is generated, and the task type parameter. Different values ​​of the task type parameter represent daily inspection tasks, emergency tasks, and linkage tasks, respectively.

[0008] Optionally, the step of acquiring the inspection equipment that can participate in scheduling, establishing a equipment set, registering the start absolute time parameter, the maximum running time limit parameter of the inspection equipment, and the equipment type parameter, and constructing a task equipment executability matrix specifically includes: Within the current scheduling cycle, obtain the inspection equipment that can participate in the scheduling, count the total number of inspection equipment, and assign an equipment number to each inspection equipment. Create an equipment set according to the equipment number, and create a corresponding equipment object for each inspection equipment in the equipment set; In each device object, set the absolute start time parameter for when the task can be started, the maximum running time limit parameter for the inspection device, and the device type parameter. Different values ​​of the device type parameter represent ground robots, aerial drones, and fixed equipment, respectively. A task-device executability matrix is ​​constructed based on the task set and the device set. Each element in the matrix is ​​set as a Boolean value, indicating whether the corresponding inspection device has the ability to execute the corresponding task. The executable state and the non-executable state correspond to the two values ​​of the matrix element, respectively.

[0009] Optionally, the step of obtaining the system time on the timeline, calculating the remaining response time based on task parameters, constructing response pressure based on the remaining response time, and generating a normalized task priority by combining the execution duration specifically includes: Obtain the current system time on a unified timeline; For each task in the task set, the remaining response time parameter is calculated by subtracting the sum of the current system time and the task generation time parameter from the maximum allowed response time parameter; For each task in the task set, a response pressure parameter is constructed based on the remaining response time parameter. When the remaining response time parameter is not less than zero, the response pressure parameter is obtained by taking the reciprocal of the sum of the remaining response time parameter and the preset positive real constant. When the remaining response time parameter is less than zero, the response pressure parameter is obtained by taking the reciprocal of the preset positive real constant. For each task in the task set, the original non-normalized priority parameter is obtained by multiplying the response pressure parameter by the expected execution duration parameter; The maximum value is obtained from the original non-normalized priority parameters of all tasks. When the maximum value is greater than zero, the normalized task priority parameter of each task is obtained by dividing the original non-normalized priority parameter of each task by the maximum value. When the maximum value is equal to zero, the normalized task priority parameter of all tasks is uniformly set to the same preset value.

[0010] Optionally, the step of setting task device allocation Boolean variables and establishing task unique allocation constraints, device maximum load constraints, and task executability constraints specifically includes: For each pair of tasks and inspection equipment in the task set and equipment set, a task-equipment allocation Boolean variable is set. When a task is allocated to an inspection equipment, the corresponding Boolean variable is set to a value representing the allocation status. When a task is not allocated, the corresponding Boolean variable is set to a value representing the unallocated status. Initially, all task-equipment allocation Boolean variables are uniformly set to a value representing the unallocated status. For each task in the task set, a Boolean variable is assigned and summed for all task devices related to the corresponding task. By constraining the summation value to not exceed one, a unique task assignment constraint is formed. For each inspection device in the equipment set, assign Boolean variables to all task devices related to the corresponding inspection device and sum them up according to the expected execution duration parameter of the corresponding task. By constraining the weighted sum value to not exceed the maximum running time limit parameter of the inspection device, the maximum load constraint of the device is formed. Based on the task and equipment executability matrix, for each pair of tasks and inspection equipment, when the corresponding element in the task and equipment executability matrix is ​​in an unexecutable state, the corresponding task and equipment allocation Boolean variable is fixed to the value representing the unallocated state. Only when the corresponding element in the task and equipment executability matrix is ​​in an executable state is the corresponding task and equipment allocation Boolean variable allowed to take the value of the allocated state.

[0011] Optionally, the step of constructing a Lagrange objective function using task parameters, equipment parameters, task-equipment allocation Boolean variables, and Lagrange multipliers, and maximizing the objective function under the constraints of unique task allocation, maximum equipment load, and task executability, specifically includes: For each inspection device in the equipment set, a Lagrange multiplier parameter corresponding to the maximum load constraint of the device is introduced, and a Lagrange multiplier parameter is set for each inspection device. Based on the normalized task priority parameter, expected execution duration parameter, maximum running time limit parameter of inspection equipment, task equipment allocation Boolean variable, and Lagrange multiplier parameter of each inspection equipment in the task set, a Lagrange objective function is constructed. The benefit term is obtained by summing the products of the normalized task priority parameter of all task and inspection equipment combinations and the corresponding task equipment allocation Boolean variable. The penalty term is obtained by summing the products of the Lagrange multiplier parameter of all inspection equipment and the difference between the total execution time of the assigned tasks of the corresponding inspection equipment and the maximum running time limit parameter of the inspection equipment. At the same time, the product of the Lagrange multiplier parameter of each inspection equipment and the maximum running time limit parameter of the corresponding inspection equipment is added to form a constant term. By using Boolean variables for task and equipment allocation as decision variables and a Lagrange objective function as the optimization objective, and taking the maximum value of the Lagrange objective function under the premise of satisfying the unique task allocation constraint, the maximum equipment load constraint, and the task executability constraint, the problem of task and inspection equipment allocation optimization is obtained.

[0012] Optionally, for each inspection device, the task generation task device allocation result is selected according to the task device executability matrix and task density from large to small, specifically including: For each inspection device in the device set, a local task scheduling candidate set for the corresponding inspection device is constructed based on the task index in the task device executability matrix where the corresponding element is executable. For each task in the local task scheduling candidate set, the task density parameter of the corresponding task on the corresponding inspection equipment is calculated using the normalized task priority parameter, the expected execution duration parameter of the corresponding task, and the Lagrange multiplier parameter of the corresponding inspection equipment. When the expected execution duration parameter is greater than zero, the task density parameter is obtained by subtracting the product of the Lagrange multiplier parameter and the expected execution duration parameter from the normalized task priority parameter and then dividing by the expected execution duration parameter. When the expected execution duration parameter is equal to zero, the task density parameter is set to a preset positive real constant. For each inspection device in the equipment set, based on the task density parameters of each task on the corresponding inspection device, the tasks in the local task scheduling candidate set are sorted from largest to smallest according to the task density parameters, and a task index sorting sequence associated with the corresponding inspection device is generated. For each inspection device in the device set, initialize the total execution time of the selected tasks for the corresponding inspection device to zero, and initialize the set of selected tasks for the corresponding inspection device to an empty set; For each inspection device in the device set, candidate tasks are selected sequentially according to the task index sorting sequence. The sum of the execution time of the currently selected tasks of the corresponding inspection device and the expected execution duration of the current candidate task is calculated. When the sum does not exceed the maximum running time limit of the inspection device, and the task device allocation Boolean variables corresponding to the current candidate task of all inspection devices are in an unallocated state, the current candidate task is added to the selected task set of the corresponding inspection device, the total execution time of the selected tasks of the corresponding inspection device is updated to the sum, and the task device allocation Boolean variable between the current candidate task and the corresponding inspection device is set to the value representing the allocation status. When any condition is not met, the current values ​​of the selected task set of the corresponding inspection device, the total execution time of the selected tasks, and the task device allocation Boolean variables of all inspection devices remain unchanged, and the next candidate task in the sorting sequence is processed. After all candidate tasks have been processed, for each inspection device in the device set, based on the selected task set of the corresponding inspection device, the task device allocation Boolean variable between the tasks belonging to the selected task set and the corresponding inspection device is set to a value indicating the allocation status, and the task device allocation Boolean variable between the tasks not belonging to the selected task set and the corresponding inspection device is set to a value indicating the unallocated status.

[0013] Optionally, the step of updating the Lagrange multipliers of each inspection device using the step size and load difference in each iteration round, and checking the convergence of the task device allocation results, specifically includes: Set the iteration round index for Lagrange multiplier update and task device allocation Boolean variable update. The initial iteration round index is zero. In the initial iteration round, the Lagrange multiplier parameter of each inspection device in the device set is set to zero, and the step size parameter of the current round is set according to the reciprocal of the iteration round index plus one. In each iteration, for each inspection device in the device set, based on the task device allocation Boolean variable and the expected execution duration parameter of each task in the current round, the total execution time of the assigned tasks of the corresponding inspection device in the current round is calculated. Then, the difference between the total and the maximum running time limit parameter of the inspection device is calculated. The difference is divided by the square of the maximum running time limit parameter of the inspection device to obtain the normalized difference parameter. The normalized difference parameter is multiplied by the step size parameter of the current round and added to the Lagrange multiplier parameter value of the corresponding inspection device in the current round. The result is compared with zero. When the result is less than zero, the Lagrange multiplier parameter value of the corresponding inspection device in the next round is set to zero. When the result is not less than zero, the result is used as the Lagrange multiplier parameter value of the corresponding inspection device in the next round. After updating the Lagrange multiplier parameters of all inspection devices, for each inspection device in the device set, the total execution time of the assigned tasks for the corresponding inspection device is recalculated based on the Boolean variable of task device allocation in the current round and the expected execution duration parameter of each task. The difference between the total and the upper limit parameter of the maximum running time of the inspection device is calculated. If the absolute value of the difference for all inspection devices does not exceed the preset convergence judgment error threshold, the iteration process is terminated and the Boolean variable of task device allocation and the Lagrange multiplier parameter value of the current round are retained. If the absolute value of the difference for at least one inspection device exceeds the preset convergence judgment error threshold, the iteration round index is incremented by one, the step size parameter of the next round is updated, and the next round of iteration continues.

[0014] Optionally, after satisfying the convergence condition determined by the convergence judgment error threshold, the step of generating a task execution sequence sorted by remaining response time for each inspection device based on the converged task device allocation result, and sending it to the corresponding inspection device for execution, specifically includes: After completing the multiplier update and task device allocation optimization, for each inspection device in the device set, based on the value of the final task device allocation Boolean variable, collect all tasks whose task device allocation Boolean variables are in the allocation state with the corresponding inspection device, and construct the scheduling task set of the corresponding inspection device. Obtain the current system time on a unified timeline. For each task in the scheduling task set of each inspection device, calculate the remaining response time parameter of each task by subtracting the sum of the current system time and the task generation time parameter from the maximum allowed response time parameter. For each inspection device, based on the remaining response time parameters of each task in its scheduling task set, the tasks in the scheduling task set are sorted in ascending order of remaining response time parameters, generating a corresponding task index sorting sequence. For each inspection device, the number of tasks in the sorted task index sequence is counted, and the number is used as the number of tasks that the corresponding inspection device needs to execute in the current scheduling cycle. For each inspection device, based on the correspondence between the task position and the task number in the task index sorting sequence, a sorted task execution sequence for the corresponding inspection device is constructed, such that the remaining response time parameter of the task corresponding to any previous position in the sorted task execution sequence is not greater than the remaining response time parameter of the task corresponding to the next position. The sorted task execution sequence of each inspection device is sent to the corresponding inspection device, and each inspection device is controlled to execute the tasks in the scheduled task set in the order of its sorted task execution sequence until all tasks in the current scheduling cycle are completed.

[0015] The present invention has the following beneficial effects: 1. All inspection tasks within the scheduling cycle are abstracted into a set of objects containing four core parameters: generation time, estimated duration, maximum response time limit, and task type. The timing and attribute differences of each task are explicitly recorded. This standardizes the template for multi-source task information, avoiding scheduling errors caused by manual field splitting and inconsistent formats in traditional systems. Through pre-classification of task type parameters, the solution can distinguish between routine inspections, emergency repairs, and collaborative operation needs, laying the foundation for subsequent priority generation. This simplifies the cost of integrating heterogeneous information in the scheduling system and enables rapid updates to the object set when there is a sudden increase in task volume or dynamic changes in task attributes, improving the response speed and accuracy of the scheduling system.

[0016] 2. For all schedulable devices, core parameters such as start availability time, maximum continuous runtime, and device type are registered using a unified template. Then, based on device capabilities and task requirements, a binary "task-device executability matrix" is dynamically generated. This directly maps device capabilities and task requirements to Boolean executability, pre-eliminating mismatches through a matrix format, thus improving allocation efficiency. The capability differences of heterogeneous devices, such as ground robots, drones, and fixed sensors, are uniformly quantified, eliminating the need for repeated capability checks during scheduling, significantly reducing algorithm complexity. Compared to existing label-based or rule-based selection methods, the executability matrix is ​​constructed once and reused multiple times, improving both system throughput and scheduling accuracy.

[0017] 3. Calculate the remaining response time based on the difference between the task generation time and the maximum allowed response time limit. Then, combine this with a preset constant to construct the response pressure. Finally, multiply this by the expected execution time to generate a non-normalized priority, which is then normalized to the [0,1] interval. This approach integrates both timeliness and workload dimensions, ensuring that tasks with high urgency are prioritized while also considering the cost of task execution. It effectively avoids the starvation problem of long tasks caused by sorting solely by remaining time, and also avoids the over-priority problem of short tasks caused by sorting solely by duration, thus achieving a more balanced overall scheduling. Compared with traditional single-priority strategies, this solution considers both task urgency and workload, and the generated priority better reflects real business needs.

[0018] 4. A Lagrangian objective function is constructed at the global level, incorporating normalized priority, expected execution time, equipment load constraints, and multiplier penalties into the optimization objective. Lagrangian relaxation maximization is then performed under three types of constraints: unique task allocation, maximum equipment load, and executability. This transforms inspection scheduling into a constrained Lagrangian optimization problem, making it possible to consider multiple constraints. By introducing multipliers to penalize overload situations, it ensures that equipment is not overloaded while also considering task importance, and dynamically balances supply and demand through multiplier iteration. Unlike existing heuristic or linear programming solutions, this approach offers stronger interpretability and convergence guarantees, making it suitable for large-scale task scheduling scenarios.

[0019] 5. After obtaining the global direction through Lagrange relaxation, this scheme constructs a local candidate task set for each device and calculates the task density according to "normalized priority – multiplier penalty × execution time" to achieve local subproblem scheduling. Global multiplier information is fused with local priority to generate a density index that reflects the "contribution / cost" ratio, and this index is then filtered sequentially from high to low density values ​​within each device. This ensures that the local scheduling results not only conform to the global optimal tendency but also enable rapid decision-making within the device scope, shortening computation latency. Compared with conventional global-local decomposition methods, this scheme avoids local inefficiencies caused by coarse global allocation and embeds global multipliers as local weights, improving the consistency of scheduling results.

[0020] 6. The Lagrange multipliers of each device are updated using iteration rounds and step size parameters. Penalty terms are dynamically added or removed based on the difference between the current allocation and the load, and overall convergence is determined by a preset error threshold. An incremental update rule normalized according to the load difference is introduced, which enables the multiplier update to respond quickly to overload conditions while avoiding oscillations caused by excessively large step sizes. A controllable convergence speed and accuracy balance mechanism is provided to ensure that the multipliers are stably updated to near the global optimum during scheduling. Compared with fixed step size or simple proportional updates, the normalization and threshold determination mechanism of this scheme is more conducive to efficient convergence in large-scale scenarios.

[0021] 7. After meeting the convergence criteria based on a preset error threshold, the scheme constructs a scheduling task set for each device according to the converged global allocation results, and generates a sorted execution sequence in ascending order of remaining response time, which is then distributed to the corresponding device for execution. Combining global optimal allocation with local time-sensitive sorting ensures that important tasks are prioritized while also considering the urgency of execution timing. The final distributed sequence truly satisfies the time window constraints of each task while ensuring global goal optimization. Compared to traditional one-time allocation or simple FIFO execution, this scheme provides superior execution performance and a higher task completion rate. Attached Figure Description

[0022] Figure 1 This is a schematic diagram of the process of the present invention. Detailed Implementation

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

[0024] Example, refer to Figure 1 Inspection methods based on multi-device collaboration include: Get the independent inspection tasks within the scheduling period, establish a task set, and register the task generation time parameter, expected execution duration parameter, maximum allowed response time parameter, and task type parameter; Obtain the inspection equipment that can participate in the scheduling, establish the equipment set, register the start absolute time parameter, the maximum running time limit parameter of the inspection equipment and the equipment type parameter, and construct the task equipment executability matrix; The system time is obtained on the timeline, the remaining response time is calculated based on the task parameters, the response pressure is constructed based on the remaining response time, and a normalized task priority is generated by combining the execution duration. Set up a Boolean variable for task device allocation and establish unique task allocation constraints, maximum device load constraints, and task executability constraints. A Lagrange objective function is constructed using task parameters, equipment parameters, task and equipment allocation Boolean variables, and Lagrange multipliers. The objective function is maximized under the constraints of unique task allocation, maximum equipment load, and task executability. For each inspection device, the task is selected from largest to smallest based on the task device executability matrix and task density to generate the task device allocation result; The Lagrange multipliers of each inspection device are updated using step size and load difference in iteration rounds, and the convergence of the task device allocation results is checked. After the convergence condition determined by the convergence judgment error threshold is met, a task execution sequence sorted by the remaining response time is generated for each inspection device according to the converged task device allocation result, and then sent to the corresponding inspection device for execution.

[0025] By standardizing the registration of all inspection tasks and equipment parameters, the problems of inconsistent task attributes and difficulty in quantifying equipment capabilities in traditional systems are avoided. By combining response pressure and execution duration to generate normalized priorities, a balance between time urgency and workload cost is achieved, resolving the issues of task starvation or excessive priority given to short tasks due to sorting solely by remaining time or workload. By establishing three types of constraints—unique task allocation, maximum equipment load, and executability—it is ensured that each task is allocated to at most one device, equipment is not overloaded, and the task is guaranteed to be executed. By incorporating these constraints, priorities, and equipment parameters into the Lagrange objective function, multi-constraint inspection scheduling is transformed into a solvable optimization model for the first time, achieving multi-objective coordination. Through local density sorting subset selection, both global optimality is maintained and executable subsequences are quickly obtained on each device, solving the problem of difficulty in global optimization in large-scale scenarios. Multiplier iterative updates and convergence judgment ensure algorithm convergence performance and load balance, avoiding oscillations and prolonged non-convergence. Finally, an execution sequence ordered by remaining response time is generated, ensuring true time window constraints and further improving task completion rate. Compared with existing static assignment or single-dimensional heuristic methods, this scheme achieves closed-loop optimization of scheduling and execution, improving the response efficiency and resource utilization of the inspection system.

[0026] The process of acquiring independent inspection tasks within the scheduling period, establishing a task set, and registering task generation time parameters, estimated execution duration parameters, maximum allowed response time parameters, and task type parameters specifically includes: Within the current scheduling period, receive multiple independent inspection tasks, count the total number of independent inspection tasks, and assign a task number index to each independent inspection task. Create a task set according to the task number index, and create a corresponding task object for each independent inspection task in the task set; In each task object, set the task generation time parameter, the expected execution duration parameter, the maximum allowed response time parameter from the time the task is generated, and the task type parameter. Different values ​​of the task type parameter represent daily inspection tasks, emergency tasks, and linkage tasks, respectively.

[0027] The total number of independent inspection tasks received within the current scheduling period is denoted as . Record the task number index as ; Establish a task set ;in, For the number A single inspection task object; Each task object contains the following parameter field: Task generation time The estimated time required to execute the task Maximum response time from the time of generation and task type number ;in, For the task The moment of generation; For the task The expected execution duration; For the task The maximum allowed response time from the moment of generation; For the task The type identifier, with a set of values. 1 indicates routine inspection, 2 indicates emergency tasks, and 3 indicates joint tasks.

[0028] The process of acquiring inspection equipment that can participate in scheduling, establishing an equipment set, registering the start absolute time parameter, the maximum running time limit parameter of the inspection equipment, and the equipment type parameter, and constructing a task equipment executability matrix specifically includes: Within the current scheduling cycle, obtain the inspection equipment that can participate in the scheduling, count the total number of inspection equipment, and assign an equipment number to each inspection equipment. Create an equipment set according to the equipment number, and create a corresponding equipment object for each inspection equipment in the equipment set; In each device object, set the absolute start time parameter for when the task can be started, the maximum running time limit parameter for the inspection device, and the device type parameter. Different values ​​of the device type parameter represent ground robots, aerial drones, and fixed equipment, respectively. A task-device executability matrix is ​​constructed based on the task set and the device set. Each element in the matrix is ​​set as a Boolean value, indicating whether the corresponding inspection device has the ability to execute the corresponding task. The executable state and the non-executable state correspond to the two values ​​of the matrix element, respectively.

[0029] The total number of inspection devices available for scheduling in this cycle is denoted as . Record the equipment number as ; Establish a device collection as ;in, For the number A single inspection equipment object; Each device Includes the following structure fields: Device The absolute start time of tasks that can begin execution within the current scheduling period. ,equipment Maximum allowed runtime during a single continuous run ,equipment Device type identifier Among them, equipment type identifier The set of values ​​is 1 represents a ground robot, 2 represents an aerial drone, and 3 represents a fixed device; Build a task device executability matrix The matrix elements are as follows: ;in, Task device executability matrix The Middle Line number The elements of the column, when Time indicates device Capable of performing tasks The ability, when This indicates that the person does not possess the ability.

[0030] The process of acquiring system time on the timeline, calculating remaining response time based on task parameters, constructing response pressure based on the remaining response time, and generating normalized task priority by combining the execution duration specifically includes: Obtain the current system time on a unified timeline; For each task in the task set, the remaining response time parameter is calculated by subtracting the sum of the current system time and the task generation time parameter from the maximum allowed response time parameter; For each task in the task set, a response pressure parameter is constructed based on the remaining response time parameter. When the remaining response time parameter is not less than zero, the response pressure parameter is obtained by taking the reciprocal of the sum of the remaining response time parameter and the preset positive real constant. When the remaining response time parameter is less than zero, the response pressure parameter is obtained by taking the reciprocal of the preset positive real constant. For each task in the task set, the original non-normalized priority parameter is obtained by multiplying the response pressure parameter by the expected execution duration parameter; The maximum value is obtained from the original non-normalized priority parameters of all tasks. When the maximum value is greater than zero, the normalized task priority parameter of each task is obtained by dividing the original non-normalized priority parameter of each task by the maximum value. When the maximum value is equal to zero, the normalized task priority parameter of all tasks is uniformly set to the same preset value.

[0031] Get the system time on the current unified timeline, denoted as ; Computational tasks The remaining response time is ; The response stress function is constructed as follows: ;in, For the task The response pressure value; It is a positive real constant used to prevent the denominator from being zero and to control... The upper bound; Computational tasks Unnormalized priority raw values ; The task priorities are normalized as follows: ;in, For the task Normalization priority; This is a task index variable.

[0032] The step of setting up task device allocation Boolean variables and establishing unique task allocation constraints, maximum device load constraints, and task executability constraints specifically includes: For each pair of tasks and inspection equipment in the task set and equipment set, a task-equipment allocation Boolean variable is set. When a task is allocated to an inspection equipment, the corresponding Boolean variable is set to a value representing the allocation status. When a task is not allocated, the corresponding Boolean variable is set to a value representing the unallocated status. Initially, all task-equipment allocation Boolean variables are uniformly set to a value representing the unallocated status. For each task in the task set, a Boolean variable is assigned and summed for all task devices related to the corresponding task. By constraining the summation value to not exceed one, a unique task assignment constraint is formed. For each inspection device in the equipment set, assign Boolean variables to all task devices related to the corresponding inspection device and sum them up according to the expected execution duration parameter of the corresponding task. By constraining the weighted sum value to not exceed the maximum running time limit parameter of the inspection device, the maximum load constraint of the device is formed. Based on the task and equipment executability matrix, for each pair of tasks and inspection equipment, when the corresponding element in the task and equipment executability matrix is ​​in an unexecutable state, the corresponding task and equipment allocation Boolean variable is fixed to the value representing the unallocated state. Only when the corresponding element in the task and equipment executability matrix is ​​in an executable state is the corresponding task and equipment allocation Boolean variable allowed to take the value of the allocated state.

[0033] The boolean variable to be assigned to the device for the construction task is: ;in, For the task and The allocation decision variable between them takes a value of 2 to represent the task. Assigned to device A value of 0 indicates that the allocation is not complete; And for all Set initial value: ; The uniqueness constraint for the construction task is: , ; The maximum load constraint for the constructed device is: , ; The build task executability is limited to: , .

[0034] The process of constructing a Lagrange objective function using task parameters, equipment parameters, task-equipment allocation Boolean variables, and Lagrange multipliers, and maximizing the objective function under task unique allocation constraints, maximum equipment load constraints, and task executability constraints, specifically includes: For each inspection device in the equipment set, a Lagrange multiplier parameter corresponding to the maximum load constraint of the device is introduced, and a Lagrange multiplier parameter is set for each inspection device. Based on the normalized task priority parameter, expected execution duration parameter, maximum running time limit parameter of inspection equipment, task equipment allocation Boolean variable, and Lagrange multiplier parameter of each inspection equipment in the task set, a Lagrange objective function is constructed. The benefit term is obtained by summing the products of the normalized task priority parameter of all task and inspection equipment combinations and the corresponding task equipment allocation Boolean variable. The penalty term is obtained by summing the products of the Lagrange multiplier parameter of all inspection equipment and the difference between the total execution time of the assigned tasks of the corresponding inspection equipment and the maximum running time limit parameter of the inspection equipment. At the same time, the product of the Lagrange multiplier parameter of each inspection equipment and the maximum running time limit parameter of the corresponding inspection equipment is added to form a constant term. By using Boolean variables for task and equipment allocation as decision variables and a Lagrange objective function as the optimization objective, and taking the maximum value of the Lagrange objective function under the premise of satisfying the unique task allocation constraint, the maximum equipment load constraint, and the task executability constraint, the problem of task and inspection equipment allocation optimization is obtained.

[0035] For each device Introducing Lagrange multipliers ;in, To be compatible with equipment The Lagrange multipliers associated with the maximum running time constraint; Construct the Lagrange function as follows: ;in, The value of the Lagrange objective function; The objective is: Under the conditions of satisfying the task uniqueness constraint, the maximum load constraint of the equipment, and the task executability constraint.

[0036] For each inspection device, the task generation and assignment results are determined by selecting tasks from largest to smallest based on the task device executability matrix and task density. Specifically, this includes: For each inspection device in the device set, a local task scheduling candidate set for the corresponding inspection device is constructed based on the task index in the task device executability matrix where the corresponding element is executable. For each task in the local task scheduling candidate set, the task density parameter of the corresponding task on the corresponding inspection equipment is calculated using the normalized task priority parameter, the expected execution duration parameter of the corresponding task, and the Lagrange multiplier parameter of the corresponding inspection equipment. When the expected execution duration parameter is greater than zero, the task density parameter is obtained by subtracting the product of the Lagrange multiplier parameter and the expected execution duration parameter from the normalized task priority parameter and then dividing by the expected execution duration parameter. When the expected execution duration parameter is equal to zero, the task density parameter is set to a preset positive real constant. For each inspection device in the equipment set, based on the task density parameters of each task on the corresponding inspection device, the tasks in the local task scheduling candidate set are sorted from largest to smallest according to the task density parameters, and a task index sorting sequence associated with the corresponding inspection device is generated. For each inspection device in the device set, initialize the total execution time of the selected tasks for the corresponding inspection device to zero, and initialize the set of selected tasks for the corresponding inspection device to an empty set; For each inspection device in the device set, candidate tasks are selected sequentially according to the task index sorting sequence. The sum of the execution time of the currently selected tasks of the corresponding inspection device and the expected execution duration of the current candidate task is calculated. When the sum does not exceed the maximum running time limit of the inspection device, and the task device allocation Boolean variables corresponding to the current candidate task of all inspection devices are in an unallocated state, the current candidate task is added to the selected task set of the corresponding inspection device, the total execution time of the selected tasks of the corresponding inspection device is updated to the sum, and the task device allocation Boolean variable between the current candidate task and the corresponding inspection device is set to the value representing the allocation status. When any condition is not met, the current values ​​of the selected task set of the corresponding inspection device, the total execution time of the selected tasks, and the task device allocation Boolean variables of all inspection devices remain unchanged, and the next candidate task in the sorting sequence is processed. After all candidate tasks have been processed, for each inspection device in the device set, based on the selected task set of the corresponding inspection device, the task device allocation Boolean variable between the tasks belonging to the selected task set and the corresponding inspection device is set to a value indicating the allocation status, and the task device allocation Boolean variable between the tasks not belonging to the selected task set and the corresponding inspection device is set to a value indicating the unallocated status.

[0037] For each device Construct a subset of local task scheduling as follows: ;in, For equipment A set of indexes of executable tasks; For each The task density value is calculated as follows: ;in, For the equipment Time Task The density value; Will Sort in descending order, and denote the sorted index as: , ;in, To be compatible with equipment The associated task index sequence; Based on density value The elements in the task index sequence obtained after sorting from largest to smallest; Let be the task index at the position; For location index; For set The base number, i.e., the equipment The number of executable tasks; For set The number of elements; Initialize variables: Set the current value to the device. The total execution time of the selected tasks is ,equipment The selected task index set is ; from Take tasks in order If the following conditions are met: And index all devices. All satisfy: Then the task will be added to the set: , And order: ; If the above joint conditions are not met, then maintain , And all The current value remains unchanged, and the same judgment and update process is continued for the next index until all indexes have been processed; After all indexes have been processed, for any Set the value of the task device allocation variable to: .

[0038] The process of updating the Lagrange multipliers of each inspection device using step size and load difference in iteration rounds, and checking the convergence of the task device allocation results, specifically includes: Set the iteration round index for Lagrange multiplier update and task device allocation Boolean variable update. The initial iteration round index is zero. In the initial iteration round, the Lagrange multiplier parameter of each inspection device in the device set is set to zero, and the step size parameter of the current round is set according to the reciprocal of the iteration round index plus one. In each iteration, for each inspection device in the device set, based on the task device allocation Boolean variable and the expected execution duration parameter of each task in the current round, the total execution time of the assigned tasks of the corresponding inspection device in the current round is calculated. Then, the difference between the total and the maximum running time limit parameter of the inspection device is calculated. The difference is divided by the square of the maximum running time limit parameter of the inspection device to obtain the normalized difference parameter. The normalized difference parameter is multiplied by the step size parameter of the current round and added to the Lagrange multiplier parameter value of the corresponding inspection device in the current round. The result is compared with zero. When the result is less than zero, the Lagrange multiplier parameter value of the corresponding inspection device in the next round is set to zero. When the result is not less than zero, the result is used as the Lagrange multiplier parameter value of the corresponding inspection device in the next round. After updating the Lagrange multiplier parameters of all inspection devices, for each inspection device in the device set, the total execution time of the assigned tasks for the corresponding inspection device is recalculated based on the Boolean variable of task device allocation in the current round and the expected execution duration parameter of each task. The difference between the total and the upper limit parameter of the maximum running time of the inspection device is calculated. If the absolute value of the difference for all inspection devices does not exceed the preset convergence judgment error threshold, the iteration process is terminated and the Boolean variable of task device allocation and the Lagrange multiplier parameter value of the current round are retained. If the absolute value of the difference for at least one inspection device exceeds the preset convergence judgment error threshold, the iteration round index is incremented by one, the step size parameter of the next round is updated, and the next round of iteration continues.

[0039] Initialization parameters: Set the iteration round index for Lagrange multiplier updates and allocation variable updates. For all Take the initial multiplier values Step size is ;in, For equipment The initial values ​​of the Lagrange multipliers in the 0th iteration; In the first The step size parameter used in round multiplier updates; In each iteration, update the multiplier variable, and then... The task device allocation variable in the round iteration is denoted as And update the multipliers according to the following formula: ;in, In the first Task device allocation variable values ​​during round iteration; For equipment In the The Lagrange multiplier values ​​during round iteration; For equipment In the The updated Lagrange multiplier values ​​during round iteration; Stop iteration if the following conditions are met: ;in, The allowable error threshold for convergence determination; If the above conditions are not met, proceed to the next iteration.

[0040] After the convergence condition determined by the convergence judgment error threshold is met, a task execution sequence sorted by remaining response time is generated for each inspection device based on the converged task device allocation result, and then sent to the corresponding inspection device for execution. Specifically, this includes: After completing the multiplier update and task device allocation optimization, for each inspection device in the device set, based on the value of the final task device allocation Boolean variable, collect all tasks whose task device allocation Boolean variables are in the allocation state with the corresponding inspection device, and construct the scheduling task set of the corresponding inspection device. Obtain the current system time on a unified timeline. For each task in the scheduling task set of each inspection device, calculate the remaining response time parameter of each task by subtracting the sum of the current system time and the task generation time parameter from the maximum allowed response time parameter. For each inspection device, based on the remaining response time parameters of each task in its scheduling task set, the tasks in the scheduling task set are sorted in ascending order of remaining response time parameters, generating a corresponding task index sorting sequence. For each inspection device, the number of tasks in the sorted task index sequence is counted, and the number is used as the number of tasks that the corresponding inspection device needs to execute in the current scheduling cycle. For each inspection device, based on the correspondence between the task position and the task number in the task index sorting sequence, a sorted task execution sequence for the corresponding inspection device is constructed, such that the remaining response time parameter of the task corresponding to any previous position in the sorted task execution sequence is not greater than the remaining response time parameter of the task corresponding to the next position. The sorted task execution sequence of each inspection device is sent to the corresponding inspection device, and each inspection device is controlled to execute the tasks in the scheduled task set in the order of its sorted task execution sequence until all tasks in the current scheduling cycle are completed.

[0041] For each device The set of scheduled tasks is constructed as follows: ;in, For devices generated based on the final allocation variables The task set; Execute steps S801 to S804 to process the set The tasks in the list are sorted in ascending order of remaining response time, as follows: S801, The sorting function is constructed as follows: ;in, For the purpose of the task The remaining response time metric; S802. Calculate the length of the sorted sequence as follows: ;in, For equipment The actual number of tasks that need to be executed; S803, Constructing the permutation mapping If satisfied Then we have: ;in, This is the position index in the sorted execution sequence; For the equipment Task index permutation mapping, with position index as input. The output is the task index corresponding to that position. ; S804. The sorted task sequence is constructed as follows: ;in, For equipment The task execution sequence sorted in ascending order of remaining response time; The task sequence is issued to each device in sequence. The task execution process is completed sequentially, and the scheduling ends.

[0042] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0043] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for inspection based on multi-device cooperation, characterized in that, The method comprises the following steps: acquiring independent inspection tasks in a scheduling period, establishing a task set, and registering a task generation time parameter, an estimated execution duration parameter, a maximum allowed response time parameter, and a task type parameter; acquiring inspection devices that can participate in scheduling, establishing a device set, and registering a start absolute time parameter, an upper limit of an inspection device maximum running time parameter, and a device type parameter, and constructing a task-device executability matrix; acquiring a system time on a time axis, calculating a remaining response time according to the task parameters, constructing a response pressure based on the remaining response time, and generating a normalized task priority combining the execution duration; setting a task-device assignment Boolean variable and establishing a task unique assignment constraint, a device maximum load constraint, and a task executability constraint; constructing a Lagrange objective function using the task parameters, the device parameters, the task-device assignment Boolean variable, and the Lagrange multiplier, and maximizing the objective function under the task unique assignment constraint, the device maximum load constraint, and the task executability constraint; for each inspection device, selecting tasks from large to small according to the task density and the task-device executability matrix to generate a task-device assignment result; updating the Lagrange multiplier of each inspection device by iteration round using a step size and a load difference, and checking the convergence of the task-device assignment result; after meeting the convergence condition determined by a convergence determination error threshold, generating a task execution sequence sorted by the remaining response time for each inspection device according to the converged task-device assignment result, and delivering it to the corresponding inspection device for execution.

2. The method of claim 1, wherein, The method of acquiring independent inspection tasks in a scheduling period, establishing a task set, and registering a task generation time parameter, an estimated execution duration parameter, a maximum allowed response time parameter, and a task type parameter comprises the following steps: receiving a plurality of independent inspection tasks in the current scheduling period, and counting the total number of independent inspection tasks, and assigning a task number index to each independent inspection task; establishing a task set according to the task number index, and establishing a corresponding task object for each independent inspection task in the task set; setting a task generation time parameter, an estimated execution duration parameter, a maximum allowed response time parameter from the task generation time, and a task type parameter in each task object, and different values of the task type parameter respectively represent a routine inspection task, an emergency task, and a linkage task.

3. The method of claim 2, wherein, The method of acquiring inspection devices that can participate in scheduling, establishing a device set, and registering a start absolute time parameter, an upper limit of an inspection device maximum running time parameter, and a device type parameter, and constructing a task-device executability matrix comprises the following steps: acquiring inspection devices that can participate in scheduling in the current scheduling period, counting the total number of inspection devices, and assigning a device number to each inspection device; establishing a device set according to the device number, and establishing a corresponding device object for each inspection device in the device set; setting a start absolute time parameter for starting to execute a task, an upper limit of an inspection device maximum running time parameter, and a device type parameter in each device object, and different values of the device type parameter respectively represent a ground robot, an aerial unmanned aerial vehicle, and a fixed device; A task-device executability matrix is constructed based on the task set and the device set, and each element in the matrix is set as a Boolean quantity, indicating whether the corresponding inspection device has the ability to execute the corresponding task, wherein the executable state and the non-executable state correspond to two values of the matrix element.

4. The method of claim 3, wherein, The system time is obtained on the time axis, the remaining response time is calculated according to the task parameter, the response pressure is constructed based on the remaining response time, and the normalized task priority is generated in combination with the execution duration, and specifically includes: The current system time is obtained on the unified time axis; For each task in the task set, the remaining response time parameter is calculated in a manner that the allowed maximum response time parameter is subtracted from the sum of the current system time and the task generation time parameter; For each task in the task set, the response pressure parameter is constructed according to the remaining response time parameter, when the remaining response time parameter is not less than zero, the response pressure parameter is obtained by taking the reciprocal of the sum of the remaining response time parameter and a preset positive real constant, and when the remaining response time parameter is less than zero, the response pressure parameter is obtained by taking the reciprocal of the preset positive real constant; For each task in the task set, the non-normalized priority original parameter is obtained by multiplying the response pressure parameter and the predicted execution duration parameter; The maximum value is obtained in all non-normalized priority original parameters of the tasks, when the maximum value is greater than zero, the normalized task priority parameter of each task is obtained by dividing the non-normalized priority original parameter of each task by the maximum value, and when the maximum value is equal to zero, the normalized task priority parameters of all tasks are uniformly set to the same preset value.

5. The method of claim 4, wherein, The task-device assignment Boolean variable is set and the task unique assignment constraint, the device maximum load constraint and the task executability constraint are established, and specifically includes: For each pair of task and inspection device in the task set and the device set, the task-device assignment Boolean variable is set, the corresponding Boolean variable is set to a value representing the assignment state when the task is assigned to the inspection device, the corresponding Boolean variable is set to a value representing the unassigned state when the task is not assigned, and all task-device assignment Boolean variables are uniformly set to a value representing the unassigned state at the initial time; For each task in the task set, the sum of all task-device assignment Boolean variables related to the corresponding task is calculated, and the task unique assignment constraint is formed by constraining the sum to be not more than one; For each inspection device in the device set, the weighted sum of all task-device assignment Boolean variables related to the corresponding inspection device is calculated according to the predicted execution duration parameter of the corresponding task, and the device maximum load constraint is formed by constraining the weighted sum to be not more than the upper limit of the maximum running time of the inspection device; In combination with the task-device executability matrix, for each pair of task and inspection device, when the corresponding element in the task-device executability matrix is in the non-executable state, the corresponding task-device assignment Boolean variable is fixed to a value representing the unassigned state, and only when the corresponding element in the task-device executability matrix is in the executable state, the corresponding task-device assignment Boolean variable is allowed to take a value representing the assigned state.

6. The method of claim 5, wherein, The task parameter, the device parameter, the task device allocation Boolean variable and the Lagrange multiplier are used to construct a Lagrange objective function, and the objective function is maximized under the task unique allocation constraint, the device maximum load constraint and the task executability constraint, and the method specifically comprises the following steps: A Lagrange multiplier parameter corresponding to the device maximum load constraint is introduced for each inspection device in the device set, and a Lagrange multiplier parameter is set for each inspection device. A Lagrange objective function is constructed based on the normalized task priority parameter, the expected execution duration parameter, the maximum running time upper limit parameter of the inspection device, the task device allocation Boolean variable and the Lagrange multiplier parameter of each inspection device in the task set, wherein the revenue item is obtained by summing the product of the normalized task priority parameter of all task and inspection device combinations and the corresponding task device allocation Boolean variable, the penalty item is obtained by summing the product of the difference between the Lagrange multiplier parameter of all inspection devices and the sum of the allocated task execution time of the corresponding inspection device and the maximum running time upper limit parameter of the inspection device, and the constant item is formed by the product of the Lagrange multiplier parameter of each inspection device and the maximum running time upper limit parameter of the corresponding inspection device; The task device allocation Boolean variable is taken as a decision variable, and the Lagrange objective function is taken as an optimization target, and the maximum value of the Lagrange objective function is obtained under the premise of meeting the task unique allocation constraint, the device maximum load constraint and the task executability constraint, so that the allocation optimization problem expression form of the task and the inspection device is obtained.

7. The method of claim 6, wherein, The task device allocation result is generated by selecting tasks from large to small according to the task device executability matrix and the task density for each inspection device, and the method specifically comprises the following steps: For each inspection device in the device set, a local task scheduling candidate set of the corresponding inspection device is constructed according to the task index of the task in the task device executability matrix which is in the executable state; For each task in the local task scheduling candidate set, the normalized task priority parameter of the corresponding task, the expected execution duration parameter of the corresponding task and the Lagrange multiplier parameter of the corresponding inspection device are used to calculate the task density parameter of the corresponding task on the corresponding inspection device, when the expected execution duration parameter is greater than zero, the task density parameter is obtained by subtracting the product of the normalized task priority parameter and the expected execution duration parameter from the normalized task priority parameter and then dividing by the expected execution duration parameter, when the expected execution duration parameter is equal to zero, the task density parameter is set to a preset positive real constant; For each inspection device in the device set, the tasks in the local task scheduling candidate set are sorted according to the task density parameter from large to small according to the task density parameter of each task on the corresponding inspection device, and a task index sorting sequence associated with the corresponding inspection device is generated; For each inspection device in the device set, the sum of the selected task execution time of the corresponding inspection device is initialized to zero, and the selected task set of the corresponding inspection device is initialized to an empty set; For each inspection device in the device set, a candidate task is selected in turn according to the order of the task index sequence, and a summation result is calculated by adding the current selected task execution time summation of the corresponding inspection device to the predicted execution duration parameter of the current candidate task; when the summation result does not exceed the upper limit parameter of the maximum running time of the inspection device, and the task device assignment Boolean variable corresponding to the current candidate task of all inspection devices is in the unassigned state, the current candidate task is added to the selected task set of the corresponding inspection device, the selected task execution time summation of the corresponding inspection device is updated to the summation result, and the task device assignment Boolean variable between the current candidate task and the corresponding inspection device is set to a value representing the assigned state; when any condition is not met, the current values of the selected task set, the selected task execution time summation of the corresponding inspection device, and all task device assignment Boolean variables are kept unchanged, and the next candidate task in the sorting sequence is processed; After all candidate tasks are processed, for each inspection device in the device set, the task device assignment Boolean variable between the task belonging to the selected task set of the corresponding inspection device and the corresponding inspection device is set to a value representing the assigned state, and the task device assignment Boolean variable between the task not belonging to the selected task set of the corresponding inspection device and the corresponding inspection device is set to a value representing the unassigned state.

8. The method of claim 7, wherein, The Lagrange multipliers of each inspection device are updated by using the step size and the load difference in each iteration round, and the convergence of the task device assignment result is checked, which specifically includes: An iteration round index of the Lagrange multiplier update and the task device assignment Boolean variable update is set, the initial iteration round index is taken as zero, the Lagrange multiplier parameter value of each inspection device in the device set is set to zero in the initial iteration round, and the step size parameter of the current round is set according to the reciprocal of the iteration round index plus one; In each iteration round, for each inspection device in the device set, the assigned task execution time summation of the corresponding inspection device in the current round is calculated based on the task device assignment Boolean variable and the predicted execution duration parameter of each task in the current round, and then the difference between the summation and the upper limit parameter of the maximum running time of the inspection device is calculated, the difference is divided by the square of the upper limit parameter of the maximum running time of the inspection device to obtain a normalized difference parameter, the normalized difference parameter is multiplied by the step size parameter of the current round, and then added to the Lagrange multiplier parameter value of the corresponding inspection device in the current round, and the result is compared with zero; when the result is less than zero, the Lagrange multiplier parameter value of the corresponding inspection device in the next iteration round is set to zero; when the result is not less than zero, the result is taken as the Lagrange multiplier parameter value of the corresponding inspection device in the next iteration round; After the Lagrange multiplier parameter update of all the inspection devices is completed, for each inspection device in the device set, the total execution time of the assigned tasks of the corresponding inspection device is recalculated according to the task device assignment Boolean variable and the predicted execution duration parameter of each task in the current round, and the difference between the total sum and the upper limit parameter of the maximum running time of the inspection device is calculated. If the absolute values of the differences corresponding to all the inspection devices do not exceed the preset convergence judgment error threshold, the iteration process is terminated, and the task device assignment Boolean variable and the Lagrange multiplier parameter value in the current round are retained. If the absolute value of the difference corresponding to at least one inspection device exceeds the preset convergence judgment error threshold, the iteration round index is incremented by one, the step parameter in the next round is updated, and the next round of iteration is continued.

9. The method of claim 8, wherein, After the convergence condition determined by the convergence judgment error threshold is met, the task execution sequence sorted by the remaining response time is generated for each inspection device according to the converged task device assignment result, and is delivered to the corresponding inspection device for execution, which specifically includes: After the multiplier update and task device assignment optimization are completed, for each inspection device in the device set, the final task device assignment Boolean variable is collected according to the value of the final task device assignment Boolean variable, and all tasks whose task device assignment Boolean variable is in the assignment state between the corresponding inspection device are collected to construct the scheduling task set of the corresponding inspection device. At the current system time on the unified time axis, for each task in the scheduling task set of each inspection device, the remaining response time parameter of each task is calculated by subtracting the sum of the current system time and the task generation time parameter from the allowed maximum response time parameter. For each inspection device, the tasks in the scheduling task set are sorted in ascending order of the remaining response time parameter according to the remaining response time parameter of each task in the scheduling task set of the corresponding inspection device, and the corresponding task index sorting sequence is generated. For each inspection device, the number of tasks in the sorted task index sorting sequence is counted, and the number value is taken as the number of tasks that need to be executed by the corresponding inspection device in the current scheduling period. For each inspection device, the sorted task execution sequence of the corresponding inspection device is constructed according to the corresponding relationship between the task position and the task number in the task index sorting sequence, so that the remaining response time parameter of any previous task in the sorted task execution sequence is not greater than the remaining response time parameter of the subsequent task. The sorted task execution sequence of each inspection device is delivered to the corresponding inspection device, and each inspection device executes the tasks in the scheduling task set in the order of the respective sorted task execution sequence until all the tasks in the current scheduling period are executed.

Citation Information

Patent Citations

  • Internet of Things equipment management and control method based on semantic virtualization and task migration

    CN111970145A

  • Oil depot tank field inspection robot task allocation method and system based on Internet of Things

    CN119417192A

  • Measurement and control task scheduling method based on idle time period of equipment

    CN119918894A

  • Production workshop adaptive scheduling method, apparatus and device, and medium

    CN120278486A

  • Advertisement project collaborative management method based on intelligent distribution

    CN120723465A

Cited By

  • A method and system for optimizing control of production scheduling of an automatic drinking water equipment

    CN122222338A