Device and Method for Optimising the Movement of Automated-Guided Vehicles