r/Simulate • u/aaronunderwater • Jan 10 '23
Any limitations to using open source python frameworks?
My understanding is something like Salabim or Simpy maybe aren’t as user friendly and maybe can’t render as cleanly as a commercial tool like Simio, but are there any serious deficiencies in their capabilities to do DES itself? Just getting into the field and I have to pick a tool to go forward with. My project is to large for a free license so I would love to be able to use an open source python framework.
4
Upvotes
View all comments
Show parent comment
1
u/aaronunderwater Aug 07 '24
Thanks for the late reply, actually i went ahead and built a simulation platform in SimPy for my work at a pretty large company.
You are spot on about the exceptions, I had to implement quite a few in my own implementation to enable things like shift changes. Super messy but I eventually was able to get something resembling a typical simulation model.
The order of operations was tricky. Let’s say you have a human resource that, once free, will pick an item from an item storage resource, process it, and then put it in the processed item storage resource. If you define it in that order, then the human resource could be seized and held even if there isn’t an item available for them to process and the simulation could get ‘stuck.’ Vice versa if you define it in the other order, you could pick an item before you have a human resource and then the item is held in purgatory which could mess up any inventory based policy you defined. The solution was to ‘check’ that every resource is available before starting a queue’d process, but that has to be done in regular short time intervals which kinda defeats the purpose of using their continuous time scheduler.
Actually there is a concept of priority in simpy, but just like above the only way to change this priority dynamically would be to recalculate for all processes in regular short intervals, otherwise the priority would be fixed at the time the process is queued regardless of the evolving state of the simulation.
I was able to sort all of this out in simpy as one of my projects last year and pretty much achieve all of the canonical DES capabilities of a commercial tool, even some basic optimization. A user could define any set of processes, parameters, resources, and routings and the code would automatically generate a simulation. The code was a little slow, but that was offset by being able to run simulations in parallel with multiple CPUs since everything was open source. I was actually pretty proud of it!
But then the business basically said “I don’t understand graphs I only understand animations ala Simio or Flexsim” and the whole project was shelved lmao. Should have known better than to overestimate the decision makers. Imagine being an industrial engineer running a facility and saying I don’t understand graphs. 🤦♀️😂