A software project scheduling method based on heuristic discrete artificial bee colony algorithm

By introducing the heuristic discrete artificial bee colony algorithm into software project scheduling and using multivariate learning and heuristic information mutation mechanisms, the problem of slow convergence and easy falling into local optimality of traditional algorithms is solved, and efficient employee-task scheduling optimization is achieved. Reduced project duration and cost.

CN114298376BActive Publication Date: 2024-09-10NANJING UNIV OF INFORMATION SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111453983.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-01
Publication Date
2024-09-10
Estimated Expiration
2041-12-01

AI Technical Summary

Technical Problem

The traditional artificial bee colony algorithm has slow convergence speed in software project scheduling, is prone to fall into local optima, and has low solution accuracy, making it difficult to quickly find the best employee-task scheduling solution.

Method used

It adopts a heuristic discrete artificial bee colony algorithm, introduces multiple learning strategies and a mutation mechanism based on heuristic information, and optimizes the search process of individual honey sources through the phased interaction of leader bees, follower bees and scout bees, and enhances global search capabilities and local search capabilities. Excellent ability.

Benefits of technology

It significantly improves the convergence efficiency and solution accuracy of the algorithm, can quickly find the best employee-task scheduling solution in software project scheduling, and reduces project duration and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114298376B
    Figure CN114298376B
Patent Text Reader

Abstract

The present invention discloses a software project scheduling method based on a heuristic discrete artificial bee colony algorithm, comprising the following steps: (1) reading project information, including attributes of tasks and employees; (2) designing a new skill learning mechanism; (3) initializing algorithm parameters; (4) generating an initial nectar source population and calculating a target value; (5) leading bees performing a global search for nectar sources through a multivariate learning strategy; (6) following bees performing a local search for nectar sources through a mutation mechanism based on heuristic information; (7) scout bees abandoning useless nectar sources and randomly generating new nectar sources to replace old nectar sources; (8) judging whether the number of iterations reaches a maximum value, if so, terminating the iteration and outputting an individual with the best target value, which is the scheduling result of the input of each employee in each task in the project. The present invention has the advantages of strong search capability and high efficiency of the generated scheduling scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of project management, and in particular relates to a software project scheduling method based on a heuristic discrete artificial bee colony algorithm. Background Art

[0002] In recent years, the software industry has developed into an important industry in the national economy. The state has issued relevant documents such as "Several Policies to Promote the High-Quality Development of the Integrated Circuit Industry and the Software Industry in the New Era" to further optimize the development environment of the software industry, deepen international cooperation in the industry, and enhance the industry's innovation capabilities and development quality. Software Project Scheduling (SPSP) is an important part of software development, which directly affects the economic benefits and market competitiveness of software companies. SPSP refers to finding a reasonable way to arrange human resources and tasks, minimize project development costs and duration, and meet the relevant constraints of human resources and tasks. Since software projects generally have the characteristics of long cycles, high complexity, strong professionalism, and flexible and changeable human resources, traditional precise algorithms are difficult to obtain solutions that meet the requirements within a limited time. Most scholars use meta-heuristic algorithms to search for the optimal scheduling solution, thereby assisting software project managers in making the final decision.

[0003] The artificial bee colony algorithm (ABC) is a meta-heuristic algorithm proposed by Turkish scholar Karaboga in 2005 to simulate the honey-collecting behavior of bees. The algorithm has three stages: leading bees, following bees, and scout bees. It realizes the exploitation of nectar sources through information interaction among leading bees, following bees, and scout bees, and then finds the nectar source with the most nectar. Compared with other swarm intelligence algorithms, the ABC algorithm has fewer control parameters, can adopt different strategies for different stages, has a flexible structure, and is easy to improve. The software project scheduling method based on the heuristic discrete artificial bee colony algorithm proposed in the present invention integrates the software project scheduling problem information with the structural characteristics of the heuristic discrete artificial bee colony algorithm. The basic steps of the algorithm are as follows: using integer coding to randomly generate an initial nectar source population and calculate the target value of each nectar source individual; leading bee stage: each leading bee selects an operator through the roulette strategy to mine the corresponding nectar source through the selection probability of three operators: random learning, elite learning and merit learning, and greedily selects each nectar source before and after mining, leaving the nectar source individuals with better target values; following bee stage: first, each follower bee selects a nectar source that needs to be mutated through a sorting selection strategy, and then selects the optimal individual partial information that needs to be retained based on the employee task fit, adopts different mutation strategies to meet the mutation probability and based on the quality of the target value, and implements a greedy selection strategy for the nectar source before and after mining; scout bee stage: determine whether there is a nectar source whose number of unupdated times exceeds the maximum number of unupdated times limit. If there are multiple nectar sources, the one with the largest number of unupdated times is selected. If there are still multiple choices, one of the nectar sources is randomly selected, and the corresponding leading bee is transformed into a scout bee, and a new nectar source is randomly generated to replace the old one. The basic artificial bee colony algorithm search is relatively blind, converges slowly, and is prone to fall into local optimality and has low solution accuracy. In summary, it is extremely necessary to propose a software project scheduling method with higher convergence efficiency and stronger ability to jump out of local optimality. Summary of the invention

[0004] Purpose of the invention: In order to overcome the deficiencies in the prior art, the present invention provides a software project scheduling method based on a heuristic discrete artificial bee colony algorithm. The present invention can greatly improve the global search capability of the algorithm and has a strong ability to jump out of the local optimum, thereby quickly and efficiently obtaining a set of optimal employee-task scheduling methods for software project scheduling.

[0005] Technical solution: To achieve the above purpose, the technical solution adopted by the present invention is:

[0006] A software project scheduling method based on a heuristic discrete artificial bee colony algorithm comprises the following steps:

[0007] Step S1, read the input information of the project, define the optimization goal, and set the constraints:

[0008] The input information of the project includes the workload, skill requirements, skill difficulty and task priority diagram of each task, the existing skills, existing skill proficiency, learning ability, maximum workload that can be invested, normal monthly salary and overtime monthly salary of each employee. The optimization goal is to minimize the weighted sum of project duration and project cost in the best employee-task scheduling scheme. Constraints include task skill constraints and employees are not allowed to work overload.

[0009] Step S2, designing a new skill learning mechanism based on the new skill requirements of the project. The new skill learning mechanism includes the growth curve function of employees' choice to learn new skills, the proficiency of new skills, and the adaptive changes of their input.

[0010] Step S3, initializing the parameters of the heuristic discrete artificial bee colony algorithm.

