Introduction

Friction stir welding (FSW), which involves making the joint without melting the parts, was introduced in 1991 by The Welding Institute (TWI)1. As shown in Fig. 1, two pieces of sheet metal are placed close to each other. A rotating tool is then placed at the joint, and welding is performed by moving the tool towards the joint2. Since the welding process in FSW is simultaneously performed by rotational and linear motions, the formed distortion and residual stress are reduced compared to the conventional welding processes. As the FSW process does not contain melted metal, the temperature of this process is lower than fusion welding, which reduces the thermal gradient in the welding zone and improves the mechanical properties and welding quality1,3.

Figure 1
figure 1

The FSW process nomenclature.

Several studies have been conducted on FSW technology for similar and dissimilar alloys. Sahin4 investigated the parameters affecting the FSW of high-speed and medium–carbon steel. After finding the optimum welding parameters, the strengths of the joints have been determined by mechanical tests as well as hardness variations and microstructures examination. They compared the results with the strengths of the base materials. Leon and Jayakumar5 studied the effect of process parameters on the tensile strength, microstructure, and stiffness in the FSW of aluminum 6061. The changes in mechanical properties have been compared with the base metal. The key role of the tool rotational speed and welding speed on joint characteristics has been revealed. They reported that the tensile properties and impact strength of the FSW joints have been improved duo to the higher hardness and fine microstructure. Yousef et al.6 utilized an artificial neural network (ANN) to model the FSW parameters on the mechanical properties of aluminum sheets. They combined the influence of feed speed and pin rotational speed on the mechanical properties of welded aluminum sheets and achieved a good performance of ANN model. Sandaram and Muragan7 investigated the effect of pin geometry in the FSW of 2024 and 5083 aluminum alloys. They used five different tool pin profiles and four process parameters to create a predictive response surface model for ultimate tensile strength and tensile elongation. Results revealed that joints fabricated using a tapered hexagon tool pin profile achieve the highest tensile strength and tensile elongation. In contrast, the straight cylinder tool pin profile gives the lowest tensile strength and tensile elongation. Ghaffarpour et al.8 analyzed the effect of FSW process parameters on the 5083 and 6061 aluminum alloys joint mechanical properties. By using the response surface design methodology, they optimized the maximum tensile strength of the welding process and compared the results with those of the experimental test. Moreover, they studied the formability of welded sheets by using the limit dome height test. Yuvaraj et al.9 studied the effect of FSW process parameters on the tensile strength using the desirability function approach. The FSW parameters such as tool offset, pin profile and tilt angle have been considered for the experiments. Based on the ANOVA analysis, they revealed that the tilt angle of the tool has been the most controlling factor for improving the tensile properties of the joint, followed by tool pin profile and tool offset. Marimuthu and Pandiyarajan10 optimized the FSW process using four effective parameters and two objective functions. Optimization was performed using the desirability function approach and examining more efficient parameters in the process. The Box-Behnken three levels and three factors have been used to classify the number of experiments. Jangra et al.11 investigated rotational and feed speeds, tool pin profile, and tool shoulder diameter. They conducted several experiments on two similar sets, AA 6082-T6 and cryogenic treated AA6082 to compare the optimization results. A combined approach of Taguchi method, grey relational analysis, and entropy measurement method have been developed to find an optimal single setting of process parameters for two response characteristics. By examining four effective parameters, Verma et al.12 optimized the ultimate tensile strength and elongation percentage in aluminum alloy friction welding using genetic multi-objective optimization algorithm (MOGA) and hybrid genetic multi-objective optimization algorithm (HMOGA). Rotational speed, welding speed, and tilt angle have been used as input variables. They found that HMOGA provided better results than MOGA. In the aforementioned study, multi-objective optimization was performed using statistical methods, such as the desirability function.

