Abstract
The goal of this study was to introduce an effective optimization method to balancing one-piece flow assembly lines by rearranging manufacturing tasks necessary for an apparel production to minimize the number of workstations and the idle time of the assembly line under certain conditions. In this paper, we firstly define an assembly-line-balancing (ALB) problem in apparel production and established an objective function for minimizing the smoothness index, a term that measures the difference between the worktime and the targeted cycle time of each workstation on an assembly line. We then illustrate an adaptive ant colony (AAC) algorithm with modifications made on the traditional ant colony algorithm for solving the ALB problem. Finally, we present the experiments using real-world data provided by an apparel manufacturer to compare the results generated from the AAC and the prior practice of the company. It was demonstrated that the AAC could help the company reduce the number of workstations on its assembly lines and cut the idle time at most of the workstations.
In apparel production, an assembly line normally consists of a number of workstations, each performing specific tasks in a restrictive order.1,2 Typically, an apparel product is assembled in a batch operation, in which multi-parts are processed in one “lot” or “group” together before being moved to the next task. 3 The efficiency of the assembly line can be improved by making it more suitable for “little variety and large batch” production through a proper division of the line. However, this batch production approach is likely to bring with it batch quality problems and a high rework rate. 4 In the era of apparel mass-customization, batch production is barely able to satisfy the demand for “multi-variety, small-batch and fast-delivery” products.
Industrial engineering (IE) technology has been adopted to assemble workstations in an orderly flow and to remove backlogs for more customizable products. Incorporating IE principles into a batch production leads to a process called one-piece flow, 5 which means processing one item at a time and moving it through continuous processing tasks with minimal delay or waiting time.6,7 The one-piece flow production can reduce product preparation time and manufacturing failure rate, and increase flexibility and outputs.8,9
Usually, one workstation in the one-piece flow production contains several tasks. To make the production fluent, tasks need to be analyzed carefully, workstations must be available for the assigned tasks, and operators must be given sufficient time to perform certain tasks. The synchronization of the one-piece flow production means balancing the tasks on an assembly line to allow operators to run machines in the most efficient way 10 ; this is the most crucial work undertaken by production planning. 11 An assembly-line-balancing (ALB) problem belongs to a nondeterministic polynomial optimization problem in which the number of workstations for a given cycle time and the idle time of each workstation should be minimized. 12
Performance comparison of four meta-heuristic algorithms
Alhamdy et al. 27 solved a problem associated with traveling salesmen using the AC algorithm in comparison with Tabu search, simulated annealing, and the genetic algorithm. The results showed that the AC algorithm was most efficient among these compared algorithms.
AC algorithms became a popular option for solving combinatorial optimization problems. The idea of an AC algorithm comes from the foraging behavior of a real ant colony. While ants are looking for food, they always release a substance called pheromone to help the others to follow. There are many paths between a colony and a food source. Ants are able to find the shortest path after many ants have passed. This behavioral mechanism is a metaphor to describe the search process in an AC algorithm. Balancing an apparel assembly line is similar to the ant foraging behavior that finds the shortest path to the food source. Initially, a basic AC algorithm was developed for ALB. 28 Later, the AC algorithm was modified or combined with other methods for more specific ALB problems. For instance, Bautista and Pereira29,30 applied AC to optimize a bike assembly line. Sabuncuoglu et al. 31 proposed AC to solve the single-model U-type ALB problem. Baykasoglu and Dereli 32 proposed an AC algorithm to solve straight-line and U-shaped ALB problems with the aim of minimizing the number of workstations. Yagmahan 33 developed a multi-objective AC algorithm to deal with the mixed ALB model to minimize the number of workstations for a given cycle time. Zha and Yu 34 presented a hybrid algorithm of AC and a beam search for balancing and rebalancing an assembly line in a just-in-time production environment. Kalayci and Kalayci 35 used an AC algorithm to balance a bathrobe production line. Zhong and Ai 36 modified the AC algorithm to balance a multi-objective assembly line for minimizing workstations and workload variations. However, these AC-based algorithms exhibited some weaknesses in various applications, such as a likelihood to be trapped in local minima, missing a global optimal solution, and not having been effectively applied to balancing apparel assembly lines.
In this research, we intended to develop an adaptive ant colony (AAC) algorithm to improve its ability to search for a global solution with fast convergence, and to apply it to solving the apparel ALB problems in one-piece flow productions. The main idea behind the AAC algorithm is that the global pheromone trail should be adjusted adaptively to prevent the algorithm from falling into a local optimum, by utilizing not only the external information but also the historical information of “ants.” In this paper, we will define the ALB problem, establish the mathematical model, explain the AAC algorithm for balancing the one-piece flow of an apparel assembly line, and present the experiments on real-world production data to validate the AAC algorithm.
Definition of the ALB problem
An apparel assembly line usually contains many tasks, each taking a certain time to be accomplished. One or multiple tasks can be allocated to a workstation, and thus an assembly line is made up of several orderly workstations. 37 An index, called the smoothness index (SI), is used to measure the effectiveness of balancing tasks on an assembly line.38–41 One type of ALB problem, denoted as ALB-SI, is to minimize the SI when the number of workstations, the cycle time, or both are given. Solving ALB-SI is particularly useful for apparel production because allocating tasks to workstations properly to smoothen workloads in the one-piece flow is the main concern to many companies.
Many previous ALB solutions did not limit the number of machines or tools at each workstation.
42
In apparel production, however, if operators are required to use several machines in one workstation, they have to move between the machines, making it difficult to handle different tasks within a time constraint. Thus, the machine constraint (up to two machines) will be enforced in this paper. The assumptions associated with the problem definition are listed as follows:
Time for performing each task is known. Precedence relationships between tasks are known. Only after the immediate predecessor task is done, one task can be operated. Machines types are known. Every workstation can use one or two machine types. Total task time in each workstation cannot exceed the cycle time. The definition of cycle time is the theoretical total amount of elapsed time that a workstation spends. The operating coefficient level of an operator is known. The coefficient level consists of four aspects: skill, effort, operating condition and consistency. Each task must be assigned to only one workstation.
Notations and definitions of variables
This paper focuses on an ALB-SI in which the cycle time is given. The objective function that minimizes the SI of the assembly line is formulated as Equation 1, and the constraints of the ALB-SI are given in equations 2–8.
In Equation 1, the objective function is equal to SI, which was defined based on the average difference between the total time of all the tasks in each workstation and the cycle time. Constraints (2) and (3) ensure each task is assigned to only one workstation. Constraint (4) sets the precedence requirements to ensure task i is prior to task j. Constraint (5) enforces the cycle time on all workstations, which means that the total time at all workstations cannot exceed the cycle time C. Constraints (6) and (7) ensure that there are no more than two machines at one workstation. Constraint (8) represents the precedence relationships.
An AC Algorithm
Calculation of feasible solutions
Available task set
An available task set can be created according to the precedence relationships (Equation 8). Only the tasks whose immediate antecedent tasks have been finished can be put into the available task set. According to Equation 8, Pred(i, j) = 1 when task i is the immediate predecessor of task j. Otherwise, Pred(i, j) = 0. Thus, an N × N priority matrix can be set. When task i has been chosen, it is put into a Tabu set, which saves the finished tasks.
Heuristic information
Heuristic information is critical to the AC algorithm, as it directs an ant to find a feasible path (solution). Position weights can be used to construct the heuristic information ηi:
Task probability
The probability of a task to be chosen from an available task set is related to its heuristic information and its pheromone, which has been deposited in previous solutions. The pseudorandom proportional method is used to select a task as follows:
If 0 ≤ q ≤ q1, the ant determines the best task according to Equation 11-① with a probability of q1. If q1 < q < q2, the ant determines the best task according to Equation 11-② with a probability of q2 − q1. If q2 ≤ q ≤ 1, the ant determines the best task according to Equation 11-③ with a probability of 1−q2.
Pheromone update
There are two kinds of pheromones that need to be updated during the AAC: local and global pheromones. During the construction of a solution, after the ant assigns task i to workstation j, the local pheromone between task i and workstation j is updated by the following rule:
The global pheromone is increased with the tasks of the best allocation, and decreased with the tasks that are allocated to other workstations. Therefore, the search can be enhanced. The global pheromone is updated as follows:
Implementation
The AAC for ALB-SI is implemented as follows:
Step 1: Set initialization parameters: α, β, q1, q2, ρ1, ρ2, N, NCmax, and C. NCma x is the maximum number of iterations.
Step 2: Get data of task times, precedence matrix, and the relationship matrix of the machine type and the tasks.
Step 3: Calculate the position weight and heuristic information by equations 9 and 10.
Step 4: Construct a complete assignment for each ant:
Repeat
Initialize pheromone; Start a workstation, and create available task set; According to Equation 11, select a task from available task set, and assign to the workstation; Add the selected task to Tabu list; Update the local pheromone by Equation 12; Move to the next task. If this workstation is full, it needs to set another workstation; Repeat steps 2 to 6 until all the tasks are assigned;
End for
Step 5: Calculate the objective function of each ant’s solution by Equation 1; if the optimal solution is also globally optimal, choose it as the global optimal solution.
Step 6: Update the global pheromone according to equations 13 and 14.
Step 7: Put NC ← NC + 1, if NC >NCmax, go to Step 8. Otherwise, clear all ants’ Tabu list, and go to Step 2.
Step 8: Output optimal solution and exit the algorithm.
Experiment
Data collection
The data used in the experiment was obtained from the production site of an apparel manufacturer in the southeast of China (anonymized for reasons of privacy). The company mainly produces suits, shirts, and T-shirts for both business and casual wear, and has recently started a product customization service for men’s suits. Customers are able to order products that vary from the regular lines in a size, color, and with a logo of their choice. Thus, a customized product could have different-cut pattern pieces going through similar production processes. The company’s production line was a one-piece flow assembly line.
Suit production in the company was divided into four sections: the front body (Section-I), the back body and collar (Section-II), the sleeve (Section-III), and the finishing (Section-IV). The first three sections involves sewing the three main parts of the suit (see Figure 1), and the fourth section involves pressing and the final inspection. Each section had its independent production line. There were a total of 152 manufacturing tasks in the suit production, of which 65 were in Section-I, 43 in Section-II, 33 in Section-III, and 11 in Section-IV. Skirt production was set in an assembly line that included 34 manufacturing tasks. The skirt is illustrated in Figure 2. These data were collected in May 2017.
Suit sections: (a) front body (Section-I), (b) back body and collar (Section-II), and (c) sleeves (Section-III). Illustration of a skirt

