question

Borja Lorenzo avatar image
0 Likes"
Borja Lorenzo asked Jeanette F commented

Statistic collector from List's Event

Hello,

I need help defining a statistics collector. Attached is a simplification. I want to obtain the column value as the "Task" label, which is defined with an expression in a list. How can I do this?

This logic belongs to a larger context... but in summary, what I intend to measure is the time from when the FIRTS element of this list is pulled and when the LAST element pulled from this list is delivered in another output event from another part of the model.

Thanks in advance for your help.

Best regards

Simplificación Statistic Collector from List.fsm

FlexSim 24.1.1
statistic collectorpullfromlistglobal listsunique row values
· 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.

Nil Ns avatar image
0 Likes"
Nil Ns answered Borja Lorenzo commented

Hello Borja,


I don't understand why you need to create that collector, but you have some mistakes.


First, at the moment the token enters the pull activity, the value is not on the list yet. It is necessary to wait for a breath to ensure the value is on the list.


Reading the expression of a list is only possible by doing a pull. With that code, you can pull the token, set the label on the BasicFR, and return it.

  1. List("Lista_Trabajos").pull([data.token.as(Token).parent],"SELECT Tarea",1,0,Model.find("BasicFR1"),0,LIST_DO_NOT_REMOVE);
  2.  
  3. return Model.find("BasicFR1").Tarea;


Thanks!

· 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.

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered

Hi, in the attached model we've added a statistics collector to gather the data by order piece (item) and then used a calculated table to give the start/end times by order and another to give the total makespan for all orders.

simplificacion-statistic-collector-from-list-25011_1.fsm


5 |100000

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