Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Question on Running duaIterate.py with Multi-threading

Hi,
I am currently working on a machine learning project that requires repeated SUMO simulations. I am using the tools/assign/duaIterate.py script, but I have encountered performance limitations. For example, running 26 vehicles over 20 iterations takes approximately 45 minutes.
When I check the activity monitor, I see that RAM usage stays around 20%, while a single CPU thread is consistently at 100%. I assume this bottleneck arises because SUMO runs on a single thread.
Could you advise me on how to run the following code using multiple threads, or suggest a more efficient setup for parallel execution?

To reproduce a similar simulation, please use the code below:

```
python3 $SUMO_HOME/tools/assign/duaIterate.py \
  -n osm.net.xml.gz \
  -r taxi_trips.xml \
  -+ taxi_vtypes.xml \
  -l 20 \
  --max-convergence-deviation 0.01 \
  --continue-on-unbuild
```

Best regards
Gkisa

Back to the top