[0011] Step S4, generate the initial nectar source population and calculate the target value of each nectar source:

[0012] Integer coding is used to randomly generate SN nectar source individuals, and the coding of each individual is an M×N matrix:

[0013] Y=(y ij ) M×N , i=1,2,...,M, j=1,2,...,N.

[0014] Among them, Y represents the individual coding matrix, y ij ∈{0,1,2,...,h}, h represents the granularity of the solution, that is, employee E i Maximum investment Divide into h equal parts. For the i-th employee E i The maximum workload that can be devoted to this project as a percentage of full-time workload, y ij Indicates that the element y ij The meaning is that employee E i Invest your maximum of y ij / hDedicate to the task T j . Through each task T j Occupies each employee E i Maximum Contribution The ratio of ij / h, convert the individual matrix into the employee-task allocation matrix X = (x ij ) M×N , the conversion formula is as follows:

[0015]

[0016] in,

[0017] Calculate the target value for each individual in the initial population:

[0018] f(X)=ω t ·t dur +ω c cost

[0019] Among them, f(X) represents the target value of the individual, t dur is the project duration, cost is the project cost, ω t ,ω c Represents a predefined parameter used to adjust the total project duration t dur and the relative importance of project cost.

[0020] Step S5, the leader bee uses a multivariate learning method to mine all nectar source individuals: the multivariate learning method includes three learning methods: random learning, elite learning and merit learning. The three learning methods are assigned selection probabilities respectively, and then each leader bee selects a learning method based on the roulette method to mine the corresponding nectar source. Calculate the target value of the nectar source individual after mining, perform greedy selection on the nectar source individuals before and after mining, keep the individuals with good target values, and update the number of unupdated times of all nectar sources.

[0021] Step S6, follower bees use a mutation mechanism based on heuristic information to mine nectar sources: each follower bee selects a nectar source for mining through a sorting selection method, and uses the problem heuristic information to retain the information of employees with high fit among the best individuals. At the same time, different mutation methods are selected according to the quality of the target value of the current nectar source individual. Greedy selection is performed on the nectar sources before and after the mutation, leaving individuals with good target values, and the number of unupdated nectar sources after mining is updated.

[0022] Step S7: The scout bees discard useless nectar sources and randomly generate new nectar sources to replace the old ones.

[0023] Determine whether there is a nectar source whose number of unupdated times exceeds the maximum unupdated number limit. If there are multiple nectar sources, select the one with the largest number of unupdated times. If there are still multiple choices, randomly select one of the nectar sources, transform the leader bee corresponding to the nectar source into a scout bee, and randomly generate a new nectar source to replace the old one.

[0024] Step S8, termination criteria judgment:

[0025] If the maximum number of iterations is reached, the iteration is terminated and the individual with the best target value is output. The individual is the workload allocation result of each employee in each task in the project. Otherwise, go to step S5.

[0026] Preferably, the project duration in step S1 represents the time spent on completing all tasks of the project, which is defined as:

[0027]

[0028] Among them, t dur Indicates the project duration, Represents task T j The start time of Represents task T j completion time, and N represents the number of tasks.

[0029] The project cost described in step S1 represents the financial resources spent on completing all the tasks of the project, which is defined as:

[0030]

[0031]

[0032] Condition 1:

[0033] Condition 2:

[0034] Among them, cost represents the project cost, t′ represents a month in the development phase of the project, M represents the number of employees, represents the payment to employee E during period t′ i of salary, Indicates E i Normal monthly salary, Indicates E i The monthly overtime salary is T_active_set(t′), which represents the set of tasks being developed during the period t′. ij Indicates employee E i In Task T j The percentage of full-time workload in the study. Indicates employee E i The maximum workload that can be devoted to the entire project as a percentage of full-time workload, when , indicating that I am able to work overtime.

[0035] The employee's existing skill proficiency in step S1 is defined as follows:

[0036] Employee E i Skill proficiency set:

[0037]

[0038] in, Indicates employee E i Skill proficiency set, Indicates that at t l Time E i For the proficiency of the kth skill, k = 1, 2, ....., S, where S is the total number of skills required for the project. Indicates E i There is no k-th skill, Indicates E i Completely master the kth skill, C represents the maximum value of skill proficiency. l is the completion time of each immediate predecessor task in the task priority graph, l=0,1,2,.... l All operable tasks at the moment constitute the current executable task set, and the start time of the set is t l express.

[0039] has different values ​​at different times, Find employee E i In t l Always on task T j Proficiency level:

[0040] and

[0041] in, Indicates employee E i In t l Always on task T j proficiency, req j Represents task T j A collection of skills required. i Indicates employee E i A collection of existing skills.

[0042] The task skill constraint in step S1 means that the total skill set of all employees participating in a task must meet all the skill requirements of the task, and only one person needs to learn a new skill, that is:

[0043]

[0044]

[0045] Among them, req j Represents task T j A collection of skills required. i Indicates employee E iThe set of existing skills mastered. z represents the new skill z, z(z∈{1,2,...,S}) means that the new skill z exists in the skill set required by the project, z∈{1,2,...,S}, S represents the number of skills required by the project, and q represents the new skill learned by the qth employee.

[0046] The constraint that employees cannot work overloaded in step S1 means that at any time t, the total commitment of each employee to the current executable task set must not exceed the maximum commitment of the employee, that is,

[0047]

[0048] in, Each task T j Occupies each employee E i Maximum contribution.

[0049] Preferred: The method for employees to choose to learn new skills in step S2:

[0050] Employee E i Each existing skill k∈skill i Have a certain initial proficiency Define employee E i The similarity between skill k and new skill z(z∈{1,2,...,S})

[0051]

[0052] Among them, t0 represents the project start time, r kz is the correlation between skill k and new skill z, r kz ∈[0,1], employee E i The suitability of learning new skills z

[0053]

[0054] in, Indicates E q learning ability, Indicates employee E i The maximum value of similar proficiency between existing skills and new skill z, Indicates employee E i The total proficiency of all project tasks at time t0, It represents the maximum value of the total proficiency of all employees for all tasks of the project at time t0. It represents the minimum value of the total proficiency of all employees for all tasks of the project at time t0. Choose the right fit The maximum number of employees q learning new skills z is

[0055] Preferably, the new skill proficiency growth curve function in step S2 is as follows:

[0056]

[0057] in, Indicates employee E q is the growth function of the proficiency of the new skill z over time t, C represents the maximum value of skill proficiency, tanh(·) is the hyperbolic tangent function, Indicates employee E q The growth rate of proficiency in new skill z, Indicates E q The learning ability of E q The stronger the learning ability, the higher the SD z Indicates the difficulty of the new skill z. The larger the value, the greater the difficulty of the new skill z.

