*Proceeding Paper* **Ant Colony Optimization Algorithm for the Hybrid Flow Shop Scheduling Problem with Integrated Consideration of Fixture Resources †**

**Longlong Xu, Jian Guo \* and Lixia Zhu**

School of Mechanical and Electrical Engineering, Wenzhou University, Wenzhou 325035, China; 13395771275@163.com (L.X.); m18200289139@163.com (L.Z.)

**\*** Correspondence: 20210701@wzu.edu.cn

† Presented at the Third International Conference on Advances in Mechanical Engineering 2023 (ICAME-23), Islamabad, Pakistan, 24 August 2023.

**Abstract:** A solution method based on the ant colony optimization (*ACO*) algorithm is established for the hybrid flow shop scheduling problem with the objective of minimizing the maximum completion time and the number of fixtures. By using the linear weighting method, the dual-objective optimization problem can be effectively converted into a single-objective optimization. Taking the scheduling problem of an automated production line of precision parts as an example, the feasibility of the proposed algorithm is verified, and the integrated optimization of fixture resource allocation and production scheduling is realized.

**Keywords:** automatic production line; matlab; ant colony algorithm; fixture resources

### **1. Introduction**

The hybrid flow-shop scheduling problem (*HFSP*) is a classical problem in the field of production scheduling. In automated production lines, the cost of fixture resources is high due to the fact that each fixture system can only hold one job at a time. Therefore, in this paper, an ant colony algorithm is used to simultaneously consider minimizing the maximum completion time and the number of fixtures for hybrid flow shop scheduling.

Some classic studies on ACO are as follows. Qin et al. studied the dynamic hybrid flow shop scheduling problem with uncertain processing time and proposed a rescheduling method based on the ant colony algorithm [1]. Zhao analyzed the objective function and boundary conditions of the emergency distribution routes based on the ant colony algorithm and solved the optimal routes based on the pheromone content of each route [2]. Jiang et al. proposed to guide the optimization approach by improving the pheromone update rule based on the experience of the global optimum [3]. Li et al. improved the pheromone updating method by improving the path selection strategy and path transfer probability function and utilizing a max–min ant colony system [4].

### **2. Problem Formulation**

The problem can be described as *n* jobs *Ji*(*i* = 1, 2, . . . , *n*) are to be processed in an automated production line with *m*(*m* ≥ 2) processes and the same processing sequence for each job. *Kj Kj* ≥ 1; *j* = 1, 2, ··· , *m* is the set of parallel machines on each process. Process *m* can be processed on any *Kj*. Scheduling decisions are made to determine the sequencing of all jobs for each process and the selection of machines for each process. The goal of scheduling is to minimize the maximum completion time and reduce the number of fixtures.

The basic assumptions include: (1) jobs on automated production lines must be processed using fixtures, each fixture follows a job until the end of processing, and the

**Citation:** Xu, L.; Guo, J.; Zhu, L. Ant Colony Optimization Algorithm for the Hybrid Flow Shop Scheduling Problem with Integrated Consideration of Fixture Resources. *Eng. Proc.* **2023**, *45*, 37. https:// doi.org/10.3390/engproc2023045037

Academic Editors: Mohammad Javed Hyder, Muhammad Mahabat Khan, Muhammad Irfan and Manzar Masud

Published: 13 September 2023

number of fixtures is limited; (2) only one job can be processed per machine at any one time without interruption; (3) if the machine required for the processing of the job is in operation, the job waits at the caching station; (4) negligible movement of the robot arm as well as disassembly and clamping time of jobs.

#### **3. ACO Algorithm with Consideration of Fixture Resources**

#### *3.1. Flow of the ACO Algorithm*

The ACO algorithm is a heuristic bionic algorithm based on positive feedback of information [5]. By transforming the scheduling process into the search path of an ant colony, a feasible and effective ant colony algorithm model is constructed to solve the complex automatic production line shop scheduling problem. The ACO algorithm flow is shown in Figure 1. *Cmax* represents maximum completion time. *item* represents the current number of iterations. *itemmax* represents the maximum number of iterations.

**Figure 1.** ACO algorithm flow.

#### *3.2. Feasible Process Table for the ACO Algorithm*

*N*(*i*) represents the serial number of the process that *Ji* is processing 0 < *N*(*i*) < *m* indicates that the job started processing but not finished processing and will occupy a fixture until the last process is completed. The number of jobs that meet 0 < *N*(*i*) < *m* is equal to *Gnow*. *Gnow* represents the number of fixtures currently occupied. *Gmax* represents the maximum number of fixtures on a production line.

If *Gnow* < *Gmax*, the table of feasible process includes the first process of a raw job and the tightening process of the job has begun. If *Gnow* = *Gmax*, the table of feasible process includes the tightening process of the job has begun.

#### *3.3. Optional Process Probabilities for the ACO Algorithm*

