question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Tee Hiett commented

send MD to nearest location (via travel path) in 19.2.0

dev-model-09-04-2019-1.fsm

In the NP Evaluation section of the track, I would like to have the MD and the NP acquire the first available ConferenceSpot with the shortest travel distance. The ConferenceSpots are small Floor Spots underneath the WOWs. I plan to add a couple more of the Floor Spots/WOW combinations to the model.

Is this possible version 19.2.0?

Choose One
FlexSim 19.1.2
first available locationtravel to a locationnearest available location
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Tee Hiett commented

It's not the easiest thing to do right now (we're hoping to make this easier in a few months), but right now you have to write a query in the Location field. When you ask for something from the ConferenceSpots group a query is automatically generated for you that looks like this:

WHERE [ConferenceSpots] AND (Priority = 0 OR (Priority < 100 AND Preemptable > 0)) ORDER BY Priority, [ConferenceSpots]

Now we just need to copy this query, add travelDistance to the list of things to order by and then paste this new query in the Location field. The new query looks like this:

WHERE [ConferenceSpots] AND (Priority = 0 OR (Priority < 100 AND Preemptable > 0)) ORDER BY Priority, travelDistance, [ConferenceSpots]

I've added this to your model in the attached file. closestconf.fsm


closestconf.fsm (705.2 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.

Tee Hiett avatar image Tee Hiett commented ·

Matthew,
Thanks for sharing this information. I look forward to working with this feature and the Priority in the near future.

Right now, I'm changing the approach to assign one or more exam tables to a specific WOW or more precisely the object underneath the WOW. I'm having trouble with this approach and I will post that problem under a separate topic. I would provide a link to that topic but I don't know how to include the linkage.

Tee

0 Likes 0 ·