Introduction
As intelligent manufacturing is developing[1], the pursuit of high efficiency produces huge economic effects while also bringing many challenges to traditional production. Flow shop, as a class of classical shop scheduling problems, is widely used in real production[2]. However, in many industries, the layout of the flow shop may result in overloading certain stages affecting productivity. Therefore, in reality, in certain industries such as steel, chemical, textile, and electronics, loads are balanced, and efficiency is improved by adding parallel machines at certain stages[3]. The hybrid flow shop problem (HFSP) can be seen as a union of the flow shop and the parallel machine and is a mainstream manufacturing method[4]. It needs to consider not only the ordering of jobs but also the choice of parallel machines, which proved to be an NP-hard problem[4].
As the economy globalizes, traditional centralized manufacturing is hard to satisfy the current demands[5], [6] and distributed manufacturing is getting more and more attention[7]. Single manufacturing capacity is insufficient, distributed manufacturing is more flexible and efficient, and it has been applied to many shop problems, including distributed flow scheduling[8], distributed flexible job scheduling[9], and distributed welding shop scheduling[10]. The distributed hybrid flow scheduling problem (DHFSP) is an extension of HFSP and has received increasing attention. In reality, many large manufacturing industries such as steel, ceramics, electronics, chemicals, and textiles can be abstracted into DHFSP. Compared to HFSP, DHFSP is more complex because it requires additional consideration of factory allocation. Moreover, the processing capacity of each shop in realistic manufacturing is generally different, so the study of heterogeneous factories is more meaningful[11]. On the DHFSP with multiprocessor tasks, Ying and Lin[12] proposed a self-tuning iterative greedy (IG) with an adaptive cocktail decoding mechanism and expanded the field of research on distributed scheduling problems. Existing studies have been effective in solving the DHFSP, but most of them only consider the relatively ideal workshop state. Actual industries are often more complex and need to consider more realistic constraints, such as setup time[13], machine damage, finite buffers, etc. For example, in many practical applications such as chemical, printing, pharmaceutical, and automotive production, setup time between jobs needs to be considered, and the size of the setup time depends on the previous process on the same machine[14]. In practice, sequence-dependent setup time (ST) may typically manifest itself in work-piece transport, lathe/machine cleaning, tool change, etc.[15] However, most articles do not consider the machine setup time or consider the time for sequence-independent setups directly incorporating it into the processing time. In summary, the sequence-dependent setup time is a critical factor affecting productivity and stability, leading to a significant limitation of the practical application of the existing results to production management, and thus deserves a more profound study. Zhao et al.[16] proposed a reinforcement learning-driven artificial bee colony algorithm to solve the distributed heterogeneous no-wait permutation flow shop problem with ST. The paper proposed to utilize Q-learning for operator selection. Some of the existing studies have taken setup time into account in the shop problem, but there is no effective treatment strategy designed for it. Compared to the flow shop, ST in the hybrid flow scheduling cannot be predicted in advance[17]. This unpredictability causes difficulties in characterizing some features of the shop problem such as lower bound and thus restricts the use of such methods. Additionally, ST in the hybrid flow brings more challenges to problem decoding and operator design. Therefore, studying the DHSP with setup time is complex and very meaningful.
With global warming, green manufacturing is receiving more and more attention[11], [18]. Manufacturing is the highest energy-consuming industry, so energy-efficient scheduling has also been a critical component of green shop scheduling[19]. In this context, energy-aware DHFSP (EADHFSP) should be considered[20]. EADHFSP is more complex as it requires additional consideration of energy consumption and is a multi-objective optimization problem. Dealing with the EADHFSP, a cooperative memetic algorithm (MA) with a learning mechanism was designed by J. J. Wang and L. Wang[21]. The algorithm accelerates solution convergence by selecting appropriate operators through a policy agent based on reinforcement learning. Most of the existing studies on energy consumption have achieved good effects in considering only processing energy and standby energy, while setup energy should be taken into account in workshop problems that consider setup time, which is more in accordance with the reality of production[22]. For example, setting energy consumption occurs when performing the removal of previous operations from a container, such as certain types of iron in a torpedo[23]. We have collected a few studies on setup energy consumption[23], [24] and found that it is difficult to design effective energy-saving strategies to reduce multiple energy consumption at the same time due to the complexity of the problem itself and the need to consider various forms of energy consumption. Therefore, combining the above considerations and to be closer to production in reality, we propose an energy-aware distributed hybrid flow shop scheduling problem with sequence-dependent setup times (EADHFSP-ST), where the energy consumption mainly consists of operation energy, setup energy, and waiting energy. EADHFSP-ST is an enhanced NP-hard problem by considering the three constraints of hybrid flow, distributed heterogeneous factory, and ST simultaneously. It also considers various energy consumption in addition to the makespan, which makes it difficult for the algorithmic design. It can be used in a variety of production scenarios including semiconductor processing, steel manufacturing, and textiles. And as we know, the current studies do not consider all cases simultaneously. Therefore, it is of great practical importance to design an effective algorithmic framework to solve the EADHFSP-ST problem.
It has been shown that MA is a more effective method for solving the shop scheduling problem, which mainly consists of global search along with local search using multiple domain structure operators to promote population convergence[25], [26]. It enhances the evolutionary algorithm by allowing the population to explore different directions in the target space through local refinement operators. Moreover, it has been used for a variety of flow shop problems [27]–[29]. According to MA literature, MA can effectively solve complex optimization problems. The location and object of the local search, how to balance the global and local search[30], and how to choose the appropriate operator for each individual become another issue. The existing MA framework is not effective in solving multi-objective problems, and a two-stage framework for the multi-objective problem can be effective in approaching the Pareto front and exploring more non-dominated solutions[31]. The two-stage framework performs well by focusing on various metrics at different stages. In the two-stage framework proposed by Ming et al.[32], a novel subregion dominance and an improved mating selection based on subregion density mainly aim at convergence in the first stage, and a new level-based Pareto dominance cooperates with the traditional Pareto dominance that mainly promotes diversity in the second stage. The two-stage framework is also widely used in shop scheduling problems[30], [33], [34]. Although it is very effective, no studies have applied it to the EADHFSP-ST. Combining the strengths of the MA framework and the two-stage framework, we propose a two-stage MA. However, operator selection is critical to MA performance. Existing MA frameworks always cycle through global search followed by local search, and random selection[33], polling selection[35], and confidence-based selection[36], [37] are used for operator selection. All of these studies inherently rely on confidence levels. Confidence-based operator selection mainly determines the selection probability based on the historical experience of all the strategies, which relies too much on historical experience and ignores some efficient operators with lower selection weights, which can be well solved by the surprisingly popular algorithm (SPA)[38]. SPA is a group intelligent decision-making model. We can abstract the EADHFSP-ST population into a crowd, and the effectiveness of an operator is regarded as its popularity in the crowd. Truly effective operators may have low selection probabilities, so we accelerate the convergence of local search by selecting efficient operators through the SPA. Unlike Li et al.[38] proposed algorithm, which focused more on updating the latest knowledge, we focus more on the accumulation of historical experience. Summarizing the above considerations, we designed a two-stage adaptive memetic algorithm (TAMA) with a surprisingly popular mechanism, and it is research-worthy.
To better tackle EADHFSP-ST, this paper proposes TAMA to solve the complex shop problem. The goal of EADHFSP-ST is mainly to minimize the makespan and the total energy consumption (TEC). Our contribution is as follows. (1) A TAMA with a surprisingly popular mechanism is designed to solve EADHFSP-ST. The first stage accumulates experience while converging quickly to obtain a better solution, and the second stage gets rid of the local optimum and efficiently selects operators from the elite file to achieve the optimal solution and promote diversity of solutions; (2) A hybrid initialization method is developed with different angles of optimization to ensure the convergence and diversity of the initial solutions; (3) Multiple population co-evolution approaches are proposed for global search, and different evolutionary means are used to balance the exploration and development according to the characteristics of different solutions; (4) Designing problem-specific operators, and non-critical path deceleration and right-shift strategies are designed for energy saving to further reduce energy.
The other sections of this paper are organized as follows. Section 2 lists the related work. Section 3 presents the special related knowledge. The problem description and model construction are presented in Section 4. Moreover, our approach to TAMA is described in detail in Section 5. The numerical test experiments and discussion of TAMA are shown in Section 6 and finally, we summarize our conclusions in Section 7.
Related Work
Since the 1960s, many scholars have conducted extensive research on scheduling problems[3]. However, with the rapid development of industrial manufacturing, traditional scheduling can no longer meet the demand, so we can see that the current research focuses on four types of scheduling problems.
The first type is HFSP. Wang[39] proposed an improved simulated annealing approach to solving HFSP with the goal of lowering overall flow time. In the paper, Nawaz-Enscore-Ham (NEH) heuristics were proposed to develop new solutions, and a tempering function was proposed to improve the global search capability of the solutions. Another related study was presented by Chen et al.[40], who proposed an algorithm for minimizing makespan. The paper proposed a heuristic-based decoding rule and devised an adaptive crossover and mutation strategy based on sigmoid functions to improve the convergence of the solution.
The second type is the distributed scheduling problem, which aims to improve productivity. On the DHFSP, Shao et al.[41] designed a multi-domain IG algorithm with multi-search construction to enhance search capabilities. J. J. Wang and L. Wang[28] proposed a bi-population cooperative MA to solve DHFSP. The proposed optimization framework includes collaborative initialization, bi-directional collaboration, and local reinforcement.
The third type is the green scheduling problem to achieve energy saving and emission reduction. In dealing with realistic and green DHFSP such as prefabricated systems, Li et al.[42] designed a knowledge-based multi-objective algorithm. This algorithm integrates a new multi-objective optimization algorithm model for environment selection. Li et al.[35] proposed a fully active scheduling decoding to reduce energy consumption in the flexible job scheduling problem.
The last type is the consideration of setup time, which should be considered in the actual production of steel, semiconductors, and so on. Regarding the consideration of setup time in the shop problem, Shen et al.[14] developed a tabu search algorithm with diverse structures and specific neighborhood functions for solving flexible job shop problems with ST and proposed a variety of domain structures based on disjunctive graphs. In dealing with fuzzy two-stage hybrid flow shop problems with ST, Cai et al.[43] proposed a collaborative variable search and for the first time considered both fuzzy number and ST in a multi-factory problem.
Special Related Knowledge
3.1 Surprisingly Popular Algorithm
SPA is an approach to sociological decision-making proposed by Prelec et al.[44] Unlike in the past, when the wisdom of the group was utilized directly through the use of democratic decision-making, the SPA does not directly adopt the most popular opinions but rather focuses on protecting the expertise known to the few. For an illustration of the SPA idea, here is a classic example: is Philadelphia the capital of Pennsylvania?[44] The decision process for this question was as follows: 65% chose “yes”, while 75% were predicted to choose “yes”; 35% chose “no”, while 25% actually knew the answer. It can be obtained that the surprisingly popular degree (SPD) of “yes” is 65%/75% = 0.867, while the SPD value of “no” is 35%/25% = 1.4. We can see that “yes” is more popular, but “no” is more surprising and is the correct answer.
As can be seen, SPA tends to exploit the unpopular but correct minority of expert knowledge that is often used in selection decisions. Cui et al.[45] used SPA in combination with the particle swarm optimization (PSO) algorithm for improving the traditional PSO and selecting a better solution. SPA has also been used to solve the distributed flexible job scheduling problem in combination with MA[38]. SPA is a powerful decision model, and it is worth trying to incorporate it into a two-stage framework to guide the solution of the problem of choosing a normal strategy and thus solving the EADHFSP-ST problem.
3.2 Lower Bound With Setup Time
In the EADHFSP-ST problem, three coupled subproblems are included: factory assignment, job sequencing, and speed assignment. Rational optimization of individual subproblems helps in problem decomposition and overall optimization. A typical lower bound of makespan for HFSPs was proposed by Santos et al.[46] and further studied by Hidri and Haouari[47]. Considering the objective that assigning jobs to factories with smaller makespan is more conducive to optimizing the makespan, this paper uses the minimum lower bound of the HFSP makespan instead of the optimal value of the factory's makespan to guide the assignment of factories.
For EADHFSP-ST, each factory can be simplified to an HFSP, so the analysis of the lower bound for EADHFSP-ST can be viewed as an analysis of the lower bound for each factory, i.e., an HFSP lower bound analysis. Different from the classical HFSP lower bound calculation method proposed by Santos et al.[46], we need to additionally consider the setup time as a factor, so the calculation method needs to be certainly improved. We define a head \begin{align*}
& L_{m}^{j}= \begin{cases} \sum\limits_{s=1}^{m}(P_{s}^{j} / V_{s}^{j}+\text{ST}_{s, j}^{f}), & m > 1; \\
0, & m=1\end{cases}\tag{1}\\
& R_{m}^{j}= \begin{cases} \sum\limits_{s=m+1}^{N}(P_{s}^{j} / V_{s}^{j}+\text{ST}_{s, j}^{f}), & m < N,\\
(N\ \text{is total stages}); &\\
0, & m=N\end{cases}\tag{2}\\
& \text{LB}_{0}=\max_{1 \leqslant m \leqslant N}\begin{cases}\frac{1}{M_{m}}\left(\sum\limits_{i=1}^{M_{m}} L_{m}^{i}+ \sum\limits_{j \in J_{N}}(P_{m}^{j} / V_{m}^{j}+\right.\\ \left.\text{ST}_{m, j}^{f})+ \sum\limits_{i=1}^{M_{m}} R_{m}^{i}\right), M_{m} \leqslant\left\vert J_{N}\right\vert; \\ \frac{1}{\left\vert J_{N}\right\vert }\left(\sum\limits_{i=1}^{\left\vert J_{N}\right\vert } L_{m}^{i}+ \sum\limits_{j \in J_{N}}(P_{m}^{j} / V_{m}^{j}+\right.\\ \left.\text{ST}_{s, j}^{f})+ \sum\limits_{i=1}^{\left\vert J_{N}\right\vert} R_{m}^{i}\right), M_{m}>\left\vert J_{N}\right\vert\end{cases}\tag{3}\end{align*}
The above lower bound calculation can be regarded as the lower bound of each factory in EADHFSP-ST, which can be used to guide the job to select the minimum lower bound factory, and the heuristic algorithm for initialization in this paper is also designed according to this idea. As far as we know, the makespan of each plant must be greater than the maximum total processing time (including setup time) of all jobs because of limited machine resources. For the lower bound of each factory of EADHFSP-ST, we have another way of defining it as in Eq. (4).
\begin{equation*}\text{LB}_{1}=\max\limits_{j \in J_{N}}(\sum\limits_{s=1}^{N}(P_{s}^{j} / V_{s}^{j}+\text{ST}_{s, j}^{f})) \tag{4}\end{equation*}
Therefore, we can define the lower bound for each factory of EADHFSP-ST more precisely as
Problem Description and Modeling
4.1 Problem Description
The EADHFSP-ST problem is stated as follows. It is composed of
The assumptions of EADHFSP-ST are given as follows:
All jobs and machines are available at time zero, and the machines are available during processing.
All machines have the same unit processing power consumption, setting energy consumption, and standby energy consumption.
The processing capacity of each factory differs mainly in the number of machines at each stage of each factory.
The number of machines at each stage in the factory is predetermined and can not be changed.
Each job passes through all the same processing stages, and at each stage any suitable machine is selected.
Each job has a standard processing time, but the actual processing time is based on its set speed level.
A higher speed setting usually results in faster processing, proposed by J. J. Wang and L. Wang[48].
There is enough buffer in two consecutive stages that it will not be blocked.
The setup time and setup energy consumption between two jobs are considered, the setup time is related to the sequence of jobs, the energy consumption per unit in the setup is determined.
No consideration is given to any other break incidents.
4.2 Mixed-Integer Linear Programming (MILP) Model for EADHFSP-ST
We define some signatures of the EADHFSP-ST modeling in Appendix B.
Our Approach: Two-Stage Adaptive Memetic Algorithm
5.1 Framework of the Algorithm
The proposed TAMA is a Pareto dominance based algorithm with an SPA feedback mechanism, and its framework is shown in Algorithm 1. The description of TAMA is as follows. Firstly, a hybrid initialization strategy is used to generate the initial solution, which enhances the diversity of the initial population while ensuring convergence. It is then divided into two stages, each consuming half the number of evaluations. In the first stage, firstly, the SPA feedback mechanism is used to select the operator for a local search of the whole population. Considering that it is a two-objective problem, environmental selection in the classical non-dominated sorting genetic algorithm-II (NSGA-II)[49] is used to select better individuals for the next generation and to select the elite archive. Finally, individuals in the archive are decelerated for energy conservation to reduce processing energy consumption. This stage mainly accelerates the convergence of populations and accumulates more experience for the SPA model to be used to guide the second stage. In the second stage, firstly, multiple population co-evolution is used to search the population globally to prevent the population from converging to local optimums[50]. The environment selection is then performed and the archive is obtained, and the archive uses the SPA probabilistic model selection operator obtained in the first stage to do local search. Finally, the environmental selection is performed again and the archive is obtained, and the archive is decelerated for energy conservation. This stage mainly promotes diversity, so that it can efficiently approach the Pareto and find more non-dominated solutions. Finally, the final population is right-shifted to save energy to reduce standby energy consumption. The first stage in TAMA accelerates population convergence and produces better individual genes, and the second stage promotes diversity, perpetuates and develops good individual genes, and finds more Pareto solutions. Among them, the SPA feedback mechanism makes the operator selection more efficient. Therefore, considering these advantages, we propose TAMA for solving EADHFSP-ST. There are the following innovations in TAMA: (1) A strategy for hybrid heuristic initialization for specific problems is proposed; (2) A crossover strategy for co-evolution is proposed; (3) Problem-specific operators and effective energy-saving strategies are proposed; (4) The SPA-driven two-stage MA framework is applied to the EADHFSP-ST for the first time.
5.2 Encoding and Decoding
Efficient encoding and decoding approaches can increase the solution space to a certain extent to find hidden efficient solutions while reducing the search space to exclude invalid solutions, and this section focuses on the encoding and decoding methods of EADHFSP-ST. In this paper, we use a representation proposed by Naderi and Ruiz[51], where \begin{equation*}
V=\begin{bmatrix}
1 & 1.5 & 1.5 & 1\\
1.5 & 1 & 1 & 1.5\end{bmatrix}\tag{5}\end{equation*}
The decoding scheme uses the commonly utilized First In First Out (FIFO) rule for job scheduling and the extended first available machine (FAM) rule for machine allocation[52]. The FIFO rule refers to the first stage of the job being scheduled by the order of coding, the job is first assigned to the specified factory
5.3 Hybrid Initialization Strategy
Heuristic initialization strategies can greatly facilitate the convergence of evolutionary algorithms, so it is very meaningful to design effective initialization strategies for TAMA. To obtain diversity and high-quality initial solutions, a hybrid algorithm of a two-stage heuristic (TSH) and setup time based heuristic (SBH) is designed for different objectives. Based on the high-speed bias for the minimum makespan and low-speed bias for the minimum energy consumption rule, two out of all the solutions generated at the end of the process are selected, and the speeds are set to both high and low speeds to generate more Pareto solutions.
TSH mainly considers the optimization of the makespan and consists of two phases that solve the two subproblems EADHFSP-ST, i.e., factory assignment and job sequencing within every factory. The TSH Phase 1 major factory allocations are designed through the lower bound of the EADHFSP-ST. It mainly consists of two processes, insertion and destructive reconstruction, and the process is as follows:
Insert: A sequence of jobs is randomly generated and sequentially inserted into the factory of the calculated minimum lower bound. To avoid the job always being inserted into a factory and falling into the local optimum, set the tag to record the number of times that the job is inserted into the factory, and when the tag value reaches the number of factories, then consider inserting the job into other factories that can reduce the lower bound of the factory.
Destruction and reconstruction: To avoid convergence of the solution to a local optimum, a destruction and reconstruction process is set up. The destruction process consists of randomly removing
The second stage of TSH mainly solves the problem of inner factory job allocation, where the NEH extended NN+MNEH is utilized[53]. Firstly, consider the scheduling and combination of the first and second jobs in each factory, enumerate all the cases where all the jobs in the current factory are combined two by two, and find the block JF with the minimum makespan under considering only two jobs. The remaining jobs are then sorted in descending order of total actual processing time, and finally, job
Unlike the complexity of TSH, SBH is a relatively simple heuristic. SBH mainly considers the optimization of energy consumption yet also considers the maximum completion time. SBH is also divided into two processes: factory selection and intra-factory job sequencing. First, the sequence of jobs is generated randomly, and the jobs are sequentially inserted into the factory with the minimum load. We define TF as the total factory load. TF is calculated according to Eq. (6):
\begin{equation*}\text{TF}=\sum\limits_{i, s=1}^{i=n, s=m}((P_{i, s} / V_{i, s}+\text{ST}_{i, s}) / l_{s, f})\tag{6}\end{equation*}
In TAMA, half of the solution sequence coding is generated by TSH, and the other half is generated by SBH, where the speeds are randomly coded, and finally, two solutions are randomly selected from the generated solutions to set the speeds of each stage of the operation to high and low speeds, respectively, to generate the initial population. The procedure of hybrid initialization is shown in Algorithm 2.
5.4 Co-Evolution of Multiple Populations
To avoid the randomness of traditional crossover, enrich the search behavior, and prevent falling into local optimums, a global search with different evolutionary approaches for multiple populations is designed, as seen in Algorithm 3. Three populations
For
Greedy insertion: Remove job
For
The
For
For individual
5.5 Local Search Operator
Local search is one of the most critical steps in solving the scheduling problem, which facilitates the optimization ability of evolutionary algorithms[55], and the domain structure based on critical factory usually has stronger optimization ability. For the EADHFSP-ST problem, this paper designs three common critical factory-based domain structures and two problem-specific block-based search operators[16]. The population undergoes a localized search to produce individuals that can calculate only the makespan and TEC of the altered factory to improve decoding efficiency. The five operation operators are shown in Fig. 3 and described as follows:
Swap within factory: Randomly select two jobs
Insertion between factory: Randomly remove job
Swap between factory: Randomly select job
Blocks insertion within factory (BI): Randomly remove the job block with block size
Blocks insertion between factory (BO): Randomly remove the job block with block size
5.6 Two-Stage Design with SPA Feedback
Operator selection is a crucial step in the MA framework, and this paper combines the advantages of SPA and two-stage to design a two-stage adaptive operator selection modeling framework with SPD feedback. Prelec et al.[44] proposed SPA to solve group determination problems. SPA was able to find operators with low selection probability but really effective by correcting the Bayesian probability formula. Therefore, rational allocation of computational resources using the SPA adaptive operator selection mechanism can effectively improve the algorithmic performance.
In the SPA operator selection model, we set two ratios to represent the cognitive gap between the general population and experts. The popularity
Calculation of
: We define the number of successful executions of all executions of the operator\mathbf{SR}_{\boldsymbol{i}} asi and the number of failed executions as\text{SN}_{i} . Based on all experiences, we can define\text{FN}_{i} as Eq. (7), iter is the number of iterations.\text{SR}_{i} \begin{equation*}\text{SR}_{i}=\frac{\sum\nolimits_{1}^{\text{iter}} \text{SN}_{i}}{\sum\nolimits_{1}^{\text{iter}} \text{SN}_{i}+\sum\nolimits_{1}^{\text{iter}} \text{FN}_{i}}\tag{7}\end{equation*} View Source\begin{equation*}\text{SR}_{i}=\frac{\sum\nolimits_{1}^{\text{iter}} \text{SN}_{i}}{\sum\nolimits_{1}^{\text{iter}} \text{SN}_{i}+\sum\nolimits_{1}^{\text{iter}} \text{FN}_{i}}\tag{7}\end{equation*}
Calculation of
value: We can define the\mathbf{SPD}_{\boldsymbol{i}} of operator\text{SPD}_{i} as Eq. (8).i \begin{equation*}\text{SPD}_{i}= \frac{\text{SR}_{i}}{\text{PD}_{i}} \tag{8}\end{equation*} View Source\begin{equation*}\text{SPD}_{i}= \frac{\text{SR}_{i}}{\text{PD}_{i}} \tag{8}\end{equation*}
Selection probability update: Similar to the reinforcement learning approach, we update the operator selection probability by defining the reward for feedback. Firstly, the
value of operator\text{SPD}_{i} is calculated. If thei value is greater than 1, then the reward is given and the operator\text{SPD}_{i} selection probabilityi is updated to:(P_{i} + reward), otherwise no change is made. The newly obtained probability valueP_{i} of the operator is then normalized to obtain the actual selection probability, whereP_{i} values less than 0.1 are set to 0.1 to ensure the diversity of the population so that all operators are selected. Finally, the population is randomly divided into five small populations (population size:P_{i} ) according to the operator selection probability to execute the operator separately.\text{ps}\times P_{i}
The two-stage design takes into account, on one hand, that the SPA model we designed is more dependent on previous experience, and the model selection that has been accumulated through experience will be more accurate. On the other hand, the domain operator can effectively accelerate population convergence, but at the same time, it is easier to fall into a local optimum. This resulted in the design of a two-stage hierarchical framework with an SPA feedback mechanism. The first stage of the population is mainly in the SPA model under the local operator use and stratification under the elite individual deceleration of energy-saving strategy call. The model to accumulate experience while mainly accelerating the convergence, and the local search in the global scope somewhat also ensures the diversity of population evolution. The second stage is somewhat similar to the classic MA framework with elite strategies and with the SPA model adaptive selection operator. In the global search to escape from the local optimum at the same time, the next selected elite individuals local range using the SPA model adaptive selection operator has accumulated experience in the local search mainly to further promote diversity and somewhat accelerate population convergence, and finally, the elite individuals are selected to invoke the decelerated energy saving strategy. The specific process is shown in Fig. 4.
5.7 Energy Saving Strategy
Regarding energy consumption considerations, energy-saving strategies are designed based on two different perspectives, taking into account the impact of the critical path on scheduling. For one thing, speed adjustment, with appropriate deceleration for certain operations that are in the non-critical path, can reduce the energy consumption of the machine in the working state without affecting the makespan. The right-shift operation[56], and for another, can reduce the energy consumption of a machine in standby mode by right-shifting certain non-critical path jobs on the machine to curtail the waiting time of each machine. The right-shift operation uses the difference between the last job completion time and the first job start time on the main calculator to determine whether energy is saved. So, considering whether the last non-critical path job on the machine moves or not can be judged simply by the presence or absence of a critical path on the machine or by the time difference between the first job move and the last job move on the machine. Figure 5 depicts the operation process of the two methods, and it can be seen that both methods achieve energy savings to some extent.
5.8 Time Complexity of TAMA
The proposed TAMA consists of four parts, namely, TSH, co-evolution, local search operator, and energy-saving strategy, and the analysis of its time complexity is as follows:
For TSH, the time complexity is
, whereO(1/2\times P\times N^{2}\times M) refers to the population size,P refers to the number of jobs, andN is the number of machines;M For the local search operator, the time complexity is
, and MaxNEFs denotes the number of evaluations;O(\text{MaxNFEs}\times N\times M) For co-evolution of multiple populations, the time complexity is
;O(\text{MaxNFEs}\times N\times M) For energy efficient strategy, the time complexity is
.O(P\times M\times N)
In summary, the complexity of the TAMA algorithm is
Experimental Result
To validate the efficiency of the proposed TAMA in resolving the EADHFSP-ST, all experimental designs are coded in MATLAB and performed in the same computer environment using Intel Core i7-11700 CPU @ 2.50 GHz 2.50GHz, 16GB RAM under Windows 10 operating system.
6.1 Experimental Metrics
EADHFSP-ST is a multi-objective optimization problem (MOP). So we choose three MOP metrics, hyper volume (HV)[57], generation distance (GD), and Spread[49], to evaluate the algorithm's performance.
HV metric denotes the volume of the area in the target space surrounded by the set of non-dominated solutions obtained by the algorithm and the reference point. The higher the value of HV, the better the overall performance of the algorithm. It is calculated as Eq. (9).
\begin{equation*}
HV(G, R)=\bigcup\limits_{a \in G}^{G} v(a, R)\tag{9}\end{equation*}
Both GD and Spread metric consider the Euclidean distance between points. The GD metric stands for the average minimum distance representation from each point in the solution set \begin{gather*}\text{GD}(P^{\prime}, P^{\ast})=\frac{\sqrt{\sum\limits_{y \in P^{\prime}} \min\limits_{x \in P^{\ast}} d(x, y)^{2}}}{\vert P^{\prime}\vert }\tag{10}\\ \text{Spread}=\frac{d_{f}+ d_{l}+ \sum\limits_{i=1}^{N-1}\vert d_{i}-\bar{d}\vert }{d_{f}+ d_{l}+(N-1) \bar{d}}\tag{11}\end{gather*}
6.2 Experimental Instance
The experimental examples are mainly used to evaluate the performance of TAMA. Since there is no benchmark directly applicable to EADHFSP-ST, with some modifications based on the benchmark proposed by J. J. Wang and L. Wang[21], a suitable benchmark is designed in this paper. The number of factories
6.3 Parameter Calibration
The efficiency of the algorithm is somewhat affected by the configuration of the parameters, and this section focuses on finding suitable parameter settings for TAMA. To find the optimal parameters, this paper adopts Taguchi's design of experiments (DOE) methodology[60]. TAMA has three main parameters, including the size of the population ps, the proportion of blocks in co-evolution to the length of critical plant operations BL, and the size of the reward setup of the SPA model
6.4 Effectiveness of Each Improvement Part of TAMA
This section is mainly used to validate the effectiveness of each improved part of the algorithm, and nine variants of the TAMA are designed. The five algorithms to verify the effectiveness of each strategy are designed as follows. The TAMA1 represents the TAMA without an initialization strategy. TAMA2 represents the population in the co-evolution of multiple population in TAMA divided into three sub-populations in a randomized way. The TAMA3 represents the TAMA without multiple population evolutionary mechanisms, but no population delimitation and using the TAMA that designs an evolutionary approach with the classical single-point crossover and polynomial variation ideas based on the coding approach. The TAMA4 represents the TAMA with no energy-saving strategy. And TAMA5 represents TAMA without block localized search strategy. The four algorithms to verify the effectiveness of the two-stage framework with SPA feedback mechanism are designed as follows. The MA represents the traditional MA framework, the TMA represents the two-stage framework without the SPA model, the SPAMA1 represents the framework with the SPA model but only the first stage, and the SPAMA2 represents the framework with the SPA model but only the second stage. For fairness of comparison, all variants were run 20 times with the same stopping criterion
6.5 Comparison and Discussion Among Algorithms
To further validate the effectiveness of TAMA, it is compared with some existing algorithms. Considering that there is no direct algorithm applied to the EADHFSP-ST problem, this paper compares TAMA with some mainstream multi-objective algorithms (MOEA), including NSGA-II[49], SPEA-II[61], MOEA/D[62], and ARMOEA[63]. There is also a decoding modification of the recently proposed KMOEA[42] for solving multi-objective distributed homogeneous hybrid flow shop added to the comparison experiments. These algorithms were chosen considering that they are either classical algorithms for solving hybrid flow scheduling problems or newer and efficient methods for solving bi-objective problems, as well as the latest algorithms for multi-objective distributed hybrid flow shops. The parameters of NSGA-II, SPEA-II, MOEA/D, ARMOEA, and KMOEA are set according to the settings in the corresponding papers. To ensure the fairness of the experiments, all comparison algorithms were run 20 times with the same stopping criterion
Comparison of convergence plots of HV metrics of the algorithm with other variants. NFEs is the number of function evaluations.
Table 2 shows the results of the Friedman ranking test for all comparative algorithms in all instances, where the confidence level
TAMA's success is in design. First, the two-stage MA framework with the SPA feedback mechanism balances both convergence and diversity. Second, the heuristic hybrid initialization method produces more high-quality initial solutions. Third, multiple swarm co-evolutionary global search approaches are simultaneously considered for development and exploration. Fourth, the critical path-based energy-saving strategy can effectively reduce TEC. Finally, the design of five problem-specific-based operators and elite archives greatly improves diversity while somewhat enhancing convergence.
In addition, Fig. 8 illustrates the Pareto fronts obtained by all the compared algorithms in randomized instances. From the figure, we can see that the two objectives have a clear conflict, and from the PF we can see that TAMA is significantly better than the other algorithms in the aspect of convergence.
Conclusion
In this paper, we propose a two-stage adaptive MA with the surprisingly popular mechanism for the multi-objective distributed green heterogeneous hybrid flow shop scheduling problem considering setup time and energy consumption. Firstly, a hybrid initialization approach is designed to generate quality initial populations. Second, a global search balanced development and exploration of multiple population co-evolutionary approaches is proposed. Thirdly, the design of a two-stage selection of more efficient operators with SPA feedback simultaneously balances convergence and diversity. Next, a critical path based energy saving strategy is proposed to reduce the TEC. Finally, from the experimental results, it is clear that TAMA shows a good performance in solving the problem.
PF comparison results on
In future work, we can consider the following tasks. (1) Carry Out more research on distributed heterogeneous hybrid flow shop in the context of real production, and consider more constraints including no-waiting, blocking, no-idle, and some dynamic events (machine damage, order insertion, etc.). More objectives can also be considered. (2) Extend the use of the two-stage MA framework with SPA feedback mechanism by applying it to other shop problems. (3) Consider the integration of other learning mechanisms with the evolutionary algorithms, e.g., deep reinforcement learning. (4) Design a more excellent framework to balance the global and local search.
ACKNOWLEDGMENT
This work was partly supported by the National Natural Science Foundation of China (No. 62076225).
Appendix
Appendix
Statistical Result
Statistical results for all algorithm variants and for all comparison algorithms for the means of the GD, HV, and Spread metrics in all instances are shown in Tables A1–A6.
MILP Model for EADHFSP-ST
Here we define some signatures for modeling EADHFSP-ST.
Index:
Number of jobs. | |
Number of factories. | |
Number of stages. | |
Number of machines. | |
Index of jobs, | |
Index of stage, | |
Index of factories, | |
Index of machine, | |
Index of speed. | |
Index of processing locations on the machine. |
Parameter:
Virtual job for counting the first job setup time on the machine. | |
Number of machines in stage | |
Standard processing time for job | |
Speed level setting. | |
Total number of speeds on machine | |
Total number of positions on machine | |
The set of machines at stage | |
Energy consumption rate for unit processing of machine | |
Standby unit energy consumption rate for machine | |
Setup energy consumption of units between job | |
Setup time between jobs |
Decision variable:
Start time of job | |
Completion time of job | |
Start time of the | |
Completion time of the | |
Total processing energy consumption of machine | |
Total standby energy consumption of machine | |
Total setup energy consumption of machine | |
TEC: | Total energy consumption. |
A 0/1 variable. The variable is 1 if | |
A 0/1 variable. Set to 1 if | |
A 0/1 variable. Set to 1 if | |
The MILP model of EADHFSP-ST that minimizes the makespan and TEC is expressed as follows:
\begin{gather*}\text{minimize}(C_{\max}, \text{TEC})\tag{A1}\\
C_{\max}\geqslant C_{j,s,f},\forall j,f, s\tag{A2}\\ \text{SM}_{i,r,f}\geqslant 0,\forall i\in M_{s}, r,f\tag{A3}\\ \text{CM}_{i,r,f}\geqslant \text{SM}_{i,r,f},\forall i\in M_{s}, r,f\tag{A4}\\
s_{j,s,f}\geqslant 0,\forall j,s,f\tag{A5}\\
C_{j, s, f} \geqslant S_{j, s, f}, \forall j, s, f \tag{A6}\\ \text{CM}_{i, r, f} \leqslant \text{SM}_{i, r+1, f}, \forall i, 1 \leqslant r< n_{r, i}, f \tag{A7}\\ \text{SM}_{i, r+1, f}-\text{CM}_{i, r, f}+H \times(1- Y_{i, j, s, r+1, f, V_{d}}) \geqslant 0 \\ \forall i \in M_{s}, r, j, s, f, d\qquad\qquad\qquad\qquad\qquad\qquad \tag{A8}\\ \text{SM}_{i, r, f}+ \sum\limits_{j=1}^{n} \sum\limits_{d=1}^{n_{d, i}} p_{j, i} / v_{d} \times Y_{i, j, s, r, f, v_{d}}=\text{CM}_{i, r, f}, \\ \forall i \in M_{s}, r, s, f\qquad\qquad\qquad\qquad\qquad\qquad\qquad \tag{A9}\\
C_{j, s, f} \leqslant S_{j, s+1, f}+H \times\left(1- \sum\limits_{r=1}^{n_{r, i}} Y_{i, j, s+1, r, f, v_{d}}\right),\qquad \\ \quad\forall j, 1 \leqslant s, i \in M_{s+1}, f, d\qquad\qquad\qquad\qquad\qquad\qquad\ \tag{A10}\\ \sum\limits_{f=1}^{F} \sum\limits_{i \in M_{s}} \sum\limits_{r=1}^{n_{r, i}} \sum\limits_{d=1}^{n_{d, i}} Y_{i, j, s, r, f, v_{d}}=1, \forall j, s\tag{A11}\\ \sum\limits_{f=1}^{F} Z_{j, s, f}=1, \forall j, s \tag{A12}\\
Z_{j, s, f}= Z_{j, s-1, f}, \forall j, 1< s \leqslant m, f \tag{A13}\\ \sum\limits_{j=1}^{n} \sum\limits_{s=1}^{m} \sum\limits_{d=1}^{n_{d, i}} Y_{i, j, s, r, f, v_{d}} \leqslant 1, \forall i \in M_{s}, r, f \tag{A14}\\ \sum\limits_{j=1}^{n} Y_{i, j, s, r, f, v_{d}} \geqslant \sum\limits_{q=1}^{n} Y_{i, q, s, r+1, f, v_{d}}, \\ \forall i \in M_{s}, 1 \leqslant r< n_{r, i}, s, d\qquad\ \ \tag{A15}\\ \text{SM}_{i, r, f} \leqslant S_{j, s, f}+H \times(1- Y_{i, j, s, r, f, v_{d}}), \\ \forall i \in M_{s}, r, j, s, f, d\qquad\qquad\qquad\qquad\tag{A16}\\ \text{SM}_{i, r, f}+H \times(1- Y_{i, j, s, r, f, v_{d}}) \geqslant S_{j, s, f}, \\ \forall i \in M_{s}, r, j, s, f, d\qquad\qquad\qquad\qquad\tag{A17}\\ \text{CM}_{i, r, f} \leqslant C_{j, s, f}+H \times(1- Y_{i, j, s, r, f, v_{d}}), \\ \forall i \in M_{s}, r, j, s, f, d\qquad\qquad\qquad\qquad \tag{A18}\\ \text{CM}_{i, r, f}+H \times(1- Y_{i, j, s, r, f, v_{d}}) \geqslant C_{j, s, f}, \\ \forall i \in M_{s}, r, j, s, f, d\qquad\qquad\qquad\qquad \tag{A19}\\ \sum\limits_{i \in M_{s}} \sum\limits_{r=1}^{n_{r, i}} \sum\limits_{d=1}^{n_{d i}} Y_{i, j, s, r, f, v_{d}}= Z_{j, s, f} \leqslant 1, \forall j, s, f \tag{A20}\\ \quad\text{EP}_{i, f}= \sum\limits_{j=1}^{n} \sum\limits_{s=1}^{m} \sum\limits_{r=1}^{n_{r, j}} \sum\limits_{d=1}^{n_{d, i}} p_{j, i} / v_{d} \times Y_{i, j, s, r, f, v_{d}} \times \\ \text{EPU}_{i, v_{d}}, \forall i \in M_{s}, f\qquad\qquad\qquad\qquad\quad\ \ \tag{A21}\\
\text{ES}_{i, f}= \sum\limits_{f=1}^{F} \sum\limits_{s=1}^{m} \sum\limits_{i \in M_{s}} \sum\limits_{r=1}^{n_{k}-1}(\text{SM}_{i, r+1, f}-\text{CM}_{i, r, f}) \times \text{ESU}_{i} \tag{A22}\\ \text{ET}_{i, f}= \sum\limits_{f=1}^{F} \sum\limits_{s=1}^{m} \sum\limits_{i \in M_{s}} \sum\limits_{j=1}^{n} \sum\limits_{q=1 \wedge q \neq j} \sum\limits_{r=1}^{n_{k}-1}(U_{i, j, s, r+1, f} \times \\ \text{ETU}_{i, j, q})+ \sum\limits_{f=1}^{F} \sum\limits_{s=1}^{m} \sum\limits_{i \in M_{s}} \sum\limits_{j=1}^{n} U_{i, j, s, 1, f} \times \text{ETU}_{i, j, J_{0}} \tag{A23}\\ \text{TEC}= \sum\limits_{f=1}^{F} \sum\limits_{s=1}^{m} \sum\limits_{i=1}^{l_{f, s}}(\text{EP}_{i, f}+\text{ES}_{i, f}+\text{ET}_{i, f}) \tag{A24}\\ \text{SM}_{i, 1, f} \geqslant \text{ST}_{i, j, J_{0}}-H \times(1- Y_{i, j, s, 1, f, v_{d}}), \\ \forall f, s, i \in M_{s}, j, d \qquad\qquad\qquad\qquad\qquad \tag{A25}\\ \sum\limits_{j=1 \wedge j \neq q}^{n} \text{ST}_{i, j, q} \times Y_{i, j, s, r, f, v_{d}} \leqslant \text{SM}_{i, r+1, f}-\qquad \\ \qquad\ \text{CM}_{i, r, f}+H \times(1- Y_{i, j, s, r+1, f, v_{d}}), \forall j, s, f, i \in M_{s}, \\
1 \leqslant r< n_{r}-1, d \qquad\qquad\qquad\qquad\qquad\quad\tag{A26}\\ \quad \sum\limits_{d=1}^{n_{d, i}} Y_{i, j, s, r, f, v_{d}}= U_{i, j, s, r, f}, \forall i \in M_{s}, r, j, s, f\tag{A27}\end{gather*}