question

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

ORDER BY for a center object

I want to set up a queuing strategy for a resource, wherein, upon acquiring the resource, we take into account the central object and the number of contents on those central objects. But when I check the entries, it seems like they're not getting sorted right all the time, especially Processor 1.

Any idea why that might be? Is this the best way to do it, and should we use "ORDER BY Puller.centercents" in the queue strategy, or "ORDER BY centercontents"?

I'm attaching a sample model here.

orderby_contents_oncenter_object_1.fsm

FlexSim 23.2.0
querysqlordercenter objectsqueu startegy
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 only have one token created and that acquires processor1 when all the queues are empty at time zero. Furthermore your process flow is not connected in any way to or has any influence over the 3d model.


· 7
5 |100000

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

Maryam H2 avatar image Maryam H2 commented ·

@Jason Lightfoot my process flow is using the Group of Processors and their center objects receive contents from sources.

so what we should do in order to Acquire a Resource by taking into account the contents on its center objects in an Object Flow?

Could you take a look at my queries? Is there a potential issue there?


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Maryam H2 commented ·

Your process flow isn't 'using' anything. The one token you create (for the operator instance that the process flow has as a member) acquires a reference to processor1, delays and then releases that reference. As I said - there is not process flow interaction with the model. Your query is probably fine - what's not fine is the design of the model. Describe your goal in terms of item flow and events, and we can show you what to implement.

0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Jason Lightfoot ♦ commented ·

I'm a bit confused, my process flow obviously use the data coming from the 3D model, there are three sources that feed into those queues and if you open View Entries on the Resource it shows the contents in the queues (the objects in the 3D model).

My question is that how I can Acquire a Resource by looking at its center object's content and give higher priorities to the resources that their center objects have higher contents first.

This was my initial question, but I suspect my model might be a bit more complicated, and it could be interacting with this issue.



0 Likes 0 ·
Show more comments

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.