I have a process flow that has an inter-arrival source and I need it to stop releasing tokens after X amount has been released (based on info in a table)? How can I do this but keep my simulation model running?
I have a process flow that has an inter-arrival source and I need it to stop releasing tokens after X amount has been released (based on info in a table)? How can I do this but keep my simulation model running?
@Sahar A I created an example of 1 way to do it. You can have a loop with a parent token that creates child tokens at time intervals. In the example I put a label on the source token called "count". After the inter-arrival time is completed a child token is created and sent to other "activities". Then in the decide it looks at the count label to see if it's < the number from the table. If yes then it goes through the loop again to make another token. This repeats until the count = the number in the table. Hope this helps.
So what I need to do is exactly this but instead of just a number from the table, I need it to be < than the sum of a particular column in the table. Any ideas how I would do this?
getdatastat() is a really cool command for returning a calculated value from a set of data! In your case, it would look something like this to sum the values in column 1 of a global table named "GlobalTable1".
getdatastat(STAT_SUM, gettablerows("GlobalTable1"), gettablenum("GlobalTable1", count, 1))
Great, thanks Cliff, I found something about this & I tried to use this function before but failed. Do you mind explaining to me each component of the formula?
I understand that it gets the table rows for the table, but then what exactly does it do? (I'm new to this lol)
I guess I want to use this function in an if statement if (token.count < getdatastat...etc) Would that work? Thanks in advance :)
12 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