Non-Cutting Moving Toolpath Optimization with Elitist Non-Dominated Sorting Genetic Algorithm-II
Abstract
:1. Introduction
2. Path Optimization Problem Description
2.1. Traveling Salesman Problem
2.2. Path Length
2.3. Path Smoothness
2.4. Multi-Objective Functions and Weight Factors
2.5. Study Conditions and Implementation of the Model
- The workspace is a two-dimensional plane where each point is represented by Cartesian coordinates (xi, yi).
- Determine the sequence of points (pi) that the cutting tool must travel through.
- The cutting tool needs to travel through a set of predefined points in a specific sequence.
- The Euclidean distance calculation is used to measure the path length between each pair of consecutive points, as defined in (4).
- Find the sum of these distances to get the total path, as defined in (5).
- The total path length should be minimized to reduce the machining time and energy consumption without compromising the path smoothness.
- Three consecutive points, (pi, pi+1, and pi+2) are used to calculate the angle θ between the segments using the cosine rule, as defined in (6). Path smoothness is evaluated based on the angles between the successive segments formed by these points.
- Compute the average angle for the entire path to quantify smoothness. A smoother path can be obtained via (7) to obtain the angles closer to 180°.
- Introduce weighting factors ω1 and ω2 for path length and path smoothness, respectively, to balance their importance in the optimization process.
- The objective function can be expressed using (9).
- The values of ω1 and ω2 can be adjusted based on the specific requirements of the application. For instance, if minimizing the travel distance is more critical, a higher value can be assigned to ω1. Conversely, if a smoother path is prioritized, ω2 can be increased.
- Adjust the sequence of points and recompute the path to minimize the objective function.
- Iterate the process to find an optimal balance between the shortest path and the smoothest path based on the chosen weighting factors.
- Apply the optimized toolpath to the CNC machine.
- Test the path on a sample workpiece to ensure it meets the desired criteria of minimal travel distance and smoothness.
3. NSGA-II-Based PP Optimization Model
- An initial population, P(0), (POP) of size, S, is arbitrarily created. Then, the non-dominated sorting with a child population, Q(0), is attained, initializing g = 0.
- The two generations, P(g) and Q(g), are associated to generate a new population R(g).
- The crowding distance (CD) of the individuals is determined while the non-dominated sorting of the population, R(g), is carried out. The most suitable individual is then chosen based on the order value and CD to create a new parent set, P(g + 1).
- The new parent set P(g + 1) is designated and mutated to generate a new children population, Q(g + 1).
- The algorithm checks if the stopping criteria has been met. If not, g is incremented by step 1, and the process returns to step 2.
4. Simulation Results and Experimental Validations
4.1. Analysis of the Impact of PP on the Distance between Cuts in CNC Processes
4.2. Analysis of the Impact of PP on the Machining Cycle Time in CNC Processes
4.2.1. Experimental Study Conditions
4.2.2. Experimental Results
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Altintas, Y. Metal Cutting Mechanics, Machine Tool Vibrations, and CNC Design, 1st ed.; Cambridge University Press: Cambridge, UK, 2000; pp. 10–30. [Google Scholar]
- Liou, F.F. Rapid Prototyping and Engineering Applications: A Toolbox for Prototype Development, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2019; pp. 30–65. [Google Scholar]
- Park, S.C.; Choi, B.K. Tool-path planning for direction-parallel area milling. Comput. Aided Des. 2000, 32, 17–25. [Google Scholar] [CrossRef]
- Castelino, K.; D’Souza, R.; Wright, P.K. Tool path optimization for minimizing airtime during machining. J. Manuf. Syst. 2003, 22, 173–180. [Google Scholar] [CrossRef]
- Gupta, A.K.; Chandna, P.; Tandon, P. Hybrid genetic algorithm for minimizing non-productive machining time during 2.5 D milling. Int. J. Eng. Sci. Technol. 2011, 3, 183–190. [Google Scholar] [CrossRef]
- Aciu, R.M.; Ciocharlie, H. G-Code Optimization Algorithm and its application on Printed Circuit Board Drilling. In Proceedings of the 9th IEEE International Symposium on Applied Computational Intelligence and Informatics, Timișoara, Romania, 15–17 May 2014. [Google Scholar]
- Mia, M.; Królczyk, G.; Maruda, R.; Wojciechowski, S. Intelligent Optimization of Hard-Turning Parameters Using Evolutionary Algorithms for Smart Manufacturing. Materials 2019, 12, 879. [Google Scholar] [CrossRef] [PubMed]
- Lazoglu, I.; Manav, A.C.; Murtezaoglu, Y. Tool path optimization for free form surface machining. CIRP Ann. 2019, 58, 101–104. [Google Scholar] [CrossRef]
- Sato, R.; Shirase, K.; Hayashi, A. Energy Consumption of Feed Drive Systems Based on Workpiece Setting Position in Five-Axis Machining Center. J. Manuf. Sci. Eng. 2018, 140, 021008. [Google Scholar] [CrossRef]
- Zhou, L.; Li, J.; Fangyi, L.; Meng, Q.; Li, J.; Xu, X. Energy consumption model and energy efficiency of machine tools: A comprehensive literature review. J. Clean. Prod. 2016, 112, 3721–3734. [Google Scholar] [CrossRef]
- Gao, Y.; Mi, S.; Zheng, H.; Wang, Q.; Wei, Z. An Energy Efficiency Tool Path Optimization Method Using a Discrete Energy Consumption Path Model. Machines 2022, 10, 348. [Google Scholar] [CrossRef]
- Zhang, Y.; Xu, X.; Liu, Y. Numerical control machining simulation: A comprehensive survey. Int. J. Comput. Integr. Manuf. 2011, 24, 593–609. [Google Scholar] [CrossRef]
- Alseedi, N.H.; Yusof, Y.; Kadir, A.; Abedlhafd, M.M. A Review of Tool Path Optimization in CNC Machines: Methods and Its Applications Based on Artificial Intelligence. Int. J. Adv. Sci. Technol. 2020, 29, 3368–3380. [Google Scholar]
- Zahraee, S.M.; Assadi, M.K.; Saidur, R. Application of Artificial Intelligence Methods for Hybrid Energy System Optimization. Renew. Sustain. Energy Rev. 2016, 66, 617–630. [Google Scholar] [CrossRef]
- Chen, C.J.; Tseng, C.S. The path and location planning of workpieces by genetic algorithms. J. Intell. Manuf. 1996, 7, 69–76. [Google Scholar] [CrossRef]
- Dereli, T.; Filiz, I.H.; Baykasoglu, A. Optimizing cutting parameters in process planning of prismatic parts by using genetic algorithms. Int. J. Prod. Res. 2001, 39, 3303–3328. [Google Scholar] [CrossRef]
- Cus, F.; Balic, J. Optimization of cutting process by GA approach, Robot. Comput. Integr. Manuf. 2003, 19, 113–121. [Google Scholar] [CrossRef]
- Xin, Y.; Yang, S.; Wu, F.; Evans, R.; Wu, F. A tool path optimization approach based on blend feature simplification for multi-cavity machining of complex parts. Sci. Prog. 2020, 103, 36850419874233. [Google Scholar] [CrossRef]
- Dewil, R.; Kucukoglu, I.; Luteyn, C.; Cattryse, D. A critical review of multi-hole drilling path optimization. Arch. Comput. Methods Eng. 2019, 26, 449–459. [Google Scholar] [CrossRef]
- Nassehi, A.; Essink, W.; Barclay, J. Evolutionary algorithms for generation and optimization of tool paths. CIRP Ann. 2015, 64, 455–458. [Google Scholar] [CrossRef]
- Lim, W.C.E.; Kanagaraj, G.; Ponnambalam, S.G. A hybrid cuckoo search-genetic algorithm for hole-making sequence optimization. J. Intell. Manuf. 2014, 27, 417–429. [Google Scholar] [CrossRef]
- Mahdavinejad, R.A.; Khani, N.; Fakhrabadi, M.M.S. Optimization of milling parameters using artificial neural network and artificial immune system. J. Mech. Sci. Technol. 2012, 26, 4097–4104. [Google Scholar] [CrossRef]
- Ghaiebi, H.; Solimanpur, M. An ant algorithm for optimization of hole-making operations. Comput. Ind. Eng. 2007, 52, 308–319. [Google Scholar] [CrossRef]
- Wu, J.; Yao, Y. A modified ant colony system for the selection of machining parameters. In Proceedings of the 2008 Seventh International Conference on Grid and Cooperative Computing, Shenzhen, China, 24–26 October 2008; pp. 89–93. [Google Scholar]
- Onwubolu, G.C.; Clerc, M. Optimal path for automated drilling operations by a new heuristic approach using particle swarm optimization. Int. J. Prod. Res. 2004, 42, 473–491. [Google Scholar] [CrossRef]
- Xi, J.; Liao, G. Cutting parameter optimization based on particle swarm optimization. In Proceedings of the 2009 Second International Conference on Intelligent Computation Technology and Automation, Changsha, China, 10–11 October 2009; pp. 255–258. [Google Scholar]
- Prakasvudhisarn, C.; Kunnapapdeelert, S.; Yenradee, P. Optimal cutting condition determination for desired surface roughness in end milling. Int. J. Adv. Manuf. Technol. 2009, 41, 440. [Google Scholar] [CrossRef]
- Srinivas, J.; Giri, R.; Yang, S.H. Optimization of multi-pass turning using particle swarm intelligence. Int. J. Adv. Manuf. Technol. 2009, 40, 56–66. [Google Scholar] [CrossRef]
- Lee, Y.Z.; Ponnambalam, S.G. Optimization of multipass turning operations using particle swarm optimization. In Proceedings of the 7th International Symposium on Mechatronics and its Applications, Sharjah, United Arab Emirates, 20–22 April 2010; pp. 1–6. [Google Scholar]
- Hsieh, H.T.; Chu, C.H. Improving optimization of tool path planning in 5-axis flank milling using advanced PSO algorithms. Robot. Comput. Integr. Manuf. 2013, 29, 3–11. [Google Scholar] [CrossRef]
- Erkokrmaz, K.; Altintas, Y. High speed CNC system design. Part I: Jerk limited trajectory generation and quintic spline interpolation. Int. J. Mach. Tools Manuf. 2001, 41, 1323–1345. [Google Scholar] [CrossRef]
- Uchiyama, N.; Mori, K.; Terashima, K.; Saeki, T. Optimal Motion Trajectory Generation and Real-Time Trajectory Modification for an Industrial Robot Working in a Rectangular Space. J. Syst. Des. Dyn. 2013, 7, 278–292. [Google Scholar] [CrossRef]
- Dong, J.; Ferreira, P.M.; Stori, J.A. Feed-rate optimization with jerk constraints for generating minimum time trajectories. Int. J. Mach. Tools Manuf. 2007, 47, 1941–1955. [Google Scholar] [CrossRef]
- Heng, M.; Erkorkmaz, K. Design of a NURBS interpolator with minimal feed fluctuation and continuous feed modulation capability. Int. J. Mach. Tools Manuf. 2010, 50, 281–293. [Google Scholar] [CrossRef]
- Li, K.L.; Hu, Q.; Liı, J. Path Planning of Mobile Robot Based on Improved Multiobjective Genetic Algorithm. Wirel. Commun. Mob. Comput. 2021, 2021, 8836615. [Google Scholar] [CrossRef]
- Karuppusamy, S.N.; Karuppusamy, B.Y. Minimizing airtime by optimizing tool path in computer numerical control machine tools with application of A* and genetic algorithms. Adv. Mech. Eng. 2017, 9, 1687814017737448. [Google Scholar] [CrossRef]
- Khodabakhshi, Z.; Hosseini, A.; Ghandehariun, A.M. A Novel Method for Achieving Minimum Distance Collision-free Tool Path for Drilling. In Proceedings of the CSME Congress, Charlottetown, PE, Canada, 21–24 June 2020. [Google Scholar]
- Ahmed, F.; Deb, K. Multi-objective Optimal Path Planning Using Elitist Non-dominated Sorting Genetic Algorithms. Soft Comput. 2013, 17, 1283–1299. [Google Scholar] [CrossRef]
- Huang, Y.; Fei, M. Motion Planning of Robot Manipulator Based on Improved NSGA-II. Int. J. Control Autom. Syst. 2018, 16, 1878–1886. [Google Scholar] [CrossRef]
- Tang, Q.; Ma, L.; Zhao, D.; Sun, Y.; Wang, Q. A Dual-Robot Cooperative Arc Welding Path Planning Algorithm based on Multi-Objective Optimization. IFAC-PapersOnLine 2023, 56, 3048–3053. [Google Scholar] [CrossRef]
- Deb, K.; Agrawal, S.; Pratap, A.; Meyarivan, T. A fast elitist non-dominated sorting genetic algorithm for multi-objective: NSGA-II. In Proceedings of the Parallel Problem Solving from Nature VI Conference, Paris, France, 18–20 September 2000; Springer: Berlin/Heidelberg, Germany, 2000; pp. 846–858. [Google Scholar]
- Zitzler, E.; Laumanns, M.; Lothar, L. SPEA2: Improving the strength Pareto evolutionary algorithm for multi-objective optimization. Evol. Methods Des. Optim. Control Appl. Ind. Probl. 2001, 103, 95–100. [Google Scholar]
- Hung, K.T.; Liu, J.S.; Chang, Y.Z. A comparative study of smooth path planning for a mobile robot by evolutionary multi-objective optimization. In Proceedings of the 2007 IEEE International Symposium on Computational Intelligence in Robotics and Automation, Jacksonville, FL, USA, 20–23 June 2007. [Google Scholar]
- Castillo, O.; Trujillo, L.; Melin, P. Multiple objective genetic algorithms for path-planning optimization in autonomous mobile robots. Soft Comput. 2007, 11, 269–279. [Google Scholar] [CrossRef]
- Davoodi, M.; Panahi, F.; Mohades, A.; Hashemi, S.N. Multi-objective path planning in discrete space. Appl. Soft Comput. 2013, 13, 709–720. [Google Scholar] [CrossRef]
- Fonseca, P.J.; Fleming, C.M. Genetic Algorithms for Multiobjective Optimization: Formulation, Discussion and Generalization. In Proceedings of the 5th International Conference on Genetic Algorithms, Urbana-Champaign, IL, USA, 17–21 July 1993; Forrest, S., Ed.; Morgan Kaufmann Publishers: Burlington, MA, USA, 1993; pp. 416–423. [Google Scholar]
- Goldberg, D.E.; Deb, K. A Comparative Analysis of Selection Schemes Used in Genetic Algorithms. In Foundations of Genetic Algorithms; Rawlins, G., Ed.; Morgan, Kaufmann: San Mateo, CA, USA, 1991; pp. 69–93. [Google Scholar]
- Oysu, C.; Bingul, Z. Application of heuristic and hybrid-GASA algorithms to tool-path optimization problem for minimizing airtime during machining. Eng. Appl. Artif. Intell. 2009, 22, 389–396. [Google Scholar] [CrossRef]
- Lucas, C.; Sosa, D.H.; Caldeira, R.M.A. Multi-Objective Four-Dimensional Glider Path Planning using NSGA-II. In Proceedings of the IEEE/OES Autonomous Underwater Vehicle Workshop (AUV), Porto, Portugal, 6–9 November 2018. [Google Scholar]
- Yang, X.S. Chapter 14—Multi-Objective Optimization. In Nature-Inspired Optimization Algorithms; Elsevier: Amsterdam, The Netherlands, 2014; pp. 197–211. [Google Scholar]
- Cicek, Z.I.E.; Ozturk, Z.K. A Comparative Study of Scalarization Techniques on the Multi-Objective Single Machine-Scheduling Problem Under Sequence-Dependent Setup Time, Release Date and Due Date Constraints. Gazi Univ. J. Sci. 2020, 33, 429–444. [Google Scholar] [CrossRef]
- Deb, K.; Agrawal, S.; Pratap, A.; Meyarivan, T. A fast and elitist multi-objective genetic algorithm: NSGA-II. IEEE Trans. Evol. Comput. 2002, 6, 182–197. [Google Scholar] [CrossRef]
- Xu, G.; Chen, J.; Zhou, H.; Yang, J.; Hu, P.; Dai, W. Multi-objective feed rate optimization method of end milling using the internal data of the CNC system. Int. J. Adv. Manuf. Technol. 2019, 101, 715–731. [Google Scholar] [CrossRef]
- Jia, S.; Wang, S.; Zhang, N.; Cai, W.; Liu, Y.; Hao, J.; Zhang, Z.; Yang, Y.; Sui, Y. Multi-objective parameter optimization of CNC plane milling for sustainable manufacturing. Environ. Sci. Pollut. Res. 2022, 1, 1–22. [Google Scholar] [CrossRef] [PubMed]
- Jiang, R.; Ci, S.; Liu, D.; Cheng, X.; Pan, Z. A Hybrid Multi-Objective Optimization Method Based on NSGA-II Algorithm and Entropy Weighted TOPSIS for Lightweight Design of Dump Truck Carriage. Machines 2021, 9, 156. [Google Scholar] [CrossRef]
- Halinga, M.S.; Nshama, E.W.; Schafle, T.R.; Uchiyama, N. Time and energy optimal trajectory generation for coverage motion in industrial machines. ISA Trans. 2023, 138, 735–745. [Google Scholar] [CrossRef] [PubMed]
- Xue, Y. Mobile Robot Path Planning with a Non-Dominated Sorting Genetic Algorithm. Appl. Sci. 2018, 8, 2253. [Google Scholar] [CrossRef]
ω Weighting Factors | Related Objective | Value |
---|---|---|
ω1 | Path Length | 0.9 |
ω2 | Path Smoothness | 0.1 |
Property | Symbol | Value |
---|---|---|
Number of populations | N | 300 |
Generation size | G | 500 |
Crossover index | nc | 5 |
Crossover rate | pc | 0.9 |
Mutation index | nm | 20 |
Mutation rate | pm | 0.1 |
Versions of Workpiece 1 | Non-Cutting Distance |
---|---|
Original | 5678.4 mm |
Optimized | 4015.2 mm |
Versions of Workpiece 2 | Non-Cutting Distance |
---|---|
Original | 4703.6 mm |
Optimized | 3203.2 mm |
Items | Specifications | Value |
---|---|---|
Travel | x-travel | 600 mm |
y-travel | 400 mm | |
z-travel | 500 mm | |
Table | Table size | 700 × 420 mm |
Spindle | Speed | 8000 rpm |
Max. Tapping Speed | 3000 rpm | |
Feed Rate | Rapid Speed (G00) | 48/48/48 m/min |
Cutting Feed Rate (G01) | 10,000 mm/min | |
Motor | x-axis | 1.5 kW |
y-axis | 1.5 kW | |
z-axis | 3 kW | |
Spindle | 7.5 kW |
Workpiece Versions | Cycle Time |
---|---|
Original Workpiece 1 | 1692 s |
Optimized Workpiece 1 | 1573 s |
Original Workpiece 2 | 1518 s |
Optimized Workpiece 2 | 1416 s |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Demir, G.; Acar Vural, R. Non-Cutting Moving Toolpath Optimization with Elitist Non-Dominated Sorting Genetic Algorithm-II. Appl. Sci. 2024, 14, 4471. https://doi.org/10.3390/app14114471
Demir G, Acar Vural R. Non-Cutting Moving Toolpath Optimization with Elitist Non-Dominated Sorting Genetic Algorithm-II. Applied Sciences. 2024; 14(11):4471. https://doi.org/10.3390/app14114471
Chicago/Turabian StyleDemir, Gamze, and Revna Acar Vural. 2024. "Non-Cutting Moving Toolpath Optimization with Elitist Non-Dominated Sorting Genetic Algorithm-II" Applied Sciences 14, no. 11: 4471. https://doi.org/10.3390/app14114471
APA StyleDemir, G., & Acar Vural, R. (2024). Non-Cutting Moving Toolpath Optimization with Elitist Non-Dominated Sorting Genetic Algorithm-II. Applied Sciences, 14(11), 4471. https://doi.org/10.3390/app14114471