question

luisvr avatar image
0 Likes"
luisvr asked Jason Lightfoot edited

Limit the number of boxes processed per day

Hello. I have the following situation:

A queue, followed by a processor 1 and a processor 2. I need to limit the number of boxes that pass through processor 2. Of all the boxes that enter the queue, I need processor 2 to process only 2 boxes per day, the rest they go to processor 1. That is, limit the number of boxes that can be processed in processor 2 per day.Now, in case the daily processing capacity of processor 2 has already been met and processor 1 is busy, then let the boxes wait in the queue.

I thank you very much if you help me.


Hola. Tengo la siguiente situación:

Una cola, seguido tengo un procesador 1 y un procesador 2. Necesito limitar la cantidad de cajas que pasen por el procesador 2. De todas las cajas que ingresan a la cola necesito que el porocesador 2 procese únicamente 2 cajas por día, el resto que se vayan para el procesador 1. Es decir, limitar la cantidad de cajas que se puedan procesar en el procesador 2 por día.
Ahora, en caso de que ya se haya cumplido con la capacidad diaria de procesamiento del procesador 2 y el procesador 1 esté ocupado, entonces que las cajas esperen en la cola.

Les agradezco mucho si me ayudan.

FlexSim 19.0.0
simulación
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

Kavika F avatar image
0 Likes"
Kavika F answered Jason Lightfoot edited

Hey @LuisVR, you could setup a simple Process Flow that batches 2 tokens and then closes the input port of Processor2. Then keep track of the current day. Once a new day starts, reopen Processor2.

1693951997305.png

max-load.fsm


1693951997305.png (28.4 KiB)
max-load.fsm (39.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.

luisvr avatar image luisvr commented ·

Thank you very much, your file did work for me.

Could you explain to me how you parameterized it?


Muchas gracias, sí me funcionó tu archivo.

Me podrías explicar cómo lo parametrizaste?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ luisvr commented ·

Don't use the loop, instead just delay the token by this amount:

days(1-Math.frac(Model.dateTime.totalDays))

..or some offset thereof for when the shift starts.

1 Like 1 ·