Most problems in nature have several (possibly conflicting) objectives to be satisfied. Some of the nature-inspired optimization algorithms have been used frequently in engineering optimization problems13, including genetic algorithm (GA), ant colony optimization (ACO), particle swarm optimization (PSO), and artificial bee colony (ABC). The complexity of GA is more than PSO in principle for the same work. ACO is a time-consuming method, and the convergence time is also uncertain. ABC has a slow convergence rate, easy to fall in local optimum, and is difficult to find the best out of available feasible solutions. PSO is widely employed to solve the continuous problems because of the simplicity of concept and fewer parametric settings than other population-based optimization algorithms14,15.

Although, in the mentioned studies up to two objective functions are considered, in the present study, the FSW process of 1050 A-H12 aluminum is optimized using five objective functions and five influential design parameters. In addition, a multi-objective particle swarm optimization algorithm (MOPSO) is utilized known as a metaheuristic algorithm. The high convergence speed and relative simplicity of PSO make it a perfect candidate for the multi-objective optimization problems. The five objectives for optimization are considered as yield strength, impact toughness, failure strain, and hardness of the heat-affected zone on the advancing and retreating sides. The process parameters include pin diameter, shoulder diameter, rotational speed, feed speed, and tool tilt angle. After preparing test samples, tensile, impact, and hardness tests are conducted. A relation between the parameters and objective functions is estimated using the available data and the response surface method. Finally, the optimal solutions are obtained, and the predictions are compared with the experiments.

Methods

Multi-objective optimization procedure

Design of experiments: response surface model

The response surface method (RSM) is an approach for building approximations of objectives based on observations in the design space. This approach is functional when gradient-based methods fail16. The choice of surrogate functions to estimate the actual performance is crucial. These functions can be defined as polynomials or sums of various basis functions (e.g., sine and cosine).

This study employs a second-order polynomial to construct the response surface model. If ns analyses are conducted and p = 1; 2; …; ns, then a second-order polynomial model has the following form

$$y^{\left( p \right)} = c_{o} + \mathop \sum \limits_{{1 \le j \le n_{v} }} c_{j} x_{j}^{\left( p \right)} + \mathop \sum \limits_{{1 \le j \le k \le n_{v} }} c_{{\left( {n_{v} - 1 + j + k} \right)}} x_{j}^{\left( p \right)} X_{k}^{\left( p \right)}$$
(1)

where y(p) is the response, \(x_{j}^{\left( p \right)}\) and \(X_{k}^{\left( p \right)}\) are the nv design parameters, and co; cj; and \(c_{{\left( {n_{v} - 1 + j + k} \right) }}\) are the problem coefficients17. Taguchi method is used to design the experiment, and a quadratic model is defined to construct the response surface model. A quadratic relation is obtained for each objective function, as shown in Eq. (2).

$$Obj = A\left( {PD} \right) + B\left( {SHD} \right) + C\left( F \right) + D\left( S \right) + E\left( {TA} \right) + G\left( {PD} \right)^{2} + H\left( {SHD} \right)^{2} + I\left( F \right)^{2} + J\left( S \right)^{2} + K\left( {TA} \right)^{2} + L$$
(2)

where PD is the tool pin diameter, SHD is the shoulder diameter, S is the rotational speed, F is the feed speed, and TA is the tool tilt angle. The coefficients A, B, C, D, E, G, H, I, J, K, and L are determined during the modeling process.

Optimization process

In this study, a MATLAB-based script is prepared to perform the multi-objective particle swarm procedure. Figure 2 shows a flowchart for the optimization process divided into the following six steps:

  • Step 1 Investigation of Experimental Condition, determining the process parameters, setting up the toolsets.

  • Step 2 Design of Experiment: Construction of Taguchi Design based on process parameters and boundaries.

  • Step 3 Performing DOE: based on the Taguchi design matrix, welding operations are performed and the objective functions are evaluated for each matrix point.

  • Step 4 Constructing RSM: according to Eq. (1), the RS functions can be constructed based on the DOE results.

  • Step 5 Running MOPSO: once the RS is constructed, the MOPSO optimization technique can search for the Pareto optimal solutions. The optimization procedure does need to perform welding but uses the RSM to replace the experiments to evaluate the value of the objective functions.

  • Step 6 Checking termination condition: The optimization procedure is terminated if the number of termination generations is satisfied. If not, the process returns to step 3, the new RS is constructed by adding new data to the design matrix.

