question

Amey Ramane avatar image
0 Likes"
Amey Ramane asked Logan Gold commented

How to generate tokens which adhere to percentage criteria in a given timeframe?

We are looking to establish one logic for our model. Can you please support in building it.

The logic is that for every hour we are releasing 5 Tokens (Pallet -1 to Pallet -5 ).

My model works from 6 am to 10 PM .

There are three types of labels.

A

B

C

Pallet Type1

25%

25%

50%

Pallet Type2

50%

20%

30%

Pallet Type3

10%

20%

70%

Pallet Type4

80%

10%

10%

Pallet Type5

30%

40%

30%

In a day , If we have 16 hours , then our model will generate 16 “ Pallet 1” tokens , which will make sure out of 16 -> 25% ~ 4 Token will Category Label “A, 25% ~ 4 Token will Category Label “B” and 50% ~ 8 Token will Category Label “C”.

FlexSim 24.2.2
tokensby percentage
· 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.

Hi @Amey Ramane, was Felix Möhlmann'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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

I would create sets of type values for each pallet type that will be used during the day. For each pallet, choose a random entry from the array and then remove that entry.

random-from-set.fsm


random-from-set.fsm (35.9 KiB)
5 |100000

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