question

Pichaya avatar image
0 Likes"
Pichaya asked Natalie White commented

how to set the number of product that created from source to reach the target

I would like to solve the problem that if the daily demands of products A, B and C are 1200-1500, 1000-1300 and 700-1000, respectively. how to setting up Source to create these products efficiently.

With the conditions following:

- The inter-arrival times of products A : uniform(25, 30, getstream(activity))
- The inter-arrival times of products B : uniform(30, 40, getstream(activity))
- The inter-arrival times of products C : uniform(40, 45, getstream(activity))

Differnt Type in Source.fsm

now i'm facing with the problem that I can setup the inter-arrival times however I can't set the amount of the products to reach the target above.

FlexSim 23.1.2
source
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hello @Pichaya,

I have an idea where ultimately a decide activity would check the token after a Type was assigned and see if any more of that Type are needed. The issue I am running into is that the you have a range of acceptable values for the number of items created. Could that value be set at the beginning of each simulation run with a distribution or something?

0 Likes 0 ·
Pichaya avatar image Pichaya Jeanette F ♦♦ commented ·

First of all, I would like to thank you for you fast respond. After I’ve tried to used the Arrival Schedule, I found that I cannot set the distribution value at the beginning as your suggestion.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·
@Pichaya , your daily mean demand is 3250 products! The minimum is 2700, your maximum is 3800. The interarrival rate for your daily mean is 26.6 seconds. Your lowest rate of 25 seconds gets you an output of 3456 products. You need a lower daily demand or shorter interarrival rates.
0 Likes 0 ·
Pichaya avatar image Pichaya Joerg Vogel commented ·

Thank you for your suggestion, btw I would like to have a lower daily demand for each Type. Moreover, I cannot reduce the Inter-arrival time as its requirement for the problem I’ve been given. It would be my pleasure if you give me other ideas to solve this problem.

0 Likes 0 ·
Natalie White avatar image Natalie White commented ·

Hi @Pichaya, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel commented

You create over all Types and output of a day a mean value. You test, if a statistical distribution meets your summarized output, then you setup an empirical distribution in Toolbox to get discrete Types distributed to your demand. Then you test this result again over several simulated days to gather an event amount about 100k to 1M.

· 3
5 |100000

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

Pichaya avatar image Pichaya commented ·

I’m appreciate your help. As i’m a very beginner of this program, I have no idea how to run it following your suggestion. Would it be possible to show me the model or how to setting it up, please?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Pichaya commented ·

https://docs.flexsim.com/en/23.1/Reference/Tools/EmpiricalDistribution/EmpiricalDistribution.html

@Pichaya, I have known, that you are a beginner. That is why I do not attach examples. It is always a good practice to learn a new program in small and simple steps. If you don’t get it done by the reference manual description, then please feel free to look for other answers already given here at this site.

One more Tipp. Once you have setup your discrete empirical distribution in Toolbox panel on the left program window workspace, you find it under statistical distribution picklist options in an On Creation Trigger of a source object property panel.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Joerg Vogel commented ·

One Question here at this site answering discrete empirical distribution setup!

https://answers.flexsim.com/questions/117968/dempirical-for-flexsim-2022.html

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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