Figure 2
figure 2

Multi-objective optimization procedure.

Multi-objective optimization algorithm

Multi-objective optimization involves the simultaneous optimization of several objectives. To achieve this, a Pareto front solution is used18. For a minimization problem, point \(F^{1} \left( {\mathbf{x}} \right)\) dominates point \(F^{2} \left( {\mathbf{x}} \right)\) if and only if:

$$f_{i}^{1} \left( {\mathbf{x}} \right) \le f_{i}^{2} \left( {\mathbf{x}} \right) i = 1 \le 2$$
(3)

and for at least one j, 1 ≤ j ≤ 2, satisfying

$$f_{j}^{1} \left( {\mathbf{x}} \right) < f_{j}^{2} \left( {\mathbf{x}} \right)$$
(4)

That is, \(F^{1} \left( {\mathbf{x}} \right)\) is a Pareto solution if it is not worse than \(F^{2} \left( {\mathbf{x}} \right)\) in each of the objectives and better than \(F^{2} \left( {\mathbf{x}} \right)\) in at least one of the objectives.

Particle swarm optimization algorithm

PSO is an evolutionary optimization technique due to the use of algorithm with only basic computational operators. Hence the implementation of this algorithm is simple and cost-effective19,20.

Figure 3 shows the working principle of PSO algorithm. Each particle in the group can be represented by a position vector and velocity vector in a particular problem. Changing the position of each particle is possible by changing the previous position structure and velocity. Each particle carries information containing current position (Xi,(t )), personal best (Pbest, best fitness that it has ever achieved in the past iterations), and Global Best (Gbest, the best fitness ever obtained by the entire group)21.

Figure 3
figure 3

PSO algorithm performance.

Each particle changes its position to obtain the best answer using the current position (Xi,(t)), current velocity (Vi,(t)), the distance between the current and personal best positions, and the distance between the current position and the global best position. Therefore, the new velocity vector (Vi,(t+1)) for particle i is calculated based on the following equation:

$$V_{{i,\left( {t + 1} \right)}} = wV_{i,\left( t \right)} + C_{1} r_{1} \left( {P_{i,\left( t \right)} - X_{i,\left( t \right)} } \right) + C_{2} r_{2} \left( {G_{\left( t \right)} - X_{i,\left( t \right)} } \right)$$
(5)

where w is the inertia weight parameter. r1 and r2 are the random vectors between 0 and 1, used in maintaining group diversity. C1 and C2 are the cognitive and social parameters (acceleration parameters), respectively. Selecting the appropriate value for these parameters accelerates the convergence of the algorithm and prevents premature convergence in the local optima. The new position of the particle is obtained from Eq. (6).

$$X_{{i,\left( {t + 1} \right)}} = X_{i,\left( t \right)} + V_{{i,\left( {t + 1} \right)}}$$
(6)

The PSO flowchart is also shown in Fig. 4. In every iteration, after updating the position of the particles, objective functions are calculated. Then, the fitness function is evaluated to update the Pbest and Gbest. After that, the positions and velocity of particles are updated until the termination criteria is achieved.

Figure 4
figure 4

PSO flowchart.

Multi-objective particle swarm optimization algorithm

