Skip to content
Advertisement

Tag: simpy

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

Advertisement