Skip to content
EntityQ16980929· pop 7· linked from 7 articles

SimPy stands for “Simulation in Python”, is a process-based discrete-event simulation framework based on standard Python. It enables users to model active components such as customers, vehicles, or agents as simple Python generator functions. SimPy is released as open source software under the MIT License. The first version was released in December 2002.

Source code

Though it is theoretically possible to do continuous simulations with SimPy, it has no features that help you with that. Also, SimPy is not really required for simulations with a fixed step size and where your processes don’t interact with each other or with shared resources. The documentation contains a tutorial , several guides explaining key concepts, a number of examples and the API reference . SimPy is released under the MIT License. Simulation model developers are encouraged to share their SimPy modeling techniques with the SimPy community. Please post a message to the SimPy mailing list . There is an introductory talk that explains SimPy’s concepts and provides some examples: watch the video or get the slides . SimPy requires Python = 3.8, both CPython and PyPy3 are known to work. If you’ve never used SimPy before, the SimPy tutorial is a good starting point for you. You can also try out some of the Examples shipped with SimPy. You can find a tutorial , examples , topical guides and an API reference , as well as some information about SimPy and its history in our online documentation . For more help, contact the SimPy mailing list . SimPy users are pretty helpful. You can, of course, also dig through the source code . If you find any bugs, please post them on our issue tracker .

Excerpt from the source-code README · 4,694 chars · not written by Vinony

Article · Русский

SimPy — это Python фреймворк процессо-ориентированной дискретно-событийной системы моделирования. Его диспетчеры событий основаны на функциях-генераторах Python. Также они могут использоваться для создания асинхронных сетей или для реализации мультиагентных систем (с как моделируемым, так и реальным взаимодействием). Процессы в SimPy — это просто Python генераторы, которые используются для моделирования активных компонентов, например, таких как покупатели, транспортные средства или агенты. SimPy также обеспечивает различные виды общих ресурсов для моделирования точек с ограниченной пропускной способностью (например, серверов, касс, тоннелей). Начиная с версии 3.1, SimPy также будет обеспечить возможности мониторинга для помощи в сборе статистических данных о ресурсахи процессах. Моделирование может выполняться в режиме «as fast as possible», в режиме реального времени (wall clock time) или в режиме ручного выполнения событий. Теоретически, в SimPy можно сделать непрерывную симуляцию, но фактически это не осуществимо. Однако, в случае моделирования с шагом фиксированного размера, где процессы не взаимодействуют с друг с другом или с общими ресурсами, может использоваться простой цикл while. SimPy распространяется с руководством, подробной документацией и большим количеством примеров. SimPy выпущен как open source проект под лицензией MIT. Первая версия была выпущена в декабре 2002 года.

Abstract from DBpedia / Wikipedia · CC BY-SA

Available in 6 languages

via Wikidata sitelinks · CC0