MOPSO is a generalization of the PSO algorithm used to solve multi-objective problems22. In the MOPSO algorithm, a concept called archive or repository (also known as the Hall of Fame) is added to the PSO algorithm. The MOPSO flowchart is shown in Fig. 5, which has the following steps:

  1. 1.

    Determining the parameters required for implementing the algorithm (MOPSO).

  2. 2.

    The initial population is created.

  3. 3.

    The best personal memory of each particle is determined.

  4. 4.

    The undominated members of the population are stored in the repository and sorted based on their crowding distance.

  5. 5.

    Each particle is selected a leader from among the repository members and performed its movement.

  6. 6.

    The best personal memories of each particle are updated.

  7. 7.

    New undominated members are added to the repository.

  8. 8.

    The dominated members of the repository are removed. If the termination conditions are not met, the algorithm is repeated from 5 onwards.

Figure 5
figure 5

The MOPSO flowchart.

The following considerations can be made to determine the best vector of personal best memory:

  1. 1.

    If the new personal best dominates the best personal memory, then the new personal best replaces the current personal best memory.

  2. 2.

    If the new personal best is dominated by the best personal memory, then nothing will be done.

  3. 3.

    If neither of them dominates each other, then one is randomly considered as the best position vector.

Design of experiments (DOE)

Different experimental design methods are studied based on the degree of effective parameters as well as the number of effective parameters and responses. Taguchi experimental design method was employed for the DOE (Table 1).

Table 1 Taguchi design of experiment parameters (Specimens labeled as c and b for conical and threaded cylindrical pins, respectively).

Materials

The used sheets were made of A-H121050 aluminum alloy with 5 mm thickness. The chemical composition and the base mechanical properties of this alloy are provided in Tables 2 and 3, respectively. Samples with dimensions of 50 × 50 mm were milled for welding and their surfaced were cleaned with acetone before the welding process.

Table 2 Chemical composition of A-H121050 aluminum alloy.
Table 3 Mechanical properties of A-H121050 aluminum.

Experiments

Welding tools and equipment

Hot work steel H13 was used to fabricate the tools with diameters of 14, 16, and 18 mm, as it is the best material for welding aluminum parts23. Based on the studies performed on the welding of aluminum alloys, the most common shapes of the pin are threaded cylindrical and conical24.

The required tools are fabricated double-sided (one side of the threaded cylinder and the other side of a simple cone) to investigate the thread effects. All shoulders were prepared with a concave angle of 5°25 to obtain a more functional joint. In addition, the slant angle of the conical pin was considered 75°. Figure 6 shows a schematic view of the fabricated tools. After fabrication, the tools were hardened by heat treatment up to an HRC (Hardness Rockwell C) of 50. Table 4 lists the characteristics of the tools utilized in this study.

Figure 6
figure 6

Schematic of the double-sided friction stir welding tool.

Table 4 The characteristics of the tools.

Tensile test

The fabricated specimens are provided from the welded parts for tensile test using a 15-ton DeghatAzma universal machine at room temperature. The cross-head velocity is adjusted 2 mm/min to satisfy the quasi-static condition. The specimen geometry all utilized relations are considered in accordance with ASTM E8. Tensile tests are conducted up to specimen failure to determine the elastic behavior and plastic and failure properties.

Hardness measurement

The specimens hardness at the points located in the heat-affected zones (HAZs) on the advancing and retreating sides (HAZ Adv. and HAZ Ret.) was measured using a Shegarf Abzar hardness testing apparatus based on Rockwell B (1.16-inch diameter steel ball hardness tester). The tests were conducted by applying a 100 kgf force in 10 s in accordance with ASTM-E18.

Impact test

The specimen required for the impact test was prepared according to ASTM E23 with a V-notch. The impact properties were evaluated using a 200 J Santam Charpy impact test machine. The specimens were carefully placed on the support by a special tool to ensure that the V-notch was in the right place related to the impact hammer. The welded specimens are prepared for tensile and impact tests by using the wire-cut machine as shown in Fig. 7.

Figure 7
figure 7

Prepared samples for (a) tensile test and (b) impact test.

Microstructural tests

