question

Yt6155mail avatar image
0 Likes"
Yt6155mail asked Logan Gold commented

event time is in past


"createvent: event time is in past: event time changed to present. Object: Source1 advancetime: -11.368785, time: 14109.910037 "

1650587485991.png


I'm getting an error like this.

There seems to be no way to resolve this error in the "Inter-Arrival time" setting.

How can I set it to avoid this error?

event_time_is_in_past_1.fsm



The same question was confirmed, but I couldn't find a specific solution.


https://answers.flexsim.com/questions/27196/system-error-createvent-event-time-is-in-past-even.html

https://answers.flexsim.com/questions/115443/understanding-error-event-time-changed-to-present.html

https://answers.flexsim.com/questions/77339/system-console-createvent-error.html




FlexSim 21.0.10
eventinterarrival times
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Yt6155mail, was Joerg Vogel'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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jason Lightfoot commented
Math.max(0.01, normal(90,36.6,getstream(current))

a normal distribution can return negative values. Then tey are in the past.

You can prevent it with a mathematical function returning a value near zero if the result gets negative.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

if you choose deviation parameter value, which is larger than 3 sigma interval in comparison to your mean value, you get negative values.

normal(90,15) chance to get only positive values is ok.

normal(90,60) chance to get some negative values is an reasonable assumption.

0 Likes 0 ·
Yt6155mail avatar image Yt6155mail Joerg Vogel commented ·

>Math.max(0.01, normal(90,36.6,getstream(current))


My sample model seems to automatically convert negative values to zero without using this code.

However, the error continues to occur.


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Yt6155mail commented ·
                      
  1. Math.max(0.01, normal(90,36.6,getstream(current)))

You were missing a close parenthesis character. There are no errors when using this expression.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.