-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can Ciw set a state-dependent system capacity allocation for simulation? #204
Comments
Dear @ARCCer can you please give some more information? What is the system you would like to simulate? |
It's a queue network, where two kinds of customers exist and the number of different customers is the system state. |
There is a monkey patch strategy I have developed for this and similar issues. The gist of it is to have a randomly-unstable data structure (RUDS) which contains a reference to your instance of Here is a very rough outline: class RUDSThing:
def __getitem__(self, index):
...
ruds_instance = RUDSThing(...)
...
N = ciw.create_network(
...,
queue_capacities=ruds_instance
)
Q = ciw.Simulation(network)
ruds_instance.simulation = Q I know this is terse and incomplete. You can also have a look at Ciw Hack to Get Resampling Routing Matrices for an example (which doesn't have access to simulation). I think that in a future state we should allow dynamic queue capacities without monkey patching. 👍 |
I am running a simulation about a queue network, whereas the model have a capacity limit, and there exist an optimal capacity allocation policy for the system. But when i use Ciw for my simulation, i found Ciw doesn't support for my requirement. I wonder if Ciw could achieve this and how can i tweak codes. Thanks!
The text was updated successfully, but these errors were encountered: