question

Henry Paipa avatar image
0 Likes"
Henry Paipa asked Jason Lightfoot commented

Assign labels according to time of day

Hi Team, I need to be able to assign labels according to the time of day and thus, to support me in the creation of pallets and their respective composition. Like this:

Arrivals are defined according to quantities per hour, after that, we must create pallets according to "Type".

1. Each "Type" is represented by percentages that change according to the time of the day.

2. Each "Type" of pallet has a given composition in percentage that represents different suppliers. These percentages vary according to the time of day.

I appreciate your support.

Answer-1_1.fsm

1702680433960.png


Note: Percentages are in global tables.

I appreciate your support.

FlexSim 23.2.2
labelswarehousesupplier model
1702680433960.png (270.0 KiB)
answer-1-1.fsm (55.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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Henry Paipa, was one of Jason Lightfoot's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

In this model you will find a user command 'empiricalColumn' that will find a value based on your Type table and the row you pass to it.

empiricalColumn.fsm


empiricalcolumn.fsm (30.3 KiB)
· 2
5 |100000

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

Henry Paipa avatar image Henry Paipa commented ·

Great, do I include this code in a "Assign Tag" activity or in "Custom Code" after or before creating the Pallet content. where do you suggest? Thanks a lot @Jason Lightfoot

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Henry Paipa commented ·

You could find the row first on a 'row' label and then in another label write:

empiricalColumn(Table("GlobalTable1"),token.row,getstream(activity))

..that's the expression to find the value assuming you've set up a user command called 'empiricalColumn' as per the model I sent.

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Henry Paipa commented

@Henry Paipa, Create your pallets. According of total percentages of all composite tables you want to assert label values. You want them in a distribution that you know of after an hour but being assigned from first second of this hour. Then I suggest you keep track of pallet creation amount and time of creation. Wait an hour, distribute over created amount your composite distribution and you release in exact replication of the recorded hour your pallets into your model.
I think it is a repetitive warmup time of an hour continuously executed.

· 2
5 |100000

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

Henry Paipa avatar image Henry Paipa commented ·

Actually, it is to be applied during the simulation, it would not be a warm-up time. However, it is an interesting planning, could you please support me with an example, the truth is that I have not managed to create the ProcessFlow logic. @Joerg Vogel Thank you for your help.

0 Likes 0 ·
Henry Paipa avatar image Henry Paipa commented ·

We want to create 3 types of pallets according to the percentages in the "Type" table, which change according to the hour. Also the composition or combination of box types in each pallet type varies per hour according to 5 types of suppliers and pallet type, the variations in the content of each pallet type correspond to the tables: "Type A composition", Type B composition" and "Type C composition".

We need to create a label for the pallet types and for the box types that takes the values of the tables and represents me the variation in the content and the pallet type every hour as the simulation runs. @Joerg Vogel Thanls a lot.

0 Likes 0 ·