Welcome to the SimPy Tutorial! This repository provides a comprehensive guide to learning SimPy, a process-based discrete-event simulation framework for Python. Whether you're new to simulation or looking to enhance your skills, this tutorial will help you get started with SimPy.
To use SimPy, you need to have Python installed on your machine. You can install SimPy using pip:
pip install simpy
or
pip3 install simpy
Creating a Simple Simulation Here's a basic example to help you get started with SimPy:
import simpy
def my_process(env):
print('Process started at', env.now)
yield env.timeout(5)
print('Process finished at', env.now)
env = simpy.Environment()
env.process(my_process(env))
env.run()
- Generators and Events 🌀
- Resource Constraints ⚙️
- Processes and Interactions 🔄
Check out the Examples directory for more detailed SimPy models and real-world use cases.
Contributions are welcome! To contribute to this tutorial, please submit a pull request or open an issue. For guidelines, refer to the CONTRIBUTING file.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions, feedback, or suggestions, please reach out to [email protected]