Hi Team,
I started facing these errors suddenly without making any changes in model.
Can you help me to understand the cause and how to avoid it?
Thank you!
Hi Team,
I started facing these errors suddenly without making any changes in model.
Can you help me to understand the cause and how to avoid it?
Thank you!
Hi @Ankur A3, was Nil Ns's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.
Hello,
It seems that the error is occurring due to the distribution being used. It appears that the distribution is generating a negative number, which results in a negative wait time being requested (which is clearly impossible). There are several ways to solve this issue, such as changing the distribution, but the easiest solution would be to use Math.max
to ensure that the wait time is never negative.
Exemple:
Math.max(0, normal(10.0, 2.0, getstream(activity)))
Best regards
Thank you for your response!
I would like to ask that I am using a same distribution in the model since 1 month but these errors are populated only today.
Any specific reason to it?
Thank you!
Update: I recommend using an updated getstream function as described and attached here.
Previously:
I recommend using the stream of the downobject rather than the breakdown object itself - that way the breakdowns are independent, and adding more objects to the breakdown will not affect the timing of those that were already members. The same for sampling distributions inside object process flows - consider replacing getstream(activity) with getstream(current).
Hi @Jason Lightfoot,
Thank you for the response!
Trying to understand that what to use in place of getstream(current)
Do you mean the object name directly?
getstream(Model.find("Processor1"))
Please confirm on this.
Thank you!
Hi @Ankur A3 !
One possible explanation for the errors you are seeing could be related to the “repeat random streams” setting. If this setting was active during the past month, it would have caused the model to use the same seed each time it was run. By chance, this seed may not have resulted in any errors. However, if the setting has now been deactivated, the model may be using a different seed that does result in errors.
If this is not the case, it is possible that even a small change, such as moving an object by a few millimeters or running the model on a different computer, could cause the seed to be different.
If the issue is not related to the seed, I would suggest checking the values of the distribution to make sure they are correct. Incorrect values could result in a higher probability of negative numbers and therefore errors.
I hope this helps!
15 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