1. Introduction
Cloud manufacturing (CMfg) is an advanced service-oriented manufacturing model that uses different advanced internet technologies to integrate different virtualized manufacturing resources services [
1,
2]. The topic has attracted lots of attention from scholars and practitioners. In CMfg, various lifecycle-oriented manufacturing resources and capabilities, including the hard and software capabilities for product design, production, simulation, transportation, and so on, are virtualized and encapsulated into the CMfg platform [
3]. The characteristics of each MCS contain two categories, including functional and non-functional attributes [
4]. The non-functional attributes are generally called QoS. The deployed MCSs in the CMfg platform facilitate customers to select proper MCSs according to their requirements and QoS to complete manufacturing tasks [
5]. In detail, a complex manufacturing task can be split into different subtasks, which can be completed by selecting an MCS from the candidate manufacturing cloud service set (CMCSS) deployed in the CMfg platform; the selected MCSs are integrated to form a manufacturing cloud service composition (MCSC).
Large amounts of MCSs deployed in the CMfg platform with a rapid increase trend bring great challenges to selecting optimal MCSs. Numerous available candidate MCSs provide the same or analogous functions but have different QoS attributes, such as time, product performance, manufacturing capacity, and so on. It is difficult to optimize some QoS attributes at the same time because one attribute may conflict with another. For example, an MCS may have a longer execution time but worse manufacturing capacity, whereas another MCS may have a shorter execution time but better manufacturing capacity [
5]. Meanwhile, we also have to consider the issue of service correlations in the composition process that can influence the global QoS of the MCSC [
6]. The above particular problems of CMfg improve the difficulty of selecting MCSs to be composed of MCSC and is still an arduous task that attacked many researchers [
7].
The problem with QoS-MCSC is that each subtask of a cloud task selects the suitable MCS to aggregate it in sequence to generate an MCSC. The MCSC can meet both functional requirements and optimal QoS of customers. Finding the optimal composite path from the feasible solutions distributed in a discrete space for QoS-MCSC is known as an NP-Hard problem. Taking a complex task with
N subtasks and each subtask with
M MCSs as an example, the solution space reaches up to
MN. The solutions for the QoS-MCSC problem are distributed in a large discrete space. Various intelligent optimization algorithms have been developed to explore the optimal composite path for this problem, such as the genetic algorithm (GA) [
8], the differential evolution algorithm (DE) [
9], particle swarm optimization (PSO) [
10], the artificial bee colony algorithm (ABC) [
11], and the whale optimization algorithm (WOA) [
12]. Khanouchea et al. [
13] constructed a clustering-based search tree to improve global search capability for the problem of QoS-MCSC. Li et al. [
14] proposed a hybrid PSO (AIWPSO) that utilizes adaptive inertia weights to enhance global search capabilities. Deng et al. [
15] developed a hybrid DE with neighborhood mutation operators and opposition-based learning (NOBLDE). Savsani et al. [
16] developed a teaching and learning (TLBO) for non-linear large-scale problems. When solving the QoS-MCSC problem, there may be multiple local optimal solutions in the search space, and the above-mentioned approaches are easily trapped in local optimal solutions owing to their randomization or stochastic strategies. Achieving global optimal solutions is still a great challenge.
The WOA, as a popular bionic algorithm, is proposed by Mirjalili [
12]. The principle of the WOA is to simulate the behavior of humpback whales in hunting prey, including encircling prey, bubble net attacking, and searching for prey. Recently, the WOA has aroused the interest of many researchers and practitioners, and it has been employed or modified to handle diversified practical engineering problems, such as multilevel threshold image segmentation [
17], permutation flow shop scheduling [
18], microgrid operations planning [
19], and so on. Experimental tests demonstrate that the WOA can achieve competitive or better results compared to other heuristic algorithms. For instance, the WOA outperforms the DE and grey wolf optimization (GWO) while solving reactive power planning problems [
20]. However, one disadvantage of the WOA is that it may easily drap into local optimization in the later iteration, especially when the number of evolution times exceeds 600 [
21]. The reason is that the probability related to exploration attenuates along with the iterations and the exploration ability of the WOA for global optimal solution gradually decreases, while the exploitation ability gradually increases. Some existing algorithms also do not have a strong exploration ability in the later iteration, which might lead the approach to be trapped in the local optimal solution. Generally speaking, the stronger the exploration ability of algorithms, the superior the solution accuracy, especially for the NP-Hard problems.
Lévy flight is a type of generalized random walk algorithm that imitates the trajectory of biological activity [
22], and the direction of each step is completely random. A random direction search facilitates the exploration of the global optimal solution but is not conducive to algorithm convergence. Therefore, Lévy flight has always been integrated into other intelligent algorithms to improve the global search capability. For example, Liu et al. [
23] advance a hybrid approach by combining quantum particle swarm optimization with Lévy flight and straight flight strategy to solve engineering design optimization problems. Zhou et al. [
24] utilized Lévy flight to enhance the global optimization capability of the ABC for the MCSC problem. Thus, Lévy flight is employed in the WOA to enlarge the search space and increase the exploration capability.
Crossover is one of the essential operators used to preserve the population diversity of the GA. Tradition crossover tries to alter a few parts of genes for each individual that are different from the WOA, which changes all the whale positions at the same time. This mechanism hinders the fast convergence of the GA and causes the algorithm to easily fall into the local optimal solution because traditional crossover is more inclined to generate similar individuals at a later iteration [
25]. Some studies reported that the WOA outperforms the GA with traditional crossover when solving MCSC problems [
26]. Thus, different adaptive crossover strategies have been developed to balance the exploration and exploitation ability. More competitive results have been achieved, such as an adaptive genetic algorithm for environment monitoring data acquisition [
27], a genetic algorithm adaptive homogeneous approach for identifying wall cracks problems [
28], an adaptive dimensionality reduction GA for high-dimensional large-scale problems [
29], and so on. Inspired by these ideas, an adaptive crossover strategy is employed to balance the exploration and exploitation of the WOA.
Adaptive weighting strategies are often developed to preserve population diversity and increase the search space of algorithms. In the exploitation of the standard WOA, whales can only surround prey in a small area, which causes whales to easily fall into local optimal solutions [
21]. Recently, more and more scholars have used adaptive weights to optimize algorithms. For example, Li et al. [
14] introduced an AIWPSO, which has excellent global search capabilities. In order to classify underwater sonar images, Wang et al. [
30] introduced a new novel deep learning model that combines adaptive weights with a convolutional neural network (AW-CNN). Cao et al. [
31] introduced an image classification algorithm based on adaptive feature weight for the low classification accuracy of the single-feature and multi-featured fusion. Inspired by these algorithms, the adaptive weight strategy is developed to extend the search scale of the exploitation phase.
The approach developed in this research uses the WOA, adaptive crossover, adaptive weight, and Lévy flight strategies to improve the exploration and exploitation abilities cost effectively. The WOA performs well in exploitation with high convergence speed [
21]. The crossover strategies of the GA have been widely adopted for population diversification preservation in real and integer-coded optimization problems. Then, adaptive crossover with three crossover strategies and single point mutation is utilized to enhance the algorithm’s performance and accelerate the convergence of the WOA, while Lévy flight is designed to enhance the exploration of the WOA by expanding the search space. Finally, an adaptive weight strategy is used to enhance the speed at which the whale approaches the prey. This study mainly consists of the following parts:
A novel WOA with an adaptive crossover, adaptive weight, and Lévy flight strategy (ASWOA) is proposed;
The Lévy flight strategy expands the solution space and increases the exploration ability for global search;
The adaptive crossover balances the exploration and exploitation of the WOA at different iterations and enhances the WOA to escape local optimal at the later iteration;
The adaptive weights are developed to accelerate the speed of approaching prey;
Simulation and comparison experiments were conducted on different scale QoS-MCSC problems, which prove the superiority of the proposed ASWOA compared to the standard WOA.
The rest is arranged as follows. The background of QoS-MCSC and the approaches for it are summarized in
Section 2. The model of QoS-MCSC is introduced based on aggregation formulas in
Section 3.
Section 4 presents the proposed ASWOA and related techniques, including the WOA, adaptive crossover, Lévy flight, and adaptive weight.
Section 5 shows the simulation and comparison experiments conducted on various benchmark functions.
Section 6 shows the applicability of the ASWOA in different scale QoS-MCSC problems. Finally,
Section 7 provides a summary and the future research direction.
2. Related Work
CMfg is a popular research topic, and relevant scholars have carried out a lot of studies on CMfg service modeling and description [
32], cloud architecture design [
33], cloud service standards [
34], and so on. In our previous study, a correlation-aware MCSC model was proposed. This model can describe the QoS dependency between different services [
6].
In recent years, cloud computing and big data advanced by leaps and bounds, and many manufacturing resources have been virtualized and encapsulated to be provided in the network platform, thereby leading to a rapidly and constantly expanding CMfg system. As the amount of MCS increases, how to select appropriate MCS efficiently to accomplish the functional requirements of corresponding manufacturing tasks and how to integrate these MCS into an MCSC with optimal QoS are promising research issues [
35]. Many novel approaches have been developed to handle the problem of the optimal selection of MCSC. There are three main methods to solve MCSC, including salarization-based, Pareto-based, and other approaches.
The MCSC problem is considered a multi-objective problem (MOP) [
36]. The scalarization method can convert an MOP into a single-objective problem (SOP). At present, there are two scalarization methods: the fraction-based fitness technique and the simple additive weighting (SAW) technique [
37]. Based on the fraction-based fitness technique, Canfora et al. [
36] utilized a GA to settle the MCSC problem. Based on the SAW, Zhou [
38] proposed a hybrid TLBO for the MCSC problem. Mardukhi et al. [
39] proposed a new model, which can decompose global constraints into multiple local constraints. SKG A et al. [
40] have combined the WOA with the eagle strategy for the QoS-MCSC problem Yue et al. [
41] developed a hybrid GA based on population diversity and relational matrix coding.
In addition to the declarative meta-heuristic algorithm mentioned above, non-heuristic algorithms and heuristic algorithms are also used for MCSC problems. Liu et al. [
42] proposed an adaptive MCSC based on deep reinforcement learning. Jiang et al. [
43] introduced a top k query mechanism and proposed a Key Path-Based Loose (KPL) algorithm. But, meta-heuristic algorithms have the most competitive performance for MCSC problems [
44].
Pareto is used to solve MOP problems and uses multi-objective optimization and optimize multiple parameters of QoS at the same time to acquire the Pareto optimal explanation [
45]. Generally, there are some famous MOP methods. For example, Wahild et al. [
46] utilized the Strength Pareto Evolutionary Algorithm (SPEA-II) to solve the MOP problem. Deb et al. [
25] utilized a Non-dominated Sorting Genetic Algorithm II (NSGA-II) for the MOP problem. Feng et al. [
47] proposed a new algorithm for MOP based on the combination of the idea of the Pareto solution, which was developed to address the SCOS problem. Rudziński et al. [
48] presented an application of the generalized Strength Pareto Evolutionary Algorithm (SPEA) with an original multi-objective optimization technique in the logistic facilities location problem. The proposed approach has the purpose of seeking out a set of high-spread and well-balanced distribution solutions in a specific solution space. Xie et al. [
49] introduced a new algorithm that uses the differential evolution mutation operator in directional guiding ideology and combines the NSGA-II algorithm to improve the solution population distribution. Napoli et al. [
50] proposed a trade-off negotiation strategy that can process multiple QoS properties at the same time. NK et al. [
51] developed a Non-dominated Sorting GA (NSGA-II) for composition service problems in IoT. Suciu et al. [
52] introduced an adaptive MOEA/D algorithm for QoS-MCSC problems.
When multiple objectives need to be optimized, the optimization problem becomes more complex, and the efficiency of MOEAs will become lower and lower [
53]. In the algorithm execution stage, due to conflicts between different targets, multiple targets cannot be optimized at the same time. It is possible that one goal will be strengthened and another goal will inevitably be weakened. At the same time, the calculation amount of the above method based on Pareto optimization is much larger than the salinization method. Moreover, the above method based on Pareto optimization cannot be better to balance exploration and exploitation.
Apart from the above two methods, many scholars use other methods to resolve this problem. Teixeira et al. [
54] introduced a new service-oriented model that can be conducted without necessarily implementing the real system. This can accomplish QoS tasks at a lower cost. Ping et al. [
55] proposed a new vague information decision model that alleviates the bias of existing approaches through the improved fuzzy ranking index. Zhang et al. [
56] proposed an intuitionistic fuzzy entropy weight BBO algorithm for QoS-MCSC problems. Hu et al. [
57] introduced a game theoretic power control mechanism based on the hidden Markov model (HMM).
In sum, using the above new model or Pareto to solve the MCSC problem has high computational complexity. After increasing the computational complexity, it may not be possible to obtain the global optimal QoS. Therefore, this article uses the salinization method to solve the QoS-MCSC problem.
3. Problem Formulation of QoS-Aware MCSC
The composition of manufacturing service can be divided into task decomposition, service discovery, and service optimal selection in three stages. This process is illustrated in
Figure 1.
Task decomposition: the complex manufacturing task of the MCSC can be decomposed into multiple subtasks, such as Task = {ST1, ST2, ..., STi, ..., STn}, where STi represents the subtasks i and n is the total number of subtasks.
Service discovery: Each subtask STi has a candidate service set CMCSSi, and CMCSSi = {, , , ..., ..., }, where represents the jth candidate service that can satisfy the functional and QoS constraints of subtask STi and mi represents the total number of MCS for STi.
Generate composite paths: a single MCS or a composition of multiple MCSs are selected for each subtask from CMCSS and connected as an executable path CMSC. Pj = {, , , , ..., } is taken as the j executable path, and represents the candidate service of STi. Let P = {P1, P2, ..., Pi, ..., } represent the executable path space for task T and . QoS-aware MCSC chooses an optimal path from P with a high performance of QoS.
QoS, as the non-functional attribute of MCSC, is used to evaluate the performance of services. There are more than twenty QoS metrics in practical applications, and the four widely used QoS metrics, including time (T), cost (C), reliability (R), and availability (A), are taken to construct the QoS evaluation model for MCSs in this study. These four metrics consider the balance of efficiency, economy, effectiveness, and stability of service that customers care about most. The QoS metrics of each MCS can be represented as {, C, , and }, where denotes the jth candidate MCSs for the ith subtask.
CMCS is composed of sequence, parallel, selective, and circular four types of composite structures. But, parallel, selective, and circular composite structures are not conducive to the QoS value calculation. Thus, it is necessary to convert the other three composite structures into a sequence structure, and then the QoS value of MCSC can be calculated by the sequential structure formula [
56]. The four structures of formulas are given in
Table 1.
The purpose of QoS-MCSC is to select the optimal combined path, and the global QoS value of each MCSC must be taken as the optimization goal. These QoS attributes are categorized into positive attributes (
) and negative attributes (
). The optimization of QoS-MCSC tries to achieve a high value of positive QoS attributes, such as availability and reliability, but a low value of negative QoS attributes, such as time and cost simultaneously. The SAW is employed to convert multiple QoS attributes into a single value. The values of QoS attributes should be normalized in the same scale [0, 1] through SAW, and then a weighted sum for each scaled QoS for aggregation should be conducted. The SAW-based QoS value of MCSC can be defined with the following formula:
where
and
indicate the max and min value of the
tth QoS attribute, respectively and
wt is the weight value of each QoS attribute,
= 1, and they can be determined by the preference of customers or the CMfg platform.
It is difficult to seek out a global solution for QoS-MCSC because it has a large solution space. Taking a complex task with N subtasks and each subtask with M MCSs as an example, the solution space reaches up to MN. Thus, a WOA with adaptive crossover, adaptive weight, and Lévy flight strategies is developed to optimize this challenging problem in this study.
6. Application to QoS-MCSC Problems
The solution searching ability of the proposed ASWOA in QoS-aware MCSC problems is verified in a virtual application and is compared with the four cutting-edge algorithms, the WOA [
12], AIWPSO [
14], NOBLDE [
15], and TLBO [
16], for QoS-aware MCSC problems in this section. The parameter settings and operating environment in this experiment are the same as those in
Section 5.
Four QoS attributes, including time, cost, reliability, and availability, for each MCSC are considered. The values of the four attributes are randomly and symmetrically generated in the interval [0.7, 0.95]. It is assumed customers care more about time and cost, and the weights of the difference QoS attributes are set as wtime = 0.35, wcost = 0.35, wreliability = 0.15, and wavailability = 0.15, according to the preference of customers. The MCS correlation is 40%.
In this section, 16 experiments with different service scales were designed. The subtask sizes are 20, 30, 40, and 50, respectively. The candidate service sizes of each subtask are 50, 100, 150, and 200, respectively. For example, T-50-100 indicates that the subtask scale is 30 and the candidate service scale is 100. The proposed ASWOA and comparative algorithms independently run 30 times, and each run is initialized with randomly generated populations. The experiment outputs are the average of the best solutions of the 30 executions.
The results of the WOA, AIWPSO, NOBLDE, and ASWOA in 16 test problems are given in
Table 7. Please note that ‘
Mean’, ‘
Std’, and ‘
Best’ indicate the average results, corresponding standard deviation, and best result of the 30 executions with the best solution as its output in each run. It can be found that the ASWOA outperforms other compared algorithms for all the test problems according to the average QoS fitness values. Meanwhile, the ASWOA obtains the best solutions in all cases based on the best QoS fitness values. It can be found that the ASWOA has better robustness with lower ‘
Std’ than the WOA, AIWPSO, NOBLDE, and TLBO, except for T-20-100, T-20-150, T-20-200, T-30-50, T-30-200, T-50-50, and T-50-100. The ASWOA has a stronger ability to escape the local optimal solution due to the
Pt controlling the crossover strategy. So, the ASWOA can find solutions that are closer to the optimal solution, especially in large-scale problems. However, the randomness of the crossover strategy is relatively large. Therefore, in some test cases, such as T-20-100, T-20-150, and T-50-100, the ‘
Std’ of the ASWOA is not better than compared algorithms.
The optimization results of the different scale QoS-MCSC problems are shown in
Figure 4. It can be seen that the average optimization results obtained by the ASWOA are better than the WOA, TLBO, AIPSO, and NOBLDE in the 16 QoS-MCSC test problems. This means that the ASWOA has stronger robustness and can solve different scale QoS-MCSC problems well. Although the convergence rate of the ASWOA is worse than the WOA, TLBO, AIPSO, and NOBLDE, the ASWOA demonstrates stronger global search capabilities, even in the middle and later stages of iteration. This means that the ASWOA can effectively maintain the population diversity and search robustness during the iteration process using adaptive Lévy flight and crossover strategies. The experimental results show that the ASWOA has achieved excellent results in solving symmetric QoS-MCSC problems.
The QoS-MCSC problem is a kind of combination NP-hard problem. When the ASWOA is utilized to solve this kind of problem, the ASWOA can effectively balance local search and global search to find better optimal solutions. The adaptive crossover strategies and Lévy flight are utilized to enhance the ASWOA’s global search capability. The parameter Pt is utilized to control crossover frequency to ensure the efficiency of the algorithm. The adaptive weight is utilized to expand the local search range. Through the above methods, the ASWOA has better convergence accuracy than the WOA, regardless of the convergence speed.
The Wilcoxon rank sum test is utilized to ascertain the significance of the differences observed between the ASWOA and the other algorithms. Each algorithm runs independently 30 times on the 16 test problems, and the best results of 30 executions for each of the problems are used as samples. The Wilcoxon rank sum test is performed on the samples at a significance level of 5% to obtain a
p-value. When the
p-value is less than 0.05, it means there is a significant difference between the two samples.
Table 8 gives the Wilcoxon rank sum test results. It can be seen that the
p-value of the Wilcoxon rank sum test for the WOA, TLBO, AIPSO, and NOBLDE is less than 0.05. From a statistical perspective, it can be concluded that the ASWOA is significantly superior to the WOA, TLBO, AIPSO, and NOBLDE in the test QoS-MCSC problems.
The execution time of the algorithm is shown in
Table 9. It can be seen that the solution time of the ASWOA is longer than the WOA. This is because the ASWOA strengthens the later global search capability through crossover mutation while reducing the operation efficiency. Although the ASWOA takes more execution time, it can find better solutions for QoS-aware MCSC problems. Moreover, the execution time spent by the algorithm is insignificant compared to the hundreds of hours of completing the manufacturing task. It is valuable to spend more computing time to find better solutions for manufacturing tasks. Finding a better solution under the condition of slightly increasing the calculation time has higher cost performance for enterprises.
In summary, the ASWOA can effectively balance local search and global search. The advanced exploration of the ASWOA is due to the Pt controlling the crossover strategy. The algorithm can select different crossover strategies according to Pt. At the same time, it not only strengthens the global search ability but also preserves the population diversity and enhances the search robustness, which can avoid the algorithm dropping into a local optimization. The Lévy distribution is applied to improve the exploration ability through expanding search space. The adaptive weight is developed to expand the local search range. The experimental outcome shows that the ASWOA has good performance in solving large-scale QoS-MCSC problems.