简体   繁体   中英

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.

Sure, set the Source to "create agents by call of inject()" method: 在此处输入图像描述

Then, create a DynamicEvent with the action code as below. This will inject 1 agent at the specified interval from your equation: 在此处输入图像描述

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM