Linking flow-item label value to processor process time

Linking flow-item label value to processor process time

kevskon
Enthusiast Enthusiast
102 Views
1 Reply
Message 1 of 2

Linking flow-item label value to processor process time

kevskon
Enthusiast
Enthusiast

Hello everyone,

I am reaching out for assistance regarding a specific aspect of my current simulation model, which involves the checkout process. In my setup, each traditional and self-lane register has a default process time of 2 minutes, while each quick-lane register has a default process time of 1 minute. Each flow-item in the simulation represents a customer, and upon creation, they are assigned an item count label based on an empirical distribution.

I am looking to link the item count value directly to the process time required for each flow-item to pass through the registers. To achieve this, I have created a global table named TransactionTime, which specifies different process times in minutes corresponding to the number of items a customer possesses as their item count value.

I would appreciate any guidance or suggestions on how to effectively implement this connection between item count and process time within the simulation.

Thank you in advance for your help!

Thanks @moehlmann_fe for getting me this far with my current simulation build!

0 Likes
Accepted solutions (1)
103 Views
1 Reply
Reply (1)
Message 2 of 2

moehlmann_fe
Advocate
Advocate
Accepted solution

Since the time is a linear function in this case, you could just write something like the following into the Process Time field. Note that "item" is not necessarily defined in all property fields (though in most where it makes sense that the value might depend on the item). To know which parameters are available, check the variables defined in the header of the code behind the field (open in code editor).

0.45 + item.ItemCount*0.05

 

If the time can not be expressed as a mathematical function, you can read it from the table.

// If ItemCount label == row number
Table("TransactionTimes")[item.ItemCount][2];

// Otherwise
Table("TransactionTimes").getValueByKey(item.ItemCount, 2, 1)

https://docs.flexsim.com/en/25.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html#Me...