I am trying to simulate running of two manufacturing lines (Line A and Line B).Their time to failure follows Weibull distribution(shape = 0.7, scale = 12 (mins)). Line A and Line B both produces at rate of 100 products/min. From real world scenario, if any of lines fails, I want to increase rate of other line (say – 120 products/min)
Tag: simpy
How would I code a simulation of 2 machines with a buffer using simpy?
I am new to simulation and am going through the simpy documentation. I kind of get the gist of it but cannot really seem to grasp how to translate the production line that I want to simulate. I am trying to simulate a production line with m number of machines and m-1 number of buffers. The machines basically work the
SimPy, How to incorporate a break for resources?
At the moment I am creating doctors as following: These doctors are requested for a flow of patients using the following: What I would like to do, is initialize the doctors with some kind of fatigue level (and other characteristics) like: Then in the encounter I would like to access the doctor to add fatigue such as: Where once the
How to terminate simulation in SimPy 4
Is there a way to terminate the simpy simulation by using a command like env.exit()? I don’t understand how to place an event into env.run(until=event). I want to terminate the simulation when there are no objects left in my certain Simpy Stores. How can I do that? Answer Everything is an event in simpy, even the environment itself. Thus, you
FilterStore queue
I have a FilterStore and during my simulation there is a queue for the FilterStore.Get event at some times. Now I have two questions: Is there a way to see the actual elements in the queue, not just the object number? With FilterStore.get_queue I get this output: [FilterStoreGet() object at 0x221a47c6080, FilterStoreGet() object at 0x221a47c6eb8]. But I would like a