Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titlegrid-array.sge
linenumberstrue
collapsetrue
#$ -cwd
#$ -e output/
#$ -o output/
#$ -t 10:10:500

# activate
module load sumo/1-14-1

# generate grid
netgenerate --grid \
  --grid.number 4 \
  --grid.length 50 \
  --output-file grid.net.xml

# randomTrips
python3 $SUMO_HOME/tools/randomTrips.py \
  -n grid.net.xml \
  -o grid.flows.xml \
  --begin 0 \
  --end 1 \
  --period 1 \
  --flows $SGE_TASK_ID

# routes
jtrrouter \
  --route-files grid.flows.xml \
  --net-file grid.net.xml \
  --output-file grid.rou.xml \
  --begin 0 \
  --end 10000 \
  --randomize-flows true \
  --remove-loops true \
  --accept-all-destinations

# generateContinuousRerouters
python3 $SUMO_HOME/tools/generateContinuousRerouters.py \
  --end 10000 \
  -n grid.net.xml \
  -o grid.rerouter.xml

# run
sumo -W -c grid.sumocfg --duration-log.statistics

Rezultati

Broj vozilaSrednja brzina
1005.62
2005.91
3004.72
4003.23
5003.12

...