The samples were fabricated in accordance with ASTME3-01. The specimens were mounted and sealed and polished using 200 to 5000 sandpapers. The samples were then etched with a 2.5% chlorine solution (HF + HCl + HNO3 + H2O). Subsequently, the transverse cross-sections of the parts were analyzed using scanning electron microscopy (SEM).

Results

Figure 8 shows the complete results of the tensile test and hardness measurement of the welded specimens with threaded cylindrical and conical pins. As the figure shows, 18 points were experimentally studied and the results are given as a bar chart for yield stress, impact toughness, failure strain and material hardness. It is worth noting that the mean value of each property is reported in the figure with the related error bar.

Figure 8
figure 8

Results of the tensile test and hardness measurement of welded specimens with threaded cylindrical and conical pins: (a) yield strength, (b) impact toughness, (c) failure strain, (d) hardness on HAZ adv., and (e) hardness on HAZ Ret.

Response surface models

The response surface models of the objective functions were obtained as quadratic polynomials. Tables 5 and 6 show the quadratic model coefficients of the response level for the objective functions for the conical and threaded cylindrical pins, respectively, based on Eq. (2).

Table 5 The quadratic coefficients of response surface for the objective functions of conical pin.
Table 6 The quadratic coefficients of response surface for the objective functions of threaded cylindrical pin.

Table 7 lists the statistical features of the response surfaces. The response surfaces and correlation diagrams of the objective functions are presented in supplementary materials. As the table shows, the best R2 belongs to Hardness HAZ Adv. for both conical and threaded cylindrical pins. Since the p value for all objective functions is determined less than 0.05, the estimated models are found significant. In addition, the R2 values show an excellent prediction capability of the models in the range of 0.944–0.991 for conical yield stress and the hardness of HAZ adv. Table 8 gives the analysis of variance summary (ANOVA) of the response surface of objective functions.

Table 7 Statistical features of the response surfaces.
Table 8 ANOVA summary.

Effect of parameters on objective functions

Figures 9 and 10 depict the variations in the objective functions for each parameter in the design interval for the conical and threaded cylindrical pin, respectively. All of the parameters are normalized in the range of 0–1 based on their boundaries to plot these diagrams. The objective function is plotted by variation of every single parameter, while the other four parameters are fixed on the normalized value of 0.5. Figure 11 illustrates the relative importance of the parameters based on objective function variation between boundaries to better understand how parameters affect the objective functions.

Figure 9
figure 9

Variations in conical pin objective functions for (a) yield strength, (b) impact toughness, (c) failure strain, (d) hardness on HAZ adv., and (e) hardness on HAZ Ret.

Figure 10
figure 10

Variations in threaded cylindrical pin objective functions for (a) yield strength, (b) impact toughness, (c) failure strain, (d) hardness on HAZ adv., and (e) hardness on HAZ Ret.

Figure 11
figure 11

Relative importance of parameters affecting objective functions: (a) conical pin, (b) threaded cylindrical pin.

As shown in Fig. 11a, the most important parameter for hardness HAZ adv. is S = 60%. However, this parameter is determined to be the least relevant for impact toughness by only 7%. As illustrated in the figure, S shows a significant effect on both Adv. and Ret. harnesses. In contrast, the shoulder diameter controls the impact toughness, yield strength, and failure strain by 35%, 22%, and 28%, respectively.

The order of the effect of the process parameters on the objective functions of the conical pin is given as follows:

  1. 1.

    Yield strength shoulder diameter, tilt angle, feed speed, rotational speed, and pin diameter.

  2. 2.

    Impact toughness tilt angle, shoulder diameter, feed speed, rotational speed, and pin diameter.

  3. 3.

    Failure strain shoulder diameter, tilt angle, feed speed, rotational speed, and pin diameter.

  4. 4.

    Hardness of HAZ Adv. rotational speed, pin diameter and tilt angle, feed speed, and shoulder diameter.

  5. 5.

    Hardness of HAZ Ret. rotational speed, tilt angle, pin diameter, feed speed, and shoulder diameter.

