LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
dispatch_closed.m
1% DISPATCH_CLOSED Parity test: closed cluster built via the Cluster builder.
2%
3% 3 PS server stations, single closed class with N = 10 jobs, think time
4% Z = 1.0, mu = 1.0, RAND dispatching. Solved exactly via MVA, then
5% re-solved by stochastic simulation via SSA for cross-validation. The
6% same script runs unchanged under PYTHON, PYTHON-WRAPPER, MATLAB, and
7% MATLAB-WRAPPER.
8
9clear all
10
11cluster = Cluster();
12cluster.setNumStations(3);
13cluster.setServiceRate(1.0);
14cluster.setScheduling(SchedStrategy.PS);
15cluster.setClosed(10, 1.0);
16
17avgTable = MVA(cluster.build()).getAvgTable()
18ssaTable = SSA(cluster.build(), 'seed', 23000, 'samples', 20000).getAvgTable()