I am using SimPy to model a manufacturing workflow, and am running into a race condition type problem.
A buffer/queue modelled as a store can provide product to many different machines also modelled as stores. My current approach to this is to make a put request to each machine and assuming they become available at different times I can cancel the extra requests. This of coarse doesn't account for when two or more machines become available at the same unit time.
I can make some quick gains on reducing the problem by checking if successors are immediately available and only making one request but that doesn't solve for the case where they become available simultaneously.
I have posted in more detail on StackOverflow
Advice on architectural or implementation level would be appreciated
--
You received this message because you are subscribed to the Google Groups "python-simpy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-simpy...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/python-simpy/415e396b-075f-4563-a57d-4af51f4da841n%40googlegroups.com.