question

Pieter Cecat avatar image
0 Likes"
Pieter Cecat asked Pieter Cecat commented

Distribute (probability) items from 1 queue over several other queues

Hi fellow FlexSim-users

As usual, what seemed easy at first turned out to be rather difficult after all. Being new to FlexSim, I already learned a lot but apparently not enough to tackle the following issue:

I am trying to distribute items that arrive at the bottom queue - "graded cores inventory" - over five other queues, each of which represents a different product quality level. This should be done according to a given proportional distribution corresponding to one of five possible scenarios (see model below). In other words, I want to account for five possible scenarios that might occur, each of them having its own probability (summing to 1 of course) as well as its own unique proportion for each of the five product quality levels (e.g. see table below). This activity (of distributing the items across the five different quality levels depending on the scenario that occurred) should be repeated at the start of every month (equaling 720 hours as time unit of the model is [hours]).

Remark: In order to anticipate future problems, I would like the items in each queue - once they are distributed among all five queues - to have a different itemType (number corresponding to the quality grade of the item, thus ranging from 1 to 5) as well as box color.

I recently got introduced to Process Flow by one of this forum's users. However - even though I consider Process Flow to be a very interesting feature provided by FlexSim - I suppose there must be other ways of tackling this problem.

Any recommendations on how to proceed? All help would be appreciated.

Kindest regards

Pieter

E.g.

FlexSim 16.0.6
queuedistributionsscenarioprobability
fidug.jpeg (84.4 KiB)
x8vmv.jpeg (67.3 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Pieter Cecat commented

When does the scenario change? How many items are created or processed in a scenario? What you are looking for is the distributional function

  1. dempirical(..)

you can use it to set the itemtypes and colors for the quality depending on a scenario label in the OnCreation trigger that you change after a given simulation time or after a given amount of produced items. This changing is then depending again by the "dempirical(..)" function, that chooses or sets the value of a label. One Parameter is the name as a string to a global table which contains the probability in percent and its discrete return value.

In answers.flexsim.com, here, you type the command word "dempirical" into the search field and choose this word from the list to get the command description in the command manual. Please read the manual entry and its further comments thoroughly. The other aspect in your way to build a solution is the concept of Labels in Flexsim.

The design of ProcessFlow is the near future concept to create and control Flexsim. It is recommended to use it and to learn it. The "3D model" building is the previous or older method to build models. It depends on source code scripts, triggers and a strict event driven sequential process structure. You must have an event to change the model. And if the item flow doesn't create for you such a event you have to create a event by a delayed message or a user event.

I try to build a model later at work and attach it to a comment.

· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.