{"id":13598279,"url":"https://github.com/mwong009/simulation","last_synced_at":"2025-12-30T02:06:33.308Z","repository":{"id":52238132,"uuid":"92973395","full_name":"mwong009/simulation","owner":"mwong009","description":"Discrete event traffic simulation using simpy","archived":false,"fork":false,"pushed_at":"2021-03-31T12:13:34.000Z","size":837,"stargazers_count":28,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-06T22:41:35.180Z","etag":null,"topics":["simpy","sioux-falls"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mwong009.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-31T17:53:57.000Z","updated_at":"2024-08-28T07:37:01.000Z","dependencies_parsed_at":"2022-08-30T23:51:27.345Z","dependency_job_id":null,"html_url":"https://github.com/mwong009/simulation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwong009%2Fsimulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwong009%2Fsimulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwong009%2Fsimulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwong009%2Fsimulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwong009","download_url":"https://codeload.github.com/mwong009/simulation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248168241,"owners_count":21058793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["simpy","sioux-falls"],"created_at":"2024-08-01T17:00:51.284Z","updated_at":"2025-12-30T02:06:33.286Z","avatar_url":"https://github.com/mwong009.png","language":"Python","readme":"simulation\n==========\n\n\nRequriements\n------------\n\nRequirements can be installed with Conda and pip\n\nPython (3.5+) https://www.python.org/downloads/\n\nNumPy (1.13+) https://scipy.org/install.html\n\nMatplotlib (2.02+) https://matplotlib.org/\n\nSimPy (3.0.10+) https://simpy.readthedocs.io/\n\nopencv (3.0+) http://www.opencv.org/\n\nConda setup\n-----------\n\nGet miniconda from [here](https://docs.conda.io/en/latest/miniconda.html)\n\nInstall git:\n\n    \u003e conda install git \n\nClone this repository\n\n    \u003e git clone https://github.com/mwong009/simulation.git simulation\n\ncd into the directory\n\n    \u003e cd simulation\n\nInstalling\n----------\n\nFrom the project directory:\n\nWindows:\n\n    C:\\...\\simulation\u003e pip install -r requirements.txt\n\nLinux:\n\n    /.../simulation\u003e pip3 install -r requirements.txt\n\n\n\nUsage and Documentation\n-----------------------\nSimPy is a process-based discrete-event simulation framework based on standard Python. Processes in SimPy are defined by Python generator functions and may, for example, be used to model active components like customers, vehicles or agents. SimPy also provides various types of shared resources to model limited capacity congestion points (like servers, checkout counters and tunnels).\n\nFrom the project directory, run the command:\n\n    \u003e python script.py\n\nOn linux:\n\n    \u003e python3 script.py\n\n**Hit spacebar to start**\n\nSample output:\n\n    car 1 arrived on link 1E at 0.03s (Q=0)\n    car 2 arrived on link 2S at 0.63s (Q=0)\n    car 3 arrived on link 6N at 0.73s (Q=0)\n    ...\n    car 1 departed link 4E at 1.29s (Q=0)\n    car 6 arrived on link 6N at 1.71s (Q=0)\n    car 6 departed link 6N at 1.83s (Q=0)\n    ...\n    car 96 arrived on link 7E at 37.20s (Q=0)\n    car 96 departed link 7E at 37.20s (Q=0)\n    car 99 departed link 6N at 38.10s (Q=0)\n    car 99 arrived on link 7E at 39.06s (Q=0)\n    car 99 departed link 7E at 39.06s (Q=0)\n\nStatistics can be generated\n\n    [514 rows x 6 columns]\n           totalTravelTime  totalSegments  meanWaitTime\n    carID                                              \n    1             3.759368              3      0.372207\n    2             7.340689              3      1.282778\n    3             2.007794              2      0.064265\n    4             1.956925              1      1.140182\n    5             5.664470              3      0.986793\n    6             1.404893              2      0.055849\n    7             4.237412              1      3.289740\n    8             3.490860              1      3.139994\n    9             2.345139              1      1.451333\n    10            4.175994              1      3.244251\n    11            7.098955              3      1.487988\n    ...\n\nPlotting done on Matplotlib\n","funding_links":[],"categories":["Discrete-event simulation and queuing models"],"sub_categories":["2D+ dynamical systems"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwong009%2Fsimulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwong009%2Fsimulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwong009%2Fsimulation/lists"}