Changing arrival pattern

All topics on coding 4Dscript in Enterprise Dynamics.
Posts: 3
Joined: Tuesday 21 February, 2017 - 12:02

Changing arrival pattern

Postby Helbe » Tuesday 14 March, 2017 - 09:14

Dear all,

I am currently building a model where the arrival pattern is changing over time, and I will have different distributions during the simulation run (peak hours and non-peak hours).
Therefore, I would like to find a good way to assign different distributions for the arrival depending on the time.
Currently I have solved it with a if statement in the inter-arrival time in the source atom, but I wonder if there is a better way to do it? For example by assigning different distributions in an excel sheet and read different rows in the table at depending on the time.

Thank you for all the help!

Best regards,

User avatar
Markus Holzner
Posts: 14
Joined: Thursday 20 January, 2011 - 13:31

Re: Changing arrival pattern

Postby Markus Holzner » Wednesday 15 March, 2017 - 15:23

Dear Helbe,

there are of course many ways to do that. Your solution with the "if" statements is fine (you could also use "case" and "whichistrue").
Maybe you want to be more flexible when you change something (times or distribution) and that way to do it with a table is a good solution.
The data can then be stored within a table of maybe Excel or the Table atom of Enterprise Dynamics.
You can include the times when a distibution changes here as well.

If you need more details on that, please let me know.

Best regards,

Return to “Enterprise Dynamics 4DScript”

Who is online

Users browsing this forum: No registered users and 1 guest