A fast solution method for large-scale heterogeneous cluster task allocation problem

Through the combination of incomplete optimization algorithm and genetic algorithm, the initial solution is generated and the task allocation of the unmanned platform is optimized, which solves the problem of low task allocation efficiency in large-scale heterogeneous clusters, significantly reduces the calculation time and improves the superiority of allocation. sex.

CN117992222BActive Publication Date: 2024-08-30BEIJING INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410135797.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2024-08-30
Estimated Expiration
2044-01-31

AI Technical Summary

Technical Problem

Existing unmanned cluster task allocation methods are difficult to effectively solve the problem of efficient allocation of task resources in large-scale heterogeneous cluster environments. In particular, the local search capabilities of genetic algorithms are insufficient, resulting in increased computing time.

Method used

An incomplete optimization algorithm is used to generate a suboptimal initial solution through the steps of model extraction, single-platform transfer optimization, initial population generation and genetic algorithm iteration, and optimize the convergence speed of the genetic algorithm, including task decomposition and unmanned platform tasks. Optimization of allocation matrices, chromosome encoding and crossover, mutation, and selection operations.

Benefits of technology

Without increasing the population size and the number of iterations, the local search capability of the genetic algorithm is improved, the calculation time is reduced, and the efficiency of task allocation is improved in mixed sampling of the initial solution and global solution spaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117992222B
    Figure CN117992222B
Patent Text Reader

Abstract

The invention discloses a fast solution method for large-scale heterogeneous cluster task allocation problem, which relates to the technical field of cluster task allocation. An incomplete optimization algorithm is used to generate a suboptimal initial solution to the heterogeneous cluster task allocation problem, and the initial solution is used to optimize the genetic algorithm to accelerate the convergence speed of the genetic algorithm. The method includes four steps: model extraction, single platform transfer optimization, initial population generation and genetic algorithm iteration. The invention adopts the above-mentioned fast solution method for large-scale heterogeneous cluster task allocation problem, which can enhance the local search capability of the genetic algorithm, ensure the superiority of the final allocation method without increasing the population size and the number of iterations, and reduce the calculation time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cluster task allocation, and in particular to a fast solution method suitable for large-scale heterogeneous cluster task allocation problems. Background Art

[0002] Task planning for heterogeneous clusters refers to the rational allocation of tasks to different unmanned platforms, improving the balance of task resource input, and giving full play to the advantages of mutual collaboration and complementary capabilities between heterogeneous platforms to improve the overall task efficiency of the cluster. The quality of the task allocation algorithm directly affects the efficiency of the entire system collaboration. The common unmanned cluster task planning methods are:

[0003] Optimization method: For simple unmanned swarm task planning problems, they can be simplified into models related to mathematical programming, and then solved using methods such as exhaustive enumeration, linear programming, and dynamic programming to obtain the optimal allocation plan under the evaluation indicators.

[0004] Genetic algorithm: Genetic algorithm is a heuristic optimization algorithm based on the principles of inheritance and natural selection in Darwin's theory of biological evolution. It simulates the process of species evolution in nature to find the best solution. The main steps of genetic algorithm include individual encoding, fitness evaluation, selection, crossover and mutation. Individual encoding converts the parameters in the optimization problem into the chromosome encoding of the individual. One chromosome encoding represents the solution of a corresponding optimization problem. Fitness evaluation requires setting a fitness function according to the specific requirements of the problem and the encoding method, and evaluating each chromosome. The selection operation is to select excellent chromosomes as parents of the next generation based on the fitness value of the chromosome, or to retain the better individuals between generations based on the fitness value. The selection operation can gradually improve the fitness level of the entire population. The crossover operation refers to the process of generating new individuals by exchanging chromosome fragments of two or more individuals. The mutation operation refers to the process of making random changes in individual chromosomes. This random change helps to jump out of the local optimal solution in the hope of finding a better solution, and can also be used to maintain diversity and avoid premature convergence. After multiple rounds of iterations, the genetic algorithm can gradually improve the fitness level of the entire population and generate the final solution.

