This paper presents a comparative analysis of several metaheuristic optimization methods for generating trajectories of automated guided vehicles, which commonly operate in industrial environments. The goal is to address the challenge of efficient path planning for mobile robots, taking into account the specific capabilities and mobility limitations inherent to automated guided vehicles. To do this, three optimization techniques are compared: genetic algorithms, particle swarm optimization and pattern search. The findings of this study reveal the different efficiency of these trajectory optimization approaches. This comprehensive research shows the strengths and weaknesses of various optimization methods and offers valuable information for optimizing the trajectories of industrial vehicles using geometric occupancy maps.