3.1. PSO
PSO is a group-search-optimization algorithm. The motion of each particle is determined by the value of the fitness function, and the “direction” and “target” of its motion are determined by the “velocity” of each particle. Then, the particles iterate in the solution space according to the direction of the best particle.
In PSO,
x represents the position of the particles,
v represents the velocity of the particles, and
Pbest represents the best position of the particles. The PSO initializes a group of random particles and finds the best solution through iteration. In each iteration, the particle updates its position by tracking two best values. One best value is the best solution that the particle can find. This solution is called particle best. The other best value is the best solution found by the whole population at present, which is called the global best. Suppose that a population composed of
K particles is searched in the
D-dimensional solution space, where the position of the
i-th particle is expressed as a
D-dimensional vector:
The motion velocity of the
i-th particle is also a vector of the
D-dimension:
The best position searched by the
i-th particle, namely, the particle best, is expressed as:
The best position searched by the whole population, namely, the global best, is expressed as:
The updated formula of velocity and position is as follows:
where
and
are the acceleration constant,
and
are a uniform random number, and
is the inertia constant.
According to the above description, PSO is applicable to the continuous-function calculation, and the update of velocity and position adopts a continuous-vector calculation. Based on the discrete data characteristics of the DSTT, combined with the previous research, we carry out a targeted operation of the DPSO.
3.2. Algorithm Description
where
represents the population size,
represents the number of tasks, and
represents the equipment code assigned to the
j-th task. In
Figure 2, the particle position is the allocation result of 8 tasks, and each number represents the equipment code assigned to the task. The queue is {1,3,0,2,3,3,1,2}, and each number is the equipment code assigned to each task.
The definitions of particle best and global best are the same as the definition of particle position, which is recorded as:
- 2.
Definition of particle-motion direction: in combination with the characteristics of data discretization in DSTT, there is no direct association management between each task. Binary processing is adopted when defining particle-motion direction, that is, each particle-motion direction is each task that can change the equipment, and is recorded as:
Only one of the ’s sequence values represented by each is 1, and the other is 0. Position 1 represents the task of replacing the node when the particle in Schedule updates the position, that is, the motion direction of the particle in Schedule. For example, indicates that the i-th particle in the population needs to replace the equipment working on Task2.
- 3.
Definition of particle-motion target: the velocity displacement is defined as the serial number of the equipment to be replaced by the node representing the motion direction of particles in Schedule. The particle-motion target suitable for the operation of DSTT is defined as , which is recorded as:
Only one value of each
represented by sequence
is recorded as
, and the others are recorded as −1. The value taken by
indicates that the node is replaced by the representative emission equipment when the particle in the
Schedule updates its position, that is, the replacement target encoded by the particle’s position in the particle’s motion direction is defined as the particle-motion target in the
Schedule. For example,
indicates that the
i-th particle in the population wants to replace the equipment2 working on task3 with equipment3. An example of particle motion is shown in
Figure 3.
Combining the problem characteristics of DSTT, particle motion has only one motion direction and target in order to ensure that the particle update of the DPSO have the characteristics of inertia preservation, particle best, and global best direction vector calculations included in the basic PSO. The DPSO uses a probabilistic-selection model to handle particle updates, and determines the proportion of parameters by which particles choose one of the three directions to perform motion operations. If the result of the probabilistic-selection model is inertia retention or the particle-motion target is consistent with the current position, random-perturbation processing is introduced to increase the population particle’s diversity and avoid entering the local-optimal trap.
- 4.
Definition of particle-position update: according to the characteristics of DSTT, the operation of particle-velocity update is to calculate the motion direction of particles and the motion target of particles. The evaluation value of each particle task is calculated according to the particle position, and is recorded as:
where
is the equipment code currently assigned to the
j-th task represented by the
i-th particle in the particle-position definition,
represents the evaluation value in
ValueMatrix when the
j-th task is executed by the
equipment, and
represents the frequency-band code of the task. Similarly, the evaluation-value sequence of particle best and global best is recorded as
,
:
where
is the equipment code assigned to the
j-th task indicated in the definition of the particle-best position of the
i-th particle. The
indicates the evaluation value in
ValueMatrix when the
j-th task is executed on the
-th equipment, the
indicates the frequency-band code of the task. The definition of global best is consistent with that of particle best.
Calculate the evaluation-value gap between the particle-position and the particle-best values based on the difference between the above two evaluation value data series, and calculate the evaluation-value gap between the current particle and the global-best value based on the difference between the two data series. Select the maximum difference in evaluation values as the motion-direction option of particles.
Whether the particle moves towards the particle best direction or the global best direction depends on the output of the probability-selection model. The equipment code of particle best and global best directions is used as the motion target of particles. For example, the output of the probability-selection model is the global-best direction. Compare and calculate and . When j = L, is at maximum value, then L is the motion direction of particles. The motion direction is where only the L-th value is 1, and the other value is 0. The motion target is where only the L-th value is of , and the other value is −1. Combined with DSTT, is the equipment code assigned to the L-th task with the largest difference between the particle position and the global best.
In DSTT, the goal of fitness function is the maximum evaluation value. The D-value between the evaluation values calculated before and after particle iteration can be understood as the motion distance of the particle.
3.3. Parameter
The DPSO is controlled by three parameters: inertia-retention factor (IRF), particle-best factor (PBF), and global-best factor (GBF). The three parameters correspond to
,
, and
in Formula (13). Set the sum of the three parameters to 1. Each iteration has a proportion of
to perform inertia retention, a proportion of
to perform local-best motion, and a proportion of
to perform global-best motion. In the parameter experiment, we set the change-step size of the parameter to 0.1. The experiment sets the number of equipment and the number of time periods to be equal. The enumeration algorithm is used to verify the interval between the number of time periods and the number of equipment [4, 7]. The enumeration algorithm cannot be tested due to the computing time periods including more than 8 pieces of equipment. Each task number randomly generates 100 task sequences for testing. The experimental data are shown in
Table 2:
According to the number of equipment and time periods in the 4–7 interval, the enumeration algorithm is used to obtain the optimal values for the comparison tests. The iteration number of the parameter test table is obtained as follows. In order to better compare the change in the iteration number of different parameter groups, the iteration number is evaluated and calculated. The number of each equipment is calculated by dividing the iteration number by the average value of the iteration number obtained by all parameter groups. The cumulative-average proportion is shown in
Table 3.
It can be seen from
Table 3 that the number of iterations in the parameter groups’ calculations to obtain all global-best solutions in
Table 2 is also small, indicating that the algorithm’s success rate and efficiency are unified within the same parameter group.
It is impossible to enumerate the parts of the algorithm’s comparison experiments and to compare whether the evaluation values obtained under different parameters obtained the maximum value for all parameters. The number of iterations of the algorithm is the number of iterations of the greedy algorithm. The formula is as follows:
The number of experimental tasks includes the data from the previous 4–7 intervals. According to the computing power of the current experimental environment, the number of equipment and the number of time periods during the experiment is 12. The data can be found in
Table 4.
Analysis of parameters’ test results:
According to
Table 2, when the number of equipment and time periods is [4, 7], the influence of the parameters on the algorithm results is small. When the PBF is small and the GBF is large, the algorithm’s success rate is high. Taking the IRF of 0.1 as an example, as the PBF increases, the GBF decreases, and the success rate of the algorithm decreases gradually.
According to
Table 3, when the number of equipment and time periods is small [4, 7], the algorithm performance is evaluated by the weighted average of the number of iterations of the algorithm required to reach the global-best solution. The algorithm parameters have a great impact on the number of iterations of the algorithm. Among the parameter groups with a success rate of 100%, the parameter groups (0.2,0.2,0.6) have the lowest number of iterations.
According to
Table 4, the interval between the number of equipment and the number of time periods [4, 12] is considered globally. In the test of fixed iterations, the DPSO only achieves the maximum value of multiple parameters when the number of equipment and the number of time periods are 8. In [9, 12], some different parameter groups achieved maximum values, including (0.3,0.1,0.6), (0.5,0.1,0.4), (0.2,0.1,0.7), and (0.4,0.1,0.5).
The groups (0.3,0.1,0.6) are better in the iterative-weighting calculation in the previous two comparison tables, but the success rate is slightly lower. The groups (0.2,0.2,0.6)’ weighted-average number of iterations is minimal. In order to ensure the comprehensiveness of the subsequent multi-algorithm experiments, use 5 groups of parameters to carry out experiments in the subsequent comparison experiments of DPSO. The list is in
Table 5.