[0005] Auction algorithm: Auction algorithm simulates the bidding process in the economy and is widely used in distributed task allocation problems. Auction algorithm aims to simulate the market auction process to achieve task allocation for unmanned platforms. In the auction algorithm, each unmanned platform will bid a price, indicating the highest price it is willing to pay for the task, and the task will be assigned to the unmanned platform with the highest bid. If multiple unmanned platforms want to perform the same task, their bids may be affected by competition.

[0006] Distributed algorithms represented by auction algorithms lack a global perspective in the task allocation of unmanned clusters, and their resource utilization efficiency is lower than centralized methods such as optimization methods and genetic algorithms. As the number of drones, targets, and tasks increases, and the number of constraints increases, the problem becomes more complicated, and the difficulty of solving the cluster task allocation problem using optimization methods increases exponentially. The defect of genetic algorithms is that their local search capabilities are poor, which makes pure genetic algorithms more time-consuming and less efficient in the later stages of evolution.

[0007] Therefore, it is necessary to provide a fast solution method for large-scale heterogeneous cluster task allocation to solve the above problems. Summary of the invention

[0008] The purpose of the present invention is to provide a fast solution method for large-scale heterogeneous cluster task allocation problems, which can enhance the local search capability of genetic algorithms, ensure the superiority of the final allocation method without increasing the population size and the number of iterations, and reduce the calculation time.

[0009] To achieve the above object, the present invention provides a fast solution method for large-scale heterogeneous cluster task allocation problem, which generates a suboptimal initial solution to the heterogeneous cluster task allocation problem through an incomplete optimization algorithm, optimizes the genetic algorithm using the initial solution, and accelerates the convergence speed of the genetic algorithm, including four steps: model extraction, single platform transfer optimization, initial population generation and genetic algorithm iteration;

[0010] S1: Model extraction: Based on the obtained task information, the tasks at N different locations are decomposed and divided into P parts;

[0011] S2: Single platform transfer optimization: All unmanned platforms are evenly assigned to perform N tasks, and the unmanned platform task allocation matrix UPA0 is obtained;

[0012] S3: Initial population generation: Formulate the genetic algorithm chromosome encoding method and determine the initial population, encode the initial solution obtained by the single platform transfer optimization strategy, and randomly select pop in the feasible domain of the encoding. size 0.3 chromosomes, randomly popping in the global feasible solution space size 0.7 chromosomes, a mixture of the two to form the initial population of the genetic algorithm;

[0013] S4: Genetic algorithm iteration: The genetic algorithm is optimized through the initial solution obtained in step S3. The genetic algorithm includes crossover operation, mutation operation and selection operation.

[0014] Preferably, in step S1, the P parts of the N tasks are evaluated to obtain the task resource demand matrix TRD=(dij ) N×P And the task value matrix TV = (v ij ) N×P , where d ij and v ij They represent the estimated resource requirements and task benefits for completing the jth part of task i respectively;

[0015] The resource carrying capacity matrix URC of U unmanned platforms in a heterogeneous cluster is evaluated as follows: ij ) U×P , where c ij represents the number of resources carried by the unmanned platform type i for completing the jth part of the task; according to the specific task allocation scheme, the unmanned platform is assigned tasks to determine the unmanned platform task allocation matrix UPA = (a ij ) N×U , where a ij Represents the number of j-type unmanned platforms that perform task i; the same unmanned platform can and must perform only one task, and the unmanned platform task allocation matrix UPA satisfies the unmanned platform quantity constraint M j is the number of the jth type of unmanned platforms in the heterogeneous cluster;

[0016] Determine the actual supply matrix of task resources TRS = (s ij ) N×P and the fitness of the allocation scheme f(UPA), where TRS = UPA × URC, indicating that the actual supply of task resources for the jth part of task i is the sum of the corresponding task resources carried by all unmanned platforms participating in the execution of the task; g(·) is a function of the actual supply ratio of task resources to the ratio of task benefits obtained, and g(·) is nonlinear.

[0017] Preferably, in step S2, if there are decimals in the allocation result, they are randomly rounded to ensure that the allocation matrix meets the unmanned platform quantity constraint, and the unmanned platform task allocation matrix is ​​used as the starting point to perform iterative optimization according to the single platform transfer optimization method; the single platform transfer optimization method is as follows:

