A project during my graduate work was to solve this problem. You can read my write up, which includes pseudo-code for the best algorithm I found[1].<p>Long story short: a simple, rules-based algorithm defeated my best efforts at having multiple elevators working together to coordinate their action.<p>[1]: <a href="https:&#x2F;&#x2F;clarkmoody.com&#x2F;Moody_AgentBasedElevatorControl.pdf" rel="nofollow">https:&#x2F;&#x2F;clarkmoody.com&#x2F;Moody_AgentBasedElevatorControl.pdf</a>