我在使用 SUMO 的 randomTrips.py 時遇到了問題,盡管我設定了一個非常高的邊緣因子,但我仍然在我的網路“內部”生成了車輛。我想從起始車道開始到最終車道結束旅行。
這是我生成旅行檔案的方式。我想要 ~ 1000 輛汽車,每 2 秒產生 1 輛汽車,持續時間為 ~2000 秒。
python3 /home/sumo/tools/randomTrips.py -n osm.net.xml -b 0 -e 2000 -p 2 --trip-attributes="departLane=\"best\" departSpeed=\"10.0\" departPos=\"base\"" --route-file trips.xml --fringe-factor 200000
這里發生了什么?
uj5u.com熱心網友回復:
如果您的網路不是太大,您可以考慮明確列出概率并使用一兩個權重檔案來給出邊緣概率。此處描述了詳細資訊:https : //sumo.dlr.de/docs/Tools/Trip.html#customized_weights。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/341179.html
