PriorityFilterGet

65 views
Skip to first unread message

Kyle Krebs

unread,
Dec 21, 2023, 11:50:50 AM12/21/23
to python-simpy
Hey everyone, I'm generally new to Python and simpy. I'm working through complicated Discrete Event Simulation and can't find an example code that meets my requirements. I want to implement a PriorityFilterStore.get() method to both identify a resource and interrupt with a preemptive process. 

In my model, I have a large queue that cannot reneg, but my resources must take breaks, and upon return from breaks, I may have more or fewer resources to process through. I've been able to add resources using a filter store, but without a PriorityFilterStore.get() method, I don't believe I can override at a pre-determined break time, interrupt the current request, and resume processing after break with fewer resources. 

Does anyone here have a script with a PriorityFilterStore.get() method that I could model for my script? 

Thanks,

Kyle

Kyle Krebs

unread,
Dec 28, 2023, 9:07:14 AM12/28/23
to python-simpy
Hey everyone, 

I wanted to follow up in case anyone else was having this problem. Seems like the easiest solution for me was to add a PriorityResource ahead of the FilterStore to manage the get request queue. If you're having this issue give that solution a try, it might work for you. 

Kyle

Reply all
Reply to author
Forward
0 new messages