question

Ladeeda VH avatar image
0 Likes"
Ladeeda VH asked Matthew Gillespie edited

Unable to track label in my data table

Hello,

I want to simulate a construction project network in FlexSim to track the cost of each construction activity. I attach a simple model here, in which the flow item, processor and the combiner represent the 'project progress', 'project activity' and 'converging activity' respectively.

I have assigned the labels named 'actualCost1' to 'actualCost5' for the respective activities (Activity 1 to 5) which follow Beta distribution (with the default settings only) using triggers for 'On Exit' event. My purpose is to get a data table with the values of 'actualCost' for the each flow item at each activity level. But I am not able to get the same and shows some errors related to the existence of label. So, I humbly request you to go through my model, and suggest for the corrections to be made to get the data table as per my requirements as soon as possible.

Thanks in advance.

Regards,

Ladeeda V H

eg-1-modified-29-nov.fsm

FlexSim 18.2.2
statistics collectorlabel assignment
· 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.

Joshua S avatar image Joshua S commented ·

Do you have a flowchart for your process you can add? I would suggest doing all this in ProcessFlow since it has a more network feel and will allow you to represent the data much easier.

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren Joshua S commented ·
@Joshua S

An example model in Process Flow showing how to represent the data easier would be helpful.

Thanks.

0 Likes 0 ·

1 Answer

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Ladeeda VH commented

@Ladeeda VH

Attached is your model with the changes that I've made. In your "cost details" Statistics Collector, you had 5 Event Listening entries. You really only need to listen for the last activity (Activity5) because you only want to write one row in the table for each flowitem, not a row for each activity. So I changed that to the one entry. Then in the Data Recording tab, it's just a matter of entering the correct object reference in the "Value" field of the column. Because "Activity5" is the object that you are listening for, that is referenced as "current". You want to get the label of the flowitem, not current (Activity5). So you need to reference the label on the flowitem as first(current).LabelName.

I also added another Statistics Collector (Cost Details 2) to show you that there is another way you could have done it as well. This way uses Event Data Labels. So each time the Event occurs, labels are created that are then used in the Data Recording tab as the column "Value".

One other thing, is in Activity3 combiner. Because you are doing a "join" on the Combiner tab, the flowitem coming in through input port 2 is being destroyed. And the "actualCost2" label on that flowitem as well. So, I had to add code in the OnEntry trigger to write that value to the flowitem coming in through port 1 (container port) before the flowitem coming in through port 2 gets destroyed.

They both achieve the same results. It's just a matter of what makes more sense to you. Take a look at the model and see if this is what you were looking for.

Thanks.

eg-1-modified-29-nov-jn1.fsm


· 3
5 |100000

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

Ladeeda VH avatar image Ladeeda VH commented ·

Thank you for the well explained answer with the solved model and for the faster reply.

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren Ladeeda VH commented ·
@Ladeeda VH

You are very welcome.

0 Likes 0 ·
Ladeeda VH avatar image Ladeeda VH commented ·

How can I get the data table with cumulative cost at each activity level instead of individual cost (as in the above data table)?

Is the "Global table" a better option over the statistics collectors for the purpose?

Can you give a comparison for both of the methods for the same model by demonstration?

0 Likes 0 ·