question

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

Label tracking difficulty for some of the parallel processors

Hi,

I have some problems in my models related to the tracking of "actualCost" label values (assigned beta distribution for each activity using triggers) for some of the processors arranged in parallel. I attach 2 simple models here. Any code is required ? Can any one help me to identify and solve this?

Thanks.

Regards,

Ladeeda V H

n6-sp-02-eg.fsm

n6-sp-04-eg.fsm

FlexSim 18.2.2
labels
n6-sp-02-eg.fsm (28.8 KiB)
n6-sp-04-eg.fsm (29.7 KiB)
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

Logan Gold avatar image
0 Likes"
Logan Gold answered Ladeeda VH commented

For the n6-sp-02-eg model, you need to add some code to the On Entry trigger of the Combiner. Otherwise, you lose the actualCost2 label on the items coming from port 2 and the actualCost3 label on the items coming from port 3. You are already doing this for the actualCost5 and actualCost6 labels in this trigger, you just need to do the same thing for the other two labels. So something like this:

if(port == 2)
{
	first(current).actualCost2 = item.actualCost2;
	first(current).actualCost5 = item.actualCost5;
}


if(port == 3)
{
	first(current).actualCost3 = item.actualCost3;
	first(current).actualCost6 = item.actualCost6;
}

Everything looks to be working for the second model, so you can close out of the System Console and no other error message should appear.

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

@Logan Gold It again shows the same errors even after applying the codes for actualCost2 and actualCost3 for the model n6-sp-02-eg.

0 Likes 0 ·
Logan Gold avatar image Logan Gold ♦♦ Ladeeda VH commented ·
@Ladeeda VH

It might just be the old errors that you are seeing. Whenever something like this happens, you can always close the System Console that is showing the errors, run the model with the changes, then see if the same or different errors pop up.

I am also attaching the model (16838-n6-sp-02-eg.fsm) with the changes made and the System Console closed. I was able to run the model for quite some time and no errors popped up. Let me know if it's different for you or if there are other errors.

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

@Logan Gold

Thank you. The model you attached is working properly.

0 Likes 0 ·