SimPy Tutorial 1: Introduction to SimPy

preview_player
Показать описание
In this video, I discuss some of the reasons SimPy is a good option for discrete event simulation. Then, I demonstrate the difference between a generator (one of the fundamental elements of SimPy) and a function. Finally, I wrap up the video by writing a simple SimPy program to illustrate how timeout events work.

Use 1080p for best viewing!

Today's code:
==============================

import simpy

def main():
env = simpy.Environment()
print("Simulation complete")

def traffic_light(env):
while True:

if __name__ == '__main__':
main()

==============================
Рекомендации по теме
Комментарии
Автор

This is definitely one of the better tutorials. Gets to the point and shows how it works. Instead of spending an hour putting together a complicated scenario.

arkie
Автор

Please bring next parts of the series. This video was super awesome.

shubhamvats
Автор

This is one of the better SimPy tutorials on Youtube. Please continue the series!

lowyieldbondfunds
Автор

great explanation! please upload your next parts of the series~ This is the best and simplest tutorial I have ever seen in Youtube!

cylanokim
Автор

Thanks for your time and effort to make this tutorials! Clear and easy to understand.

xmatosjoao
Автор

Please make a new video, really enjoyed this one! I really need more tutorials on Simpy :)

sinxcosx
Автор

By far one of the best videos I have seen.

diegolainfiesta
Автор

at 6:44, I tried print(ourGen.next()) and it shows error: AttributeError: 'generator' object has no attribute 'next'. It should be print(next(ourGen)) now, maybe the old .next() is deprecated.

Jarjarbean
Автор

Ahhh, I have a program due tomorrow and I'm so sad you never continued this series... You were really good!

ruby_wired
Автор

Rocket League and Prison Architect! Nice!!! Awesome video thanks!

TreBros
Автор

Such a valuable tutorial. Pleaseeee make more videos about Simpy!

teddypicky
Автор

Nice tutorial... It will be nice if you continue with this series; of course there is a good documentation for SimPy but it will be nice if you explain interrupts and using classes... Thanks!

HCanalesS
Автор

Thank you Kevin. Your video is very much appreciated

anibaltafurgutierrez
Автор

excellent video! i really would like to watch the next tutorial!

ASHR
Автор

7:22 - worth to note - generators do not cycle back, they exhaust and raise StopIteration exception, but in this case while loop was added
nice intro... want more!

vxsniffer
Автор

I have just started learning the basics of Python. My end goal is to create simulations in Physics. Can you please guide me on what should i do next after i get the basics of Python?

shreyjain
Автор

Fantastic and excellent. I really enjoyed every minute of it. I'm eagerly looking forward to the next one.

miladj
Автор

For various reasons, some of us work with small screens, like an iPad. As such, it’s almost impossible to see what’s going on in your screen, especially with the dark background. For this reason, it would be very beneficial if you’d use a light background and give a closeup of what your actually doing.

mkaberli
Автор

Great explanation my friend. It helped me a lot, thank you.

huascarzuritasalazar
Автор

Hi Kevin, please continue. Also integrate Maya for graphical representation. It was really a great video. I request you to continue..

akd
welcome to shbcf.ru