Is there a way to track the number of flowitems that are currently in play within a model over the course of a simulation run? Is that information stored within the tree?
Is there a way to track the number of flowitems that are currently in play within a model over the course of a simulation run? Is that information stored within the tree?
Hi @Noah Zenker,
The WorkInProgress Tracked Variable does exactly what you're looking for, and is one of the two default tracked variables included in any new model (the other being TimeInSystem).
You can easily use the 'pin' button to add a dashboard graph showing the tracked variable changing over time.
If you ever need to find and track a different stat, please check out the documentation for Tracked Variables. You can find this in your 17.1.4 User Manual under Modeling Tools > Tracked Variables.
In 17.2, you can find the entry for Tracked Variables under Reference > Tools > Tracked Variables.
Thanks Ben. This seems to work well for a few the models I've tested it out on. For one model, however, the WorkInProgress goes below zero. I don't believe this should be possible so I'm wondering if this has ever been encountered and what things might cause this.
Unfortunately I don't have the ability to attach the model this is occurring on but I can send some screenshots of the behavior if that would be useful.
@Sam Stubbs, @Logan Gold, @phil.bobo, you guys ever heard of this (negative WIP)? Any ideas?
I just tested a barebones model with combiners and separators in various places and modes (pack, join, split, unpack) and was not able to get a negative WIP.
@Noah Zenker, some screenshots *might* help, but the model file will probably be necessary to really figure out what is going on. If you can't post your model even to a private question, consider stripping it down so that just the offending part is left in your model. Or create a smaller sample model that duplicates the problem.
Thanks,
If you are creating flowitems through some mechanism that doesn't update the WIP tracked variable (such as calling insertcopy() or createcopy() directly) and then destroying them through a mechanism that does update the WIP tracked variable (such as a Sink or a Combiner in Join Mode), then WIP will be negative.
If I'm understanding your question, couldn't you just get the number of flowitem produced (getoutput(Source)) and substract the number of flowitems that have left the model (getinput(Sink))? Not sure what your model consists of but if it's a single source (or even multiples, just add them up) and a single sink (or multiples, just add them up) then would something like this work for you?
9 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