Next Article in Journal
Comparative Study of Physiological Changes in Turbot Scophthalmus maximus in Different Living Conditions
Next Article in Special Issue
CONCERTS: Coverage Competency-Based Target Search for Heterogeneous Robot Teams
Previous Article in Journal
A Novel Tri-Layer Cellulose-Based Membrane for the Capture and Analysis of Mainstream Smoke of Tobacco
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhanced Hybrid Ant Colony Optimization for Machining Line Balancing Problem with Compound and Complex Constraints

1
Rail Transit Department, Zhejiang Institute of Communications, Hangzhou 311112, China
2
School of Mechanical Engineering, Southwest Jiaotong University, Chengdu 610031, China
3
Civil Aviation Department, Zhejiang Institute of Communications, Hangzhou 311112, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(9), 4200; https://doi.org/10.3390/app12094200
Submission received: 10 March 2022 / Revised: 14 April 2022 / Accepted: 18 April 2022 / Published: 21 April 2022
(This article belongs to the Special Issue Multi-Robot Systems and Their Applications)

Abstract

:
Targeted at the machining production line balancing problem, based on the precedence constraint relation of the present machining task, this article suggests adding practical constraints such as advanced station preparations, post-auxiliary tasks, and tool changing. The study introduced ‘tight’ and ’or’ constraints to bring the problem definition closer to the actual situation. For this problem, a mixed-integer programming model was constructed in this study. The model redefines the machining and auxiliary processing tasks and adds new time constraints to the station. The model considers two optimisation objectives: the number of stations and the machining line balancing rate. In view of the complexity of the problem, heuristic task set filtering mechanisms were designed and added to the ant colony optimisation, to satisfy the above compound and complex constraints. The processing task chain was constructed using the rules of ant colony pheromone accumulation and a random search mechanism. The study designed a Gantt chart generation module to improve the usability and visibility of the program. Ultimately, through an actual case study of a complex box part including 73 processing elements and realising the design and planning of machining production lines that meet complex constraints by substituting algorithms, the balance rates of several groups of optimisation schemes were higher than 90%, which showed that the algorithm is effective and has a good economy and practicability.

1. Introduction

In the mass production customization stage of manufacturing products, the preparation process of process technology and equipment occupies a key position, which will directly affect the effective play of productivity [1]. Therefore, processing technology design is a key step in the machinery manufacturing industry, and its quality of processing technology design directly affects product quality and processing efficiency. Process design is limited by the manufacturing resources and abstract conditions in the product’s own design; therefore, it is also a systematic project. Hence, Xu et al. [2] considered computer-aided process planning (CAPP) to be a link between computer-aided design (CAD) and computer-aided manufacturing (CAM), and it is also an important part of the current computer-integrated manufacturing systems. However, the product modularization and intensive design concept of today’s products lead to the diversification of the product’s own processing elements and constraints, and the demand for production equipment and processing conditions also presents a trend of diversification. Thus, CAPP is a very complex project [3]. Therefore, Luki et al. [4] believe that CAPP is the weakest link in today’s computer-integrated manufacturing system, and it is also an area that needs further study.
As mentioned by Denkena et al. [5], the detailed steps of the process planning process include receiving and analysing design drawings, selecting raw materials of suitable shapes, selecting the process technology, deciding the process sequence and flow, and preparing processing plans. It concludes equipment requirements, flow sequence of products in the equipment, cutters and tools, processing step design, processing parameter selection, measuring tools and tooling design, tool path planning, process cost, and time analysis. Finally, obtaining an executable CNC program, process cards, operating procedures, and other process documents. Therefore, the goal of CAPP is to transform the product from the state of design drawings into the final physical product, with reasonable efficiency and quality.
Among the above-mentioned process activities, sorting the processing tasks is the core that determines the quality and efficiency of product processing. It is also the most complex and difficult task in the entire CAPP process, which meets all the constraints and enables the smooth processing of the product. This work can be divided into three steps: (1) According to the design drawing of the product, analyse all its processing tasks and obtain the required processing equipment, tools, processing orientation, processing accuracy, and other information according to the processing tasks. (2) Analyse the mutual constraints between all processing tasks of the product, sort the processing tasks to form an effective processing task chain, and optimise task sorting to make the overall processing time the shortest or the processing efficiency the best. (3) On the basis of forming an effective processing task chain, the tasks of the processing task chain are divided into workstations in order, such that the processing time between the workstations is as balanced as possible. Step three is the machining production line balancing problem, which is a secondary optimisation based on the ordering of processing tasks by step two, and the tasks are equally distributed in each workstation. This process is carried out so that the products can be produced in the minimum cycle time between the workstations, productivity can be improved, and the idle time of production equipment can be reduced, thereby improving equipment utilisation. Therefore, the design of the machining line in the mass flow production mode has to focus on improving line balance while ensuring the machining line meets diverse machining process constraints and complicated process requirements in terms of part dimensions. Consequently, the machining line balancing problem represents a crucial research direction regarding the manufacturing system in that of its significance to the improvement of productivity and product quality.
The solution of the second and third steps of the problem has been considered NP-hard by many scholars, such as Duo et al. [6], Falih and Shammari [7], Petrovi’c et al. [8], Gao et al. [9], Huang et al. [10], and Dolgui [11]. At the same time, bionics and heuristic algorithms have been proven to solve such problems well, and they can still consider the solution efficiency and quality when the problem scale increases exponentially. Many scholars have conducted research on the sorting of processing tasks mentioned in Step two, and good results have been achieved. It is further challenging to solve the machining production line balancing problem, the number of scholars who have studied it being relatively few.

2. Related Work

2.1. Related Work for Operation Sequencing Problem in the Recent Five Years

Petrovic et al. [9] used an AND/OR network to define the flexible machining task planning and sequencing problem, taking the shortest machining time of the overall machining chain as the optimisation goal, and using the particle swarm algorithm to solve it. Hu et al. [12] introduced clustering constraints to bring the problem closer to the actual situation and proposed an ant colony optimisation to solve it. Huang et al. [10] proposed a hybrid genetic algorithm combined with a simulated annealing mechanism to solve this problem. To ensure the feasibility of the solution, sequence constraints between the tasks were incorporated into the algorithm. Su et al. [13] proposed a mixed-integer programming model and integrated an improved selection crossover strategy into a genetic algorithm to ensure the feasibility of the solution obtained after the genetic operation, thus improving the efficiency of the genetic algorithm. Dou et al. [6] proposed a discrete particle swarm optimisation algorithm, based on generating feasible task sequences, and used a crossover mechanism to expand the feasible solution search interval. Multiple mutation mechanisms are used to increase the diversity of feasible solutions, and adaptive mutation probability is used to increase the detection ability. Liu et al. [14] introduced ‘or’ type network nodes, redefined the mixed-integer programming model for this problem, and solved it using a mixed evolutionary algorithm based on a genetic algorithm and simulated annealing algorithm. An adaptive evolutionary screening mechanism was used to prevent the algorithm from falling into the local optima. Gao et al. [9] proposed an intelligent water drop algorithm to solve the conventional process-chain planning problem. Falih and Shammari [7] proposed a genetic algorithm based on feasible sequence rules, which limited the search feasible region for the genetic algorithm through feasible sequence rules, thereby improving the search efficiency. The detection ability of the algorithm was improved by the hybrid crossover operator to prevent it from falling into a local optimum.
Through the above research, over the past five years, it was found that the current task sequencing problem for machining task chains is limited to conventional task priority constraints, machining orientation constraints, machining equipment, and tool constraints. However, the inspection of semi-finished products in each clamping process, the cleaning of processing tooling, the consideration of workpiece clamping time, the deburring of semi-finished products after each machine tool process, and the routine size inspection process are not considered. These are necessary tasks that occur at all times on the daily machining production line and are indispensable auxiliary tasks for processing. Neglecting these generally necessary auxiliary tasks will limit the application of optimisation results.

2.2. Related Work for Machining Line Balancing Problem

