1function model = gallery_detm1()
2% GALLERY_DETM1 Create a D/M/1 queue model (deterministic arrivals, exponential service)
4% This model demonstrates the effect of deterministic (constant) inter-arrival
5% times compared to exponential arrivals. The deterministic arrival process
6% has zero variance, which typically reduces queue length and response time
7% variability compared to the M/M/1 model.
10% - Arrival process: Deterministic with rate 1.0 (inter-arrival time = 1.0)
11% - Service process: Exponential with rate 2.0 (mean service time = 0.5)
12% - Traffic intensity: ρ = λ/μ = 1.0/2.0 = 0.5 (stable)
13% - Scheduling: First-Come-First-Served (FCFS)
16% model - Network object containing the configured D/M/1 queue
19% model = gallery_detm1();
20% solver = CTMC(model);
22% avg_table = solver.getAvgTable()
25% - D/M/1 queues typically have lower response time variance than M/M/1
26% - The deterministic arrival process eliminates arrival variability
27% - This model
is useful
for studying the impact of arrival time variability
28% - System utilization
is 50% (ρ = 0.5)
31% gallery_mm1, gallery_erlm1
33model = Network(
'D/M/1');
36source = Source(model,
'mySource');
37queue = Queue(model,
'myQueue', SchedStrategy.FCFS);
38sink = Sink(model,
'mySink');
41oclass = OpenClass(model,
'myClass');
42source.setArrival(oclass, Det(1));
43queue.setService(oclass, Exp(2));
46model.link(Network.serialRouting(source, queue, sink));