[0058] The existing skill proficiency growth curve function is as follows:

[0059]

[0060] in, Indicates employee E i The growth function of the proficiency of existing skill k over time t, Indicates employee E i The initial proficiency of skill k is Indicates employee E i The growth rate of proficiency for skill k,

[0061] Preferably, the adaptive change function of the selected employee engagement degree in step S2 is as follows:

[0062]

[0063] Among them, d qj (t) represents E after adaptive adjustment at time t q To T j The degree of involvement, x qj Indicates the employee E specified in the project scheduling plan q For task T jThe degree of involvement is a constant. T_active_set(t) represents the set of executable tasks at time t.

[0064] Preferably, initializing the heuristic discrete artificial bee colony algorithm parameters in step S3 includes: setting the heuristic artificial bee colony algorithm nectar source population size to SN, the maximum number of unupdated times to limit, the maximum number of iterations to G, the random learning selection probability P r , suppose there are M employees and N tasks in the project, then the mutation probability P m =1 / (M·N), let the iteration counter t=0, the number of unupdated times of each honey source counter p =0, p=1,2,...,SN.

[0065] Preferably: Step S5 uses a multivariate learning method to exploit all nectar source individuals:

[0066] Step S51, according to the input random learning probability P r , calculate the probability P of elite learning e and the probability P of merit learning s ,in,

[0067] Step S52: Each leading bee selects the sequence number of the learning method through the roulette method.

[0068] Step S53: If learning method 1 is selected, the leading bee mines the corresponding nectar source individuals through random learning.

[0069] Step S54: If learning method 2 is selected, the leading bees exploit the corresponding nectar source individuals through elite learning.

[0070] Step S55: If learning method 3 is selected, the leading bee exploits the corresponding nectar source individuals through merit learning.

[0071] Step S56, outputting the new nectar source individuals after mining.

[0072] Preferably: in step S6, the method in which the follower bee exploits the nectar source using a variation mechanism based on heuristic information is as follows:

[0073] Step S61, calculate the fit wf of each employee for each task ij , the calculation formula is as follows:

[0074]

[0075] Among them, λ is used to adjust The relative importance of The relative importance of The relative importance of Indicates that at the initial moment, employee E i For task T j proficiency, i=1,2,...,Mj=1,2,...,N, and Indicates E i Normal monthly salary, Indicates E i Monthly overtime pay.

[0076] Step S62: sort all nectar source individuals from small to large according to the target value, and record the sorting sequence number of each nectar source.

[0077] sort p ∈[1,SN], p=1,2,...,SN, SN represents the number of nectar sources.

[0078] In step S63, the follower bee selects the nectar source that needs to be mutated through a sorting selection method. Assuming that the pth nectar source is selected, it is recorded as YP=Pop(p), where Pop represents the nectar source population and YP represents the individual matrix of the pth nectar source.

[0079] Step S64: for each task T j , all based on wf ij Play a roulette wheel and select an employee Keep the employee's serial number, i.e. index j =u j , index j Represents task T j The selected employee index, u j Indicates the serial number of the selected employee.

[0080] Step S65: Generate a random number for each element of the honey source YP ij , if random ij ≤P m , P m Represents the mutation probability, then the element undergoes mutation operation.

[0081] Step S66: for the element yp that meets the mutation condition ij Perform mutation, if i == index j ,but Represents the searched element yp ij The new value of represents the best nectar source individual Y best Otherwise, if sort pIf <SN / 2, that is, the target value ranking of the nectar source YP is in the top 50% of the nectar source population, then mutation is performed according to the following formula:

[0082]

[0083] Condition 4: yp ij +N(0,1)·yp ij ≥0

[0084] Otherwise, approach the optimal nectar source individual according to the following formula:

[0085]

[0086] Wherein, N(0,1) is the standard Gaussian distribution, rand ∈ [0,1], round(.) represents rounding to the nearest integer, represents the upper limit of the value of the decision variable y ij of, the decision variable y ij upper limit of the value of min(.) means that the element value in the individual does not exceed

[0087] Step S67, calculate the target value of the mutated nectar source individual YP new If the target value of YP new is better than YP, that is, f(YP new ) < f(YP), then let Pop(p) = YP new , Counter p = 0, Counter p represents the number of times the p-th nectar source has not been updated. If the target value of YP new is not better than YP, then Counter p = Counter p + 1.

[0088] Step S68, if the target value of the mutated individual is better than the current optimal nectar source individual, that is, f(YP new ) < f(Y best ), then Y best = YP new .

[0089] Step S69, repeat steps S63 - S68 until all follower bees have completed the nectar collection operation, and finally output the mutated nectar source population and its number of times of non-update.

[0090] Preferably: In step S7, the scouting bee abandons the useless nectar source and randomly generates a new nectar source to replace the old nectar source. The implementation steps are as follows:

[0091] Step S71, according to the current number of times of non-update Counter of each nectar sourcep , p=1,2,...,SN, determine whether there is a Counter p >limit, where limit indicates the maximum number of times the nectar source has not been updated.

[0092] Step S72: If there is no Counter p >limit, then t=t+1, t represents the number of iterations, jump to S8. p >limit, the nectar source individual will be recorded.

[0093] Step S73: if there are multiple nectar sources whose number of unupdated times exceeds the limit, the nectar source with the largest number of unupdated times is selected; if there are still multiple choices, one of the nectar sources is randomly selected and the leading bee corresponding to the nectar source is converted into a scout bee.

[0094] Step S74, the transformed scout bee randomly searches for a new nectar source and replaces the old nectar source with the new one, and let t=t+1.

[0095] Preferably, the granularity h of the solution is 10.

[0096] Compared with the prior art, the present invention has the following beneficial effects:

[0097] (1) The present invention establishes a software project scheduling problem model that takes into account the new skill learning mechanism. The model incorporates practical factors such as employees' learning of new skills, the growth of new skill proficiency, and the adaptive changes in their commitment. By finding the optimal employee-task scheduling solution, the duration and cost of the software project are minimized.

[0098] (2) The present invention adopts a heuristic artificial bee colony algorithm to implement software project scheduling. In the leading bee stage, a global search strategy with good diversity and strong search ability is introduced. In the following bee stage, the problem heuristic information is used and a heuristic mutation mechanism is used for local search, which is conducive to jumping out of the local optimum. The performance of this algorithm is better than that of the traditional artificial bee colony algorithm.