At present, flexible production lines based on advanced manufacturing equipment, such as machining centres, turning–milling combinations, and multi-axis motion, can be competent for the processing technology of most complex mechanical parts. However, on a production line consisting of multiple flexible machines and equipment, time-consuming bottlenecks often occur. The machine or equipment that undertakes the bottleneck process determines the rhythm of the entire production line and affects the production capacity of advanced flexible production lines [15]. Balancing the processing tasks assigned to parts among multiple machines and equipment such that the number of processing tasks allocated to each machine or equipment is similar eliminates the bottleneck process, which has always been one of the challenges faced by the manufacturing industry. In this study, a typical complex box part containing 73 machining tasks was used to evaluate the process–balance distribution of the machining line.
Production lines are designed for mass production, the assembly, disassembly, or processing of products. Manufacturing production lines can be divided into assembly and disassembly, machining, and petrochemical metallurgical process lines. Many studies have been conducted on the assembly line/disassembly line balancing problem, and intelligent optimisation algorithms have been applied to the assembly line and disassembly line balancing problem, achieving good results [16,17,18,19].
The optimisation goal of the machining line balancing problem (TLBP) is to balance the processing time of each station in order to reduce equipment idle time and minimise the production line cycle time [20], the number of stations [21,22], and the production line cost [10]. Most studies on TLBPs have focused on the assumption that parts are machined by single or multi-spindle machines [11,23,24]. Dolgui et al. [23] proposed the distribution of the machining tasks of parts to different workstations in a subset. Essafi, Delorme, and Dolgui [25,26] studied the procedure to distribute all manufacturing process tasks of a part equally among various workstations and to reduce the total number of processing equipment. Osman et al. [27] considered the processing line balance objective as the minimisation of non-productive time and proposed ant colony optimisation to solve it. Borisovsky et al. [28] sought to minimise the cost of the TLBP within the feasible solution constraints. Zhang et al. [29] regarded the part clamping and positioning scheme as the clustering constraint of the machining elements, considered the machining auxiliary elements such as tool change and machining direction, and used ant colony optimisation to optimise and improve. Li et al. [30] proposed an improved genetic algorithm for the production line balance problem of mixed-flow parts in part families. Liu et al. [31] used an improved genetic algorithm to study the multi-objective optimisation balance problem of part machining lines. Pavel Borisovsky et al. [32] proposed exclusion and inclusion constraints for the uncertainty TLBP and used a Heuristic method to solve this problem. Cong He et al. [33] also studied the uncertainty TLBP, but the ‘and’ and ‘or’ constraints are not considered. Pavel Borisovsky [34] studied this problem with parallel machines and a simple but effective genetic algorithm is proposed for solving this problem. Kłosowski et al. [35] studied this problem by the criteria of minimisation of machining times and costs and developed and compared two models of analogous manufacturing systems. It can be seen from the above literature research that the current research trend is to consider more complex constraints or a probability model based on the random processing time of tasks.
Existing methods use positioning and clamping as the clustering criterion and the machining constraint matrix as the machining task sequence constraint, and use ant colony optimisation or a genetic algorithm to solve the machining line balance problem. However, from the perspective of setting constraints, these two constraints cannot be considered comprehensively; only auxiliary elements such as tool change and machining direction are considered, and the addition of ‘or’ constraints is not considered to improve the task constraint matrix [14]. Moreover, the auxiliary processing time of each station (such as incoming inspection, deburring, tool cleaning, and dimensional inspection) is not considered. Therefore, the application of the optimisation results is limited.
This paper also considered most of the constraints reported in the existing literature, such as task machining priority, tool change, machining orientation, tightness, and ‘or’ constraints. At the same time, additional constraints were added to each process, such as incoming material inspection, the deburring of semi-finished products, the manual positional dimensional inspection using a position gauge, and the routine inspection of dimensions. The contribution of this study is to consider most of the complex constraints and influencing factors mentioned above and propose a mathematical model that is closer to the actual production situation. Thus, a new branch has been opened up on the basis of the original research. But fundamentally, this problem also belongs to the NP-type problem in combinatorial optimization, and compared with the existing machining line balance problem, it contains more constraints. To address various complex constraints, ant colony optimisation was proposed based on a feasible task selection strategy. Finally, a complex box product was used as an example to verify the practicability of the algorithm.

3. Definition of Process Constraints for the Balancing Machining Line Problem

The balancing problem of machining production line has many similarities with the balancing problem of unilateral assembly line. The difference lies in the consideration of special properties that need to be added for more tasks. For example, tools, tooling, processing orientation, machine type, tool changing process, auxiliary processes, etc., are all factors that cannot be ignored for processing tasks. Therefore, when studying this problem, it is necessary to first briefly describe the problem through a small-scale case, so as to facilitate the subsequent discussion.

3.1. Simple Bracket Product Processing Case of Machining Production Line (TLBP) with Advanced Station Preparation and Post-Auxiliary Tasks

To facilitate the understanding of the additional constraints added in this study, a processing case of a simple part was used for analysis and description. Figure 1 shows a simple part with eight machining elements. There are three datum elements: machining element 1 is a plane (datum A), machining element 2 is a plane (datum B), and machining element 3 is a hole (datum C). Machining elements 4 and 5 were placed on two sides. Processing element 6 is a blind hole located on processing element 5. Processing element 7 is a step located on processing element 5, and processing element 8 is a through hole.
Figure 2 shows a directed graph of the sequence constraints between all machining tasks of the part shown in Figure 1. The sequence constraints between two tasks use solid arrows, and the ‘or’ type constraints between two tasks use dashed arrows with tight constraints indicated by a dashed box. For example, tasks 1 and 2 are normal sequence relationship constraints. Tasks 8 and 4 as well as 8 and 5 are ‘or’ type constraints. Tasks 6 and 8 are tight constraints. The tasks with tight constraints should be placed in the same station. The tasks with ‘or’ type constraints can be processed when either of its immediate priority task has been processed. The tasks with normal precedence constraints can be processed when all of its immediate priority task has been processed. The meanings of all the variables in the Figure 2 are listed in Table 1. All of the tasks in Figure 2 should be processed by the machining line.
Table 1 lists the machining content, machining time, tool, and equipment type for all machining tasks. The machining operation direction of the machining task and the surface or datum to which the machining task belongs are listed in this table.
Figure 3 shows a simple schematic of the processing production line for a part. The production line consisted of five stations, each of which contained multiple processing tasks. After the parts to be processed are positioned and clamped on the machine tool of the station, the processing tasks of all processing components in the station are completed, and the parts are then transferred to the subsequent stations until all the processing contents are completed. All machining tasks at the same station should have the same machining direction constraints on the part. The sum of the working times of all tasks at the same workstation should be less than the cycle time. In the figure, pz and pd represent the first and last auxiliary processing tasks of each non-end station, respectively, and pf represents the tail auxiliary processing tasks of the last station.
Figure 4 shows a Gantt chart that satisfies the task-scheduling scheme shown in Figure 2 and Figure 3. Because tasks 2 and 3 use different machining tools, a tool change time must be inserted between the two tasks that also occur in tasks 6 and 8. In addition, the operation preparation time at the beginning of each station was set, and the necessary auxiliary time, such as chip removal and inspection, was added after all tasks of each station were completed. To simplify the problem, this study made the assumption that the preparation time (set-up time) is equal at each machine for each operation. It suggests that operations with times t1, t2, t4, t5, and t6 are realized in the same start time.

3.2. Mathematical Model for Balancing Problem of Machining Production Line (TLBP) with Advanced Station Preparation and Post-Auxiliary Tasks

