Skip to main content
0 votes
2 answers
65 views

Simpy not showing other process name

I am trying to work my self into simpy. Which uses python generators to create sim steps. From the documentation for simpy state access. import simpy def subfunc(env): print(env.active_process....
user3732793's user avatar
  • 1,990
1 vote
2 answers
56 views

Simpy model with closure, entities grabbing resource while closing code running

I have a model where: resources are available between opening hours (8am-8pm). Any entities using resources are kicked out at 1 minute to 8pm, then a closing function is run to claim all the ...
Emi OB's user avatar
  • 3,395
0 votes
1 answer
46 views

Encountering race condition when creating multiple put requests

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 ...
C Sheahan's user avatar
0 votes
0 answers
23 views

Trying to understand event scheduling/env._queue with regards to SimPy's FilterStore put and get events

Some context about the original simulation. I have 2 processes P1 and P2 which are based off the same function. This function looks through FilterStore.items first to "screen" for an item ...
Quas's user avatar
  • 23
1 vote
1 answer
100 views

How to implement batch resource using SimPy

I spent some time looking for the solution to this kind of simple problem but still could not find it. The problem is to simulate process when some events can be processes concurrently by limited ...
Alexander Lyapin's user avatar
2 votes
1 answer
109 views

When yielding anyOf events, is it safe to use `if req.triggered` instead of `if req in res`?

There seems to be a quirky behaviour when working with requests without the with statement as a context manager, which causes resources to be locked up permanently if using the standard if req in res ...
Quas's user avatar
  • 23
0 votes
1 answer
41 views

Why does the output change after putting code in a function in a simpy process?

In a simpy process I handle a simpy interrupt. I do this in two places and so I want to put the handling code in a function. Before putting it in a function all functions well, after putting it in a ...
Frank Tap's user avatar
  • 460
0 votes
0 answers
35 views

Can we use Preemptive Resource with a Container in simpy?

I'm working on a simulation working with simpy where i've a class like this: class memory: def __init__(self, env: Environment, size: int, memory_name: str): """...
miyoku's user avatar
  • 197
0 votes
0 answers
38 views

Continue process while waiting in simpy

In simpy I simulate a car driving day and night. As soon as my tank fills below 70% and it is daytime I go to fill up. If my tank gets below 70% at night I just drive on and go fill up as soon as it ...
Frank Tap's user avatar
  • 460
0 votes
2 answers
170 views

How to model a factory with batch production and stock checks using SimPy?

I am working on modeling a shoe factory and simulating its operations using SimPy. My goal is to create different scenarios and identify the optimal factory layout for a new facility. This is my first ...
cascavelho's user avatar
0 votes
1 answer
106 views

Modelling a Robotic Factory Cell with Simpy

The purpose of this code is to model the following cell:Robotic Cell It has 1 welding robot, 1 operator loading/unloading parts, and 2 fixtures that the parts are worked on within. The part is worked ...
Frosty1542's user avatar
1 vote
3 answers
392 views

SimPy Simulation: How to Ensure Single Container Unloading and Sequential Transport in a Container Terminal?

I'm working on a SimPy simulation for a container terminal where vessels arrive, berth, and unload containers using cranes, followed by transport using trucks. Problem Statement_pt1 ,Problem ...
Soumya Patel's user avatar
0 votes
0 answers
67 views

Biased results from SimPy model of a M/M/s queueing system

I am building a simulation using SimPy and comparing the results to the theoretical calculations in a M/M/s queue model. However, most of the time the simulation yields results about 10% lower than ...
LC007's user avatar
  • 1
0 votes
1 answer
92 views

SimPy: Strange transient level attribute values of Container resource

I am experimenting with SimPy and I try to monitor the level of a Container resource. For illustration purposes, please consider the simple example of a producer process that produces an item every 3 ...
kaffeesachse's user avatar
0 votes
1 answer
53 views

Simulation of interrupted set-up and delayed server shutdown in batch processing system

I would like to create a system with servers that need time to set up before being ready to serve. The system starts to set up whenever enough 2 customers are in the queue. When a batch (group of 2 ...
Julian's user avatar
  • 15

15 30 50 per page
1
2 3 4 5
25