Assign a route to the vehicle
Home | Exercise 1 - Start | Exercise 3 - Connections I
Now that we have a moving vehicle, let's create a route for it. The idea is to assign a route for the vehicle, for
example A(0,0)
→ B(3,2)
→ C(1,4)
and then back to A
| | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| 0 | A | - | - | \ | |
| 1 | ¦ | | | ¦ | |
| 2 | ¦ | | | B | |
| 3 | ¦ | | | ¦ | |
| 4 | \ | C | - | / | |
We also want to stay 1 turn at each stop, so the time to complete the route, from A to A again will be:
|A stop | 1 turn |
|A to B | 5 turns |
|B stop | 1 turn |
|B to C | 4 turns |
|C stop | 1 turn |
|C to A | 5 turns |
|TOTAL | 17 turns |
You can also try with a circular route repeating some stops, like for example (0,0)
→ (3,2)
→ (1,4)
→ (3,2)
. This will take 22 turns to complete