question

ejust avatar image
0 Likes"
ejust asked ejust edited

Pull From List Query; ORDER BY rank label not working.

Hi,
Trying to configure my list so that value with the minimum rank gets pulled, however, the pull query keeps pulling the values in FIFO. 1711661699457.png

1711662244461.png

Is there something wrong with my query?

Thanks.

FlexSim 22.2.4
list pull from list
1711661699457.png (27.4 KiB)
1711662244461.png (22.5 KiB)
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @ejust,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question. Make sure rank is numeric and maybe change the name of that field.

If your model contains sensitive information, you could first toggle your post as private using the "make private" option under your question's "gear" menu. Private questions are visible only to site moderators. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
ejust avatar image ejust Jason Lightfoot ♦♦ commented ·

Hi @Jason, sorry for the inconvenience. Here's the model attached.

List-Query.fsm

This is a practice model so my primary objective is to build it as optimally as possible. I would very much appreciate any additional comments from your POV as an experienced user on how to develop the model more robustly though. Like what facets of the model logic would you build differently?
I feel I use too many unnecessary CPs on the AGV network, but this is how I take control of the deadlocks. I can tell there are much better ways to overcome the deadlocks, but I might need some direction :)


0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered ejust commented

This is simple error - your list uses "Manual Car wash" while your token.service is "Manual Car Wash" - FlexSim strings are case sensitive.

Also, if you're partitioning the list by the service type then you don't need the WHERE clause in the query.

However if you have CPs that can do multiple service types, then you will want to put all CPs in the same (default) partition of the list then have the where clause find token.service IN value.services (where services is an array of possible services at that position).

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

ejust avatar image ejust commented ·
You don't know how much I appreciate your answers, @Jason! Thank you!
0 Likes 0 ·