Lurker News

Comments (415) 145 threads

peterldowns3 replies#
Back in highschool, simulating different elevator algorithms was one of the projects I implemented during my CS class. It wasn't for the class — AP CS did not require anything like actual programming — but it was a fun project.

A cool connection is that a spinning-disk hard drive (HDD) is actually kind of like one really long elevator, just wrapped around a spindle instead of perfectly vertical. The SCAN algorithm is actually a disk-scheduling algorithm!
https://en.wikipedia.org/wiki/Elevator_algorithm

bherms1 reply#
We did this in college as well using microcontrollers and leds or something - i forget the exact details. It was super fun
NKosmatos#
Did exactly the same with Assembly language on a PIC16C84 microcontroller with LEDs dyeing my university years a looong time ago.
liesliy2 replies#
The elevator algorithm → disk scheduling connection is such a perfect example of how CS concepts keep showing up in unexpected places. Same idea, completely different domain. It makes me wonder how many other "unrelated" problems we're solving today already have decades-old algorithms waiting to be rediscovered for them. Robot motion planning is basically just elevator scheduling with more degrees of freedom.
sobani1 reply#
FYI: all your comments are [flagged][dead]

I don't know why, because they all look fine to me...

shmageggy2 replies#
LLM text tells, particularly in their other comments. Definitely AI generated.

Continue this thread — 2 replies

toxik#
> Robot motion planning is basically just elevator scheduling with more degrees of freedom.

Certainly a take, ChatGPT. Not a very good one, but a take nonetheless.

amenghra#
It's fun that the same algorithm applies to two different problems. In the disk case, the only unpredictable thing is future requests. Elevators have to deal with two unpredictable things, future requests as well as how long humans take to get in and out of the elevator. So it's doubly fun that the same algorithm works in both cases!
omoikane9 replies#
> Destination Dispatch [...] are in general worse

I wonder if this is an artifact of how the author used random destinations. I worked in a building that used Destination Dispatch, and the common travel pattern seemed to be:
- Everyone who is not on the ground floor generally want to go to the ground floor.
- People who are on the ground floor generally travel in large groups to the same destination.
This happens because people who worked on the same floor often leave for lunch at the same time, and return at the same time to the same floor. Destination Dispatch helps in this case because it's batching large groups of people with the same destination.

taftster#
Yes, it's definitely more likely for an individual already in an upper floor to return to ground than a stop above or below. The people queuing up in simulations don't seemingly get this right all the time.

Also the group of people going to or returning from lunch is real as well. The grouping factor happens more at the middle of the day and less at the morning or evening. Primarily because of lunch.

acomjean2 replies#
Is it because the criteria is wait time not travel time? Destination dispatch would avoid some extra stops on the trip.

I just visited a new building with destination dispatch, so it seems to be still around.
My EE roommate in college had to build an elevator circuit as a final problem. It was on a bread board and had a bunch of call buttons and had a motor and a clear disk with black squares so it could figure out where it was…. I think it was the simple algorithm…

vova_hn22 replies#
> Is it because the criteria is wait time not travel time?

Yeah, it doesn't make any sense to optimize wait time instead of total time from pressing the button to reaching destination.

kadoban#
Human psychology might allow other reasonable criteria even if perfectly rational choice is just total time to destination.
esikich3 replies#
It very well could be the case that people get more upset about waiting for the car than total travel time when they are already in the car. Ie, pick them up sooner even if travel time is longer. In fact, I would bet that this is the case.

Continue this thread — 3 replies

Ekaros#
The criteria might also be throughput. That is moving maximum number of passengers in which case total travel time is likely much better metric than wait time.
ApolloFortyNine1 reply#
Surely there's a dataset out there with elevator calls for an office building you could test on, instead of the poor random destination case.