[0018] When optimizing the allocation results of unmanned platform type u, from task 1 to task N, record the increase in the overall fitness of the task caused by an increase of 1 in the number of unmanned platform type u executing the task. Record the absolute value of the decrease in the overall fitness of the task caused by the decrease of 1 in the number of unmanned platform type u that performs the task

[0019] If the maximum value of the fitness increase is greater than the maximum value of the fitness decrease:

[0020]

[0021] Then a type u unmanned platform is transferred from participating in the execution of task k to participating in the execution of task j;

[0022] Note A ab is the transformation matrix,

[0023]

[0024] but,

[0025] From unmanned platform type 1 to unmanned platform type U, the task allocation matrix is ​​optimized for single platform transfer in accordance with the above method. If the total fitness value of the task increases after one round of optimization, the next round of optimization is continued until the total fitness stops increasing. At this time, the allocation scheme is the optimal allocation scheme, recorded as UPA opt .

[0026] Preferably, in step S3, the chromosome encoding method involves converting the task allocation scheme into a chromosome form, and representing the task allocation matrix UPA with a one-dimensional chromosome. In a heterogeneous cluster task allocation scenario, there are N tasks with different location distributions, and the total number of unmanned platform types participating in the execution of these tasks is U. The chromosome length of individuals in the population is N×U. Each gene on the chromosome represents the number of j-type unmanned platforms that execute task i. The unmanned platform task allocation matrix UPA is segmented and connected by rows to obtain the corresponding chromosome encoding. The (i-1)×u+j-th gene on the chromosome corresponds to the element a of the task allocation matrix UPA. ij , represents the number of j-type unmanned platforms participating in the execution of the i-th mission;

[0027] The task allocation matrix UPA is generated by random assignment. For each column of the allocation matrix, a list of elements that can be added, deleted, and modified is selected. Elements in the list are randomly selected to increase or decrease the value of the element so that the column meets the unmanned platform quantity constraint. The task allocation matrix that meets the unmanned platform quantity constraint is split and spliced ​​into corresponding chromosome individuals by row.

[0028] Preferably, in step S3, a global random allocation matrix and a neighborhood random allocation matrix that meet the unmanned platform quantity constraint are mixed to obtain an initial population of a genetic algorithm based on single platform transfer optimization;

[0029] The global random assignment matrix is ​​generated as follows:

[0030] The sum of the elements in the i-th column of the unmanned platform task allocation matrix UPA should be M i , take the i-th column element of UPA as The floor(·) function represents rounding down, and the rand() function is used to generate a random number between 0 and 1;

[0031] The domain random assignment matrix is ​​generated as follows:

[0032] The sum of the elements in the i-th column of the unmanned platform task allocation matrix UPA should be M i , the floating range of each element in each column of the initial solution is set to ±ceil(M i ·0.1), the generated random assignment matrix is ​​within the initial solution neighborhood, where the ceil(·) function represents rounding up;

[0033] The correction method for the global random matrix and the neighborhood random matrix is ​​as follows:

[0034] S31: Let the random allocation matrix be UPAR=(r ij ) N×U , take out the i-th column elements of the random allocation matrix in turn, and calculate the difference from satisfying the number constraint of unmanned platforms If δ>0, a total of δ i-type unmanned platforms are subtracted from each element of the i-th column of the allocation matrix UPAR; if δ<0, a total of δ i-type unmanned platforms are added from each element of the i-th column of the allocation matrix UPAR;

[0035] S32: When δ>0, create a list of subtractable elements list - , for the global random assignment matrix, as long as the element is greater than 0, it can be reduced, list - ={n|r ni >0}; For the neighborhood random assignment matrix, in addition to satisfying the condition that the element is greater than 0, the element r ni Distance initial solution UPA opt The element a at the corresponding position ni The distance should be less than 0.2 times the total number of i-type unmanned platforms M i ,list-={n|r ni >0and|r ni -a ni |<0.2·M i}; When δ<0, each element is not less than 0, and a list of incrementable elements is established. + , each element of the global random assignment matrix is ​​smaller than M i , list + ={1, ..., N}; the neighborhood random assignment matrix must satisfy the distance limit of the initial solution, list + ={n||r ni -a ni |<0.2·M i};

