question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

counting subnodes with a specific label

How can I determine the number of subnodes on a processor that have a specific label? For instance, assume some subnodes are labeled "A" while others are labeled "B". How I can refer to the quantity of each in the pull from list?


1708472490784.png

FlexSim 24.0.1
list pullsubnodessubnode.length
1708472490784.png (33.2 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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Maryam H2 commented

You'd usually test the value of the label not that it exists:

  1. Table.query("SELECT count($2) FROM $1 WHERE $2.Type='A'",token.csb,$iter(1))[1][1]

Label names should reflect the name of a category not the value that needs to be written on it.


· 4
5 |100000

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