[0099] (3) The present invention adopts a multi-learning strategy in the leading bee stage, giving the random learning operator a greater probability of being selected, effectively increasing the diversity of the population and ensuring the large-scale global search of the decision space by the population; at the same time, the low-probability elite learning and merit learning operators can guide the population to move in the right direction, further improving the algorithm's search capability and solution accuracy.

[0100] (4) In order to improve the local search capability of the algorithm, the present invention adopts a mutation mechanism based on heuristic information in the follower bee stage, ensures the selection probability of the dominant individual through sorting selection, and uses the heuristic information of the model optimization target to retain the employee information with high fit among the optimal individuals. At the same time, according to the quality of the target value of the current nectar source individual, different mutation methods are selected to strengthen the guidance of the algorithm search direction and improve the local optimization capability of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0101] Figure 1 This is the main flow chart of the heuristic artificial bee colony algorithm adopted by the present invention.

[0102] Figure 2 This is the task priority diagram in this example.

[0103] Figure 3 The present invention discloses a Gantt chart corresponding to an optimal software project employee-task scheduling solution obtained by solving an example based on a heuristic artificial bee colony algorithm.

[0104] Figure 4 This is the Gantt chart corresponding to the optimal software project employee-task scheduling solution obtained by solving the example using the basic artificial bee colony algorithm. DETAILED DESCRIPTION

[0105] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these examples are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0106] In an actual project, there are 10 employees and 15 tasks (i.e., M=10, N=15), with a total of 6 skill requirements (set as 1, 2, 3, 4, 5, 6, and their skill difficulties are 0.4, 0.4, 0.5, 0.6, 0.7, 0.5 respectively), of which skill 6 is a new skill. The task priority diagram is shown in the figure below: Figure 2 Each task T j Required workload And skill requirements set req j As shown in Table 1. Each employee E i The maximum allowable amount of work to be put into the entire project Learning ability Normal monthly salary Overtime monthly salary Skills i And existing skill proficiency set As shown in Table 2.

[0107] Table 1 The workload and skill requirements for each task

[0108]

[0109]

[0110] Table 2 Employee situation

[0111]

[0112] A software project scheduling method based on a heuristic discrete artificial bee colony algorithm proposed by the present invention is used to solve the scheduling scheme of the project embodiment, such as Figure 2 As shown, the following steps are included:

[0113] Step S1, read the input information of the project including task attributes (see Table 1) and employee attributes (see Table 2), define the optimization goal, set constraints and initialize:

[0114] The input information of the project includes the workload, skill requirements, skill difficulty and task priority diagram of each task, the existing skills, existing skill proficiency, learning ability, maximum workload that can be invested, normal monthly salary and overtime monthly salary of each employee. The optimization goal is to minimize the weighted sum of project duration and project cost in the best employee-task scheduling scheme. Constraints include task skill constraints and employees are not allowed to work overload.

[0115] The project duration represents the time it takes to complete all the tasks of the project, which is defined as:

[0116]

[0117] Among them, t dur Indicates the project duration, Represents task T j The start time of Represents task T j completion time, and N represents the number of tasks. In this example, N=15.

[0118] The project cost represents the financial resources (i.e., employee salaries) spent on completing all project tasks and is defined as:

[0119]

[0120]

[0121] Condition 1:

[0122] Condition 2:

[0123] Among them, cost represents the project cost, t′ represents a month in the development phase of the project, and M represents the number of employees. In this example, M = 10. represents the payment to employee E during period t′ i of salary, Indicates E i Normal monthly salary, Indicates E i The monthly overtime salary is T_active_set(t′), which represents the set of tasks being developed during the period t′. ij Indicates employee E i In Task T j The percentage of full-time workload in the study. Indicates employee E i The maximum workload that can be devoted to the entire project as a percentage of full-time workload, when When , it means that overtime is possible. The smaller the target values ​​of "project duration" and "project cost", the better.

[0124] The constraints set by the present invention include task skill constraints and the constraint that employees cannot work overloaded.

[0125] The employee's existing skill proficiency is defined as follows:

[0126] Employee E i Skill proficiency set:

[0127]

[0128] in, Indicates employee E i Skill proficiency set, Indicates that at t l Time E i For the proficiency of the kth skill, k = 1, 2, ....., S, where S is the total number of skills required for the project. Indicates E i There is no k-th skill, Indicates E i Completely master the kth skill, C represents the maximum value of skill proficiency. l is the completion time of each immediate predecessor task in the task priority graph, l=0,1,2,.... l All operable tasks at the moment constitute the current executable task set, and the start time of the set is t l express.

[0129] has different values ​​at different times, Find employee E i In tl Always on task T j Proficiency level:

[0130] and

[0131] in, Indicates employee E i In t l Always on task T j proficiency, req j Represents task T j A collection of skills required. i Indicates employee E i A collection of existing skills.

[0132] The task skill constraint means that the total skill set of all employees involved in a task must meet all the skill requirements of the task, and only one person needs to learn a new skill, that is:

[0133]

[0134]

[0135] Among them, req j Represents task T j A collection of skills required. i Indicates employee E i The set of existing skills mastered. z represents the new skill z, z(z∈{1,2,...,S}) means that the new skill z exists in the skill set required by the project, z∈{1,2,...,S}, S represents the number of skills required by the project, and q represents the new skill learned by the qth employee.

[0136] The constraint that employees cannot work overload means that at any time t, the total commitment of each employee to the current executable task set must not exceed the maximum commitment of the employee, that is,

[0137]

[0138] in, Each task T j Occupies each employee E i Maximum contribution.

[0139] Step S2, designing a new skill learning mechanism according to the new skill requirements of the project. The present invention adopts a method of allowing existing employees to learn new skills to meet the project skill requirements, thereby designing a new skill learning mechanism. The new skill learning mechanism includes how employees choose to learn new skills, the growth curve function of new skill proficiency and the adaptive changes of its involvement.

[0140] The methods these employees chose to learn new skills:

[0141] Employee E i Each existing skill k∈skill i Have a certain initial proficiency Define employee E i The similarity between skill k and new skill z(z∈{1,2,...,S})

[0142]

[0143] Among them, t0 represents the project start time, r kz is the correlation between skill k and new skill z, r kz ∈[0,1], define employee E i The suitability of learning new skills z

[0144]

[0145] in, Indicates E q learning ability, Indicates employee E i The maximum value of similar proficiency between existing skills and new skill z, Indicates employee E i The total proficiency of all project tasks at time t0, It represents the maximum value of the total proficiency of all employees for all tasks of the project at time t0. It represents the minimum value of the total proficiency of all employees for all tasks of the project at time t0. Choose the right fit The maximum number of employees q learning new skills z is

[0146] The new skill proficiency growth curve function is as follows:

[0147]

[0148] in, Indicates employee E q is the growth function of the proficiency of the new skill z over time t, C represents the maximum value of skill proficiency, tanh(·) is the hyperbolic tangent function, Indicates employee E q The growth rate of proficiency in new skill z, Indicates E q The learning ability of E q The stronger the learning ability, the higher the SD z Indicates the difficulty of the new skill z. The larger the value, the greater the difficulty of the new skill z.

[0149] The existing skill proficiency growth curve function is as follows:

[0150]

[0151] in, Indicates employee E i The growth function of the proficiency of existing skill k over time t, Indicates employee E i The initial proficiency of skill k is Indicates employee E i The growth rate of proficiency for skill k,

[0152] The adaptive change function of the selected employee's engagement is as follows:

[0153]

[0154] Among them, d qj (t) represents E after adaptive adjustment at time t q To T j The degree of involvement, x qj Indicates the employee E specified in the project scheduling plan q For task T j The degree of involvement is a constant. T_active_set(t) represents the set of executable tasks at time t.

[0155] Step S3, initializing the parameters of the heuristic discrete artificial bee colony algorithm.

[0156] Initializing the heuristic discrete artificial bee colony algorithm parameters includes: setting the heuristic artificial bee colony algorithm nectar source population size to SN = 100, the maximum number of unupdated times limit = D · SN (D = M · N in the present invention), the maximum number of iterations G = 250, and the random learning selection probability P r =0.6, assuming there are M employees and N tasks in the project, then the mutation probability P m =1 / (M·N), in this example, P m =1 / 150; let the iteration counter t = 0, the number of unupdated times of each honey source counter p =0, p=1,2,...,SN.

[0157] Step S4, generate the initial nectar source population and calculate the target value of each nectar source:

[0158] Integer coding is used to randomly generate SN nectar source individuals, and the coding of each individual is an M×N matrix:

[0159] Y=(y ij ) M×N , i=1,2,...,M, j=1,2,...,N.

[0160] Among them, Y represents the individual coding matrix, y ij ∈{0,1,2,...,h}, h represents the granularity of the solution, that is, employee E i Maximum investment Divide into h equal parts. For the i-th employee E i The maximum workload that can be devoted to this project as a percentage of full-time workload, y ij Indicates that the element y ij The meaning is that employee E i Invest your maximum of y ij / hDedicate to the task T j . Through each task T j Occupies each employee E i Maximum Contribution The ratio of ij / h, the present invention sets h to 10. The individual matrix is ​​converted into an employee-task allocation matrix X = (x ij ) M×N , the conversion formula is as follows:

[0161]

[0162] in,

[0163] Calculate the target value for each individual in the initial population:

[0164] f(X)=ω t ·t dur +ω c cost

[0165] Among them, f(X) represents the target value of the individual, t dur is the project duration, cost is the project cost, ω t ,ω c Represents a predefined parameter used to adjust the total project duration t dur and the relative importance of project cost. In this example, we set ω t =10 -1 ,ωc =10 -5 .

[0166] The constraints are handled as follows:

[0167] If the total skill set of all employees involved in a task does not meet all the skill requirements of the task, its project duration and cost will be set to a very high penalty value. Assuming reqsk is the total number of skills that do not meet the constraints in the individual, the penalties are respectively calculated according to the following formula:

[0168]

[0169]

[0170] Since the new skill learning mechanism of the present invention only selects one employee to learn the new skill when selecting employees, the constraint that only one person needs to learn the new skill is always met.

[0171] If an individual violates the constraint that employees cannot work overloaded, the method of normalizing the input is adopted. i Overload work at time t, that is Then divide the input originally assigned to him in each active task (i.e. the task being developed at time t) by if The normalization method adopted by the present invention can ensure that the constraint that employees cannot work overloaded is always met.

[0172] Step S5, the leader bee uses a multivariate learning method to mine all nectar source individuals: the multivariate learning method includes three learning methods: random learning, elite learning and merit learning. The three learning methods are assigned selection probabilities respectively, and then each leader bee selects a learning method based on the roulette method to mine the corresponding nectar source. Calculate the target value of the nectar source individual after mining, perform greedy selection on the nectar source individuals before and after mining, keep the individuals with good target values, and update the number of unupdated times of all nectar sources.

[0173] The method of using multivariate learning method to exploit all nectar source individuals:

[0174] Step S51, according to the input random learning probability P r , calculate the probability P of elite learning e and the probability P of merit learning s ,in,

[0175] Step S52: Each leading bee selects the sequence number of the learning method through the roulette method.

[0176] Step S53: If learning method 1 is selected, the leading bee mines the corresponding nectar source individuals through random learning.

[0177] Step S54: If learning method 2 is selected, the leading bees exploit the corresponding nectar source individuals through elite learning.

[0178] Step S55: If learning method 3 is selected, the leading bee exploits the corresponding nectar source individuals through merit learning.

[0179] Step S56, outputting the new nectar source individuals after mining.

[0180] Step S6, follower bees use a mutation mechanism based on heuristic information to mine nectar sources: each follower bee selects a nectar source for mining through a sorting selection method, and uses the problem heuristic information to retain the information of employees with high fit among the best individuals. At the same time, different mutation methods are selected according to the quality of the target value of the current nectar source individual. Greedy selection is performed on the nectar sources before and after the mutation, leaving individuals with good target values, and the number of unupdated nectar sources after mining is updated.

[0181] The method by which follower bees exploit nectar sources using a mutation mechanism based on heuristic information is as follows:

[0182] Step S61, calculate the fit wf of each employee for each task ij , the calculation formula is as follows:

[0183]

[0184] Among them, λ is used to adjust The relative importance of The relative importance of The relative importance of Indicates that at the initial moment, employee E i For task T j proficiency, i=1,2,...,Mj=1,2,...,N, and Indicates E i Normal monthly salary, Indicates E i Monthly overtime pay.

[0185] Step S62: sort all nectar sources from small to large according to the target value, and record the sort number of each nectar source. p ∈[1,SN], p=1,2,...,SN, SN represents the number of nectar sources.

[0186] In step S63, the follower bee selects the nectar source that needs to be mutated through a sorting selection method. Assuming that the pth nectar source is selected, it is recorded as YP=Pop(p), where Pop represents the nectar source population and YP represents the individual matrix of the pth nectar source.