[0036] S33: After the add / subtract list is established, randomly select a member from the list and increase or decrease the corresponding element by 1 to reduce the deviation;

[0037] S34: Update the deviation value and repeat steps S32 and S33 until the deviation value is 0;

[0038] S35: Repeat steps S31 to S34 until all columns of the allocation matrix satisfy the unmanned platform quantity constraint.

[0039] Preferably, in step S4, a crossover operation is performed: each chromosome in the initial population is sequentially taken as the father, another chromosome is randomly taken as the mother, the two are arithmetic averaged and randomly rounded, and the chromosome is required to meet the number constraint of the unmanned platform to obtain the corresponding offspring chromosome;

[0040] Mutation operation: select the individuals to be mutated in the offspring according to the specified mutation probability p. For the selected individuals, randomly select two different integers a and b between 1 and N, and randomly select an integer between 1 and U. c , then swap the (a-1)·U+cth gene block and the (b-1)·U+cth gene block on the chromosome to obtain a new chromosome that meets the constraints;

[0041] Selection operation: compare each pair of chromosomes in the parent population and the child population, retain the chromosome with the larger fitness value, and form the next generation population;

[0042] Repeat the basic iterative steps of the genetic algorithm of crossover, mutation and selection until the maximum number of iterations is reached, or the maximum fitness value in each generation of the population remains unchanged for 10 rounds of iterations, at which point the algorithm converges to the final solution.

[0043] Therefore, the present invention adopts the above-mentioned fast solution method for large-scale heterogeneous cluster task allocation problem, which has the following beneficial effects:

[0044] (1) The present invention utilizes the transfer of a single unmanned platform between task assignments to quickly generate an initial solution.

[0045] (2) When solving the large-scale heterogeneous cluster task allocation problem, the present invention introduces an initial solution so that the genetic algorithm can still ensure the superiority of the solution without expanding the population size and the number of iterations, thereby reducing the computational time.

[0046] (3) The present invention improves the disadvantage of weak local search ability of genetic algorithm by mixed sampling in the initial solution neighborhood and the global solution space.

[0047] (4) The present invention randomly generates a global solution and a neighborhood solution that meet the number constraints of unmanned platforms.

[0048] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flow chart of a fast solution method for large-scale heterogeneous cluster task allocation problem of the present invention;

[0050] Figure 2 It is a flow chart of the method for correcting the global random matrix and the neighborhood random matrix of the present invention. DETAILED DESCRIPTION

[0051] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

[0052] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.

[0053] The words "include" or "comprises" and the like used in the present invention mean that the elements before the word include the elements listed after the word, and do not exclude the possibility of also including other elements. The orientation or position relationship indicated by the terms "inside", "outside", "upper", "lower", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation of the present invention. When the absolute position of the described object changes, the relative position relationship may also change accordingly. In the present invention, unless otherwise clearly specified and limited, the terms "attachment" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral body; it can be directly connected, or indirectly connected through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0054] like Figure 1 As shown, the present invention provides a fast solution method for large-scale heterogeneous cluster task allocation problem, generates a suboptimal initial solution to the heterogeneous cluster task allocation problem through an incomplete optimization algorithm, optimizes the genetic algorithm using the initial solution, and accelerates the convergence speed of the genetic algorithm, including four steps: model extraction, single platform transfer optimization, initial population generation and genetic algorithm iteration;

[0055] S1: Model extraction: Based on the obtained task information, the tasks at N different locations are decomposed into P parts; in step S1, the P parts of the N tasks are evaluated to obtain the task resource demand matrix TRD = (d ij ) N×P And the task value matrix TV = (v ij )N×P , where d ij and v ij They represent the estimated resource requirements and task benefits for completing the jth part of task i respectively;

[0056] The resource carrying capacity matrix URC of U unmanned platforms in a heterogeneous cluster is evaluated as follows: ij ) U×P , where c ij represents the number of resources carried by the unmanned platform type i for completing the jth part of the task; according to the specific task allocation scheme, the unmanned platform is assigned tasks to determine the unmanned platform task allocation matrix UPA = (a ij ) N×U , where a ij Represents the number of j-type unmanned platforms that perform task i; the same unmanned platform can and must perform only one task, and the unmanned platform task allocation matrix UPA satisfies the unmanned platform quantity constraint M j is the number of the jth type of unmanned platforms in the heterogeneous cluster;

[0057] Determine the actual supply matrix of task resources TRS = (s ij ) N×P and the fitness of the allocation scheme f(UPA), where TRS = UPA × URC, indicating that the actual supply of task resources for the jth part of task i is the sum of the corresponding task resources carried by all unmanned platforms participating in the execution of the task; g(·) is a function of the actual supply ratio of task resources to the proportion of task benefits obtained. In most cases, g(·) is nonlinear.

[0058] S2: Single platform transfer optimization: All unmanned platforms are evenly assigned to perform N tasks, and the unmanned platform task allocation matrix UPA0 is obtained; in step S2, if there are decimals in the allocation result, it is randomly rounded to ensure that the allocation matrix meets the unmanned platform quantity constraint, and the unmanned platform task allocation matrix is ​​used as the starting point to perform iterative optimization according to the single platform transfer optimization method; the single platform transfer optimization method is as follows:

[0059] When optimizing the allocation results of unmanned platform type u, from task 1 to task N, record the increase in the overall fitness of the task caused by an increase of 1 in the number of unmanned platform type u executing the task. Record the absolute value of the decrease in the overall fitness of the task caused by the decrease of 1 in the number of unmanned platform type u that performs the task

[0060] If the maximum value of the fitness increase is greater than the maximum value of the fitness decrease:

[0061]

[0062] Then a type u unmanned platform is transferred from participating in the execution of task k to participating in the execution of task j;

[0063] Note A ab is the transformation matrix,

[0064]

[0065] but,

[0066] From unmanned platform type 1 to unmanned platform type U, the task allocation matrix is ​​optimized for single platform transfer in accordance with the above method. If the total fitness value of the task increases after one round of optimization, the next round of optimization is continued until the total fitness stops increasing. At this time, the allocation scheme is the optimal allocation scheme, recorded as UPA opt .

[0067] If the relationship between task resource supply and task benefit is linear, UPA opt will be the optimal allocation. However, in more general and realistic situations, this relationship is usually nonlinear. In this case, UPA opt It is only the best allocation obtained by a single platform strategy, not the global best. However, the global optimal solution to the heterogeneous cluster task allocation problem is likely to be located in UPA opt This means that generating the initial population of the genetic algorithm based on this solution can significantly improve the local search ability of the algorithm and accelerate the solution speed.

[0068] S3: Initial population generation: Formulate the genetic algorithm chromosome encoding method and determine the initial population, encode the initial solution obtained by the single platform transfer optimization strategy, and randomly select pop in the feasible domain of the encoding. size 0.3 chromosomes, randomly popping in the global feasible solution space size ·0.7 chromosomes, and the two are mixed to form the initial population of the genetic algorithm; these individuals can effectively improve the local search ability of the genetic algorithm and accelerate its convergence speed. In step S3, the chromosome encoding method involves converting the task allocation plan into a chromosome form, and representing the task allocation matrix UPA with a one-dimensional chromosome. In the heterogeneous cluster task allocation scenario, there are N tasks with different location distributions. The total number of unmanned platform types participating in the execution of these tasks is U. The chromosome length of individuals in the population is N×U. Each gene on the chromosome represents the number of j-type unmanned platforms that execute task i. The unmanned platform task allocation matrix UPA is segmented and connected by rows to obtain the corresponding chromosome encoding. The (i-1)×u+j-th gene on the chromosome corresponds to element a of the task allocation matrix UPA. ij, represents the number of j-type unmanned platforms participating in the execution of the i-th mission;

[0069] Chromosome individuals generated by random number assignment are generally difficult to meet the constraints of the number of unmanned platforms. Therefore, the task assignment matrix UPA is generated by random assignment. For each column of the assignment matrix, a list of elements that can be added, deleted, and modified is selected. Elements in the list are randomly selected to increase or decrease the value of the element so that the column meets the number of unmanned platforms. The task assignment matrix that meets the number of unmanned platforms is split and spliced ​​into corresponding chromosome individuals by row.

