Skip to content

SimPy is a process-based discrete-event simulation framework based on standard Python

License

Notifications You must be signed in to change notification settings

pasinduanuradhaperera/Simpy_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimPy Logo

SimPy Tutorial 🐍

Introduction 👨‍🏫

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.

Installation 🏗️

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

Getting Started 😉

Basic Usage

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()

Advanced Topics 🤠

Explore the following advanced topics to deepen your understanding of SimPy:

  • Generators and Events 🌀
  • Resource Constraints ⚙️
  • Processes and Interactions 🔄

Examples 🤔

Check out the Examples directory for more detailed SimPy models and real-world use cases.

Contributing 🤗

Contributions are welcome! To contribute to this tutorial, please submit a pull request or open an issue. For guidelines, refer to the CONTRIBUTING file.

License 🪪

This project is licensed under the MIT License. See the LICENSE file for details.

Contact 📧

For questions, feedback, or suggestions, please reach out to [email protected]

About

SimPy is a process-based discrete-event simulation framework based on standard Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published