SIMULATION APPROACH OF CUTTING TOOL ... provide tool path programming and can be applied for different types of the ... Figure 2 shows a single-point...

0 downloads 6 Views 667KB Size

DIAMOND & PcBN Cutting tool 112 d g TFC ... but which also allow 3D chip ... min. max. min. max. min

SIMULATION APPROACH OF CUTTING TOOL MOVEMENT USING ARTIFICIAL INTELLIGENCE METHOD H. ABDULLAH1,*, R. RAMLI1, D. A. WAHAB1, J. A. QUDEIRI2 1

Department of Mechanical and Material Engineering, Faculty of Engineering and Built Environment, Universiti Kebangsaan Malaysia, 43600 Bangi, Selangor, Malaysia 2 Advanced Manufacturing Institute, Industrial Engineering Department, College of Engineering, King Saud University- Riyadh, Saudi Arabia *Corresponding Author: [email protected]

Abstract In recent years, the productivity of machine tools has been significantly improved by using computer-based CAD/CAM systems for Computer Numerical Control (CNC). Various types of CAM software in the market that provide tool path programming and can be applied for different types of the machining process such as drilling, milling, and turning. However, sometimes the default tool path generated in the CAD/CAM system is not the optimal tool path which produces longer distance and increase the machining time. In this paper, we present cutting tools movement by Genetic Algorithm (GA) and Ant Colony Optimization (ACO) method in generation of shortest tool path. For observation of the performance of both methods, comparisons with conventional method have been carried out. The shortest path of drilling tool path adapts Travelling Salesman Problem (TSP) in determining the distance during machining. The simulation result shows that ACO and GA based tool path optimization is useful to find a lower distance of tool path generation for holes drilling process. Keywords: Genetic Algorithm, Ant Colony Optimization, Tool path, Simulation.

1. Introduction Today, the productivity and efficiency of Computer Numerical Control (CNC) machine has been significantly improved by using Computer Aided Design and Computer Aided Manufacturing (CAD/CAM) programming systems. With computer-based CAD/CAM systems, the generation of the G-code file for each cutting and machining process has become easier compared to manual 35

36

H. Abdullah et al.

programming. However, the tool path generated from the CAD/CAM systems is not the guaranteed as optimal tool path and there is possibilities that the tool path distance is longer in order to complete each drilling process. Therefore, optimization of the CNC machine tool path should be done before starting a machining process to ensure the tool path taken will produce the shortest path of cutting tool travel. Realizing on the disadvantage, many researchers are tempted to do research on tool path optimization in order to obtain the optimal cutting tool path. For instance, in printed circuit board (PCB), Ancau optimized the tool path by focusing on tool path length and processing time [1]. The original hybrid heuristic algorithm was presented to solve the Travelling Salesman Problem (TSP). The algorithm adopted the structure of a general optimization procedure and applied for tool path length. Numerical tests were performed to establish the performance of the heuristic hybrid algorithm. Furthermore, due to tool path planning from commercial CAD software was not fully optimized in terms of tool travel distance, Abbas investigated optimal path planning for CNC drilling machine by Ant Colony Optimization (ACO) [2]. The ACO algorithm was applied to solve the TSP for searching shortest distance of the tool path. However, they focused only for products that involved a large number of holes arranged in a rectangular matrix, such as boiler plates, drum, etc. By using Genetic Algorithm (GA) method, Kumar and Pacahauri [3] and Nabeel et al. [4] also used the Traveling Salesman Problem (TSP) to reduced total time and distance of tool travel for drilling sequence. Furthermore, due to the G-code generated through CAD/CAM software cannot be considered as route optimization, similar study by Othman et al. [5] has been carried out on tool path optimization by modelling a binary particle swarm optimization (BPSO) algorithm to search an optimized route in PCB holes drilling. In BPSO, each particle represented as possible route of tool path drilling process. The result of BPSO was compared with others previous study done by Zhu [6] and Zhu [7] which focused on Global Convergence Particle Swarm Optimization (GCPSO) and Particle Swarm Optimization. In this paper, artificial intelligence (AI) methods namely GA and ACO are adapted to determine the optimal tool path and shortest length for drilling process. In addition, comparisons have been done to investigate the method for shorter tool path. Finally, the result of GA and ACO is compared with simulation of conventional CAD/CAM method.

2. Geometrical Model In this study, we used model of PCB which consist of 76 holes as shown in Fig. 1. The model has a dimension of work piece 8 cm × 10 cm × 2 cm. Each holes with diameter of 0.5 cm and 1.0 cm depth to be drilled. The clearance height is 0.5cm from the work piece. After the drilling of each hole, the tool will rise up from the work piece in z-axis to avoid any contact with the work piece when the tool is moved to the next hole drilling process.

