Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Non Homogenous Poisson Process in Anylogic

I am trying to simulate the Mt/M/c queueing model in Anylogic. I want the Source to generate agent by a Non Homogenous Poisson Process, which requires the arrival rate function to be like, for example, a+b*sin(t). However, I found that the source can only generate by fixed rate or rate schedule.

I am wondering if there is some way to generate agents by the rate function given in Anylogic.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Sure, set the Source to "create agents by call of inject()" method:
enter image description here

Then, create a DynamicEvent with the action code as below. This will inject 1 agent at the specified interval from your equation:
enter image description here

Last, you need to "seed" this setup by calling create_MyDynamicEvent(0, SECOND) once on startup of Main (to make the dynamic event re-call itself from then onwards)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading