question

Kari Payton avatar image
0 Likes"
Kari Payton asked jing.c commented

Pull from a list based on sum of label values.

I have a shipping truck that can only carry 8 tons. I have items on a list with label for the weight (last column). When I pull the items is there a way I can limit it to pull less than 8 tons in total?

FlexSim 17.2.3
process flowlists
5 |100000

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

Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered jing.c commented

I don't know of a way to do that within the pull query. The closest thing I can think of is to put a Zone around the Push to List activity. You can use the Zone Subsets to limit the total label amount in the Zone, which will consequently limit the amount on the list.

zoneandlist-1.fsm


zoneandlist.png (15.5 KiB)
zoneandlist-1.fsm (21.1 KiB)
· 5
5 |100000

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

Raja Sekaran avatar image
4 Likes"
Raja Sekaran answered Kari Payton commented

Hi @Kari Payton,

I have attached the sample models.

In the first attachment, Track the running total with the help of Track Number Fields Total.

Then add Expression field to the list and Track the Total Field Value(Weight).

In the List entries, the result of the expression field(CalculateTotalweight) will be like as the pic below.

Then, use the query in the Pull from the list as the pic below.

In the second attachment, I have used the SELECT clause to pulling the things from the list and also specify theTruck Capacity in the Request number and Require Number field. But It allows you to pull things from the list using fluid-like request quantities, instead of discrete entries on the list.

attachment-1.fsm

attachment-2.fsm

I hope this will help you.

Thanks


· 5
5 |100000

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