Abstract. This paper introduces a model based on a multi-agent system that learns using the extended classifier system (MAXCS). The agents are informed in the news, after the weather forecast, the congestion levels of the main city avenues and they decide which avenue to use the following day. The results are encouraging, as the agents, both homogeneous and heterogeneous adapt to the congestion thresholds set by the authorities. The main factors for this adaptation are the reward received by the agents and their perception.