In the machining process, multiple steps such as roughing, semi-finishing, and finishing are often required to complete the processing of one size. To simplify the difficulty in solving the problem, the continuous processing steps of a unit of a certain size can be regarded as integrated into a working step. At the same time, this assumption is also consistent with the actual work step combination, such as drilling and reaming combination [36], drilling and boring combination, drilling and tapping combination, and rough and fine milling surface combination. This assumption is also in line with the current situation of the wide application of composite tools such as composite taps and drill reamers. On this basis, the process sequence constraint relationship matrix [31] between each processing element can be proposed as
A = [ a 11 a 12 a 1 n a 21 a 22 a 2 n       a n 1 a n 2 a n n ]
If dimension element j is allowed to be processed only after dimension element i is processed, then aij = 1; if the dimension element j wants to be allowed to be processed, it only needs to complete the processing of either dimension element i or dimension element k, then aij = akj = 2, that is called ‘or’ type constraint [14]; if either i or k is processed, the sequence constraint relationship between the other factor and j becomes invalid and can be set to −1; if dimension element j must be processed immediately after the processing of dimension element i is completed, then aij = −2, that is, i and j are tight constraints; and if there is no sequential constraint relation between dimension element i and dimension element j, then aij = 0; In summary, the possible values of aij are as follows:
If processing task j is only allowed to be arranged after the processing of task i is completed, then aij = 1. If the premise of allowing the processing of task j is only if either task i or k is processed first, then aij = akj = 2, which is called ‘or’ type constraint [14]; when any one of the tasks i or k has completed the processing, the sequence constraint relationship between the other remaining task and task j is invalid, which can be set to −1; if task j must be processed immediately after task i is processed, then aij = −2, that is, i and j are closely constrained; and if there is no sequence constraint between task i and task j, aij = 0. In summary, the possible values of aij are as follows:
a i j = ( 2 , 1 ,   0 ,   1 ,   2 )
Compared with literature [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18], the addition of ‘or’ type constraints improves the order constraint relation matrix and provides more possibilities for task scheduling. Compared to the literature [14], tight constraints were added. When arranging a machining surface and two positioning pins or other multi-positioning datum elements, they are set as tight constraints, such that the machining tasks with the function of evaluation criteria are preferentially arranged in the same station, and the machining accuracy of the evaluation criteria is improved. The processing tasks and evaluation benchmarks that require high mutual positional accuracy can also be arranged in the same station to ensure that the dimensional accuracy requirements are satisfied. The processing positioning benchmark and dimension evaluation benchmark element take precedence over the processing task arrangement method of the dimension element being evaluated and are more in line with the process arrangement principle. Simultaneously, auxiliary tasks such as pre-treatment and deburring treatment processes, as well as size and appearance of inspection tasks, are added to each station, which is more in line with the actual situation of the machining production line.
The mathematical model of the production line balancing problem (TLBP) is more complex than that of the unilateral assembly line balancing problem (ALBP) [37,38,39]. In addition to the task priority relationship constraints and cycle time constraints similar to the unilateral production line balancing problem, the mathematical model for TLBP should also meet the requirement constraints of processing equipment types, tool type demand constraints, and processing direction constraints; thus, the constraints are more complex. At the same time, this study ∈ also considered the preliminary preparation tasks, later auxiliary tasks, and tool change time of each station:
S x S y = { p z , p d }  
S x S m = S y S m = { p z }
Q x Q y = Φ
numel ( Q k ) = numel ( S k ) 2
k = 1 m numel ( Q k ) = n
T k C ,   T k = i S k t i + u k × p ht + ( 1 e k m ) × p dt + e k m × p ft + p zt
i , j Q k , o i = o j ;
i , j Q k , E i = E j ;
u k = v < numel ( Q k ) | 1 e | g q v , k g q v + 1 , k | | 1 / M
  i Q k , j Q z if a i j = 1 , then k z
  i Q k , j Q z if a i j = 2 , then k z
  i Q k , j Q z if a i j = 2 , then k z
Q k = { i | i Q k } , S k =   Q k { p zt , ( 1 e k m ) × p dt , e k m × p ft }
Ω = { 1 , 2 n }
L B = ( k m T k k m ( u k × p ht ) ) ÷ ( C × m )
x, y, k, z = 1,2 …, m; x < y < m
Sx, Sy, Sk, Sz: = Station x, Station y, Station k, and Station z
Φ: Null set
n: Number of tasks
m: Number of stations
M: A very big integer
u: The number of times the cutters and tools were switched
p h : Cutter/tool change procedure
p z : Advanced station preparation task
p d : Post-auxiliary tasks, such as inspection and deburring
p f : Post-auxiliary tasks, such as final inspection and deburring
p ht : Average cutter/tool change time
p zt : Average preparation time
p dt : Average chip removal and inspection time for stations 1 to m − 1
p ft : Average chip removal and final inspection time for final station m
Q k : Machining tasks at station k
numel ( Q k ) : number of machining tasks at station k
numel ( S k ) : number of all tasks at station k
u k : Number of cutter/tool changes at station k
q v , k : Machining task at workstation k with sequence number v
v: Sequence number for the machining task in workstation k
E i : Equipment requirements for task i
o i : Machining direction requirement for task i
g i : Tool/cutter requirement for task i
t i : Machining time for task i
e k m : The Control variable whether to turn on the final station
L B : Line balance rate
Equation (3) indicates that workstations x and y have only two identical tasks (both x and y are not the end workstations). Equation (4) indicates that there is only one task between workstations x and m and between workstations y and m (both x and y are not the last workstation, and m is the last workstation). Equation (5) indicates that the processing task can only be assigned to a certain station and cannot be repeatedly assigned to multiple stations. Equation (6) indicates that each station had two auxiliary tasks. It can be seen from Equation (7) that all processing tasks should belong to a certain station and that no omission is allowed. It can be seen from Formula (8) that the cumulative processing time of each station element ( i S k t i ), the cumulative transformation time of tool ( u k × p h ), and the sum of the preparatory and post-auxiliary task times should be less than the time C. It can be seen from Equation (9) that all processing tasks in the same station should have the same operation direction. Equation (10) indicates that all processing tasks at the same station should have the same equipment requirements. Equation (11) is the number of tool changes and tool changes at a certain station. Equation (12) shows the priority-order constraint in the task assignment process. Equation (13) represents an ‘or’ Equation (14) represents a tight constraint. Equation (15) represents the set of all tasks belonging to workstation k. Equation (16) represents the set of all tasks. Equation (17) indicates that the LB cannot include the cumulative transformation time of tool.

4. Hybrid Ant Colony Optimization for Optimization of the Machining Line Balancing Problem

4.1. Heuristic Task Set Filtering Module for Hybrid Ant Colony Optimization

To meet the special case of ‘or’ type constraints and tight constraints in the solution construction process, and, considering the increase in the total work time of changing tools and preparing work steps, the task of ant colony optimisation searching in the selectable set should satisfy all the above constraint conditions. Therefore, in this study, a temporal constraint set generation module, a tool constraint set generation module, and a tight constraint set generation module were used as heuristic rules to satisfy multiple composite constraints. The overall algorithm flowchart of the heuristic task-set generation module is shown in Figure 5.

4.2. Introduction of Heuristic Task Set Filtering Module for Hybrid Ant Colony Optimization

When the element sequence is formed by ant colony optimisation, the candidate element set is generated in step s, and then the elements are selected by the heuristic ant colony hybrid search rule until the selection of n elements is completed, forming a complete element processing chain.
(1)
Time constraint rules: comprehensively consider ‘or’ constraint, as well as conventional precedence relationship constraint and cycle time constraint. The process of determining whether a certain element j can be added to the initial set of optional elements is as follows:
(1.1)
Set the current workstation to k, set Qj = {i| aij = 1 or aij = 2 or aij = −2} and establish Qj h = 1 k S h . This indicates that all the pre-ordering tasks of element j have been assigned, and then proceed to the next step as follows.
(1.2)
Assume that the scheduled task completion time of the current workstation k is ttemp. Then, the following candidate task set Ds can be preliminarily screened according to the beat time C constraint by Ds = {j| ttemp + tjC}.
(2)
Tool constraint rules: Consider the difference between the turret tool of the current workstation k and the tool used by task j to be assigned to consider the tool change time and further filter the time constraint set Ds in (1):
(2.1)
If j is the first task of the current workstation, the station preparation time p z should be considered.
(2.2)
If j is not the first task of the current workstation, check whether the tool used in task j is the same as the tool at the end of the current workstation; otherwise, consider the tool change time.
(2.3)
Based on the above conditions, the set Ts conforming to the tool constraints is obtained.
(3)
Based on (1) and (2), compact constraint conditions are further considered to generate the compact constraint set js, and the heuristic ant colony search rule is used to select the processing elements.
Through this heuristic task set filtering module, a feasible set of optional tasks can be provided when the task processing sequence is constructed, and then the ant colony algorithm is used to randomly select tasks to form a feasible solution. Similarly, this heuristic task set filtering module can also be combined with the standard particle swarm algorithm used in [40] to solve the research problem of this paper. Therefore, it can be used as a comparison of the enhanced hybrid ant colony algorithm in this paper.

4.3. Heuristic Ant Colony Search Mechanism