The order of the effect of the process parameters on the objective functions of the threaded cylindrical pin is listed as follows:

  1. 1.

    Yield strength tilt angle, rotational speed, pin diameter, feed speed, and shoulder diameter.

  2. 2.

    Impact toughness pin diameter, rotational speed, feed speed, tilt angle, and shoulder diameter.

  3. 3.

    Failure strain rotational speed, pin diameter, tilt angle, feed speed, and shoulder diameter.

  4. 4.

    Hardness of HAZ Adv. rotational speed, shoulder diameter, feed speed, tilt angle, and pin diameter.

  5. 5.

    Hardness of HAZ Ret. rotational speed, shoulder diameter, feed speed, tilt angle, and pin diameter.

In this research, MATLAB Model-Based Calibration Toolbox is used to perform RSM, and a MATLAB-based script is developed for ANOVA.

Optimization results

The optimization process is performed using the experimental data based on the multi-objective particle swarm method. Figure 12 demonstrates the Pareto front obtained for both conical and threaded cylindrical pins.

Figure 12
figure 12

Multi-objective optimization Pareto front: (a) conical pin, (b) threaded cylindrical pin.

In Fig. 12 every point can be considered optimal, depending on the priority of the objective function; if an equal priority is required, the closest point to the origin can be selected as the optimal design. In this study, for each tool type, a point is selected for the experiment, two samples are welded with optimization solutions, and the objective functions are obtained using tensile, impact, and hardness tests (Fig. 13).

Figure 13
figure 13

The welded specimens with the optimized welding values.

Table 9 presents the results of the experiments. As Table 9 suggests, the model accuracy in predicting objective functions with optimal values is excellent in most cases, indicating the reliability of the proposed model.

Table 9 The mechanical properties of samples fabricated with the optimal welding values.

Metallography

Two low-quality (b17 and c12) and two optimal samples are compared using microstructural tests to evaluate the weld quality. Excessive heat causes a coarse-grained structure and reduces the weld strength. The grain shape and size are the functions of material heat and flow. Due to the frictional contact between shoulder and work surface, heat is generated during the rotation of the tool, and the material undergoes a severe deformation at high temperature of the joint with the pin rotational movement. Thus, small and coaxial recrystallized grains are formed. The pin shape can adjust the material flow and causes fine graining. Once an optimal pin is employed, the forging forces in the welding zone are increased. This implies an improvement in material microstructures.

Figure 14 shows SEM images of the stir zone in the optimal samples. In this region, the grains are coaxial and fine, indicating the occurrence of dynamic recrystallization. This can be attributed to the reduction of heat compared to weak samples during welding operations.

Figure 14
figure 14

SEM images of the stir zone in the optimal samples: (a) conical pin, (b) threaded cylindrical pin.

Figure 15 presents SEM images of the stir zone of the low-quality samples. In comparison with Fig. 14, it is clear that the grains are more prominent and defective. The observed holes are formed due to the high-temperature deformation and they are reduced the joint strength and hardness. Comparing the obtained experimental strength and stiffness proves the above observations.

Figure 15
figure 15

SEM images of the stir zone in the low-quality samples: (a) conical pin (c12), (b) threaded cylindrical pin (b17).

Lower heat is generated in the optimal samples owing to low rotational speed and high feed speed. In low-quality samples, more heat is generated due to the higher rotational speed and lower feed speed. Figure 16 shows microscopic images of the weld cross-section of b17 and c12 samples. The presence of tunnel cavities is significant because the extra heat is generated in the process.

Figure 16
figure 16

Macroscopic images of the weld cross-section of (a) b17 and (b) c12 samples.

The formed holes are observable in the upper third of the weld, which is affected by the tool shoulder and forging force. Excessive heat also causes some welding layers to oxidize, as shown in Fig. 17.

Figure 17
figure 17

