question

Sean avatar image
0 Likes"
Sean asked Sean commented

pull from list issue

Hi,

I have an array and I don't want these value be pulled from List. How can I set up in Query/Object/Array?

For instance, Array processor = [Processor3,Processor4,Processor5],I don't want these 3 processors be pulled from list. Thank's.pull-from-list-question.png

FlexSim 22.1.3
list pull
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Sean commented

Add a dynamic expression field to the list that determines whether the value is part of the array on the puller. Then use that field to filter for eligible values in the query.

1658219431231.png

The 'indexOf' method returns the index of a variable inside an array. If the variable is not part of the array, it returns -1 instead. So here we filter for such values to only pull processors that are not in the array.

1658219588182.png

exclude_query_fm.fsm


1658219431231.png (11.6 KiB)
1658219588182.png (3.4 KiB)
· 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.

Sean avatar image Sean commented ·
Thank you.It's helpful.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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