Journal of Engineering Science and Technology

Special Issue 6/2015

Simulation Approach of Cutting Tool Movement Using Artificial Intelligence . . . . 37

Fig. 1. Models of a printed circuit board.

2.1. Genetic algorithm In the GA method, four steps are taken which are initialization, selection, reproduction and termination. The GA starts with initialization whereby initial populations are generated by randomly creating a path from the points to be drilled. The populations with the lowest cost will be selected as the parent population in selection step. The objective function in our tool path optimization is to minimize the travel distance as shown in Eq. (1): n −1 n

f ( x, y, z ) = d o + ∑∑

(x

2

j

i =1 j = 2

n

− xi ) + ( y j − yi ) + ∑ z k + d n 2

(1)

k =1

where d0 is distance from origin to first point, zk is the value of height from the work piece, dn is distance from last point to origin, formulated as:

dn =

(x

− xi ) + ( y j − y i ) + 2 z k 2

j

2

(2)

where, x and y are absolute coordinates, and z is the z-axis tool drilling movement at each point. The reproduction is carried out to create new child populations by using crossover and mutation on the parent populations. Figure 2 shows a single-point crossover for six drilling holes. Each hole represents the number of chromosome. Single-point crossover is performed by randomly selecting a crossover point within a chromosome, and then interchanges the two parent chromosomes at the point to produce child population. TSP is applied in order to prevent same chromosome in child population. Hence, the repeated chromosome is swapped among the two populations. Then, mutation is performed to avoid fast convergence of the solution and create the new path to be explored by randomly selecting a few points in the child population. After the reproduction, the convergence of the objective function is checked for stopping criteria and if the criteria are met, GA will undergo termination. However, if the criteria are not met, GA will repeat the selection and reproduction steps until the stopping criteria are to be met. Flow chart of genetic algorithm is illustrated in Fig. 3.

Journal of Engineering Science and Technology

Special Issue 6/2015

38

H. Abdullah et al.

Fig. 2. Single crossover of genetic algorithm.

Fig. 3. Flowchart of genetic algorithm.

Journal of Engineering Science and Technology

Special Issue 6/2015

Simulation Approach of Cutting Tool Movement Using Artificial Intelligence . . . . 39

2.2. Ant colony optimization In the ACO method, we applied the ant system in the TSP for searching the shortest tool path. Initially, ants are placed on n cities, and it moves from city i to city j using a formula called the rule arbitrary probability as follows:

[τ (t )] [η (t )] ∑ [τ (t )] [η (t )] α

Pi ,kj (t ) =

i, j

β

i, j

α

t∈N ik

i, j

β

j ∈ N ik

(3)

i, j

where

N ik τ i, j (t ) α η i, j (t ) β

= list of nodes, which were not visited by the ant = intensity of trail on edge (i,j) at time t = weight of the trail = 1/dij is called the visibility = weight of the visibility

In this study, the adapted ACO is used to determine the shortest distance of cutting tool movement for holes drilling. Each hole is represented by the cities visited by the salesman in TSP. The fitness function used in ACO method is equivalent with the fitness function of GA as shown in Eq. (1). The flowchart of the process in ACO is shown in Fig. 4. Once all ants completed their own loop, the pheromone will be updated on all the vertices according to the global updating rule as shown in Eq. (4). The major of this rule is to reward the vertices belongs to the shortest loop.

τ (i, j ) = (1 − ρ )τ (i, j) + ∑mk=1 ∆τ k (i, j )

(4)

1 , ∈ ∆ , = 0ℎ

(5)

where

= evaporation rate = number of ant ∆ = quantity of pheromone laid on the edge

= length of the tour constructed by ant k

3. Results and Discussions The simulations of tool path generation were performed in MATLAB. The location of holes of PCB is shown in Fig. 5(a). In GA simulation, 250 populations were chosen. The crossover rate and mutation rate was 0.8 and 0.08, respectively. Meanwhile for ACO simulation, the number of ants was 100, and the value of α and β is 3. Figure 5(b) shows the best route obtains by the GA method. The shortest distance obtain is 2580 mm. On the other hand, the best routes obtained by the ACO method are 1019 mm as shown in Fig. 5(c). From the results, the ACO method is produce better result compared to GA in finding the shortest distance of tool path.

Journal of Engineering Science and Technology

Special Issue 6/2015

40

H. Abdullah et al.

