shengwu / elevator

0 stars 0 forks source link

Inter-elevator coordination #2

Open shengwu opened 9 years ago

shengwu commented 9 years ago

Like for challenge 10, we have a huge elevator and a four-person elevator. How should the huge elevator behave vs. the smaller elevator?

shengwu commented 9 years ago

Maybe try having the elevators go opposite directions. Or better detection of when an elevator is full.

shengwu commented 9 years ago

d930c6db245ef8b31a48ca05a5c4baecd9e74789 starts the elevators at random floors which helps. Maybe there could be a way for an elevator to say "I got this" - a third array of booleans?

shengwu commented 9 years ago

Maybe instead of picking up the farthest person who wants to go the other direction, it should go to the furthest floor and maybe people will have appeared by then. It seems like a a lot of people are left waiting on the top or ground floors.

Or just a few designated elevators can behave like this.

shengwu commented 9 years ago

Inter-elevator coordination possibly a bad idea: https://clarkmoody.com/Moody_AgentBasedElevatorControl.pdf

shengwu commented 9 years ago

Maybe idle elevators should go to floor 0 (this helps pass challenge 17)