[0070] In step S3, the global random allocation matrix and the neighborhood random allocation matrix that meet the unmanned platform quantity constraint are mixed to obtain an initial population of the genetic algorithm based on single platform transfer optimization;

[0071] The global random assignment matrix is ​​generated as follows:

[0072] The sum of the elements in the i-th column of the unmanned platform task allocation matrix UPA should be M i , take the i-th column element of UPA as The floor(·) function represents rounding down, and the rand() function is used to generate a random number between 0 and 1;

[0073] The domain random assignment matrix is ​​generated as follows:

[0074] The sum of the elements in the i-th column of the unmanned platform task allocation matrix UPA should be M i , the floating range of each element in each column of the initial solution is set to ±ceil(M i ·0.1), the generated random assignment matrix is ​​in the neighborhood of the initial solution, where the ceil(·) function represents rounding up; after each column of the matrix undergoes a small range of random fluctuations, all negative elements in the generated new matrix are changed to zero.

[0075] like Figure 2 As shown, the correction method for the global random matrix and the neighborhood random matrix is ​​as follows:

[0076] S31: Let the random allocation matrix be UPAR=(r ij ) N×U , take out the i-th column elements of the random allocation matrix in turn, and calculate the difference from satisfying the number constraint of unmanned platforms If δ>0, a total of δ i-type unmanned platforms are subtracted from each element of the i-th column of the allocation matrix UPAR; if δ<0, a total of δ i-type unmanned platforms are added from each element of the i-th column of the allocation matrix UPAR;

[0077] S32: When δ>0, create a list of subtractable elements list -, for the global random assignment matrix, as long as the element is greater than 0, it can be reduced, list - ={n|r ni >0}; For the neighborhood random assignment matrix, in addition to satisfying the condition that the element is greater than 0, the element r ni Distance initial solution UPA opt The element a at the corresponding position ni The distance should be less than 0.2 times the total number of i-type unmanned platforms M i , list - ={n|r ni >0and|r ni -a ni |<0.2·M i}; When δ<0, each element is not less than 0, and a list of incrementable elements is established. + , each element of the global random assignment matrix is ​​smaller than M i , list + ={1, ..., N}; the neighborhood random assignment matrix must satisfy the distance limit of the initial solution, list + ={n||r ni -a ni |<0.2·M i};

[0078] S33: After the add / subtract list is established, randomly select a member from the list and increase or decrease the corresponding element by 1 to reduce the deviation;

[0079] S34: Update the deviation value and repeat steps S32 and S33 until the deviation value is 0;

[0080] S35: Repeat steps S31 to S34 until all columns of the allocation matrix meet the unmanned platform quantity constraint. The global random matrix and the neighborhood random matrix that meet the unmanned platform quantity constraint are mixed to obtain the initial population of the genetic algorithm based on single platform transfer optimization.

[0081] S4: Genetic algorithm iteration: The genetic algorithm is optimized through the initial solution obtained in step S3. The genetic algorithm includes crossover operation, mutation operation and selection operation.

[0082] In step S4, a crossover operation is performed: each chromosome in the initial population is taken as the father, and another chromosome is randomly taken as the mother. The two are arithmetic averaged and randomly rounded. The chromosome is required to meet the number constraint of the unmanned platform to obtain the corresponding offspring chromosome;

[0083] Mutation operation: select the individuals to be mutated in the offspring according to the specified mutation probability p. For the selected individuals, randomly select two different integers a and b between 1 and N, and a random integer c between 1 and U. Then exchange the (a-1)·U+cth gene block and the (b-1)·U+cth gene block on the chromosome to obtain a new chromosome that meets the constraints.

[0084] Selection operation: compare each pair of chromosomes in the parent population and the child population, retain the chromosome with the larger fitness value, and form the next generation population;

