ar-buffer.fsmHere in the model, it is supposed to check yard capacity, and move into the queue.
However, the items never leave the enter yard phase.
Is this an error? Bug? is there an input I am missing?
ar-buffer.fsmHere in the model, it is supposed to check yard capacity, and move into the queue.
However, the items never leave the enter yard phase.
Is this an error? Bug? is there an input I am missing?
I figured it out.
The calculation to limit the number of tokens in each partition won't work because before there's a token in the zone, there's no token for which it can read the label, "capacity_yard". This would only work after the first token has entered with the value for "capacity_yard" on it. By changing this to an integer value (i.e. "30"), the tokens enter the zone properly.
You'll have to come up with a different way of limiting the number of tokens in the partition. Will it ever be something other than 30?
@Tanner Poulton Use this script to enumerate the partition constraints:
treenode zone = getactivity("ProcessFlow", "yard"); treenode table = zone.find(">variables/partitionConstraints/1/exceptionTable"); table.subnodes.clear(); for(int i = 1; i <= 30; i++) { treenode row = table.subnodes.add(); treenode partition = row.subnodes.add(); partition.name = "Partition"; partition.value = "DS" + string.fromNum(i); treenode limit = row.subnodes.add(); limit.name = "Limit"; limit.value = "Table(\"yardcapacity\")[1][" + string.fromNum(i) + "]"; switch_flexscript(limit, 1); buildnodeflexscript(limit); }
Sorry, I tried this and it ran briefly and flexsim closed. no notice, just failed
Hi @Allison H2,
I apologize for the delayed response. Did you ever get the code to work? I'm uploading with this post a model in which the script has already been executed. It runs for me until the row numbers gets incremented by the Process Flow (I'm not sure why that is happening...) around 100000 seconds or so.
The limit is not consistent for all 30 destinations, which is why I wanted to reference the capacity per the assigned column.
that value is based off of the 'yard capacity' global table.
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