[0187] Step S64: for each task T j , all based on wf ij Play a roulette wheel and select an employee Keep the employee's serial number, i.e. index j =u j , index j Represents task T j The selected employee index, u j Indicates the serial number of the selected employee.

[0188] Step S65: Generate a random number for each element of the honey source YP ij , if random ij ≤P m , P m Represents the mutation probability, then the element undergoes mutation operation.

[0189] Step S66: for the element yp that meets the mutation condition ij Perform mutation, if i == index j ,but Represents the searched element yp ij The new value of represents the best nectar source individual Y best Otherwise, if sort p <SN / 2, that is, the target value ranking of nectar source YP is in the top 50% of the nectar source population, then the mutation is performed through the following formula:

[0190]

[0191] Condition 4: yp ij +N(0,1)·yp ij ≥0

[0192] Otherwise, move closer to the optimal nectar source individual through the following formula:

[0193]

[0194] Among them, N(0,1) is the standard Gaussian distribution, rand∈[0,1], and round(.) means rounding to the nearest integer. represents the decision variable y ij The upper limit of the value of, according to the coding method of this paper, the decision variable y ij The upper limit of min(.) represents that the element value in the individual does not exceed to increase the number of feasible solutions.

[0195] Step S67, calculate the objective value of the mutated nectar source individual YP new If the objective value of YP new is better than that of YP, that is, f(YP new ) < f(YP), then let Pop(p) = YP new , Counter p = 0, Counter p represents the number of times the p-th nectar source has not been updated. If the objective value of YP new is not better than that of YP, then Counter p = Counter p + 1.

[0196] Step S68, if the objective value of the mutated individual is better than that of the current optimal nectar source individual, that is, f(YP new ) < f(Y best ), then Y best = YP new .

[0197] Step S69, repeat steps S63 - S68 until all follower bees have completed the nectar collection operation, and finally output the mutated nectar source population and its number of times not updated.

[0198] Step S7, the scout bee abandons the useless nectar source and randomly generates a new nectar source to replace the old one:

[0199] Judge whether there is a nectar source whose number of times not updated exceeds the maximum number of times not updated limit. If there are multiple nectar sources with the number of times not updated exceeding limit, then select the nectar source with the largest number of times not updated. If there are still multiple choices, then randomly select one of them, convert the leading bee corresponding to this nectar source into a scout bee, and randomly generate a new nectar source to replace the old one.

[0200] The implementation steps for the scout bee to abandon the useless nectar source and randomly generate a new nectar source to replace the old one are as follows:

[0201] Step S71, according to the current number of times not updated Counter p of each nectar source, p = 1, 2,..., SN, judge whether there is Counter p > limit, where limit represents the maximum number of times a nectar source has not been updated.

[0202] Step S72, if there is no Counter p > limit, then t = t + 1, where t represents the number of iterations, and jump to S8. If there is Counterp >limit, the nectar source individual will be recorded.

[0203] Step S73: if there are multiple nectar sources whose number of unupdated times exceeds the limit, the nectar source with the largest number of unupdated times is selected; if there are still multiple choices, one of the nectar sources is randomly selected and the leading bee corresponding to the nectar source is converted into a scout bee.

[0204] Step S74, the transformed scout bee randomly searches for a new nectar source and replaces the old nectar source with the new one, and let t=t+1.

[0205] Step S8, termination criteria judgment:

[0206] If the maximum number of iterations is reached, t>G, the iteration is terminated and the individual with the optimal target value is output. This individual is the workload allocation result of each employee in each task in the project. Otherwise, go to step S5.

[0207] The effect of the present invention can be further illustrated by the following simulation experiment:

[0208] 1. Experimental conditions:

[0209] Pycharm software was used for simulation experiments. The computer processor parameters were Intel(R) Core(TM) i5-10300UCPU@2.50GHz and 16G running memory.

[0210] 2. Experimental content:

[0211] The present invention solves the project scheduling scheme for the above software project example with 10 software engineers, 15 tasks, and 6 skill requirements. The task priority diagram of the project is as follows: Figure 2 As shown, Figure 2 1 to 15 represent the task numbers respectively, and the directed lines represent the order in which the task development needs to be met.

[0212] 3. Experimental results:

[0213] The heuristic discrete artificial bee colony algorithm and the basic artificial bee colony algorithm of the present invention are used to solve software project scheduling examples respectively. Figure 2is the task priority diagram of the example. The two methods are run independently 30 times in the example. Table 3 lists the optimal and average target values ​​of the scheduling schemes obtained by the two methods in 30 runs, as well as the project duration and cost in the optimal scheduling scheme. It can be seen from Table 3 that compared with the basic artificial bee colony algorithm, the present invention can search for individuals with better target values, and the obtained optimal target value and average optimal value are far better than the basic artificial bee colony algorithm. The project duration and project cost in the searched optimal solution are better than the basic artificial bee colony algorithm, which greatly reduces the project duration and cost and significantly enhances the efficiency of project development.

[0214] Table 3 Solution results of two algorithms

[0215]

[0216]

[0217] Figure 3 The Gantt chart corresponding to the optimal software project employee-task scheduling solution obtained by solving the example using the heuristic discrete artificial bee colony algorithm of the present invention is as follows: Figure 4 This is the Gantt chart corresponding to the optimal software project employee-task scheduling solution obtained by solving the example using the basic artificial bee colony algorithm. From the Gantt chart, we can get the start time, end time, duration of each task, and the order of tasks. Figure 3 It can be seen that the project duration of the software project scheduling solution obtained by the present invention based on the heuristic discrete artificial bee colony algorithm is 19.2308 months. Figure 4 It can be seen that the project duration of the software project scheduling solution obtained by the basic artificial bee colony algorithm is 20.4802 months.

[0218] In summary, the software project scheduling method based on the heuristic discrete artificial bee colony algorithm proposed in the present invention has established a mathematical model for software project scheduling that takes into account the new skill learning mechanism in the software project scheduling problem with the optimization goal of minimizing the project duration and cost. On the basis of the basic artificial bee colony algorithm, a multi-learning strategy is introduced in the leading bee stage to maintain population diversity and enhance the global search capability of the algorithm; at the same time, a mutation mechanism based on heuristic information is designed in the following bee stage. While retaining the information of employees with high fit among the optimal individuals, different mutation operations are used in a targeted manner according to the quality of the target value of the current honey source individual, so as to enhance the guidance of the local search direction and improve the search accuracy of the algorithm. Therefore, the present invention has the advantages of strong search capability and high efficiency of the generated scheduling scheme.