Surprisingly, claude failed to find a good one.
Also, part of destination dispatch (I'm guessing based on experience) removes the 'stopping on every floor problem', so the real test would be total time including wait at that point I think.

Ekaros#
I think most of these sort of data sets are considered trade secrets. They are certainly recorded and even stored. But as they could give competitive edge between manufacturers they are not publicly shared. And access to them would mean building maintenance or managers giving access to their occupants information which some of the occupants would not like.
darkwater2 replies#
Yeah, and definitely is not the right story for hotels. His premise of "morning traffic mostly from lobby to floors" is completely false in an hotel where you get it both ways due to people going down for breakfast and going back up and the down once again.

I see hotels with the kiosk model changing the UI depending on breakfast rush hour

whartung1 reply#
Most interesting hotel elevator system I’ve seen was in Washington DC.

Instead of hitting the call button, you started the request with your floor. Then the system would assign you an elevator (there were 6 cars as I recall).
I assume this gave the system more accurate routing data to make it more efficient for everyone.

nkjoep#
It’s explained in the article
icosian1 reply#
> Yeah, and definitely is not the right story for hotels.

The first time I encountered Destination Dispatch was in a London hotel, maybe 15 years ago. Anyone unfamiliar with the system would naturally sprint towards an open elevator and end up in an elevator with no buttons, totally bewildered. It's not the right system for a transient population.

donalhunt#
Maybe they were embracing YOLO - who knows the possibilities of putting your trust in others' decisions / destinations.

Or should it be YORO? You only ride once?

alexpotato#
> - People who are on the ground floor generally travel in large groups to the same destination.

I also thought that this is one of the biggest reasons destination dispatch was better.
There are even articles about switching to destination dispatch in office buildings or hotels lead to dramatic reductions in wait time.

dawnerd#
Cruise ships that use destination dispatch have been much nicer too. Ships that use the older algorithms are a pain to wait during peak times. Guess plus side you’ll use the stairs more.
pimlottc3 replies#
This is case where you need to make sure your test data reflects real-world usage or you end up optimizing for the wrong thing.

Ideally a new elevator installation would have a trial period where they record usage and then run it through a simulator like this to determine the optimal strategy for that particular building. And you'd want to re-run it every once in a while as the building tenants/usage changes. I wonder if this actually happens, though.

shepherdjerred6 replies#
I wonder if we'll see LLM elevator scheduling
fragmede#
IBM's Watson has been used for elevator scheduling.
noisy_boy4 replies#
I apologize for bringing you to the 29th floor instead of the 3rd floor as you requested. That's on me. I will do better next time.

Continue this thread — 4 replies

Terr_#
Then it'll be time to make an entirely new software accreditation system, simply so that anyone building such a thing can be disbarred/excommunicated.
Ekaros2 replies#
Most likely not. I think all the big players have been using more traditional ML approaches for years. Then again someone new might go there and fail miserably.

Continue this thread — 2 replies

omoikane2 replies#
It sounds like you are looking for Happy Vertical People Transporters with Genuine People Personalities.

Continue this thread — 2 replies

_kb3 replies#
The data is already there. This also gets more interesting when you expand the scope from just elevators to general building occupancy and movement.

In the simplest sense, I've seen this tied into security gates so as people badge on when entering the building there's already suitable elevator movement to meet demand by time the foot traffic reaches the lift lobby. That can then also feed into destination dispatch if you move from just people counts to identity (and known/most likely work floor).
From there you can move into wifi trilateration and have a live and quite accurate view of both how and who interacts with a physical space. This can feed into HVAC load shedding, JIT bookings for meeting rooms or workspaces, and a lot of very good things from a sustainability and general optimisation perspective. The flip side is it also has the potential to be an absolute dystopian privacy nightmare.

Continue this thread — 3 replies

Continue this thread — 1 more reply

Continue this thread — 2 more replies

grep_it#
I always come back to this game whenever I'm at a hotel for a conference waiting for the elevator.
perryprog#
Wow, I just came here to comment that I've always wondered if a game where you have to program an elevator scheduler would be any fun. I thought surely no-one's thought to make that before, too! Glad to be proven wrong.
alanwreath4 replies#
I wish there were more games like this. It’s such a simple premise but so satisfyingly difficult after each level. And it even has a bit of randomish failure which makes for even more challenge.
john_strinlai1 reply#
at a quick glance, it reminds me of "the farmer was replaced", if you havent seen/heard of that one

Continue this thread — 2 replies

Continue this thread — 3 more replies

Continue this thread — 6 more replies

theodorejb14 replies#
The worst situation I've encountered is after a large conference when everyone is leaving the hotel at once. An elevator quickly fills up on the way down, but then wastes time stopping at every subsequent floor with a call, even though no one else can fit inside. At each floor the elevator stops, the doors open, the waiting people see it's already packed, the doors close, and this repeats on the next 15 floors before finally reaching the bottom where everyone gets off. If the algorithm could know an elevator is completely full and only stop at its destination floors rather than every floor along the way with a call, it would be far more efficient.

Continue this thread — 14 replies

Load more comments