Fig. 4. Single crossover of genetic algorithm. In our drilling case, the tool path is classified as TSP in which the hole can only be drilled once by the cutting tool. In ACO method, the shortest path is determined based on the pheromone left by ants. The first ants leave a pheromone trail and the next ants will follow the trail which has stronger pheromones. If the number of ants through the shorter path increases, the effect of the pheromone trail left behind will stronger. Thus, the number of ants must also consider in producing a shorter travel distance. The more ants, the more the solution is formed. In the case of drilling, each ant will be required to form a sequence in drill holes that need to generate the shortest path. Besides that, the value of α and β also give significant role in influencing the decision. While, in GA the parameters involved are number of population, crossover rate and mutation rate. The selection of these parameters should be suitable with the problem. According to Randy and Haupt [8], if a problem which required a large space of solution, it is suggested to choose a set of parameters i.e., number of

Journal of Engineering Science and Technology

Special Issue 6/2015

Simulation Approach of Cutting Tool Movement Using Artificial Intelligence . . . . 41

population, crossover rate and mutation rate as 50, 0.6, and 0.001, respectively. However, the number of population should not be less than 30, for arbitrary types of problems. If the population size is small, genetic algorithms will have a slight variation of the possibility to do a crossover and mutation. Meanwhile, if population size is too higher, the genetic algorithms require more time to finding a solution.

(a)

(b)

Journal of Engineering Science and Technology

Special Issue 6/2015

42

H. Abdullah et al.

(c) Fig. 5. Simulation of tool path in PCB (a) The holes, (b) Tool path by GA, (c) Tool path by ACO Based on our comparison of both GA and ACO simulation, ACO gave better solution compared to GA. We also compared our simulation with commercialize CAD/CAM software. Figure 6 shows an example of tool path generation by commercial CAD/CAM software.

Fig. 6. The simulation of tool path using MasterCAM.

Journal of Engineering Science and Technology

Special Issue 6/2015

Simulation Approach of Cutting Tool Movement Using Artificial Intelligence . . . . 43

The result of this comparison is shown in Table 1. Table 1. Comparison of tool path length. Tool path Method length(mm) 2580 GA 1019 ACO 2883.66 MasterCAM

4. Conclusions This paper presented a comparison of artificial intelligence (AI) optimization algorithm methods which is ACO and GA. The ACO utilised the process used by ants to search for food source which used pheromone trail deposition/evaporation technique to map their way. On the other hand, the GA is an optimization technique, inspired by the law of biological reproduction and survival of fittest theory. Based on simulation results, it can be ascertained that our optimization method performed better performance compared to the conventional CAD/CAM simulation software in generating tool path. However, these techniques need to be further explored to find their suitability to certain applications. Also, there is a need to combine two or more techniques so that they complement each other and accomplish their respective limitations. As conclusion, our heuristic tool path optimization method provides shorter path compared to commercial tool path simulated by MasterCAM.

Acknowledgment The authors are thankful to Ministry of Education Malaysia for supporting this study under grant FRGS/2/2014/TK01/UKM/02/1.

References 1.

2.

3.

4.

5.

Ancau, M. (2008). The optimization of printed circuit board manufacturing by improving the drilling process productivity. Computer & Industrial Engineering, 55(2), 279-284. Abbas, A.T.; Aly, M.F.; and Hamza, K. (2010). Optimum drilling path planning for a rectangular matrix of holes using ant colony optimization. International Journal of Production Research, 44(19), 5877-8991. Kumar, A.; and Pachauri, P. (2012). Optimization drilling sequence by Genetic Algorithm. International Journal of Scientific and Research Publications, 2(9), 1-7. Nabeel, A.K.; and Abdulrazzaq, H.F. (2014). Tool path optimization of drilling sequence in CNC machine using Genetic Algorithm. Innovative Systems Design and Engineering, 5(1), 15-26. Othman, M.H.; Zainal Abidin, A.F.; Adam, A.; Md Yusof, Z.; Ibrahim, Z.; Mustaza, S.M.; and Yang, L.Y. (2011). A binary Particle Swarm Optimization approach for routing in PCB drilling process. International Conference on Robotic Automation System (ICORAS), 201-206.

Journal of Engineering Science and Technology

Special Issue 6/2015

44

H. Abdullah et al.

Zhu, G.Y. (2006). Drilling path optimization based on Swarm Inteligent Algorithm. Proceeding of the 2006 IEEE International Conference on Robotics and Biomimetics, 193-196. 7. Zhu, G.Y.; and Zhang, W.B. (2008). Drilling path optimization by the Particle Swarm Optimization algorithm with global convergence characteristics. International Journal of Production Research, 46(8), 2299-2311. 8. Randy, L.H.; and Sue, E.H. (2004). Practical genetic algorithms. John Wiley & Sons Inc. 6.

Journal of Engineering Science and Technology

Special Issue 6/2015