6 releases (3 breaking)
|0.10.0||Jul 25, 2021|
|0.9.2||Jul 5, 2021|
|0.9.0||Jun 24, 2021|
|0.8.0||May 23, 2021|
|0.7.0||May 23, 2021|
#41 in Simulation
71 downloads per month
Used in sim
"Sim" or "SimRS" is a discrete event simulation package that facilitates
Rust- and npm-based simulation products and projects
"Sim" or "SimRS" is a discrete event simulation package that facilitates Rust- and npm-based simulation products and projects.
This repository contains:
- Random variable framework, for easy specification of stochastic model behaviors.
- Out-of-the-box models, for quickly building out simulations of dynamic systems with common modular components.
- Output analysis framework, for analyzing simulation outputs statistically.
- Simulator engine, for managing and executing discrete event simulations.
- Custom model macros, for seamlessly integrating custom models into simulations.
Sim is compatible with a wide variety of compilation targets, including WebAssembly. Sim does not require nightly Rust.
Simulation is a powerful tool for analyzing and designing complex systems. However, most simulators have steep learning curves, are proprietary, and suffer from limited portability. Sim aspires to reduce the time required to build new simulation products, complete simulation projects, and learn simulation fundamentals. Sim is open source and, by virtue of compilation target flexibility, relatively portable.
For use in Rust code bases, leverage the package as a
[dependencies] sim = "0.10"
npm i sim-rs
Rust simulations are created by passing
post constructor. WebAssembly simulations are defined in a declarative YAML or JSON format, and then ingested through
post_json constructors. Both models and connectors are required to define the simulation. For descriptions of the out-of-the-box models, see MODELS.md.
Simulations may be stepped with the
step_until methods. Input injection is possible with the
Analyzing simulations will typically involve some combination of processing model records, collecting message transfers, and using output analysis tools. Analysis of IID samples and time series data are possible.
Issues, feature requests, and pull requests are always welcome!
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in sim by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.