1function self = initFromSolver(self, initSolver)
2% SELF = INITFROMSOLVER(INITSOLVER)
4% Warm-start the solver from the steady-state solution of an auxiliary solver.
6% The auxiliary solver
is used to find the steady-state distribution of the
7% model, and that distribution decides an integer job placement (see
8% NetworkSolver.warmStartPlacement): with SolverCTMC the placement
is the mode
9% of the exact stationary distribution over the aggregate state space, with
10% any other solver the rounded steady-state mean queue lengths conserving each
11% closed-class population.
13% The placement
is applied as the model initial state via initFromMarginal,
14% which the state-driven solvers honor: SolverFLD starts the ODE integration
15% from it, SolverSSA starts the simulated trajectory from it, and SolverJMT
16% preloads the stations with it. Note that this modifies the initial state of
17% the model object shared with any other solver instance.
21% solver = SolverSSA(model, SolverMVA(model),
'samples', 50000);
24sn = self.model.getStruct(
true);
25placement = NetworkSolver.warmStartPlacement(initSolver, sn);
26self.model.initFromMarginal(placement);