Can I use my own timetraces in M/M/1 queue implementation by Simevents?

1 次查看(过去 30 天)
Hi
I am trying to build a M/M/c queuing system by Simevents. I can easily extend the library example of M/M/1 queue for this purpose. However, I need to use my own timetraces to send the incoming traffic instead of the random number generator. How can I change the entity generator unit?
I need to have average service rate = 1000 jobs/s and job inter-arrival times = [0.000652319973810714 0.00671367807249022 0.00203053922050347 0.00428776986488339 0.00451642623288438 0.000516265273225481 0.000273223426107445 4.73351935067905e-05 0.000765797569887923 0.000212720802785289 0.00169417760478423 0.0102040855683635] seconds.
  2 个评论
Renato SL
Renato SL 2020-9-22
I want to make sure of a few things since I think these can make the question clearer.
  • Why do you have 12 average values of job arrival times? Does that come from 12 different system configurations?
  • You mentioned using your own timetraces, which I assume is to reproduce results from a previous observation, but you put job arrival times instead. So, how are these 2 things related?
Hint for now: If I remember correctly, the service rate can be expressed in the Entity Server.
Sourav Mondal
Sourav Mondal 2020-9-22
编辑:Sourav Mondal 2020-9-22
Hi Renato
My bad. It is just inter-arrival times. I just modified this. This is from the same process but the average is changing. So I can't use a fixed parameter to generate the timestamps. Hence, I have added the trace. There are more than 12 entries but I have just shown 12 as an example.

请先登录,再进行评论。

采纳的回答

Abdolkarim Mohammadi
编辑:Abdolkarim Mohammadi 2020-9-23
I think you need a simple M/M/c queue. The example you are trying has components for other purposes, which might have confused you. I have attached a simple M/M/3 model.
Inter-generation times can be set via MATLAB action in the Entity generator block. You can use the Insert pattern button to create such code for many distributions.
  2 个评论
Sourav Mondal
Sourav Mondal 2020-9-23
Thanks Abdolkarim for your comment. This was helpful but I still couldn't find a way to integrate my timestamps. I think I'll try some other event driven simulator.
Abdolkarim Mohammadi
编辑:Abdolkarim Mohammadi 2020-9-23
If you want a prespecified sequence of service times, you can refer to the fifth model in this example (Inter-Arrival Times from Sequence):

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete-Event Simulation 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by