[0219] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A software project scheduling method based on heuristic discrete artificial bee colony algorithm, It is characterized in that The following steps are involved: Step S1, read the input information of the project, define the optimization goal, and set the constraints: The input information of the project includes the workload, skill requirements, skill difficulty and task priority diagram of each task, the existing skills, existing skill proficiency, learning ability, maximum workload that can be invested, normal monthly salary and overtime monthly salary of each employee; the optimization goal is to minimize the weighted sum of project duration and project cost in the best employee-task scheduling plan; the constraints include task skill constraints and employees are not allowed to work overload; Step S2, designing a new skill learning mechanism based on the new skill requirements of the project, the new skill learning mechanism includes the growth curve function of employees choosing to learn new skills, the new skill proficiency and the adaptive changes of their input; Step S3, initializing the heuristic discrete artificial bee colony algorithm parameters; Step S4, generate the initial nectar source population and calculate the target value of each nectar source: Integer coding is used to randomly generate SN nectar source individuals, and the coding of each individual is an M×N matrix: Y=(y ij ) M×N ,i=1,2,...,M,j=1,2,...,N; Among them, Y represents the individual coding matrix, y ij ∈{0,1,2,...,h}, h represents the granularity of the solution, that is, employee E i Maximum investment Divide into h equal parts; For the i-th employee E i The maximum workload that can be devoted to this project as a percentage of full-time workload, y ij Indicates that the element y ij The meaning is that employee E i Invest your maximum of y ij / hDedicate to the task T j ; Pass each task T j Occupies each employee E i Maximum Contribution The ratio of ij / h, convert the individual matrix into the employee-task allocation matrix X = (x ij ) M×N , the conversion formula is as follows: in, Calculate the target value for each individual in the initial population: f(X)=ω t ·t dur +ω c ·cost Among them, f(X) represents the target value of the individual, t dur is the project duration, cost is the project cost, ω t ,ω c Represents a predefined parameter used to adjust the total project duration t dur and the relative importance of project cost; Step S5, the leader bee uses a multivariate learning method to mine all nectar source individuals: the multivariate learning method includes three learning methods: random learning, elite learning and merit learning, and the three learning methods are assigned selection probabilities respectively. Then each leader bee selects a learning method based on the roulette method to mine the corresponding nectar source; the target value of the nectar source individual after mining is calculated, and the nectar source individuals before and after mining are greedily selected, leaving the individuals with good target values, and updating the number of unupdated times of all nectar sources; Step S6, the follower bees use a mutation mechanism based on heuristic information to mine the nectar source: each follower bee selects a nectar source for mining through a sorting selection method, and uses the problem heuristic information to retain the information of employees with high fit among the optimal individuals. At the same time, different mutation methods are selected according to the quality of the target value of the current nectar source individual; greedy selection is performed on the nectar sources before and after the mutation, and individuals with good target values ​​are retained, and the number of unupdated nectar sources after mining is updated; Step S7: The scout bees discard useless nectar sources and randomly generate new nectar sources to replace the old ones. Determine whether there is a nectar source whose number of unupdated times exceeds the maximum unupdated number limit; if there are multiple nectar sources, select the nectar source with the largest number of unupdated times. If there are still multiple choices, randomly select one of the nectar sources, transform the leader bee corresponding to the nectar source into a scout bee, and randomly generate a new nectar source to replace the old one; Step S8, termination criteria judgment: If the maximum number of iterations is reached, the iteration is terminated and the individual with the best target value is output. The individual is the workload allocation result of each employee in each task in the project. Otherwise, go to step S5.

2. According to the software project scheduling method based on the heuristic discrete artificial bee colony algorithm according to claim 1, Features: The project duration described in step S1 represents the time spent on completing all the tasks of the project, which is defined as: Among them, t dur Indicates the project duration, Represents task T j The start time of Represents task T j completion time, and N represents the number of tasks; The project cost described in step S1 represents the financial resources spent on completing all the tasks of the project, which is defined as: Condition 1: Condition 2: Among them, cost represents the project cost, t′ represents a month in the development phase of the project, M represents the number of employees, represents the payment to employee E during period t′ i of salary, Indicates E i Normal monthly salary, Indicates E i Overtime monthly salary, T_active_set(t′) represents the set of tasks being developed during t′; x ij Indicates employee E i In Task T j The percentage of workload in full-time work; Indicates employee E i The maximum workload that can be devoted to the entire project as a percentage of full-time workload, when , indicating that you can work overtime; The employee's existing skill proficiency in step S1 is defined as follows: Employee E i Skill proficiency set: in, Indicates employee E i Skill proficiency set, Indicates that at t l Time E i For the proficiency of the kth skill, k = 1, 2, ....., S, where S is the total number of skills required for the project; Indicates E i There is no k-th skill, Indicates E i Completely master the kth skill, C represents the maximum value of skill proficiency; t l is the completion time of each immediate predecessor task in the task priority graph, l=0,1,2,...; t l All operable tasks at the moment constitute the current executable task set, and the start time of the set is t l express; has different values ​​at different times, Find employee E i In t l Always on task T j Proficiency level: and in, Indicates employee E i In t l Always on task T j proficiency, req j Represents task T j The set of skills required; skill i Indicates employee E i The collection of existing skills acquired; The task skill constraint in step S1 means that the total skill set of all employees participating in a task must meet all the skill requirements of the task, and only one person needs to learn a new skill, that is: Among them, req j Represents task T j The set of skills required; skill i Indicates employee E i The set of existing skills mastered; z represents the new skill z, z(z∈{1,2,...,S}) means that the new skill z exists in the skill set required by the project, z∈{1,2,...,S}, S represents the number of skills required by the project, and q represents the new skill learned by the qth employee; The constraint that employees cannot work overloaded in step S1 means that at any time t, the total commitment of each employee to the current executable task set must not exceed the maximum commitment of the employee, that is, in, Each task T j Occupies each employee E i Maximum contribution.

