LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
initFromSolver.m
1function self = initFromSolver(self, initSolver)
2% SELF = INITFROMSOLVER(INITSOLVER)
3%
4% Warm-start the solver from the steady-state solution of an auxiliary solver.
5%
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.
12%
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.
18%
19% Example:
20% @code
21% solver = SolverSSA(model, SolverMVA(model), 'samples', 50000);
22% @endcode
23
24sn = self.model.getStruct(true);
25placement = NetworkSolver.warmStartPlacement(initSolver, sn);
26self.model.initFromMarginal(placement);
27end
Definition Station.m:245