The probability of optional processes is calculated as shown in Equation (1). *y* is one of the optional processes, *u* is any of the optional processes, *Allowed* is the set of optional processes. *ρxy* represents the probability that an ant's current process is *x* and the next process is chosen as *y*, *τxy* represents its pheromone concentration, *μxy* represents the value of its heuristic function value.

$$\rho\_{xy}^{p} = \begin{cases} \frac{\left(\tau\_{xy}\right)^{a} \cdot \left(\mu\_{xy}\right)^{\beta}}{\sum\limits\_{u \in Alllowed} \left[ \left(\tau\_{xu}\right)^{a} \cdot \left(\mu\_{xu}\right)^{\beta} \right]} & , \ y \in Alllowed\\ 0 & , \ y \notin Alllowed \end{cases} \tag{1}$$

#### *3.4. Feasible Solution Generation for the ACO Algorithm*

Use an array of 2 ∗ *w* to represent a feasible scheduling solution to the problem, *w* is the total number of processes. The first layer is the total process gene and the second layer is the machine gene. Randomly generate an integer in the range 1 to *n* as the first process chosen by an ant. After generating the corresponding feasible process table, all optional processes and their selection probabilities are determined. Update the feasible process table and recalculate the selection probabilities for all available processes after determining the next process by means of the roulette method, until all processes have been selected. This is the step by step for the ACO algorithm to generate feasible solutions. A feasible solution for case *n* = 3, *m* = 3 is shown in Figure 2.


**Figure 2.** Feasible solution example.

#### *3.5. Pheromone Update for the ACO Algorithm*

Two adjacent processes in the feasible solution are considered as a process path. The increment of pheromones on the path is inversely proportional to the maximum completion time, as shown in Equation (2). *Q* represents the pheromone constant factor. *C<sup>p</sup> max* represents the maximum completion time of ant *p*. Δ*τ<sup>p</sup>* represents the pheromone increment of each ant on its own path through the process.

Renewal of pheromones includes addition and volatilization as shown in Equation (3). *ρ* represents pheromone volatile factor. ∑*<sup>q</sup> <sup>p</sup>*=<sup>1</sup> <sup>Δ</sup>*τ<sup>p</sup> xy* represents the pheromone increment of all ants on the process path *x* to *y*.

$$
\Delta \pi^p = \mathbb{Q} / \mathbb{C}\_{\text{max}}^p \tag{2}
$$

$$
\tau\_{xy}^{new} = (1 - \rho)\tau\_{xy}^{old} + \sum\_{p=1}^{q} \Delta \tau\_{xy}^{p} \tag{3}
$$

#### **4. Numerical Example and Analysis**

#### *4.1. Parameter Settings*

Based on the automated production line for precision parts, the experimental parameter obtained through Taguchi's experiments are shown in Table 1.

**Table 1.** Experimental parameter.


#### *4.2. Computational Experiments and Discussion*

Normalization is performed by Equation (4) to determine the fitness of each solution. *f min <sup>r</sup>* represents the minimum value of the target *r*. *f max <sup>r</sup>* represents the minimum value of the target *r*.

$$f\_r = \frac{f\_r - f\_r^{\min}}{f\_r^{\max} - f\_r^{\min}} \tag{4}$$

A linear weighting method is used to convert the optimization objective into a singleobjective problem, as shown in Equation (5). Weighting factors *ω<sup>i</sup>* determined by multiple qualified experts with extensive experience and expertise. The weights of *Cmax* and the weights of fixtures number are set to *ω*<sup>1</sup> = 0.7 and *ω*<sup>2</sup> = 0.3.

$$\min f(\mathbf{x}) = \sum\_{i=1}^{2} \omega\_i \min f\_i(\mathbf{x}) \tag{5}$$

According to Table 2, *minf*(*x*) achieves the minimum value when the *Gmax* = 3, and the corresponding production line scheduling Gantt chart is shown in Figure 3. Compared with *Gmax* = 10, the number of fixtures is reduced by 7, and *Cmax* is increased by 53. Compared to heuristic rules, the ACO algorithm gives better results.


**Table 2.** Correspondence table between *Gmax* and *Cmax*.

**Figure 3.** Gantt chart of automated production line scheduling for *Gmax* = 3.

#### **5. Conclusions**

In this paper, the ant colony algorithm is applied to the hybrid flow-shop scheduling problem with integrated consideration of fixture resources, and the experimental results show that it is feasible. More complex cases for HFSP are to be further studied and considered.

**Author Contributions:** Conceptualization, J.G.; methodology, J.G., L.X., and L.Z.; software, L.X.; validation, L.X.; formal analysis, L.Z.; investigation, L.X.; writing—original draft preparation, L.X.; writing—review and editing, J.G.; funding acquisition, J.G. All authors have read and agreed to the published version of the manuscript.

**Funding:** The National Natural Science Foundation of China, grant number [No. 51705370].

**Institutional Review Board Statement:** Not applicable.

**Informed Consent Statement:** Not applicable.

**Data Availability Statement:** The data are available from the corresponding author upon request.

**Conflicts of Interest:** The authors declare no conflict of interest.

#### **References**

