Abstract
In this paper, we studied the resource constrained project scheduling problem, and the research object is extended to the multi-project environment. On the basis of multi-project priority evaluation, with the goal of minimizing the weighted duration of multi-project, a multi-project schedule planning model is constructed. Through reasonable scheduling of multiple parallel projects sharing resources under resource constraints, it provides a decision-making basis for project managers to allocate resources reasonably under resource constraints to meet the duration requirements of each project and to shorten the weighted total duration of multiple projects as much as possible. A two-stage hybrid differential evolution particle swarm optimization algorithm is used to solve the model. In the first stage, differential evolution algorithm is used to produce new individuals, and in the second stage, particle swarm optimization algorithm uses a new speed update formula. In the first stage, in order to ensure that the optimal individual will not be destroyed by crossover and mutation, and to maintain the convergence of differential evolution algorithm, we try to introduce Elitist Retention (ER) strategy into differential evolution algorithm. In the second stage, we use a kind of particle swarm optimization algorithm with dynamically changing inertia weight. Through the dynamic changing inertia weight, the global search and local search ability of the algorithm can be adjusted flexibly. The case verification shows that the hybrid differential evolution particle swarm optimization algorithm can be used to solve the RCMPSP model more effectively.
Introduction
The goal of Resource constrained multi-project scheduling problem (RCMPSP) is to achieve the shortest duration, the lowest cost or the maximum profit, aiming at the task set and limited resource set of multi-projects and projects, considering the resource sharing relationship between projects, the timing relationship between tasks and resource capacity constraints, to find an ideal project scheduling and resource optimization problem. As a typical combinatorial optimization problem, RCMPSP belongs to NP-hard problem [1]. From the current project practice, we can see that with the deepening of the enterprise project process and the continuous increase in the number of projects, more and more enterprises are facing the state of multi-project parallelism in management, and multi-project situations are becoming more and more common. However, the study of project scheduling problem under resource constraints in multi-project environment is more complex than that in single-project environment, because it needs to consider not only the resource allocation problem within the project, but also the allocation of resources among projects. The tasks of different projects do not have the same strict pre-and post-constraint relationship as in a single project, and many effective methods in a single project cannot be directly used in a multi-project environment, and compared with the research on single-project scheduling, the relevant research literature on multi-project scheduling is still less, so the research on RCMPSP also has higher practical research significance. In view of the complexity of NP-hard problem solving, it is often faced with many difficulties, and the difficulty degree of the problem increases geometrically with the increase of the number of tasks. At present, the main algorithms for solving RCMPSP model are exact algorithm, heuristic algorithm and intelligent optimization algorithm [2, 3, 4, 5, 6, 7, 8]. Among them, exact algorithms are usually suitable for exactly solving small-scale scheduling problems, but when solving large-scale problems; These algorithms often have some defects such as complex calculation and low efficiency. And the heuristic algorithms usually only aim at specific problems, so their versatility in practical applications is poor. In recent years, more and more researches on RCMPSP turn to intelligent optimization algorithms. Because MATLAB language has powerful functions such as numerical calculation, symbolic calculation, graphics and visualization, and programming, it is widely used in the research field of scientific and engineering methods of calculation, such as large-scale matrix calculation, optimization calculation, image processing, numerical calculation methods and graphical user interface design. Based on the above analysis, this paper tries to use MATLAB language to choose an algorithm suitable for solving this kind of problem model.
In fact, there are many algorithms for solving this kind of problems. Among them, particle swarm optimization (PSO) algorithm, as an evolutionary computing technology among many intelligent optimization algorithms, is more suitable for solving nonlinear, multi-peak, non-differentiable complex optimization problems, and is applicable to the solution of RCMPSP. However, due to the limitations of the algorithm itself, the PSO algorithm is easy to fall into local optimization when solving the optimal solution, which inevitably leads to differences between the optimized results and the expected results. Therefore, this paper attempts to use a two-stage hybrid differential evolution particle swarm optimization algorithm to solve the model. In the first stage, differential evolution algorithm is used to produce new individuals, and in the second stage, particle swarm optimization algorithm uses a new speed update formula. In the first stage, in order to ensure that the optimal individual will not be destroyed by crossover, mutation and other operations, to maintain the convergence of differential evolution algorithm, we try to introduce Elitist reservation (ER) strategy into differential evolution algorithm. In the second stage, we use a class of PSO algorithm with dynamic inertia weight [9]. Through the dynamic change of inertia weight, the global search and local search ability of the algorithm can be adjusted flexibly. Finally, the improved two-stage hybrid differential evolution particle swarm optimization algorithm is used to solve the RCMPSP model, and a relatively better optimization result is expected.
Problem description
RCMPSP is usually described as: there are multiple parallel projects and a shared resource library, there are many kinds of limited updatable resources in the shared resource library, and there are competitions and conflicts for limited resources among projects; projects are independent of each other except shared resources and there is no tight relationship between projects; There is a tight pre-and post-relationship between project tasks, but it does not involve task preemption, circulation and feedback. This paper takes the weighted total duration minimization of multi-projects as the objective function, and the RCMPSP model is as follows:
Equation (1) is the objective function, which is used to express the shortest weighted total duration of
Symbol definition
Differential evolution algorithm
Differential evolution algorithm (DE) is a novel heuristic intelligent search algorithm, which is originally used to solve Chebyshev polynomials problems [10]. Stom and Price [11] found that it has excellent performance in solving complex optimization problems, and through detailed numerical simulation experiments show that DE is an optimization algorithm with simple structure, few adjustable parameters and strong robustness. Similar to GA, DE achieves population evolution through repeated iterations of selection, crossover and mutation, and then tends to global optimization. Different from GA, DE makes individual disturbance with the help of difference vectors among individuals to achieve individual variation, which can effectively make use of the characteristics of population distribution and improve the search ability of the algorithm. In addition, the greedy selection mode of one-to-one elimination mechanism is adopted in the DE selection process, which can avoid the degradation of some individuals.
The basic differential evolution algorithm is mainly composed of four processes: initialization, mutation, crossover and selection. The specific operation process is as follows:
Population initialization process. The initial population
The process of mutation. Different from GA, the basic principle of DE mutation operation is that some Difference Vectors are scaled and added to the Base Vector of another individual to get the mutated individual. According to the different ways of the number of difference vectors, the calculation formula and the selection of base vectors, there are a variety of difference strategies. These strategies are usually recorded as
Crossover process. The mutated individual and the current evolving individual in the population produce the intermediate individual
The selection processes. The selection process determines the evolution direction of the population as a whole. The basic differential evolution algorithm adopts one-to-one greedy selection between the intermediate individual
Elitist reservation strategy (ER), as an improved evolutionary algorithm mechanism strategy, was proposed by Holland in the early stage [15]. It is mainly used to deal with the problem of optimal individual loss caused by the selection error, crossover and mutation operators in the selection operator which destroy the high-order long-distance patterns in the process of evolution. Because Elitist individuals are the best individuals in the process of evolution, which plays an important role in promoting population evolution, whether we can make full use of the characteristic information of Elitist individuals is the key to improve the performance of the algorithm. The use of Elitist reservation strategy in the optimization algorithm can not only ensure that the individuals with better fitness values in the population will not be destroyed, but also ensure the global convergence of the algorithm [16].
During the operation of differential evolution algorithm, although more and more excellent individuals will be produced with the continuous evolution of the population, it is possible to destroy the individuals with the optimal fitness value in the current population because of the randomness of crossover, mutation and other operations. And then affect the overall efficiency and convergence of the algorithm. The basic idea of Elitist reservation strategy is to retain
Particle swarm optimization
Basic particle swarm optimization (PSO) was proposed by Eberhart and Kennedy in 1995 [17]. As a kind of parallel optimization algorithm based on swarm intelligence, PSO has been widely used in many fields. The particle swarm optimization algorithm is associated with a certain number of subpopulations, and its basic algorithm can be described as follows: in a J-dimensional search space, there are several randomly distributed particles with volume and weight, and each particle has two values, namely velocity vector and position. The position value of the particle represents a potential solution of the problem, and the particle moves in the direction of the velocity vector in the solution space, through the completion of each iteration, the particle flies to a new position and judges the individual optimal position and the group optimal position through the fitness function, so as to determine the new velocity vector and then constantly adjust its own position [18].
Let the search space be J-dimensional and the number of particles
In the standard particle swarm optimization algorithm, update the particle speed and position according to Eqs (13) and (14):
PSO algorithm is similar to genetic algorithm (GA), which starts from the random solution and evaluates the solution by fitness function through iterative optimization. Compared with GA and other algorithms, the algorithm rules of PSO are simpler and easier to implement, and the performance of algorithms such as solution accuracy and convergence speed is also better. However, its search ability and local search speed are not good enough. Therefore, in practical application, it is necessary to improve the algorithm according to the different problems and explore the solution of premature convergence to improve the efficiency of the algorithm. Clerc summarizes the law after analyzing the general problems [19], that is, in the process of solving the general problem, the distribution of particles at the beginning of the iterative process is relatively dispersed, and it is necessary to use a strong global search ability to make the particles quickly converge to the optimal solution, while in the later stage of the implementation of the algorithm, after the particles converge to a certain area near the optimal solution, it is necessary to reduce the speed to conduct a detailed local search. Therefore, although the inertia weight coefficient is taken as a constant at the initial stage, but through experiments, scholars find that dynamic
In order to better coordinate the balance between the global search ability and the local search ability of the particle swarm optimization algorithm, so as to control its development and optimization detection ability, the strategy of linearly decreasing weight (LDW) is put forward by Shi and Eberhart [20]. By using the changeable inertia weight, a large
Dai and Yang [21] proposed a logarithmic decreasing weight strategy (LOGW), that is:
And proposing
In order to change the single regulating pattern of LINW strategy, Ren and Wang [22] introduced the concept of Change rate of focusing distance. Defining it as:
Among them, MaxDist is the biggest focusing distance, MeanDist is the average focusing distance:
Where
Among them,
Particle express
Commanding
Particulate fitness function
In the algorithm of particle swarm, the position update and speed update of particle swarm carries on according to the particulate fitness. Therefore, the function of particulate fitness should be set according to the objective function of optimization which is set with the multi-project scheduling problem. Due to the goal of model which the article has built has set as multi-project weighted total time minimization, the advantages and disadvantages of scheduling plan depend on the objective function. Therefore, the article defines the particulate fitness function
Among them,
There are two kinds of Project Schedule Generation Schemes: Serial Schedule Generation Schemes, SSGS and Parallel Schedule Generation Schemes, PSGS [23]. Kolisch [24] testifies that SSGS generates positive schemes and PSGS generates non-delayed schemes. For the majority of routine index of minimization project time, SSGS that are treated as a positive scheme often further suit and using PSGS to solve misses possibly optimal solution. On the project of solving larger scale and appropriate resource-constrained, the solving result of SSGS is better. What kind of Schedule Generation Schemes are choosing concretely according to the character of realistic problem? Therefore, for the character of searching problem, the article uses Serial Schedule Generation Schemes, concrete process as follows:
Initialize relevant parameters, choosing the Referencing The earliest start Updating Checking tasks whether have been scheduled in all, that is if If Conclusion.
The two-stage of DEA-DCWPSO algorithm
In the first stage, a new individual
Setting up the relevant parameters of Initializing population randomly, computing the fitness value, solving the optimal solution The two subpopulations of the differential evolution algorithm mutate according to Eqs (9) and (10) respectively, crossover operation according to Eq. (11), and finally select a new individual Updating speed and position for PSO population according to the Eqs (21) and (14). Computing new fitness value after the operation of PSO evolution, updating Updating iteration times
The Network Figure after combination of three projects.
Building case
For the simulated experiment of RCPSP, it can use national Patterson problem set or the single-project cases of PSPLIB standard databases generally. But for the RCPSP of multi-project, now experiment lacks corresponding Benchmark databases [25, 26]. For the case of RCPSP, current articles almost have built through the ways of Project Practice and a sprinkle of example case and the single-project case of combination. Therefore, being based on the project practice of construction company, the chapter builds resource-constrained multi-project scheduling case that is constituted with three projects. In the case, three small projects construct parallel and share three limited resources in the same resource-pool. The amounts of three resources is
Solving result
Set the parameters of DCWPSO algorithm. Assuming populations of particle swarm popsize
The results of multi-project scheduling
The results of multi-project scheduling
The Gantt Figure of example results of multi-project scheduling.
In order to further test effectiveness that the algorithm of DEA-DCWPSO which article use solves RCMPSP, continuing to use algorithms of GA and PSO and DCWPSO solve same model. And solving result and computational performance is compared to algorithm of DEA-DCWPSO and analyzing. The algorithmic parameters of GA set to algorithmic population popsize
The comparisons of solving result of multiple algorithm
The comparisons of solving result of multiple algorithm
Comparing the value of the objective function of the algorithm of DCWPSO and DEA-DCWPSO with the experimental curve of the number of iterations.
In the four algorithms, the result of solution of the algorithm of DEA-DCWPSO is better than solution of the other three kinds of algorithm. At the iteration of algorithm, the algorithm of DEA-DCWPSO that have character of two stage optimization reduce algorithmic premature convergence and promote conspicuously algorithmic spread of solution. According to computation, the multi-project weighted total period and the longest period of project are respectively 42 days and 66 days and it is both less than the computational result of algorithms of GA, PSO and DCWPSO. Therefore, the algorithm of DEA-DCWPSO can be stable, effective and better solve RCMPSP. Although iterative optimization time that DCWPSO operate 50 times spend 191.57 s averagely and it is more than other three algorithm, the article’s final target which study multi-project scheduling is achieving resource optimized allocation, compressing effectively multi-project overall period, reducing project delay for evading risks and decreasing expense. The spending time that algorithm solve problem is not the key promoting index.
The article extends the RCPSP in multi-project environment, using Multi-project weighted total time as a goal of optimization to build RCMPSP model. Based on the complexity of solving such NP-hard problems, a two-stage hybrid differential evolution particle swarm optimization algorithm is used to solve the constructed model by using MATLAB, which is widely used in the research field of scientific and engineering methods of calculation. The algorithm employs DE to produce new individuals in the first stage. PSO uses new spread to update formula in the second stage. During the first phase, it is assured that the optimal individuals cannot be devastated in the operation of crossover and mutation and makes DE keep convergence and tries to introduce ER into DE. During the second phase, the article uses a kind of PSO that has the feature of dynamic inertia weight and the algorithmic abilities of global searching and local searching can be regulated flexibly through the dynamic changes of inertia weight. In order to test effectiveness that the algorithm of DEA-DCWPSO solves RCMPSP, the article applies the algorithms of GA, PSO and DCWPSO to address model and calculative results are compared with the results of DEA-DCWPSO. Through testing, the case indicates that using the algorithm of DEA-DCWPSO can achieve effectively solution of model which has built, and it has certain advantages on resolving problems and effectively can conduct optimal scheduling of multi-project. It can offer reference of task scheduling and resource allocation in the project implementation process.
Footnotes
Acknowledgments
The authors are grateful for their support. The contribution of this research was based on previous studies, and the authors of this paper express their heartfelt thanks to the authors of all listed previous works.
Funding
This research was funded by the Initial Scientific Research Fund in the Shandong University of Science and Technology, grant number 2019RCJJ026.
