TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Traffic/Parking Lot Simulation?

5 pointsby jforjuanchoover 5 years ago
Greetings,<p>Just wondering if anyone has any pointers on how to get started in things like parking lot simulation, traffic simulation and public transit simulation?<p>Thanks!

2 comments

mtmailover 5 years ago
Have a look at the projects by <a href="https:&#x2F;&#x2F;sharedstreets.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sharedstreets.io&#x2F;</a> Some of it is open source, e.g. <a href="https:&#x2F;&#x2F;github.com&#x2F;sharedstreets&#x2F;speed-prediction" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sharedstreets&#x2F;speed-prediction</a>
评论 #21815167 未加载
mindcrimeover 5 years ago
I&#x27;m far from an expert, but I can share a thought or two. I think all of the you examples you cited would fall into the overall umbrella of &quot;discrete event simulation&quot;[1]. This would be discrete as opposed to something like fluid dynamics or weather modeling, which would be closer to &quot;continuous simulation&quot;[6].<p>Anyway, within the realm of discrete event simulation, there are a lot of different techniques and tools. You can always code up a simulation using any standard programming language: your Java, Python, C++, Go, etc. But there are also purpose built tools and libraries for this as well. As you might expect, a lot of tools[2] in this space are F&#x2F;OSS.<p>Not on that list, but also a possible option, is NetLogo[3]. It&#x27;s advertised as a &quot;Multi-agent system&quot; simulation environment, but can absolutely be used for various kinds of DES. Once nice thing about NetLogo is that it&#x27;s very popular and has a vibrant community, and a lot of pre-existing models you can use to learn from, or as a base for your own models.<p>If you&#x27;re a Python person, Simpy[4] is very popular as well.<p>Here&#x27;s a super simple simulation[5] involving a traffic light, using Simpy.<p>Also, a technique that might not be <i>specifically</i> useful in your domain, but which is widely used for many kinds of simulation, and which is probably worth knowing about, is Monte Carlo simulation[7].<p>See also: the Wikipedia page[8] on &quot;traffic simulation&quot;.<p>You may also find that this starts to overlap some with &quot;queuing theory&quot;[9] in places.<p>[1]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Discrete-event_simulation" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Discrete-event_simulation</a><p>[2]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;List_of_discrete_event_simulation_software#Open_Source" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;List_of_discrete_event_simulat...</a><p>[3]: <a href="http:&#x2F;&#x2F;ccl.northwestern.edu&#x2F;netlogo&#x2F;index.shtml" rel="nofollow">http:&#x2F;&#x2F;ccl.northwestern.edu&#x2F;netlogo&#x2F;index.shtml</a><p>[4]: <a href="https:&#x2F;&#x2F;simpy.readthedocs.io&#x2F;en&#x2F;latest&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simpy.readthedocs.io&#x2F;en&#x2F;latest&#x2F;</a><p>[5]: <a href="https:&#x2F;&#x2F;www.geeksforgeeks.org&#x2F;basics-of-discrete-event-simulation-using-simpy&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.geeksforgeeks.org&#x2F;basics-of-discrete-event-simul...</a><p>[6]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Continuous_simulation" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Continuous_simulation</a><p>[7]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Monte_Carlo_method" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Monte_Carlo_method</a><p>[8]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Traffic_simulation" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Traffic_simulation</a><p>[9]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Queueing_theory" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Queueing_theory</a>
评论 #21815162 未加载