Skip to content

Commit 8bdb656

Browse files
committed
Merge branch 'master' of https://github.com/hi6724/deadlock
2 parents 6cd78e4 + 1c0da23 commit 8bdb656

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
[] deadlock
2-
[x] gridlock
3-
[x] random scenario
1+
# Solve Gridlock and Deadlock with sumo simulator
2+
It is a program that solves deadlock and gridlock when there is no traffic light in Sumo simulator.
3+
4+
## How to use
5+
There are a total of 4 files.
6+
1. none.py When executing, the number of cars can be determined, and whether to ignore or keep the signal can be determined (0=keep the signal, 1=ignore the signal).
7+
2. File deadlock for reproducing deadlock.py. When executed, the number of vehicles can be determined, and whether to control may be set. (0=no control, 1=with control)
8+
3. File gridlock for reproducing gridlock.py. In the same manner as above, the number of vehicles and whether to control may be set. (0=no control, 1=with control)
9+
4. When running randomScenario.py, which solves both deadlock and gridlock, a car is created at each end. In the same manner as above, the number of vehicles and whether to control may be set. (0=no control, 1=with control)

0 commit comments

Comments
 (0)