[0085] Repeat the basic iterative steps of the genetic algorithm of crossover, mutation and selection until the maximum number of iterations is reached, or the maximum fitness value in each generation of the population remains unchanged for 10 rounds of iterations, at which point the algorithm converges to the final solution.

[0086] Therefore, the present invention adopts the above-mentioned fast solution method suitable for large-scale heterogeneous cluster task allocation problem, which can enhance the local search capability of the genetic algorithm, ensure the superiority of the final allocation method without increasing the population size and the number of iterations, and reduce the calculation time.

[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A fast solution method for large-scale heterogeneous cluster task allocation problem, characterized by: Through an incomplete optimization algorithm, a suboptimal initial solution to the heterogeneous cluster task allocation problem is generated, and the initial solution is used to optimize the genetic algorithm to accelerate the convergence speed of the genetic algorithm. It includes four steps: model extraction, single platform transfer optimization, initial population generation and genetic algorithm iteration. S1: Model extraction: Based on the obtained task information, the tasks at N different locations are decomposed and divided into P parts; S2: Single platform transfer optimization: All unmanned platforms are evenly allocated to perform N tasks, and the single platform transfer optimization method is used to improve the allocation plan to obtain the global suboptimal unmanned platform task allocation matrix ; S3: Initial population generation: Formulate the genetic algorithm chromosome encoding method and determine the initial population, encode the initial solution obtained by the single platform transfer optimization strategy, and randomly select chromosomes, randomly select chromosomes, and mix the two to form the initial population of the genetic algorithm; In step S3, the global random allocation matrix and the neighborhood random allocation matrix that meet the unmanned platform quantity constraint are mixed to obtain an initial population of the genetic algorithm based on single platform transfer optimization; The global random assignment matrix is ​​generated as follows: Unmanned platform task allocation matrix No. The sum of the elements in the column should be ,Will No. The column elements are taken as ,in The function represents floor rounding. The function is used to generate a random number between 0 and 1; The domain random assignment matrix is ​​generated as follows: Unmanned platform task allocation matrix No. The sum of the elements in the column should be , the floating range of each element in each column of the initial solution is set to , the generated random assignment matrix is ​​in the neighborhood of the initial solution, where The function represents rounding up; The correction method for the global random matrix and the neighborhood random matrix is ​​as follows: S31: Let the random allocation matrix be , take out the random allocation matrix Column elements, calculate the difference from satisfying the number constraint of unmanned platforms ,like , from the allocation matrix No. Subtract the total of each element in the column indivual Unmanned platform, , from the allocation matrix No. The total increase of each element in the column indivual Type of unmanned platform; S32: When When creating a list of subtractable elements , for the global random assignment matrix, as long as the element is greater than 0, it can be reduced. ; For the neighborhood random assignment matrix, in addition to satisfying the condition that the element is greater than 0, the element Distance initial solution Elements at corresponding positions The distance should be less than 0.2 times Type Total number of unmanned platforms , ;when When each element is not less than 0, a list of incrementable elements is created , each element of the global random assignment matrix is ​​less than , ; The neighborhood random assignment matrix must satisfy the distance restriction of the initial solution, ; S33: After the add / subtract list is established, randomly select a member from the list and increase or decrease the corresponding element by 1 to reduce the deviation; S34: Update the deviation value and repeat steps S32 and S33 until the deviation value is 0; S35: repeating steps S31 to S34 until all columns of the allocation matrix satisfy the unmanned platform quantity constraint; S4: Genetic algorithm iteration: The genetic algorithm is optimized through the initial solution obtained in step S3. The genetic algorithm includes crossover operation, mutation operation and selection operation.

2. A fast solution method for large-scale heterogeneous cluster task allocation problem according to claim 1, characterized in that: In step S1, the P parts of these N tasks are evaluated to obtain the task resource requirement matrix and the task value matrix ,in and Represents the completion of tasks No. The estimated resource requirements and task benefits of each part; Assessing the resource carrying capacity matrix of U types of unmanned platforms in a heterogeneous cluster ,in Representative unmanned platform type Carry to complete the task The number of resources in each part; according to the specific task allocation plan, the unmanned platform is assigned tasks and the unmanned platform task allocation matrix is ​​determined ,in Representatives perform tasks of Type and number of unmanned platforms; the same unmanned platform can and must perform only one task, unmanned platform task allocation matrix Meeting the number constraints of unmanned platforms , It is the first The number of unmanned platforms; Determine the actual supply matrix of task resources And the fitness of the allocation scheme ,in , indicating the task No. The actual supply of task resources for each part is the sum of the corresponding task resources carried by all unmanned platforms participating in the execution of the task; , It is a function of the actual supply ratio of task resources to the ratio of task benefits obtained. It is nonlinear.

3. A fast solution method for large-scale heterogeneous cluster task allocation problem according to claim 2, characterized in that: In step S2, if there are decimals in the allocation result, they are randomly rounded to ensure that the allocation matrix meets the number constraints of unmanned platforms. Taking the unmanned platform task allocation matrix as the starting point, iterative optimization is performed according to the single platform transfer optimization method; the single platform transfer optimization method is as follows: For unmanned platform types When optimizing the allocation results, from task 1 to task N, record the type of unmanned platform that performs the task The increase in the number of tasks by 1 leads to an increase in the overall fitness of the task ; Record the type of unmanned platform that performs the task The absolute value of the decrease in the overall fitness of the task caused by a decrease in the number of ; If the maximum value of the fitness increase is greater than the maximum value of the fitness decrease: ; Then a type Unmanned platforms from participating in missions Execution becomes participation task Implementation of remember is the transformation matrix, ; but, ; From unmanned platform type 1 to unmanned platform type U, the task allocation matrix is ​​optimized for single platform transfer in accordance with the above method. If the total fitness value of the task increases after one round of optimization, the next round of optimization is continued until the total fitness stops increasing. At this time, the allocation scheme is the optimal allocation scheme, which is recorded as .

4. A fast solution method for large-scale heterogeneous cluster task allocation problem according to claim 3, characterized in that: In step S3, the chromosome encoding method involves converting the task allocation scheme into a chromosome form and converting the task allocation matrix Using a one-dimensional chromosome, in a heterogeneous cluster task allocation scenario, there are N tasks with different location distributions. The total number of unmanned platform types involved in executing these tasks is U. The chromosome length of individuals in the population is N×U. Each gene on the chromosome represents the execution of a task. of The number of unmanned platforms of different types is calculated, and the unmanned platform task allocation matrix is ​​calculated. Segment by row and connect to get the corresponding chromosome individuals. Genes correspond to the task allocation matrix Elements , representing the participation in the implementation of of tasks The number of unmanned platforms; Random assignment to generate task allocation matrix For each column of the allocation matrix, a list of elements that can be added, deleted, or modified is selected. Elements are randomly selected from the list to increase or decrease the value of the element so that the column meets the unmanned platform quantity constraint. The task allocation matrix that meets the unmanned platform quantity constraint is split and spliced ​​into corresponding chromosome individuals by row.

5. A fast solution method for large-scale heterogeneous cluster task allocation problem according to claim 4, characterized in that: In step S4, a crossover operation is performed: each chromosome in the initial population is taken as the father, and another chromosome is randomly taken as the mother. The two are arithmetic averaged and randomly rounded. The chromosome is required to meet the number constraint of the unmanned platform to obtain the corresponding offspring chromosome; Mutation operation: select the individuals to be mutated in the offspring according to the specified mutation probability p. For the selected individuals, randomly select two different integers a and b between 1 and N, and a random integer c between 1 and U, and then replace the first Gene blocks and Gene blocks are exchanged to obtain new chromosomes that meet the constraints; Selection operation: compare each pair of chromosomes in the parent population and the child population, retain the chromosome with the larger fitness value, and form the next generation population; Repeat the basic iterative steps of the genetic algorithm of crossover, mutation and selection until the maximum number of iterations is reached, or the maximum fitness value in each generation of the population remains unchanged for 10 rounds of iterations, at which point the algorithm converges to the final solution.

Citation Information

Patent Citations

  • Multi-heterogeneous unmanned aerial vehicle task allocation method based on improved genetic algorithm

    CN111860984A

  • Multi-aircraft air combat task allocation method based on genetic algorithm

    CN116050086A