This document discusses using AI to optimize bus depot operations for Transports publics fribourgois, which plans up to 2000 daily trips with over 220 vehicles across 9 depots. The proposed solution uses a two-step iterative algorithm combining a greedy algorithm and local search optimizations to solve the traveling salesman problem of efficiently scheduling trips in real-time. An AI-based architecture and demonstration are presented.