3. According to the software project scheduling method based on heuristic discrete artificial bee colony algorithm according to claim 2, Features: The method for employees to choose to learn new skills in step S2: Employee E i Each existing skill k∈skill i Have a certain level of initial proficiency Define employee E i The similarity between skill k and new skill z(z∈{1,2,...,S}) Among them, t 0 Indicates the project start time, r kz is the correlation between skill k and new skill z, r kz ∈[0,1], employee E i The suitability of learning new skills z in, Indicates E q learning ability, Indicates employee E i The maximum value of similar proficiency between existing skills and new skill z, Indicates employee E i In t 0 Total proficiency of all tasks in the project at all times, Indicates that all employees at t 0 The maximum value of the total proficiency of all tasks in the project at any time. Indicates that all employees at t 0 The minimum value of the total proficiency of all tasks in the project at any time. Choose the right fit The maximum number of employees q learning new skills z is 4. According to the software project scheduling method based on heuristic discrete artificial bee colony algorithm according to claim 3, Features: The new skill proficiency growth curve function in step S2 is as follows: in, Indicates employee E q is the growth function of the proficiency of the new skill z over time t, C represents the maximum value of skill proficiency, tanh(·) is the hyperbolic tangent function, Indicates employee E q The growth rate of proficiency in new skill z, Indicates E q The learning ability of E q The stronger the learning ability, the higher the SD z Indicates the difficulty of the new skill z. The larger the value, the greater the difficulty of the new skill z. The existing skill proficiency growth curve function is as follows: in, Indicates employee E i The growth function of the proficiency of existing skill k over time t, Indicates employee E i The initial proficiency of skill k is Indicates employee E i The growth rate of proficiency for skill k, 5. According to the software project scheduling method based on heuristic discrete artificial bee colony algorithm according to claim 4, Features: The adaptive change function of employee engagement described in step S2 is as follows: j∈T_active_set(t) Among them, d qj (t) represents E after adaptive adjustment at time t q To T j The degree of involvement, x qj Indicates the employee E specified in the project scheduling plan q For task T j The degree of involvement, T_active_set(t) represents the set of executable tasks at time t.

6. According to the software project scheduling method based on heuristic discrete artificial bee colony algorithm according to claim 5, Features: Initializing the heuristic discrete artificial bee colony algorithm parameters in step S3 includes: setting the heuristic artificial bee colony algorithm nectar source population size to SN, the maximum number of unupdated times limit, the maximum number of iterations G, and the random learning selection probability P r , suppose there are M employees and N tasks in the project, then the mutation probability P m =1 / (M·N), let the iteration counter t=0, the number of unupdated times of each honey source counter p =0, p=1,2,...,SN.

7. According to the software project scheduling method based on heuristic discrete artificial bee colony algorithm according to claim 6, Features: Step S5 uses a multivariate learning method to mine all nectar source individuals: Step S51, according to the input random learning probability P r , calculate the probability P of elite learning e and the probability P of merit learning s ,in, Step S52, each leader bee selects the sequence number of the learning method by a roulette method; Step S53: if learning mode 1 is selected, the leading bee mines the corresponding nectar source individuals through random learning; Step S54: if learning mode 2 is selected, the leading bee exploits the corresponding nectar source individuals through elite learning; Step S55: if learning mode 3 is selected, the leading bee exploits the corresponding nectar source individuals through merit learning; Step S56, outputting the new nectar source individuals after mining.

8. According to the software project scheduling method based on heuristic discrete artificial bee colony algorithm according to claim 7, Features: In step S6, the method in which the follower bee exploits the nectar source using a mutation mechanism based on heuristic information is as follows: Step S61, calculate the fit wf of each employee for each task ij , the calculation formula is as follows: Among them, λ is used to adjust The relative importance of The relative importance of The relative importance of Indicates that at the initial moment, employee E i For task T j proficiency, i=1,2,...,Mj=1,2,...,N, and Indicates E i Normal monthly salary, Indicates E i Monthly overtime pay; Step S62: sort all nectar sources from small to large according to the target value, and record the sort number of each nectar source. p ∈[1,SN], p=1,2,...,SN, SN represents the number of nectar sources; Step S63, the follower bee selects the nectar source that needs to be mutated through a sorting selection method. Assuming that the p-th nectar source is selected, it is recorded as YP=Pop(p), where Pop represents the nectar source population, and YP represents the individual matrix of the p-th nectar source; Step S64: for each task T j , all based on wf ij Play a roulette wheel and select an employee Keep the employee's serial number, i.e. index j =u j , index j Represents task T j The selected employee index, u j Indicates the serial number of the selected employee; Step S65: Generate a random number for each element of the honey source YP ij , if random ij ≤P m , P m represents the probability of mutation, then the element undergoes mutation operation; Step S66: for the element yp that meets the mutation condition ij Perform mutation, if i == index j ,but Represents the searched element yp ij The new value of represents the optimal nectar source individual Y best elements in ; otherwise, if sort p <SN / 2, that is, the target value ranking of nectar source YP is in the top 50% of the nectar source population, then the mutation is performed through the following formula: Condition 4: yp ij +N(0,1)·yp ij ≥0 Otherwise, move closer to the optimal nectar source individual through the following formula: Among them, N(0,1) is the standard Gaussian distribution, rand∈[0,1], and round(.) means rounding to the nearest integer. represents the decision variable y ij The upper limit of the value; min(.) means that the element value in the individual does not exceed Step S67, calculate the objective value of the mutated nectar source individual YP new ; if the objective value of YP new is better than that of YP, that is, f(YP new ) < f(YP), then let Pop(p) = YP new , Counter p = 0, where Counter p represents the number of times the p-th nectar source has not been updated; if the objective value of YP new is not better than that of YP, then Counter p = Counter p + 1; Step S68: The target value of the variant individual is better than the current optimal nectar source individual, that is, f(YP new ) <f(Y best ), then Y best =YP new ; Step S69, repeat steps S63-S68 until all follower bees have completed the nectar collection operation, and finally output the mutated nectar source population and its update times.

9. According to the software project scheduling method based on heuristic discrete artificial bee colony algorithm as claimed in claim 8, Features: In step S7, the steps for the scout bees to abandon useless nectar sources and randomly generate new nectar sources to replace the old nectar sources are as follows: Step S71: according to the current number of times each honey source has not been updated, Counter p , p=1,2,...,SN, determine whether there is a Counter p >limit, limit indicates the maximum number of times the honey source has not been updated; Step S72: If there is no Counter p >limit, then t=t+1, t represents the number of iterations, jump to S8; if Counter exists p >limit, then record the nectar source individual; Step S73: if there are multiple nectar sources whose number of unupdated times exceeds the limit, the nectar source with the largest number of unupdated times is selected; if there are still multiple choices, one of the nectar sources is randomly selected and the leading bee corresponding to the nectar source is converted into a scout bee; Step S74, the transformed scout bee randomly searches for a new nectar source and replaces the old nectar source with the new one, and let t=t+1.

10. According to the software project scheduling method based on heuristic discrete artificial bee colony algorithm according to claim 9, Features: The granularity h of the solution is 10, and the decision variable y ij The upper limit of