How does flexsim handle negative Processing times

How does flexsim handle negative Processing times

selin_steiger
Contributor Contributor
310 Views
4 Replies
Message 1 of 5

How does flexsim handle negative Processing times

selin_steiger
Contributor
Contributor

To whom it may concern,

 

I have built a simulation and am using normal distributions for my processing times, one process has a mean - 4*Sigma that goes in to the negative and because that process runs through 74k cycles per simulation it usually generates 3-5 of these negative value errors but only says that the time was set from the past to the present.

Nachweis der Negativen zahlen in der Simulation.png

 does this mean, that the time was set to 0 or multiplied by lets say -1 to generate its positive counterpart?

0 Likes
Accepted solutions (1)
311 Views
4 Replies
Replies (4)
Message 2 of 5

FelixMoehlmann
Mentor
Mentor
Accepted solution

The process time will be treated as 0. It would be better to catch these cases beforehand, so no error message is generated. While they are 'harmless', they might make other errors in the system console harder to discern. You can use "Math.max()" to implement a minimum value for the process time.

0 Likes
Message 3 of 5

selin_steiger
Contributor
Contributor

is there any literature to support this, before posting I tried to find information from flexsim but was not able to 

 

0 Likes
Message 4 of 5

FelixMoehlmann
Mentor
Mentor

I don't think so. But it is the most logical behaviour based on the error message. From the context you know that the involved event must be the On Process Finish event of the processor. The event is scheduled once the process time is known (after the execution of the process time field code). The error message states that the event time was set to "present", i.e. current model time. The On Process Finish event happening at the same time as the process time being evaluated means the effective process time is 0.

Apart from such theoretical conclusions, you can also test this very easily. Build a tiny model consisting of source, processor and queue and set the process time to -1 (or any other negative value). Every time an item enters the processor, you will get this message and the item immediately proceeds to the queue.

Message 5 of 5

selin_steiger
Contributor
Contributor

Thank you for all help these past months! your tips and explainations have been incredibly helpful!

0 Likes