question

Moisés Cálderon avatar image
0 Likes"
Moisés Cálderon asked Natalie White commented

observations on the process flow logic?

I have made several logics but I see that they are failing, here in the image I detail you what I am requesting


1. Station 1, is not fulfilling this picking knowing that Queue3 is full 4. Also Queue3 and Queue4 should always be kept in 4 trays and the other in 6 trays.
*Station 1 should operate when there is a lack of units in Queue3 and likewise Station 2 should operate when there is a lack of units in Queu4 (check the logic).

2. the separate machine should pick up the product when the customer arrives (in Queue8), meanwhile it should not pick up the product (in the image it picks up from the beginning). The logic is already done.


1689955010425.png
1689954959471.png

the model is simulated in version 2023.
I remain attentive to your answer

FlexSim 23.0.8
proces flow
· 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.

Natalie White avatar image Natalie White commented ·

Hi @Moisés Cálderon, was Carter Walch'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

·
Carter Walch avatar image
1 Like"
Carter Walch answered Carter Walch commented

Hi @Moisés Cálderon ,

To maintain 4 items in Queue3, we can follow similar logic with minor changes:

Whenever Queue4 has content of 4, we close the station 1 input so that it isn't processing anything. But as soon as an item exits (content decreases) then we re-open the input so it always has 4 items.

1689958068483.png1689958076664.png

For maintaining 6 items in Queue4, we add a wait for event to make sure there are 6 items in Queue4 before a person takes an item.

1689958213487.png

To create the logic for waiting for a person to arrive before sending an item to the separator, we push items to a list and pull them when a person arrives. Then when the item is pulled we use process flow to move the item. Let me know if this makes sense

base-del-modelo-mejorado-33.fsm


· 7
5 |100000

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

Moisés Cálderon avatar image Moisés Cálderon commented ·

Hello Carter

A query, is there any way that the output quantities of the boxes come out different quantities (i.e. that meets a statistical exponential function (0,20,get..).

*Both in the orders and in the arrival of customers.

-Another question the Delay that function is fulfilling in the system.

Thank you in advance for your support. Thanks


1690065528055.png

1 Like 1 ·
1690065528055.png (2.9 MiB)
Carter Walch avatar image Carter Walch Moisés Cálderon commented ·

Hi Moisés,

base-del-modelo-mejorado-33 (1).fsm

The attached model demonstrates how to use a distribution in the triggers of each combiner to have a value from 1 to 10 for each order. As for customer arrivals, in the source you can set the arrivals to an interarrival time on any statistical distribution you want.

1690219918649.png

1690220241201.png

I'm not sure if this is what you wanted with using distributions so let me know if that's what you were looking for.

As for your second question, you can change the Delay activities to Sink activities. The delay allows us to continue to view the token, but we no longer need that.

0 Likes 0 ·
Carter Walch avatar image Carter Walch Carter Walch commented ·

Due to the nature of the model, the way to do this is to dynamically update the Target Quantity of the combiner and saving that value to a label. This allows us to separate the objects and the customer takes all the items. You can find this in the triggers of each combiner.

1690220647027.png

0 Likes 0 ·
1690220647027.png (25.4 KiB)
Moisés Cálderon avatar image Moisés Cálderon commented ·

Hello Carter

Good afternoon


I think you have not understood me or I have not explained well, I want the system to comply with all the logic we have advanced so far to keep the 4 units queue3 and 6 units queue4 and each with four boxes.

What I ask you is that when it delivers the boxes it fulfills an exponential statistical function of (0,10, get.); this is to demonstrate that the client has orders of different quantities.

For example if the client in an order requests 9 boxes, 3 trays enter in the separator and 3 boxes are left over and this is left for the next client (successively).

I attach the file, I already put that the arrival of the customer is exp.(0,20,get).

Thank you and I apologize for the inconvenience.


1690232639046.png

base-del-modelo-mejorado-33.fsm

1 Like 1 ·
Carter Walch avatar image Carter Walch Moisés Cálderon commented ·

Hello @Moisés Cálderon ,

base-del-modelo-mejorado-33-NEW.fsm

To implement the logic of keeping track of leftover items for the next client. I added two global variables: LeftoverItems and PullValue. LeftoverItems simply keeps track of the number of items left over that are available for the next client. PullValue represents how many full trays the client needs to pull from the item list. It includes the LeftoverItems value in calculating how many trays to pull. This is how we use those two values to calculate how many trays to pull and update the number of leftover items:

1690319140923.png When creating clients in the source, I used a duniform distribution instead of exponential because it needs to be discrete values instead of continuous to assign how many items in the order. You can change the min and max values of this distribution.1690319640514.png1690316608119.png

1690316640928.png

This shows how the leftover items in the separator are used in the order of the next client.

i.e. LeftoverItems = 2 and OrderQty = 6:

instead of pulling two full trays (8 items) like it would normally do, the new client takes the 2 leftover items and only pulls 1 tray (4 items) to complete the order of 6

useleftovers.gif


0 Likes 0 ·
Moisés Cálderon avatar image Moisés Cálderon commented ·

Hello Carter

Good afternoon


Everything perfect so far, a query can you make the system flow that does not wait for the Station2 to finish the tray to just transfer (I need the system to flow based on a Pull system) for example if the customer requests 7 boxes (must enter two trays and I have a tray with a box).


Also, if there is a tray in the separator machine this with Queue4 must add 6 trays and must be closed when there is no customer (must be replenished continuously).


Another question, I have simulated the system and it only runs until 11:42 am it is paralyzed (it doesn't send boxes anymore, you can see it in the image).

*The system should run until I set a time limit.


Can the system be flexible?

I have modified the data with 8 trays and 6 units (it is distributed in the delivery you can see in the image).


Thank you very much in advance.




1690380559637.png

*Simulated with 8 trays of 6 boxes

1690380893865.png


base-del-modelo-mejorado-33-8 UND.fsm

0 Likes 0 ·
Carter Walch avatar image Carter Walch Moisés Cálderon commented ·
Hi @Moisés Cálderon ,

The logic for leftover items is currently specific for trays with 4 items. But we can make it flexible by adding a global variable. Can you make your new question in a new post? We can close this question and we would be happy to answer your new question in a new post

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.