This document presents an ant colony optimization (ACO) approach for solving the optimization of routing costs in service function chaining (SFC) for 5G networks, addressing a previously NP-hard problem. It discusses the methodology, including pheromone management and solution construction, along with experimental results demonstrating execution times and optimal solutions across different network scenarios. Future work includes adapting the algorithm for strict time constraints and refining heuristic guidance for improved efficiency.