0511.fsmHi there,
I am trying to stop the simulation when the input value of Queue8 reached 10, I use decide > conditional decide > Model.find("Queue7").as(Object).stats.input.value==10
But it doesn't work...
Are there any suggestions? Thanks!
0511.fsmHi there,
I am trying to stop the simulation when the input value of Queue8 reached 10, I use decide > conditional decide > Model.find("Queue7").as(Object).stats.input.value==10
But it doesn't work...
Are there any suggestions? Thanks!
@Emily K If you put a decide in you have to have 2 exits. You currently have only 1 exit on the decide but if the queue content == 10 it should go to exit 2. But there is no exit 2 so it doesn't go anywhere. You can also see that because all your tokens stay in your decide. So simply add a custom code activity and connect it from the decide to this activity and put the code stop(0) in that custom code activity and you should be good to go.
Thank you Steven for giving suggestion :)
But I would like to stop the simulation, when the total input of Queue8 == 10 not current content of Queue8 == 10
Is it correct to use this code?
Model.find("Queue8").as(Object).stats.input.value==10
17 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved