1% Open queueing network with a CyclicPoisson arrival process.
3% CyclicPoisson
is a cyclic deterministic phase-switching Poisson process:
4% arrivals follow Poisson(rates(i))
for exactly durations(i) time units, then
5% the rate switches deterministically to the next phase. Only the LDES
6% simulation engine honours the exact phase schedule.
8model = Network(
'model');
10source = Source(model,
'Source');
11queue = Queue(model,
'Queue', SchedStrategy.FCFS);
12sink = Sink(model,
'Sink');
14jobclass = OpenClass(model,
'OpenClass', 0);
16source.setArrival(
jobclass, CyclicPoisson([2,8,4],[3,1,2]));
19model.link(Network.serialRouting(source,queue,sink));
21AvgTable{1} = LDES(model,
'seed',1234,
'samples',100000).getAvgTable;