Hi Damien,
The case of having very few or no vehicles moving on a road network often comes from the road shapefile, with, in particular, 2 specific causes:
- there are several connex components
- the intersections between the roads are not well computed.
If there are 2 connex components, a véhicule that has chosen a target for which the closest road is not in the same connex component than the closest road to its current location,
will not move as it is not possible to find a path in the graph between its location and its target.
There is an interesting model in the GAMA model library: Data / Data Cleaning / Clean Line Network.gaml.
When using it you can, clean your road network (in case the intersections between the roads was not well computed), and show the connex components.
You can then save the road you want.
As an example, in the attached model, I modify the original model to:
(1) save the roads in a shapefile
(2) run 2 simulations: one keeping only the main connex component and the other keeping all the roads.
If you try to use each of these roads files, with the Simple traffic model, you will see that in one case all the vehicles will move and not in the second case.
I hope it helps.
Cheers
Benoit