question

立洲 avatar image
0 Likes"
立洲 asked Ryan Clark commented

Resource、Location Resource Acquire、List order problem

獲取資源時,可以根據表標籤的順序獲取的資源嗎?

病人入院時間.fsm

還是說資源唯一使用的組排序?


1634815649993.png1634815671151.png1634815690240.png


FlexSim 20.0.10
resourceglobal tablesacquire location
1634815649993.png (103.5 KiB)
1634815671151.png (17.2 KiB)
1634815690240.png (25.2 KiB)
· 3
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·
Can you upload your model again?
0 Likes 0 ·
立洲 avatar image 立洲 Jeanette F ♦♦ commented ·
0 Likes 0 ·
立洲 avatar image 立洲 立洲 commented ·

@珍妮特F我現在用的是List方式,但是我只能指定一個具體的床位,但是我想要的是能夠根據Global Table的床位分配給患者,我在床位有標籤病人產生的Source,這個標籤貼在病人身體上

0 Likes 0 ·

1 Answer

Ryan Clark avatar image
0 Likes"
Ryan Clark answered Ryan Clark commented

Hi @立洲 ,

I was able to achieve your desired logic in your model. In the Arrivals process flow, I added a label to each token to get the BedName as a string to use later. Then, in the Person Flow, I modified the Pull from List query field to "Model.find(person.BedName)." This then pulls the correct bed based on the name.

I hope this helps! Let us know if you have further questions!

1021-2 (1)-rc.fsm


1021-2-1-rc.fsm (420.9 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.

立洲 avatar image 立洲 commented ·

@瑞安克拉克 這個答案很棒,我學到了一種新方法,Thanks

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark 立洲 commented ·
@立洲 沒問題!我很高興能夠幫助您! You're welcome!
0 Likes 0 ·