The ant colony optimization (ACO) algorithm is abstracted from the communication behaviours of ants, which are communicated by pheromones, to determine the best path from the starting point to the destination [37,41,42]. The ant colony optimisation used in this problem selects the task from the task set in each step, when the task set is established by the heuristic rules introduced in Section 4.1.
To satisfy the tightness constraint, it is introduced into the ant colony search rule. Therefore, a hybrid heuristic search mechanism was formed by combining tightly constrained priority, random search, and heuristic task information. The mechanism is as follows:
s = {   I 1 : t i g h t   c o n s t r a i n t   p r i o r i t y   j J s   I 2 :   P j s = ( h = 1 s τ j h ) α ( w j ) β j T s ( h = 1 s τ j h ) α ( w j ) β   0 r r 1 I 3 :   r a d o m   s e a r c h   j T s   r 1 < r 1
s: task sequence number
P j s : the probability that task j will be selected at the position of task sequence s
r: random number between (0, 1)
r1: between (0, 1), rule switchover threshold from I2 to I3
α: parameters that determine pheromone intensity and the relative importance of heuristic information
τ j h h h h h h h : pheromone of task j at sequence place h
h = 1 s τ j h : cumulative value of information elements of element j at sequence positions from 1 to s
wj: heuristic information of task j, wj = 1/tj, the ant colony search will be affected by the processing time of tasks, and tasks with short processing times will more likely be selected.
The improved ant colony optimisation integrates I1, I2, and I3 rules, which are referred to as ACOPRO in this study. The common ant colony optimisation only integrates the I1 and I2 rules, which are represented by ACO in the following paper. The improved ant colony optimisation is more likely to prevent the algorithm from falling into local optimisation and has a better global search ability because of the introduction of random search rules I3.

4.4. Pseudocode for Ant Colony Optimization and Gantt Diagram Display Module

An iterative search is completed by the ant colony optimisation, and the processing task chain is constructed according to the constraints of the sequence relationship between the processing tasks, or the constraints of the type, tight constraints, and processing orientation; the formation of the task set of each station is completed. In the process of task selection, it is also necessary to simultaneously consider the tool requirements of the task, machining orientation, other practical conditions, and to integrate auxiliary machining tasks into the beginning and end of each station. The task selection process for each position of the task chain was completed using the comprehensive information search rule of the ant colony. In the iterative process, the ant colony pheromone was updated. Thereafter, through the Gantt chart display module, the information contained in the optimal solution is visualised, which is convenient for process planners to intuitively understand the overall situation of the solution. The pseudo-code of the overall algorithm is as follows:
No.Details for hybrid ant colony search algorithm and Gantt chart display module
1Read task sequencing constraint data from an Excel file
2Read the information of processing position, cutting tools, and processing time of task from the Excel file
3Enter the number of iterations V and the number of ants H, and set the initial iterative control variable v (initial value is 1)
4Start the search process for generation v and set h to 1
5Start the search for the h ant in generation v, set s = 1, m = 0
6Start a new station, m = m + 1.
7Build a task set that satisfies the cycle time constraint
8According to formula 5, filter from the set of cycle time constraint tasks to form a set that satisfies the sequential constraint relationship
9Filter from the set of successive constraints to form a set that satisfies the constraints of the close relationship
10Filter from the set of close relationship constraints to form a set that satisfies the tool relationship constraints
11Enter the ant colony comprehensive task selection process
12If the tight constraint set is not empty, go to the next step. If it is empty, go to step 17
13According to Formula 11, priority is given to the tasks that satisfy the tight constraints
14According to the selection result of step 13, analyse whether this task is consistent with the current tool information of the current station, and then proceed to the next step
15Update the accumulated processing time information of the current station, the current tool information of the current station, and then proceed to the next step
16Update the task chain position s = s +1, if s is less than or equal to n, return to step 7. If s = n + 1, go to step 22
17If the tool or time constraint set is not empty, go to the next step. If they are all empty, go to step 6
18According to Formula 11, generate random number r, and enter the next step
19If r is less than or equal to r1, select the task according to rule I2. If r is greater than r1, select the task according to rule I3, and go to the next step
20According to the selection result in step 19, update the accumulated processing time information of the current station, the current tool information of the current station, and then proceed to the next step
21Update the position of task chain s = s + 1, and if s is less than n, return to step 7. If s = n + 1, go to the next step
22h = h + 1, if h is less than or equal to the set number of ants H, return to step 5; otherwise, go to the next step
23Update the pheromone of all ants of the current generation v and go to the next step
24v = v + 1, if the current iteration number v is less than or equal to V, return to step 4; otherwise, go to the next step
25Ant colony optimization iteration is completed
26Enter the Gantt chart display module
27Read the optimal solution of the task scheduling sequence and the task information
28Read the station arrangement information cell of the optimal solution, the number of stations m, and the cycle time C
29Enter the Gantt chart display algorithm flow, and set the initial iteration value g = 1
30Open the display of station g, and proceed to the next step
31Read the station arrangement information cell of station g
32Read the task number in order d from the cell, the number of tasks in cell D, and set the task display iteration variable d; the initial value of d = 1
33Whether this task is the first task of the current station, if it meets the conditions, go to the next step; otherwise, go to step 35
34Set the task display colour to blue, display the task progress bar according to the task information, and display the start time and end time. Go to Step 37
35Judge whether the tool information used in this task and the previous task is the same, if the display colour is red. If not, go to the next step
36The task progress bar is displayed based on the task information, and the start time and end time are displayed. Go to the next step
37d = d + 1, if d is less than or equal to D, return step 32; otherwise, go to the next step
38g = g + 1, if g is less than or equal to the number of stations m, return step 30; otherwise, go to the next step
39Gantt chart display algorithm is finished, and the program is finished

5. Case of Balance Arrangement of a Box Machining Process Production Line

5.1. Evaluation Datum Analysis of the Box Body

Figure 6 shows the key evaluation criteria for cabinets. Among them, A, D, and E were used as evaluation standards for B and G, and B and G were used as evaluation standards for C and F. The A, D, and E benchmarks are the most important evaluation benchmarks; therefore, they were arranged in the first process. To ensure mutual positional accuracy between the datum elements, D and E should be set as tight constraints (put D and E in the same station for processing, only one clamping and positioning is required; thus, the machining accuracy of the machine tool itself can guaranteed the mutual positional accuracy between D and E). Similarly, the B and G data must be machined in the same operation, setting them as tight constraints. Because the C and F benchmarks are the evaluation benchmarks for other machining tasks on the plane where they are located, the same applies to the C and F benchmarks.

5.2. Analysis of Box Processing Process

The box in Figure 6 contains 73 machining elements belonging to the top, left, and right sides, as well as the front and back of the part. Because core evaluation criteria A, D, and E are located on the top surface, the processing of A, D, and E is placed in the first station when arranging the process. The B and G datum planes were located in front of the part, and the A, D, and E datum planes were used as evaluation elements. Therefore, the A, D, and E datum planes can be used as positioning datum planes to process the B and G datum planes. Similarly, C and F data can be processed by either A, B, E, or B, G data as the positioning data.
From the above, owing to the constraints of the processing sequence between the benchmarks, the processing tasks that are grouped in the same processing orientation as the above benchmarks naturally inherit the sequence constraints between the benchmarks. All the machined hole elements located on the machined surface can be simultaneously grouped into the subsequent machining tasks of the machined surface. According to the above two principles, the 73 processed elements of this box part can be compiled into a processing sequence constraint-directed graph. Tasks 74 and 75 are deburring and inspection tasks at the end of the process; therefore, they are not included in the figure. For ease of understanding, the overall processing sequence constraint diagram is shown in Figure 7 and Figure 8. The feature details for all 73 tasks can be found in Appendix A (Figure A1, Figure A2, Figure A3, Figure A4 and Figure A5) and Appendix B (Table A1).

6. Algorithm Verification and Instance Application

If the annual output is 13,000–15,000 units (working week: 50 weeks, 12 shifts per week, 8 h per shift), the weekly production capacity target is 260–300 sets; thus, the production capacity per shift is 22–25 sets. The cycle time (C) was pre-set as 19–22 min. The ant colony optimisation was used to calculate this TLBP problem. The minimum of m (the calculated number of stations, unit: piece) and the maximum of LB (line balance rates are the optimisation objectives).

6.1. Algorithm Verification by Cycle Time (1170 s)

The calculation performances of ACOPRO and ACO were compared with the pre-set cycle time of 1170 s. The common parameters of ACOPRO and ACO were set as α = 1 and β = 2, respectively. The number of ants was set to 10, and the number of iterations was set to 20. ACOPRO’s unique random search control threshold r1 was set as 0.5 and 0.9, corresponding to ACOpor1 and ACOpro2, respectively. The cycle time in the above example was set to 1170 s, and ACO, ACOpro1, and ACOpro2 were substituted 20 times. The average distributions of the obtained optimisation results are shown in Figure 9 and Figure 10.
As shown in Figure 9 and Figure 10, when the random search control threshold r1 of ACOPRO is set to 0.5, the mean value of the optimisation results is worse than that of ACO. When r1 was set to 0.9, the mean value of the optimisation results was better than that of ACO. It can be seen that excessive participation in the random search mechanism will have the opposite effect, which will disrupt the convergence trend of the ant colony optimisation itself. Therefore, ACOpro2 with an r1 value of 0.9 was used as an optimisation method for a detailed analysis in the case processing example below. At the same time, ACOpro2 also shows its superiority in comparison with the standard particle swarm algorithm with the addition of the heuristic task set filtering module in this paper on the basis of literature [40].

6.2. Verification with Box-Part Examples by ACO-pro2

For this TLBP problem, the pre-set cycle time was refined into an arithmetic sequence with a step difference of 10 s, and ant colony optimisation was used for the calculation. The number of ants was set to 10, and the arithmetic algebra was set to 100. The calculation results are listed in Table 2. It can be observed from Table 2 that when the cycle time was 1170 s, the balance rate of the overall processing line was the highest, reaching 95.23%. All the solutions in Table 2 can meet the production capacity requirements, but when the cycle time is shortened to 1160 s or 1150 s, the single-shift production capacity will only increase by 0.3 to 0.4 units and the balance rate of the processing line will drop by 9.58% to 32.72%, resulting in equipment and personnel resources. It is a great waste, and due to the increase in the amount of equipment, the capital investment and personnel costs are increased; hence, the rhythm of 1170 s is the preferred solution. Table 3 lists the processing start time and processing completion time of each task in each station and provides the tool change times/tool change time information of this station.
From the task allocation details shown in Table 3 and Table 4, it can be observed that there are more workstations in Table 4, and the distribution of processing tasks among the workstations is increasingly uneven. In the allocation scheme with a cycle time of 1150 s, only one processing task 31 is allocated to station four, only one processing task 53 is allocated to station seven, and only one processing task 13 is allocated to station eight, which is the root cause of the low balance rate of this scheme. Because task 31 is located on the post-processing surface of the box part and the processing elements of the post-processing surface are concentrated at station three, the sum of the operation time of station three reaches 1065 s. If the processing time of task 31 is added, the cycle-time constraint will not be satisfied. Task 31 cannot be arranged to be processed on other machining surfaces; therefore, task 31 can only be located in one workstation alone. Similarly, available tasks 53 and 13 can only be assigned to a single workstation.
It can be seen from Table 3 and Table 4 and Figure 11 and Figure 12, that the arrangements of task 3 and task 8, task 12 and task 13, and task 30 and task 31 can satisfy the tight constraint relationship. Meanwhile, from Table 4 and Figure 12, the case of the ‘or’ constraint can also be analyzed. If task 13 is processed at workstation two, the order constraint of task 31 on 46/47/48/49 disappears. Therefore, we can also see that 46/47/48/49 can indeed be scheduled to be processed at the workstation before task 31, and it shows that the solution obtained by this algorithm can meet the ‘or’ constraint. Therefore, the algorithm can effectively solve TLBP with multiple complex constraints.
Figure 11 shows a Gantt chart of the processing task arrangement obtained from Table 3. In the figure, task 74 is an advanced station preparation task for each station, task 75 is an auxiliary task, such as deburring after each station, and task 76 is a deburring and final inspection task. The Gantt chart was generated using this algorithm. The red task represents the processing of this task; the tool change operation needs to be performed first, and the red task time increases the average tool change time. The blue task indicates that no tool change is required and, therefore, does not include tool change time. The task arrangement in the figure satisfies the task sequence constraints, machining orientation constraints, tool constraints, and auxiliary task constraints, which reflect the practicability of the algorithm in this study.
The Gantt chart in Figure 12 illustrates the allocation scheme in Table 4. From the figure, the imbalance in task assignment among the sites can be seen intuitively. This is the result of a combination of the time, order, tool, and machining direction constraints. Simultaneously, the robustness of the algorithm is verified.

7. Discussion

Through the study of a complex case with 73 machining tasks, the algorithm proposed in this study can be used to solve the problem of machining production line balance with multiple complex constraints. And under the premise of satisfying all constraints, the first and last auxiliary tasks proposed in this paper can be inserted into the processing task queue. Due to the existence of auxiliary tasks at the beginning and end of each station in this research question, it is quite different from existing research in constructing task processing queues, and the difference of this processing queue will ultimately directly affect the optimization result after the station is divided. This model considers many practical factors in more machining sites, and it can be said that it is two different branches from the mathematical model of existing research. Therefore, from the perspective of promotion and application, this research has more practical significance. However, in terms of how to improve the processing efficiency of a single station, there are also shortcomings, which is also the direction of further deepening and improvement of this research.

8. Conclusions

The balance problem of the machining production line under the combined effect of complex constraints, including tool changing, machining assistance, ‘or’, and ‘tight’ constraints, is studied. By designing an improved ant colony optimisation, the multiple screening mechanism of the processing task set satisfies the above complex constraints, the processing task chain is constructed through the ant colony’s own pheromone accumulation rules and random search mechanism, and a Gantt chart automatic generation module is designed. Through a detailed analysis of the processing technology case of a certain type of complex box, the positioning benchmark, the evaluation benchmark, and the priority sequence diagram of the processing task were analysed, and reasonable process constraints were established. The influence of random search control parameters on the search performance of the improved ant colony optimisation was studied. The arrangement plan of multiple sets of machining lines was obtained after introducing the case into the algorithm of this study. Through a comparative analysis, it is concluded that the optimisation scheme with a cycle time of 1170 s is the preferred scheme with a balance rate of 95.23%, which has the comprehensive advantages of both cost and efficiency, and it also verifies the performance of the algorithm in this study.
In the future research, optimization objectives such as minimizing the number of tool changes and minimizing the number of machine tools into the mathematical model should be taken into account to study this multi-objective optimization problem. At the same time, in the case of the study, a machining center with an additional fourth axis can also be added to the mathematical model, thereby further increasing the complexity of the problem and the diversification of solutions.

Author Contributions

Conceptualisation, J.H.; methodology, J.H.; software, J.H.; validation, J.H., Z.Z. and H.Q.; formal analysis, J.H.; investigation, H.Q.; resources, J.H.; data curation, J.H. and X.X.; writing—original draft preparation, J.H.; writing—review and editing, H.Q.; visualisation, Z.Z.; supervision, Z.Z.; project administration, Z.Z.; funding acquisition, Z.Z. and J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partly supported by the National Natural Science Foundation of China [grant numbers 51205328, 51675450]; the Youth Foundation for Humanities, Social Sciences of Ministry of Education of China [grant number 18YJC630255]; Sichuan Science and Technology Program (Grant No. 2022YFG0245, 2022YFG0241); CRRC’s 14th Five-Year Science and Technology Major Special Scientific Research Project(Grant No. 2021CHZ010-3); Special Research Project of Education Department of Zhejiang Province [grant Number Y202146429].

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author. The data were not publicly available because of privacy concerns.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Appendix A provides all machining tasks of complex box parts proposed in this study, which are displayed according to the machining planes they are located. All of them are shown in Figure A1, Figure A2, Figure A3, Figure A4 and Figure A5.
Figure A1. Machining tasks on Top surface.
Figure A1. Machining tasks on Top surface.
Applsci 12 04200 g0a1
Figure A2. Machining tasks on Front surface.
Figure A2. Machining tasks on Front surface.
Applsci 12 04200 g0a2
Figure A3. Machining tasks on Rear surface.
Figure A3. Machining tasks on Rear surface.
Applsci 12 04200 g0a3
Figure A4. Machining tasks on Left surface.
Figure A4. Machining tasks on Left surface.
Applsci 12 04200 g0a4
Figure A5. Machining tasks on Right surface.
Figure A5. Machining tasks on Right surface.
Applsci 12 04200 g0a5

Appendix B

Table A1. Task operation procedure and time.
Table A1. Task operation procedure and time.
Task NumberProcessing ContentProcessing Times (s)Plane It Belongs toCutting Tool TypeMachining Direction of Parts
1Datum A955Datum Aφ30 Milling cutterTop surface
2The hole φ10 on plan A5Datum Aφ10 combined & drillTop surface
3Hole φ12 (Datum D)8Datum Aφ12 combined drilling & reamingTop surface
4The hole φ8 on plan A2Datum Aφ8 combined & drillTop surface
5The hole φ8 on plan A2Datum Aφ8 combined & drillTop surface
6The hole φ10 on plan A 5Datum Aφ10 combined & drillTop surface
7The hole φ10 on plan A 5Datum Aφ10 combined & drillTop surface
8Hole φ12 (Datum E)8Datum Aφ12 combined drilling & reamingTop surface
9The hole φ8 on plan A2Datum Aφ8 combined & drillTop surface
10The hole φ8 on plan A2Datum Aφ8 combined & drillTop surface
11The hole φ10 on plan A 5Datum Aφ10 combined & drillTop surface
12Plane B (Datum B)740Datum Bφ50 Milling cutterFront surface
13Hole G (Datum G)97Datum Bφ50 Milling cutter φ120 boring cutterFront surface
14The hole φ100 on plan B83Datum Bφ50 Milling cutter φ100 boring cutterFront surface
15Alcove61Alcoveφ50 Milling cutterFront surface
16Hole φ30 on the alcove33Alcoveφ30 Milling cutterFront surface
17Hole φ10 on the alcove5Alcoveφ10 spiral drillFront surface
18The hole φ11 on plan B 6Datum Bφ11 combined & drillFront surface
19The hole φ11 on plan B 6Datum Bφ11 combined & drillFront surface
20The hole φ11 on plan B 6Datum Bφ11 combined & drillFront surface
21The hole φ11 on plan B 6Datum Bφ11 combined & drillFront surface
22The hole φ10 on plan B 5Datum Bφ10 combined & drillFront surface
23The hole φ10 on plan B 5Datum Bφ10 combined & drillFront surface
24The hole φ10 on plan B 5Datum Bφ10 combined & drillFront surface
25The hole φ10 on plan B 5Datum Bφ10 combined & drillFront surface
26The hole φ8 on plan B 2Datum Bφ8 combined & drillFront surface
27The hole φ13 on plan B 5Datum Bφ13 combined & drillFront surface
28The hole φ13 on plan B 5Datum Bφ13 combined & drillFront surface
29The hole φ13 on plan B 5Datum Bφ13 combined & drillFront surface
30Plane C (Datum C) 824Datum Cφ50 Milling cutterRear surface
31Hole F (Datum F)97Datum Cφ50 Milling cutter φ120 boring cutterRear surface
32The hole φ100 on plan C83Datum Cφ50 Milling cutter φ100 boring cutterRear surface
33The hole φ11 on plan C 6Datum Cφ11 combined & drillRear surface
34The hole φ11 on plan C 6Datum Cφ11 combined & drillRear surface
35The hole φ11 on plan C 6Datum Cφ11 combined & drillRear surface
36The hole φ11 on plan C 6Datum Cφ11 combined & drillRear surface
37The hole φ11 on plan C 6Datum Cφ11 combined & drillRear surface
38The hole φ11 on plan C 6Datum Cφ11 combined & drillRear surface
39The hole φ11 on plan C 6Datum Cφ11 combined & drillRear surface
40The hole φ11 on plan C 6Datum Cφ11 combined & drillRear surface
41The hole φ8 on plan C 2Datum Cφ8 combined & drillRear surface
42The hole φ17 on plan C 8Datum Cφ17 combined & drillRear surface
43The hole φ17 on plan C 8Datum Cφ17 combined & drillRear surface
44The hole φ17 on plan C 8Datum Cφ17 combined & drillRear surface
45The hole φ17 on plan C 8Datum Cφ17 combined & drillRear surface
46rectangular window at right side of the part 379rectangular window (right side of the part) φ50 Milling cutterLeft side
47round window at right side of the part 260round window (right side of the part)φ20 Milling cutterLeft side
48Lug boss 1 at right side of the part48Lug boss (right side of the part)φ25 Milling cutterLeft side
49Lug boss 2 at right side of the part48Lug boss (right side of the part)φ25 Milling cutterLeft side
50Hole φ10 on Lug boss 19Lug boss (right side of the part)φ10 combined & drillLeft side
51Hole φ10 on Lug boss 29Lug boss (right side of the part)φ10 combined & drillLeft side
52The right wall of rectangular window147rectangular window (right side of the part)φ30 Long shank milling cutterLeft side
53The left wall of rectangular window147rectangular window (right side of the part)φ30 Long shank milling cutterLeft side
54Hole φ10 on rectangular window5rectangular window (right side of the part)φ10 combined & drillLeft side
55Hole φ10 on rectangular window5rectangular window (right side of the part)φ10 combined & drillLeft side
56Hole φ10 on rectangular window5rectangular window (right side of the part)φ10 combined & drillLeft side
57Hole φ10 on rectangular window5rectangular window (right side of the part)φ10 combined & drillLeft side
58Hole φ10 on rectangular window5rectangular window (right side of the part)φ10 combined & drillLeft side
59Hole φ10 on rectangular window5rectangular window (right side of the part)φ10 combined & drillLeft side
60Hole φ10 on round window5round window (right side of the part)φ10 combined & drillLeft side
61Hole φ10 on round window5round window (right side of the part)φ10 combined & drillLeft side
62Hole φ10 on round window5round window (right side of the part)φ10 combined & drillLeft side
63Hole φ10 on round window5round window (right side of the part)φ10 combined & drillLeft side
64rectangular window at left side of the part379rectangular window (left side of the part)φ50 Milling cutterRight side
65round window at left side of the part 260round window (left side of the part)φ20 Milling cutterRight side
66Hole φ10 on rectangular window5rectangular window (left side of the part)φ10 combined & drillRight side
67Hole φ10 on rectangular window5rectangular window (left side of the part)φ10 combined & drillRight side
68Hole φ10 on rectangular window5rectangular window (left side of the part)φ10 combined & drillRight side
69Hole φ10 on rectangular window5rectangular window (left side of the part)φ10 combined & drillRight side
70Hole φ10 on round window5round window (left side of the part)φ10 combined & drillRight side
71Hole φ10 on round window5round window (left side of the part)φ10 combined & drillRight side
72Hole φ10 on round window5round window (left side of the part)φ10 combined & drillRight side
73Hole φ10 on round window5round window (left side of the part)φ10 combined & drillRight side
74The preparation for the head of each station30NAInspection of cleaning appearanceAll
75chip removing at the end of each station30NAchip removing toolAll
76inspection by Position gage360NAPosition gaugeAll

References

  1. Ojstersek, R.; Buchmeister, B. Simulation Based Resource Capacity Planning with Constraints. Int. J. Simul. Model. 2021, 20, 672–683. [Google Scholar] [CrossRef]
  2. Xu, X.; Wang, L.; Newman, S.T. Computer-aided process planning—A critical review of recent developments and future trends. Int. J. Comput. Integr. Manuf. 2011, 24, 1–31. [Google Scholar] [CrossRef]
  3. Djurdjev, M.; Cep, R.; Lukic, D.; Antic, A.; Popovic, B.; Milosevic, M. A Genetic Crow Search Algorithm for Optimization of Operation Sequencing in Process Planning. Appl. Sci. 2021, 11, 1981. [Google Scholar] [CrossRef]
  4. Lukić, D.; Milošević, M.; Erić, M.; Ðurdev, M.; Vukman, J.; Antić, A. Improving Manufacturing Process Planning Through the Optimization of Operation Sequencing. Mach. Des. 2017, 9, 123–132. [Google Scholar] [CrossRef]
  5. Denkena, B.; Shpitalni, M.; Kowalski, P.; Molcho, G.; Zipori, Y. Knowledge Management in Process Planning. CIRP Ann. 2007, 56, 175–180. [Google Scholar] [CrossRef]
  6. Dou, J.; Li, J.; Su, C. A discrete particle swarm optimisation for operation sequencing in CAPP. Int. J. Prod. Res. 2018, 56, 3795–3814. [Google Scholar] [CrossRef]
  7. Falih, A.; Shammari, A.Z.M. Hybrid constrained permutation algorithm and genetic algorithm for process planning problem. J. Intell. Manuf. 2020, 31, 1079–1099. [Google Scholar] [CrossRef]
  8. Petrović, M.; Mitić, M.; Vuković, N.; Miljković, Z. Chaotic particle swarm optimization algorithm for flexible process planning. Int. J. Adv. Manuf. Technol. 2016, 85, 2535–2555. [Google Scholar] [CrossRef]
  9. Gao, B.; Hu, X.; Peng, Z.; Song, Y. Application of intelligent water drop algorithm in process planning optimization. Int. J. Adv. Manuf. Technol. 2020, 106, 5199–5211. [Google Scholar] [CrossRef]
  10. Huang, W.; Lin, W.; Xu, S. Application of graph theory and hybrid GA-SA for operation sequencing in a dynamic workshop environment. Comput. Aided Des. Appl. 2017, 14, 148–159. [Google Scholar] [CrossRef]
  11. Dolgui, A.; Guschinsky, N.; Levin, G. A Special Case of Transfer Lines Balancing by Graph Approach. Eur. J. Oper. Res. 2006, 168, 732–746. [Google Scholar] [CrossRef]
  12. Hu, Q.; Qiao, L.; Peng, G. An ant colony approach to operation sequencing optimization in process planning. Proc. Inst. Mech. Eng. Part B J. Eng. Manuf. 2017, 231, 470–489. [Google Scholar] [CrossRef]
  13. Su, Y.; Chu, X.; Chen, D.; Sun, X. A genetic algorithm for operation sequencing in CAPP using edge selection based encoding strategy. J. Intell. Manuf. 2018, 29, 313–332. [Google Scholar] [CrossRef]
  14. Liu, Q.; Li, X.; Gao, L. Mathematical modeling and a hybrid evolutionary algorithm for process planning. J. Intell. Manuf. 2020, 32, 781–797. [Google Scholar] [CrossRef]
  15. Li, A.; Lu, L.; Wang, S.; Liu, X. Optimization of Flexible Machining Line Balancing for Complex Prismatic Parts. J. TONGJI Univ. (Nat. Sci.) 2015, 43, 625–632. [Google Scholar]
  16. Yin, T.; Zhang, Z.; Jiang, J. A Pareto-discrete hummingbird algorithm for partial sequence-dependent disassembly line balancing problem considering tool requirements. J. Manuf. Syst. 2021, 60, 406–428. [Google Scholar] [CrossRef]
  17. Zhu, L.; Zhang, Z.; Guan, C. Multi-objective partial parallel disassembly line balancing problem using hybrid group neighbourhood search algorithm. J. Manuf. Syst. 2020, 56, 252–269. [Google Scholar] [CrossRef]
  18. Zhang, Y.; Zhang, Z.; Guan, C.; Xu, P. Improved whale optimisation algorithm for two-sided disassembly line balancing problems considering part characteristic indexes. Int. J. Prod. Res. 2021, 1–19. [Google Scholar] [CrossRef]
  19. Zhang, Z.; Wang, K.; Zhu, L.; Wang, Y. A Pareto improved artificial fish swarm algorithm for solving a multi-objective fuzzy disassembly line balancing problem. Expert Syst. Appl. 2017, 86, 1339–1351. [Google Scholar] [CrossRef]
  20. Nilakantan, J.M.; Huang, G.Q.; Ponnambalam, S.G. An Investigation on Minimizing Cycle Time and Total Energy Consumption in Robotic Assembly Line Systems. J. Clean. Prod. 2015, 90, 311–325. [Google Scholar] [CrossRef]
  21. Borisovsky, P.; Dolgui, A.; Kovalev, S. Algorithms and Implementation of a Set Partitioning Approach for Modular Machining Line Design. Comput. Oper. Res. 2012, 39, 3147–3155. [Google Scholar] [CrossRef]
  22. Liu, X.; Li, A.; Chen, Z. Optimization of Line Configuration and Balancing for Flexible Machining Lines. Chin. J. Mech. Eng. 2016, 29, 579–587. [Google Scholar] [CrossRef]
  23. Dolgui, A.; Guschinsky, N.; Levin, G. On Problem of Optimal Design of Transfer Lines with Parallel and Sequential Operations. In Proceedings of the IEEE International Conference on Emerging Technologies and Factory Automation, Barcelona, Spain, 18–21 October 1999. [Google Scholar]
  24. Dolgui, A.; Kovalev, S.; Kovalyov, M.Y.; Nossack, J.; Pesch, E. Minimizing Setup Costs in a Transfer Line Design Problem with Sequential Operation Processing. Int. J. Prod. Econ. 2014, 151, 186–194. [Google Scholar] [CrossRef]
  25. Essafi, M.; Delorme, X.; Dolgui, A. Balancing Lines with CNC Machines: A Multi-start ant Based Heuristic. CIRP J. Manuf. Sci. Technol. 2010, 2, 176–182. [Google Scholar] [CrossRef]
  26. Essafi, M.; Delorme, X.; Dolgui, A. Balancing Machining Lines: A Two-phase Heuristic. Stud. Inform. Control 2010, 19, 243–252. [Google Scholar] [CrossRef]
  27. Osman, H.; Baki, M.F. Balancing Transfer Lines Using Benders Decomposition and ant Colony Optimisation Techniques. Int. J. Prod. Res. 2014, 52, 1334–1350. [Google Scholar] [CrossRef]
  28. Borisovsky, P.A.; Delorme, X.; Dolgui, A. Balancing Reconfigurable Machining Lines Via a Set Partitioning Model. Int. J. Prod. Res. 2014, 52, 4026–4036. [Google Scholar] [CrossRef]
  29. Zhang, H.; Li, A.; Fu, X.; Shao, H.; Liu, X. An Integrated Optimization Method for Setups Planning and Line Balancing of Mixed Model Transfer Lines. China Mech. Eng. 2019, 30, 2497–2504. [Google Scholar]
  30. Li, A.; Wang, S.; Rui, Y.; Liu, X.; Xu, L. Setups planning based optimization for cylinder machining line balancing. Comput. Integr. Manuf. Syst. 2016, 22, 1254–1263. [Google Scholar]
  31. Liu, X.; Jia, Y.; Lan, L.; Li, A. Optimization of Line Balancing for Frlexible Machining Lines Based on Multi-objective Genetic Algorithm. J. TONGJI Univ. (Nat. Sci.) 2016, 44, 1910–1917. [Google Scholar]
  32. Borisovsky, P.; Battaïa, O. MIP-Based Heuristics for a Robust Transfer Lines Balancing Problem. In International Conference on Optimization and Applications; Springer: Cham, Switzerland, 2021. [Google Scholar]
  33. He, C.; Guan, Z.; Xu, G.; Yue, L.; Ullah, S. Scenario-based robust dominance criteria for multi-objective automated flexible transfer line balancing problem under uncertainty. Int. J. Prod. Res. 2020, 58, 467–486. [Google Scholar] [CrossRef]
  34. Borisovsky, P. Genetic Algorithm for One Machining Line Balancing Problem with Setup Times. In Proceedings of the 2020 Dynamics of Systems, Mechanisms and Machines (Dynamics), Omsk, Russia, 10–12 November 2020. [Google Scholar]
  35. Kłosowski, G.; Gola, A.; Świć, A. Application of fuzzy logic controller for machine load balancing in discrete manufacturing system. In International Conference on Intelligent Data Engineering and Automated Learning; Springer: Cham, Switzerland, 2015. [Google Scholar]
  36. Bacharoudis, K.C.; Bainbridge, D.; Turner, A.; Popov, A.A.; Ratchev, S.M. Implementation of dimensional management methodology and optimisation algorithms for pre-drilled hinge line interfaces of critical aero assemblies—A case study. Proc. Inst. Mech. Eng. Part B J. Eng. Manuf. 2021, 235, 1074–1083. [Google Scholar] [CrossRef]
  37. Dorigo, M.; Birattari, M.; Stutzle, T. Ant colony optimization. IEEE Comput. Intell. Mag. 2006, 1, 28–39. [Google Scholar] [CrossRef]
  38. Álvarez-Miranda, E.; Pereira, J.; Torrez-Meruvia, H.; Vilà, M. A Hybrid Genetic Algorithm for the Simple Assembly Line Balancing Problem with Fixed Number of Workstations. Mathematics 2021, 9, 2157. [Google Scholar] [CrossRef]
  39. Nagy, L.; Ruppert, T.; Abonyi, J. Analytic Hierarchy Process and Multilayer Network-Based Method for Assembly Line Balancing. Appl. Sci. 2020, 10, 3932. [Google Scholar] [CrossRef]
  40. Nearchou, A.C. Maximizing production rate and workload smoothing in assembly lines using particle swarm optimization. Int. J. Prod. Econ. 2011, 129, 242–250. [Google Scholar] [CrossRef]
  41. Yang, L.; Fu, L.; Li, P.; Mao, J.; Guo, N. An Effective Dynamic Path Planning Approach for Mobile Robots Based on Ant Colony Fusion Dynamic Windows. Machines 2022, 10, 50. [Google Scholar] [CrossRef]
  42. Blum, C.; Dorigo, M. The hyper-cube framework for ant colony optimization. IEEE Trans. Syst. Man Cybern. B 2004, 34, 1161–1172. [Google Scholar] [CrossRef]
Figure 1. Simple bracket product processing case.
Figure 1. Simple bracket product processing case.
Applsci 12 04200 g001
Figure 2. Diagram showing the processing constraint matrix.
Figure 2. Diagram showing the processing constraint matrix.
Applsci 12 04200 g002
Figure 3. Process scheduling assignment scheme satisfying the constraints of Figure 2.
Figure 3. Process scheduling assignment scheme satisfying the constraints of Figure 2.
Applsci 12 04200 g003
Figure 4. Gantt diagram of 5-station process layout satisfying the constraints of Figure 2 and Figure 3.
Figure 4. Gantt diagram of 5-station process layout satisfying the constraints of Figure 2 and Figure 3.
Applsci 12 04200 g004
Figure 5. Ant colony optimization with heuristic rules.
Figure 5. Ant colony optimization with heuristic rules.
Applsci 12 04200 g005
Figure 6. Drawings of the box key evaluation benchmark from three views.
Figure 6. Drawings of the box key evaluation benchmark from three views.
Applsci 12 04200 g006
Figure 7. Processing constraint relationship 1.
Figure 7. Processing constraint relationship 1.
Applsci 12 04200 g007
Figure 8. Processing constraint relationship 2.
Figure 8. Processing constraint relationship 2.
Applsci 12 04200 g008
Figure 9. Minimum, average, and maximum values of the LB obtained by the comparison algorithms.
Figure 9. Minimum, average, and maximum values of the LB obtained by the comparison algorithms.
Applsci 12 04200 g009
Figure 10. Minimum, average, and maximum values of station number obtained by the comparison algorithms.
Figure 10. Minimum, average, and maximum values of station number obtained by the comparison algorithms.
Applsci 12 04200 g010
Figure 11. Task assignment Gantt chart for cadence time 1170.
Figure 11. Task assignment Gantt chart for cadence time 1170.
Applsci 12 04200 g011
Figure 12. Task assignment Gantt chart for cadence time 1150.
Figure 12. Task assignment Gantt chart for cadence time 1150.
Applsci 12 04200 g012
Table 1. Task operation procedure, time, operation direction, and tool requirement for the simple bracket part.
Table 1. Task operation procedure, time, operation direction, and tool requirement for the simple bracket part.
Task NumberProcessing ContentProcessing Times (s)Plane It Belongs toEquipment RequiredCutting Tool TypeMachining Direction of Parts
1Datum At1Datum AMachining centreφ30 Milling cutterBottom surface
2Datum Bt2Datum BMachining centreφ10 combined drilling & reamingTop surface
3Hole φ5 (Datum C)t3Datum CMachining centreφ5 combined drilling & reamingTop surface
4plan 4t4plan 4Machining centreφ30 Milling cutterRight surface
5plan 5t5plan 5Machining centreφ30 Milling cutter Left surface
6The hole φ6 on plan 5 t6plan 5Machining centreφ6 drillLeft surface
7plan 7 on plan A t7plan 5Machining centreφ20 Milling cutterLeft surface
8Hole φ12t8plan 5Machining centreφ12 drillLeft surface
Table 2. Comparison of test results of each cycle time.
Table 2. Comparison of test results of each cycle time.
No.CT (s)ACO-pro2
mLB
11300585.71
21290586.37
31280587.05
41270587.73
51260588.43
61250589.14
71240589.85
81230590.59
91220591.33
101210592.08
111200592.85
121190593.63
131180594.42
141170595.23
151160685.65
161150862.51
Table 3. Optimization results of ant colony optimization beat 1170 s scheme.
Table 3. Optimization results of ant colony optimization beat 1170 s scheme.
No.Time Details for Task AssignmentTool Switching Times/Time (s)Accumulated Time
174(0, 30), 1(30, 987), 11(987, 994), 10(994, 998), 5(998, 1000), 9(1000, 1002), 4(1002, 1004), 2(1004, 1011), 3(1011, 1021), 7(1021, 1028), 8(1028, 1038), 6(1038, 1045), 75(1045, 1075)8/161075
274(0, 30), 12(30, 772), 26(772, 776), 29(776, 783), 28(783, 788), 27(788, 793), 25(793, 800), 24(800, 805), 14(805, 890), 13(890, 989), 23(989, 996), 18(996, 1004), 15(1004, 1067), 22(1067, 1074), 19(1074, 1082), 21(1082, 1088), 20(1088, 1094), 17(1094, 1101), 16(1101, 1136), 75(1136, 1166)13/261066
374(0, 30), 30(30, 856), 45(856, 866), 44(866, 874), 43(874, 882), 41(882, 886), 32(886, 971), 42(971, 981), 31(981, 1080), 40(1080, 1088), 39(1088, 1094), 33(1094, 1100), 34(1100, 1106), 36(1106, 1112), 35(1112, 1118), 38(1118, 1124), 37(1124, 1130), 75(1130, 1160)7/141160
474(0, 30), 46(30, 411), 47(411, 673), 63(673, 680), 62(680, 685), 61(685, 690), 49(690, 740), 48(740, 788), 60(788, 795), 59(795, 800), 58(800, 805), 51(805, 814), 57(814, 819), 50(819, 828), 56(828, 833), 55(833, 838), 54(838, 843), 52(843, 992), 53(992, 1139), 75(1139, 1169)6/121169
574(0, 30), 64(30, 411), 65(411, 673), 73(673, 680), 66(680, 685), 72(685, 690), 71(690, 695), 68(695, 700), 67(700, 705), 69(705, 710), 70(710, 715), 76(715, 1075)3/61075
Table 4. Optimization results of ant colony optimization beat 1150 s scheme.
Table 4. Optimization results of ant colony optimization beat 1150 s scheme.
No.Time Details for Task AssignmentTool Switching Times/Time (s)Accumulated Time
174(0, 30), 1(30, 987), 3(987, 997), 8(997, 1005), 5(1005, 1009), 2(1009, 1016), 7(1016, 1021),6(1021, 1026), 9(1026, 1030), 11(1030, 1037), 10(1037, 1041), 4(1041, 1043), 75(1043, 1073) 7/141073
274(0, 30), 12(30, 772), 13(772, 871), 25(871, 878), 15(878, 941), 22(941, 948), 27(948, 955), 28(955, 960), 18(960, 968), 26(968, 972), 21(972, 980), 20(980, 986), 17(986, 993), 24(993, 1000), 16(1000, 1035), 29(1035, 1042), 19(1042, 1050), 23(1050, 1057), 75(1057, 1087)15/301087
374(0, 30), 46(30, 411), 57(411, 418), 59(418, 423), 55(423, 428), 56(428, 433), 48(433, 483), 47(483, 745), 63(745, 752), 50(752, 761), 49(761, 811), 53(811, 960), 62(960, 967), 51(967, 976), 58(976, 981), 61(981, 986), 54(986, 991), 60(991, 996), 75(996, 1026)8/161026
474(0, 30), 65(30, 292), 64(292, 673), 67(673, 680), 66(680, 685), 73(685, 690), 70(690, 695), 71(695, 700), 72(700, 705), 68(705, 710), 69(710, 715), 75(715, 745)3/6745
574(0, 30), 30(30, 856), 31(856, 955), 33(955, 963), 38(963, 969), 37(969, 975), 43(975, 985), 36(985, 993), 44(993, 1003), 39(1003, 1011), 35(1011, 1017), 42(1017, 1027), 45(1027, 1035), 34(1035, 1043), 40(1043, 1049), 41(1049, 1053), 75(1053, 1083)10/201083
674(0, 30), 14(30, 115), 75(115, 145)1/2145
774(0, 30), 52(30, 179), 75(179, 209)1/2209
874(0, 30), 32(30, 115), 76(115, 475)1/2475
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hu, J.; Zhang, Z.; Qiu, H.; Zhao, J.; Xu, X. Enhanced Hybrid Ant Colony Optimization for Machining Line Balancing Problem with Compound and Complex Constraints. Appl. Sci. 2022, 12, 4200. https://doi.org/10.3390/app12094200

AMA Style

Hu J, Zhang Z, Qiu H, Zhao J, Xu X. Enhanced Hybrid Ant Colony Optimization for Machining Line Balancing Problem with Compound and Complex Constraints. Applied Sciences. 2022; 12(9):4200. https://doi.org/10.3390/app12094200

Chicago/Turabian Style

Hu, Junyi, Zeqiang Zhang, Haixuan Qiu, Junbo Zhao, and Xuechen Xu. 2022. "Enhanced Hybrid Ant Colony Optimization for Machining Line Balancing Problem with Compound and Complex Constraints" Applied Sciences 12, no. 9: 4200. https://doi.org/10.3390/app12094200

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop