A model for the management of a tram fleet