Macroscopic image of oxide layers in sample c12.

Figure 18 shows SEM images of the thermo-mechanically affected zones of the samples, and no defects and separation are seen in the intersection in the optimum parts. In both cases, acceptable welding is achieved due to sufficient heat production caused by rotational and proper feed speeds. Improvement in the material flow is observed for the threaded cylindrical pin compared with the conical pin due to the geometric shape of the tool pin. Proper penetration of particles into each other is clearly seen in these images, and this enhances the material strength and prevents crack formation in the welded specimen. As expected, no dendrite formation is detected in the stir and thermo-mechanically affected zones after the welding process. This defect type is not usually found in semi-solid materials26,27.

Figure 18
figure 18

SEM images of the thermo-mechanically affected zone region of the samples: (a) threaded cylindrical pin, (b) conical pin, (c) b17, and (d) c12.

By dividing the welding section into three parts, we can see that the main stirring zone is placed in the upper third of the weld, affected by the tool shoulder. In this region, before two parts are forged, a paste state is formed in the joint parts, and the particles penetrate each other. The lower two-thirds of the weld is affected by the pin. In this area, the metal is extruded from the front to back of tool; therefore, stirring is less than one-third of the upper. As stated before, it can be concluded that fine-grained and flawless structures are occurred at lower temperatures, and coarser and weaker structures are produced at higher temperatures.

However, it should be noted that in addition to rotational and feed speeds that cause heat changes, other factors such as the tool penetration depth could also affect the heat production. For example, in b10, despite the low rotational speed and high feed speed, heat is obtained lower than others due to the lower tool penetration depth into the workpiece. Hence no appropriate mechanical connection is formed, and the lower strength and hardness values for this sample are achieved. In the c17 sample, although the high rotational speed and the low feed is utilized, due to the reduction of the penetration depth of the tool, heating is reduced to the optimal level and a joint with the desired strength and mechanical properties can be obtained.

In addition to the tool penetration depth, the tilt angle also affects the heat production and, as a result, the formation of microstructure and desirable or undesirable mechanical properties. This is evident in the comparison of the results of b6 and b18. In these two samples, increasing the tool tilt angle is reduced the mechanical properties (Fig. 7).

Conclusion and discussion

In this study, multi-objective optimization of the objective functions including yield strength, impact toughness, fracture strain, and hardness in HAZ on the advancing and retreating in frictional stir welding of 1050A-H12 aluminum was performed using the response surface method and MOPSO method. In addition, the effects of pin and shoulder diameter, pin geometry, rotational and feed speeds, and tilt angle on the above objectives were investigated, and the following results were obtained.

  1. 1.

    The lower rotational speed and higher feed speed are generated lower heat; consequently, the material strength and hardness are improved.

  2. 2.

    Based on the metallographic analysis, the proposed model is desirable for achieving a fine-grained structure with minimum defects and optimal mechanical properties for samples fabricated at low temperatures.

  3. 3.

    In addition to the rotational and feed speeds, which could change the generated heat, other factors such as the tool penetration depth affect heat production. For example, in b10, despite the low rotational speed and high feed speed, heat production is low due to the low tool penetration depth into the workpiece, preventing the formation of a proper mechanical connection. Therefore, the strength and hardness values for this sample are low. In addition, in the c17 sample, although the rotational speed is high and the feed is low, it still results from the reduction of the penetration depth of the tool, heating is reduced to the optimal level, and a joint with the desired strength and mechanical properties can be observed.

  4. 4.

    Improvement in the material flow is observed for the threaded cylindrical pin compared with the conical pin due to the geometric shape of the tool pin leading to more functional mechanical properties.

  5. 5.

    Increasing the tool tilt angle is reduced the mechanical properties by comparing the results of b6 and b18.

  6. 6.

    The combination of the response surface methodology and the multi-objective particle swarm algorithm led to the modeling and optimization of the process with outstanding accuracy and low experimental cost.