In general, the action time for undertaking each task is an effective operation time and can be easily measured. However, there is always floating time that needs to be considered, to include the pre- and post-activities of the task, such as setting and removing a pattern piece on a machine, changing sewing thread, and irregular work movements. This floating time is associated with the skill levels of the operators and the working environment. Therefore, the action time needs to be adjusted to a so-called standard time before performing the assembly line balance.
43
This transformation was done using Equation 15.
In Equation 15, the Coefficient level and the Floating rate are two examples of company-dependent data. For the company in which this research was conducted, the Coefficient level and the Floating rate were set at 0.06 and 0.2 based on its historical production data.
Information in Section-I
Machine type: 0: handwork, 1: sewing machine, 2: steam iron, 3: bartack sewing machine I, 4: bartack sewing machine II, 5: baste stitch machine, 6: pocket machine I, 7: edge sewing machine, 8: air-pressing machine, 9: pocket machine II, 10: edge trimming machine, 11: overlocking machine.
Data analysis
The proposed AAC algorithm was implemented in Matlab 2016. According to Sabuncuoglu et al., 31 Tao et al., 44 and through multiple combinations of experiments, the parameters α, β, q1, q2, ρ1, and ρ2 were set to be 1, 2, 0.2, 0.6, 0.1, and 0.2, respectively. N (the number of tasks) and C (the cycle time) were the input parameters. NCmax was a parameter to represent the maximum number of iterations, and was set to be 60, 600, 6000, 12,000, 24,000, 36,000, 48,000, and 60,000 respectively in this research. For the workstations in the suit production’s three sections and in the skirt production, C was set at 210 s and 190 s based on the company data, respectively. With the limit of the cycle time, the tasks at each workstation should be arranged in a way to maximize worktime, that is, to match the worktime as close to C as possible.
Suit Section-I
Worktime and iterations in AAC optimization of Section-I
NCmax: optimizing iterations; k: workstation number.
Table 4 lists the optimization results of different NCmax. With the increase in iterations, the number of workstations, K, was reduced from 23 to 21, the objective function f(k) was gradually optimized to a minimal value (12.386), and the operation time of all the workstations was closer to the cycle time (210 s). The AAC optimization results indicated that all the operation tasks could be assigned to 21 workstations with an SI of 12.386. The lowest worktime, 184.4 s, among all the workstations occurred at the 16th workstation where the corresponding idle time was 25.6 s. The company used to assign the Section-I tasks across 22 workstations based on the supervisors’ experience. Figure 3 shows the difference in the worktime at each workstation between the AAC and the supervisor’s experience in Section-I. It can be seen that the lowest worktime of all the workstations was 165.4 s at Workstation 13 where idle time was 44.6 s. The AAC optimization not only reduced the total number of workstations from 22 to 21 but also decreased the largest idle time from 44.6 s to 25.6 s.
Section-I ALB solutions by AAC and the supervisor’s experience.
The one-piece flow assembly line for manufacturing Section-I (front body) is illustrated in Figure 4 according to the results of the AAC optimization, in which Wk, Ti and Mj denote workstation k, task i, and machine type j. In Section-I, 65 tasks were distributed across 21 workstations where 21 workers were employed to operate 11 different types of machines. Thirteen workstations housed two types of machine, and eight workstations housed one type of machine. For example, two types of machines, M1: sewing machine and M2: steam iron, were used in the first workstation (W1) to perform three tasks, M1 for T9 (sewing pocket flap) and M2 for T1 (pressing front waist dart) and T8 (pressing pocket facing). In the assembly line, a handwork task can be completed in the machine of the previous or next task.
One-piece flow of Section-I.
Suit Section-II
Worktime and iterations in AAC optimization of Section-II
NCmax: optimizing iterations; k: workstation number.
With the increase of iterations, the number of workstations in Section-II was reduced from 10 to 9, the objective function f(k) was gradually optimized to a minimal value (13.757). The lowest worktime, 183.2 s, occurred at the 7th workstation where the corresponding idle time was 26.8 s. Figure 5 shows the difference in the worktime at each workstation between the AAC and the supervisor’s experience in Section-II. The company used to assign the tasks in Section-II across 10 workstations based on the supervisors’ experience. The lowest worktime of all the workstations was 133.6 s at Workstation 3 where the idle time was 76.4 s. The AAC optimization reduced the total number of workstations from 10 to 9 and decreased the largest idle time from 76.4 s to 26.8 s.
Section-II ALB solutions by AAC and the supervisor’s experience.
Based on the AAC optimization, the one-piece flow assembly line for manufacturing Section-II (back body and collar) was illustrated in Figure 6, in which 43 tasks were distributed across nine workstations where nine workers were employed to operate six different types of machines. Each workstation housed two different machines. The first three workstations had a slightly larger number of tasks, and the total worktimes for W1, W2, and W3 were 198.6 s, 199.7 s, and 203.5 s, respectively. More skillful workers were recommended for undertaking the tasks at these workstations.
One-piece flow of Section-II.
Suit Section-III
The number of tasks in Section-III was 33. Table 6 presents the changes in worktime at each workstation when optimizing iteration (NCmax) was increased. The number of workstations in Section-III was reduced from 12 to 11, the objective function f(k) gradually reached a minimal value (18.125). The lowest worktime (176.8 s) occurred at the 5th workstation where the corresponding idle time was 33.2 s. Figure 7 shows the difference in worktime at each workstation between the AAC and the supervisor’s experience in Section-III. The company used to assign the tasks in Section-III across 12 workstations based on the supervisors’ experience. The lowest worktime of all the workstations was 118.4 s at Workstation 5 where the idle time was 91.6 s. AAC optimization reduced the total number of workstations from 12 to 11, and decreased the largest idle time from 91.6 s to 33.2 s.
Section-III ALB solutions by AAC and the supervisor’s experience. Worktime and iterations in AAC optimization of Section-III NCmax: optimizing iterations; k: workstation number.
The one-piece flow assembly line for manufacturing Section-III (sleeve) is illustrated in Figure 8, in which 33 tasks are assigned to 11 workstations. Workstations 1 to 9 (W1… W9) housed two machines, W11 housed one machine, and one workstation (W11) required handwork. The worktimes at W3, W6, and W11 were 207.3 s, 207.4 s, and 210 s, respectively, which were all close to the cycle time (210 s). The tasks at these workstations were more labor-intensive.
One-piece flow of Section-III.
Skirt
Worktime and iterations in AAC optimization of skirt
NCmax: optimizing iterations; k: workstation number.
After the iterations reached 48,000, the operation time of all the workstations was close to the cycle time (190 s). The number of workstations, K, was reduced from 12 to 11, the minimal value of the objective function f(k) was optimized at 8.781. The lowest worktime, 178 s, appeared at both the 2nd and 9th workstations where the corresponding idle time was 12 s. Figure 9 shows the difference in the worktime at each workstation when the task assignment was based on the AAC result and the supervisor’s experience, respectively. It can be seen that the lowest worktime of all the workstations was 133.5 s at Workstation 10 where the idle time was 56.5 s. The AAC optimization reduced the total number of workstations from 12 to 11, and decreased the largest idle time from 56.5 s to 12 s on the skirt assembly line.
Skrit ALB solutions by AAC and supervisor’s experience.
In this one-piece flow assembly line, all the operation tasks could be assigned to 11 workstations with an SI being 8.781, as seen in Figure 10. Workstations 1 to 7 (W1… W7) and 10 (W10) housed two machines, the rest housed one machine. The worktimes at all the workstations were close to the cycle time (190 s), especially at workstations 5 (188.2 s) and 10 (188.3 s). More skillful workers would be needed at these two workstations due to the shorter idle times.
One-piece flow of skirt production.
Results and discussion
ANOVA between ACC optimized data and factory historical data
SS: sum of squared error; MS: mean squared error; df: degree of freedom; F: F-value; p: p-value.
It was noted that the p-values for these significance tests were equal to 0.012 in Section-I, 0.049 in Section-II, and 0.006 for the skirt, which were below the significance level α = 0.05. Therefore, statistically there was a significant difference between the results from the AAC optimization and the supervisor’s experience in the three assembly lines. The p-value was 0.059 in Section-III, which was above the α level, thus, there was no significant difference between these two sets of data.
F, K, SI, E in each assembly line
F: the load rate; K: the number of workstations; SI: the smoothness index; E: the assembly line arrangement efficiency.
The advantage of the AAC data over the factory historical data is shown in Table 9. The AAC optimization increased the lowest load rate of workstation from 78.8% to 87.8% in Section-I, from 63.6% to 87.2% in Section-II, from 56.3% to 84.2% in Section-III, and from 70.3% to 93.7% in skirt. The reduction in the number of workstations was 4.5% in Section-I, 10.0% in Section-II, 8.3% in Section-III and 8.3% in skirt. The SI was reduced from 23.799 to 12.386 in Section-I, from 40.900 to 13.757 in Section-II, from 38.984 to 18.125 in Section-III, and from 27.548 to 8.781 in skirt. The assembly line arrangement efficiency was also improved from 91.4% to 95.2% in Section-I, from 86.0% to 95.7% in Section-II, from 85.2% to 93.0% in Section-III, and from 87.9% to 95.9% in skirt. These results demonstrate that the solutions from the AAC algorithm were quite effective.
The results of the AAC algorithm provided a basis for the company to redesign the assembly lines. By implementing the AAC solutions at the company, the supervisors can consider the operation tasks of different pieces in parallel, significantly improving the arrangement efficiency. Feedback from the factory was also constructive for improving the AAC. For example, if the number of tasks in a workstation was greater than six, more adaptation from workers performing different tasks was required, prolonging the theoretical operation time of the workstation. In the future, we will continue to advance the AAC to improve its operability by including more labor factors, such as the change time between different tasks.
Conclusions
In this paper, an AAC algorithm was presented to balance the one-piece flow assembly line of apparel production by rearranging mandatory tasks between workstations to maximize the worktime of each workstation. The AAC algorithm included modifications for estimating heuristic information, task probability, and pheromone update, which made it robust in searching for a global optimal solution and time-efficient in the optimizing convergence. Compared with using human experience to manually arrange tasks for suit and skirt production, AAC helped the company to reduce the number of workstations and cut idle time at most of them. The AAC should be suitable for solving other kinds of ALB problems.
Footnotes
Acknowledgement
The authors are grateful to the company who provided the production data and insights for this research.
Declaration of conflicting interests
The authors declare no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors received no financial support for the research, authorship and/or publication of this article.
