Discrete Event Simulation using R (1): Modeling of an Outpatient Clinic
HTML-код
- Опубликовано: 5 ноя 2024
- Discrete Event Simulation using R: Modeling of an Outpatient Clinic
Solving bottlenecks in a simple model of an outpatient clinic
This video is a 2019 re-do of “Discrete Event Simulation (DES) using R“ released 2017 with R script upgraded and deprecated functions removed.
R script used:
app.box.com/s/...
the fact that I understood what you were trying to teach...without understanding any arabic is an indication of how well you organize your tutorials. good job!
Hello fellow comrade, my simulation team and I, are truly thankful with you because of these tutorials. Your explanations using the R language are very clear and we've managed to build our own simulation model using the mentioned language. Thank you so much, you made two CS mexican students truly happy. Wish you the best, mate.
Thanks a lot for your kind words
I like the code and how you explained it. 1 comment would be to have separate videos, one for each language. I found it difficult at times to follow along as you went back and forth between languages.
Thanks a lot
thank you for sharing.
Thanks for watching!
Is it possible to seize two different resources at the same time? For example, a nurse and a cardiogram machine?
I want to design the following environment: a truck arrives at the terminal and has to follow 6 steps. the third step is going to the area to pick up a product. The product could be A,B,C,D,E. So there are 6 resources but within one resource(third) there are 5 options with a different distribution.
How can I do this in simmer?
Simmer will solve problems that can be solved with discrete event simulation, only in a much simpler manner. So, please have a look at the Package Author's website and documentation where he showed some examples. If your problem is analogous to any of them then it can be done in simmer. cran.r-project.org/web/packages/simmer/index.html
All this great work and I didn't even catch your name, sir?! Thanks for the videos on simmer.
Welcome! This is my linkedin profile www.linkedin.com/in/mohamedkamalpharm/
Thanks a lot for your feedback.
Now not only I know how to set up simmer tasks, I also know a little bit of Arabic. (I just thought it was funny how you slowly threw in more and more Arabic words in there until whole portions were just Arabic.)
Thanks a lot. Most recent videos are in English as per subscribers request. Videos that are intended for Egyptian audience are now labeled "Arabic"
شكرا كتير لحضرتك..
ممكن تناقش اذا وقت وصول المرضى كان في وقت ذروة
شكرا من القلب
اسف للتأخر في الرد برجاء كتابة تفاصيل مثلا اذا ما كان وصول المرضى يتبع توزيع معين؟
@@StatPharm
تحياتي استاذنا الكريم
على فرض قدوم المرضى لا يتبع توزيع معين او قدوم ثابت و انما القدوم يختلف باختلاف ساعات النهار .. بمعنى أن ساعات العمل الأولى يكون يتبع توزيع بواسوني بمعدل معين و لكن يختلف معدل هذا التوزيع نع ساعات الظهيرة (وقت الذروة)
و نقطة أخرى ان تكرمت بشرحها .. كيف لي أن أحاكي قدوم المرضى في حال كان القدوم يختلف من يوم لاخر. هل أحاكي كل يوم بيومه أم يوجد طريقة نستطيع من خلالها محاكاة أيام الاسبوع على اختلاف التوزيع الاحتمالي للوصول.
آسف ع الاطالة و شكرا مقدما يابن الأكارم
@@adnanhajabubaker4158 you will simply create a vector for inter-arrival time containing sequential distributions and concatenate it using c( ). Please contact me on linkedIn if you will need any help with the R script
www.linkedin.com/in/mohamedkamalpharm
Hi @Stat Pharm : I have a question. I started learning DES with SimPy but do you see any special advantages of using Simmer over SimPy ?
Excellent Question. If you feel comfort using any language that gets the job done, then use what makes you feel at ease. Both are great languages with long list of great tools.
Considering R is natively an array programming language, it theoretically performs much better than Python when dealing with very high iteration/step tasks (e.g. stochastic sims).
Error in MemMonitor__new() :
function 'Rcpp_precious_remove' not provided by package 'Rcpp'
I get an error sir.
Thanks dear for your valuable comment, please update R and reinstall updated packages and follow the step by step tutorials here r-simmer.org/articles/simmer-01-introduction.html these tutorials are updated 2021-08-11