Class SolverMAM
- Direct Known Subclasses:
MAM
SolverMAM implements matrix-analytic techniques for analyzing queueing networks with Markovian arrival processes (MAP), phase-type service distributions, and other non-exponential characteristics that go beyond product-form assumptions.
Key MAM solver capabilities:
- Markovian Arrival Process (MAP) modeling
- Phase-type (PH) service distribution analysis
- Matrix-geometric solution methods
- Quasi-Birth-Death (QBD) process analysis
- Non-product-form queueing network solutions
- Passage time distribution computation
This solver is particularly useful for networks with correlated arrivals, general service times, and complex dependency structures that cannot be analyzed using traditional product-form methods.
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jline.solvers.NetworkSolver
NetworkSolver.SolverConfiguratorNested classes/interfaces inherited from class jline.solvers.Solver
Solver.ResolvedVerdict -
Field Summary
Fields inherited from class jline.solvers.NetworkSolver
avgHandles, lastPerctMethod, lastPermEngine, model, sn, tranHandles -
Constructor Summary
ConstructorsConstructorDescriptionSolverMAM(Composition model, Object... args) Solves a LAL composition by matrix-analytic lowerings: finite and reachable QBDs, the infinite matrix-geometric QBD of one unbounded queue, and the Jackson, MAP-network (dec.source), parallel-QBD and marked-thinning lowerings of several unbounded queues.SolverMAM(Network model, SolverOptions options) -
Method Summary
Modifier and TypeMethodDescriptionactT()Alias ofgetActTable()(MATLAB and PythonactT).static StringWhy no MAM method can answer a model whose finite buffer a CLOSED class can fill, or "" when every binding buffer is reached by open classes only.static SolverOptionsThroughputs of several actions, each a name or anObject[]ofgetAvgAct(java.lang.Object...)arguments.Alias ofgetActTable()(MATLAB and PythongetActionTable).getActT()Alias ofgetActTable()(MATLAB and PythongetActT).Labelled action throughput table of a LAL composition (PythongetActTable).getAvg()Computes and returns average station metrics at steady-state.doubleThroughput of one LAL action, named as inSolverCTMC.getAvgAct.doublegetAvgActMode(Object node, EventType event, String mode) Throughput of a Petri-net mode action(transition, ENABLE|FIRE, mode).Returns a table of average station metrics organized by job classes.Returns cumulative distribution functions of passage times at steady-state.Returns cumulative distribution functions of passage times at steady-state.Returns cumulative distribution functions of response times at steady-state.Returns cumulative distribution functions of response times at steady-state.Describe the LAL binding before solving, including runtime conditions.static FeatureSetReturns the feature set supported by the MAM solverAgent-state probability table of a LAL composition (PythongetAvgTable).The Composition-mode MAM result (PythongetMAMResulton a composition).getLibrariesUsed(NetworkStruct sn, SolverOptions options) Bundled third-party libraries used by the matrix-analytic solver: MAMSolver for the M/G/1 and GI/M/1-type decompositions, Q-MAM for the RCAT-based methods, and BUTools wherever a MAP/PH process is present.LAL MAM diagnostics without the CTMC comparison.getMAMDiagnostics(boolean compareCtmc, long maxStates) LAL MAM diagnostics, optionally compared with the finite CTMC of the composition.Intermediate quantities of the matrix-analytic analysis of a single-queue model, in addition to the mean performance measures returned by getAvg.getMethodFeatureSet(String method) Per-method feature set, or null to signal "this solver does not diverge per method" (the coarse supports(model) is then used, preserving any structural checks it carries).Get response time percentiles using default values [50, 90, 95, 99]getPerctRespT(double[] percentiles) Get response time percentiles from Fork-Join analysisJoint (level, phase) state probability, port of @SolverMAM/getProb.m.getProbMarg(int node, int jobclass) Get marginal queue-length probability distribution for a job class (all states).getProbMarg(int node, int jobclass, Matrix state_m) Get marginal queue-length probability distribution for a job class.Queue measures only for unchanged structured LAL queue declarations (PythongetQueueTable).voidComputes transient average station metrics over the specified time interval.Returns cumulative distribution functions of passage times during transient analysis.Returns cumulative distribution functions of passage times during transient analysis.static booleanTrue when the model holds a Place node.booleanWhether this solver was built from a LAL composition rather than a Network.static StringispnRefusal(NetworkStruct sn, String method) Why the iSPN route cannot take this model under METHOD, or "".static StringPort of MATLAB mam_ldqbd_applicable: why the 'ldqbd' method cannot answer this model, or "" when it can.Methods available for a LAL Composition, in MATLAB's order (SolverMAM.listLALMethods):defaultselects among the seven lowerings that follow it.listValidMethods(Network model) static booleanTrue when some station-class pair configures a retrial orbit (Queue.setRetrial / setOrbit), read off sn.retrialProc, which the refresh fills only for a configured delay that is not the Disabled placeholder.static StringCan the 'retrial' method answer this model? Empty string when it can.static FeatureSetmethodFeatureSet(String method) Per-method feature deltas on the base MAM envelope.voidreset()Clears previously stored results and resets the random number generator.voidExecutes the solver algorithm to analyze the model.booleanChecks if this solver supports the given network model.supportsModelMethod(String method) Fine, method-aware gate.protected StringunsupportedMethodReason(String method) The forwarding address for the RCAT names, which are SolverAG's now.unsupportedRefusalId(String method, String reason) The censor size screen (Solver_mam_censor.applicable(jline.lang.NetworkStruct, jline.solvers.SolverOptions)) refuses withLINE:unsupported:StateSpace, the id the analyzer raises for the same cap on the generated chain; any other refusal is the base rule.Methods inherited from class jline.solvers.NetworkSolver
aCaT, aCT, aCT, aCT, aCT, aCT, aCT, aFJT, aIT, aLT, aNCT, aNCT, aNCT, aNCT, aNCT, aNCT, aNT, aNT, aNT, aNT, aNT, aNT, aOT, applyCacheResults, aRLT, assertNetworkModel, assertNetworkStateMapping, aST, aST, aST, aT, aT, aT, aT, aT, aT, avg, avg, avg, avgArvR, avgArvRChain, avgArvRHandles, avgChain, avgChainT, avgChainT, avgChainT, avgChainT, avgChainT, avgChainT, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgChainTable, avgHandles, avgNode, avgNodeArvRChain, avgNodeChain, avgNodeChainT, avgNodeChainT, avgNodeChainT, avgNodeChainT, avgNodeChainT, avgNodeChainT, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeChainTable, avgNodeQLenChain, avgNodeResidTChain, avgNodeRespTChain, avgNodeT, avgNodeT, avgNodeT, avgNodeT, avgNodeT, avgNodeT, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTable, avgNodeTputChain, avgNodeUtilChain, avgQLen, avgQLenChain, avgQLenHandles, avgResidT, avgResidTChain, avgResidTHandles, avgRespT, avgRespTChain, avgRespTHandles, avgSys, avgSysRespT, avgSysT, avgSysT, avgSysT, avgSysTable, avgSysTable, avgSysTable, avgSysTput, avgT, avgT, avgT, avgT, avgT, avgT, avgTable, avgTable, avgTable, avgTable, avgTable, avgTable, avgTput, avgTputChain, avgTputHandles, avgUtil, avgUtilChain, avgUtilHandles, avgWaitT, bindingCapacityReason, cacheAvgT, cdfPassT, cdfPassT, cdfRespT, cdfRespT, chainAvgT, chainAvgT, chainAvgT, chainAvgT, chainAvgT, chainAvgT, checkDeclaredMethod, citations, declaredAllMethods, declaredAllMethods, declaredValidMethods, declaredValidMethods, fjAvgT, getAllSolvers, getAvg, getAvg, getAvgArvR, getAvgArvRChain, getAvgArvRHandles, getAvgCacheT, getAvgCacheTable, getAvgCacheTableImpl, getAvgChain, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTable, getAvgChainTableImpl, getAvgChainTableImpl, getAvgFJ, getAvgFJT, getAvgFJTable, getAvgFJTableImpl, getAvgHandles, getAvgItemT, getAvgItemTable, getAvgItemTableImpl, getAvgLossT, getAvgLossTable, getAvgNode, getAvgNodeArvRChain, getAvgNodeChain, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTable, getAvgNodeChainTableImpl, getAvgNodeChainTableImpl, getAvgNodeQLenChain, getAvgNodeResidTChain, getAvgNodeRespTChain, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTable, getAvgNodeTableImpl, getAvgNodeTableImpl, getAvgNodeTputChain, getAvgNodeUtilChain, getAvgOrbit, getAvgOrbitT, getAvgOrbitTable, getAvgOrbitTableImpl, getAvgQLen, getAvgQLenChain, getAvgQLenHandles, getAvgQLenTable, getAvgQLenTable, getAvgRegionLossT, getAvgRegionLossTable, getAvgResidT, getAvgResidTChain, getAvgResidTHandles, getAvgRespT, getAvgRespTChain, getAvgRespTHandles, getAvgRespTTable, getAvgRespTTable, getAvgSys, getAvgSys, getAvgSys, getAvgSysRespT, getAvgSysTable, getAvgSysTable, getAvgSysTable, getAvgSysTableImpl, getAvgSysTput, getAvgT, getAvgT, getAvgT, getAvgT, getAvgT, getAvgT, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTable, getAvgTableImpl, getAvgTableImpl, getAvgTard, getAvgTput, getAvgTputChain, getAvgTputHandles, getAvgTputTable, getAvgTputTable, getAvgUtil, getAvgUtilChain, getAvgUtilHandles, getAvgUtilTable, getAvgUtilTable, getAvgWaitT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getDeadlineTable, getModel, getMomentChainT, getMomentChainT, getMomentChainT, getMomentChainTable, getMomentChainTable, getMomentChainTable, getMomentStationT, getMomentStationT, getMomentStationT, getMomentStationTable, getMomentStationTable, getMomentStationTable, getMomentT, getMomentT, getMomentT, getMomentTable, getMomentTable, getMomentTable, getMomentTable, getNodeAvgT, getNodeAvgT, getNodeAvgT, getNodeAvgT, getNodeAvgT, getNodeAvgT, getNodeChainAvgT, getNodeChainAvgT, getNodeChainAvgT, getNodeChainAvgT, getNodeChainAvgT, getNodeChainAvgT, getPerctRespT, getProb, getProbAggr, getProbAggr, getProbNormConstAggr, getProbSys, getProbSysAggr, getProbSysMarg, getProbSysMarg, getSensitivityT, getSensitivityT, getSensitivityTable, getSensitivityTable, getStageT, getStageT, getStageTable, getStageTable, getSysAvgT, getSysAvgT, getSysAvgT, getTranCdfRespT, getTranCdfRespT, getTranHandles, hasAvgResults, hasBoundedBuffer, hasDistribResults, hasReneging, hasTranResults, initFromSolver, initHandles, itemAvgT, lalNetworkRefusal, libraries, lossAvgT, mapEnvApprox, mCT, mCT, mCT, model, momentChainT, momentChainT, momentChainT, momentStationT, momentStationT, momentStationT, momentT, momentT, momentT, mST, mST, mST, mT, mT, mT, needsMapEnv, nodeAvgT, nodeAvgT, nodeAvgT, nodeAvgT, nodeAvgT, nodeAvgT, nodeChainAvgT, nodeChainAvgT, nodeChainAvgT, nodeChainAvgT, nodeChainAvgT, nodeChainAvgT, options, orbitAvgT, print, prob, prob, probAggr, probAggr, probMarg, probMarg, probNormConstAggr, probSys, probSysAggr, regionLossAvgT, runAnalyzerChecks, sample, sampleAggr, sampleSys, sampleSysAggr, sensitivityT, sensitivityT, setAvgHandles, setAvgResults, setDistribResults, setLang, setModel, setTranAvgResults, setTranHandles, setTranProb, showLibraryAttribution, sT, sT, stageT, stageTable, storeAvgResults, supportsExactSensitivity, sysAvgT, sysAvgT, sysAvgT, tranAvg, tranCdfPassT, tranCdfPassT, tranCdfRespT, tranCdfRespT, tranHandlesMethods inherited from class jline.solvers.Solver
armTimeout, flagTimeout, getName, getOptions, getResults, hasResults, isJavaAvailable, isStochastic, isStochasticMethod, isValidOption, listValidOptions, parseOptions, parseOptions, resetRandomGeneratorSeed, resolveMethod, selectMethod, setChecks, setOptions, supportsResolvedMethod, supportsTransientAnalysis, supportsTransientVariance, timeExceeded
-
Constructor Details
-
SolverMAM
-
SolverMAM
-
SolverMAM
-
SolverMAM
-
SolverMAM
Solves a LAL composition by matrix-analytic lowerings: finite and reachable QBDs, the infinite matrix-geometric QBD of one unbounded queue, and the Jackson, MAP-network (dec.source), parallel-QBD and marked-thinning lowerings of several unbounded queues. Options are key-value pairs:method,tol,max_iter,verbose,lal_max_phases(64),lal_max_states(50000),lal_level_agent,lal_traffic_method("auto"),lal_compress_method("exponential"),lal_fit_time(1.0) andlal_fit_tolerance(0.05); any other key is refused. Results are read withgetLALAvgTable(),getActTable(),getQueueTable()andgetLALMAMResult().- Parameters:
model- the compositionargs- solver options in key-value form
-
-
Method Details
-
defaultOptions
-
isLALComposition
public boolean isLALComposition()Description copied from class:NetworkSolverWhether this solver was built from a LAL composition rather than a Network. False here; SolverAG, SolverCTMC, SolverSSA and SolverMAM override it. A composition-built solver has no Network model, so every inherited entry point that needs stations and classes refuses throughNetworkSolver.assertNetworkModel(String)instead of dereferencing a null model.- Overrides:
isLALCompositionin classNetworkSolver- Returns:
- true when the solver was built from a LAL composition
-
getLALAvgTable
Agent-state probability table of a LAL composition (PythongetAvgTable). -
getActTable
Labelled action throughput table of a LAL composition (PythongetActTable). -
getAvgAct
Throughput of one LAL action, named as inSolverCTMC.getAvgAct. -
getAvgActMode
Throughput of a Petri-net mode action(transition, ENABLE|FIRE, mode). -
getActAvg
Throughputs of several actions, each a name or anObject[]ofgetAvgAct(java.lang.Object...)arguments. -
getActT
Alias ofgetActTable()(MATLAB and PythongetActT). -
actT
Alias ofgetActTable()(MATLAB and PythonactT). -
getActionTable
Alias ofgetActTable()(MATLAB and PythongetActionTable). -
listLALMethods
Methods available for a LAL Composition, in MATLAB's order (SolverMAM.listLALMethods):defaultselects among the seven lowerings that follow it.- Returns:
- a fresh list of method names
-
getQueueTable
Queue measures only for unchanged structured LAL queue declarations (PythongetQueueTable). -
getLALMAMResult
The Composition-mode MAM result (PythongetMAMResulton a composition). -
getCompositionCapabilities
Describe the LAL binding before solving, including runtime conditions. -
getMAMDiagnostics
LAL MAM diagnostics without the CTMC comparison. -
getMAMDiagnostics
LAL MAM diagnostics, optionally compared with the finite CTMC of the composition. -
getAvgTable
Description copied from class:NetworkSolverReturns a table of average station metrics organized by job classes.- Overrides:
getAvgTablein classNetworkSolver- Returns:
- table containing station-level metrics for each class
-
getAvg
Description copied from class:NetworkSolverComputes and returns average station metrics at steady-state. This is the main method for obtaining steady-state performance metrics.- Overrides:
getAvgin classNetworkSolver- Returns:
- solver result containing station-level average metrics
-
reset
public void reset()Description copied from class:SolverClears previously stored results and resets the random number generator. -
getMAMResult
Intermediate quantities of the matrix-analytic analysis of a single-queue model, in addition to the mean performance measures returned by getAvg.Mean values alone hide the objects the method is actually built on, so a matrix-analytic result cannot be inspected, taught, or checked against a published derivation. This accessor returns them.
For a BMAP (or MAP) arrival stream feeding an exponential single server the result is that of
Qsys_bmapm1and carries the M/G/1-type quantities: the phase-process stationary vectors theta and alpha, the randomized blocks A0, A1, B0 and Bk, the matrix G, the drift, the measured decay rate and the level probabilities. For a retrial station the result is that ofQsys_bmapphnn_retrialand carries the orbit-level stationary distribution together with the truncation level and its residual.- Returns:
- the matrix-analytic internals
-
getFeatureSet
Returns the feature set supported by the MAM solver- Returns:
- - the feature set supported by the MAM solver
-
methodFeatureSet
Per-method feature deltas on the base MAM envelope. Only 'mna' resolves a round-robin split (Npfqn_traffic_split_rr in Solver_mna_open); the closed branch has no counterpart and is rejected in supportsModelMethod. Mirrors the MATLAB/Python SolverMAM.getMethodFeatureSet.- Parameters:
method- the concrete method name- Returns:
- the per-method FeatureSet
-
hasPlace
True when the model holds a Place node. -
ispnRefusal
Why the iSPN route cannot take this model under METHOD, or "". 'ispn' needs a Place model; a Place model under 'default' or 'ispn' must be a pure net (Place, Transition, Source, Sink); any other method on a Place model is refused, since no queueing analyzer of SolverMAM reads a Place. Mirrors MATLAB SolverMAM.supportsModelMethod. -
bufferRefusal
Why no MAM method can answer a model whose finite buffer a CLOSED class can fill, or "" when every binding buffer is reached by open classes only.A MAM analyzer represents a finite buffer as a LOSS buffer: Solver_mam_basic (default, dec.source, dec.poisson) solves an M/M/c/K or an MMAP[K]/G/1/K, and Solver_mam (dec.mmap), Solver_mam_basic_mmap (dec.source.mmap) and Solver_mna_open (mna) truncate and renormalize the same way. That is the right model for an OPEN class, whose refused arrival is lost. A closed job that finds no room BLOCKS instead -- LINE disables the upstream departure and holds the job where it is -- and no MAM analyzer blocks: the loss formulas answer a different system, and the closed routes of "default" (Solver_mam_ldqbd, Solver_mam_bgchain, Solver_mna_closed) read no sn.cap or sn.classcap at all. So the pair is refused rather than answered.
ONE PREDICATE, TWO CALLERS:
supportsModelMethod(java.lang.String)reports it and Solver_mam_analyzer raises it. Only a buffer that can BIND counts, which is whatSnGetBufferSizedecides: refreshCapacity derives a finite classcap (the chain population) at every station of every closed model, so a plain finiteness test would refuse every closed model. A Cache builds its own capped retrieval queues and is exempt, as in SnHasBlocking. Mirrors MATLABmam_buffer_refusal.- Parameters:
sn- the network structure- Returns:
- empty string when no closed class can fill a binding buffer
-
getMethodFeatureSet
Description copied from class:SolverPer-method feature set, or null to signal "this solver does not diverge per method" (the coarse supports(model) is then used, preserving any structural checks it carries). Divergent solvers (e.g. MVA, MAM, NC) override this to return the base envelope with per-method deltas applied.- Overrides:
getMethodFeatureSetin classSolver- Parameters:
method- the concrete method name- Returns:
- the per-method FeatureSet, or null
-
getStruct
-
listValidMethods
-
listValidMethods
-
getTranAvg
public void getTranAvg()Description copied from class:NetworkSolverComputes transient average station metrics over the specified time interval. The timespan is defined in the solver options.- Overrides:
getTranAvgin classNetworkSolver
-
runAnalyzer
public void runAnalyzer()Description copied from class:SolverExecutes the solver algorithm to analyze the model. This abstract method must be implemented by concrete solver classes.- Specified by:
runAnalyzerin classSolver
-
supports
Description copied from class:SolverChecks if this solver supports the given network model. Default implementation returns true; subclasses should override to provide specific feature validation. -
unsupportedRefusalId
The censor size screen (Solver_mam_censor.applicable(jline.lang.NetworkStruct, jline.solvers.SolverOptions)) refuses withLINE:unsupported:StateSpace, the id the analyzer raises for the same cap on the generated chain; any other refusal is the base rule. Mirrors MATLAB SolverMAM.unsupportedRefusalId.- Overrides:
unsupportedRefusalIdin classSolver- Parameters:
method- the concrete method namereason- the gate's refusal sentence, or null- Returns:
- the refusal id
-
supportsModelMethod
Description copied from class:SolverFine, method-aware gate. Returns an empty string when the model fits the concrete METHOD, else a human-readable reason. Base behavior derives the answer from getMethodFeatureSet(method); when that is null the solver's own supports(model) is used. Solvers with non-feature-set structural per-method rules override this.- Overrides:
supportsModelMethodin classSolver- Parameters:
method- the concrete method name- Returns:
- empty string if supported, else the offending reason
-
unsupportedMethodReason
The forwarding address for the RCAT names, which are SolverAG's now.Asks nothing of the model, so
checkDeclaredMethodcan call it before the struct is built;supportsModelMethod(String)returns the same string, so a caller gets one answer whichever gate it meets first.- Overrides:
unsupportedMethodReasonin classNetworkSolver- Parameters:
method- the requested method name- Returns:
- the explanation, or "" when the solver has none
-
ldqbdRefusal
Port of MATLAB mam_ldqbd_applicable: why the 'ldqbd' method cannot answer this model, or "" when it can. The rule is a shape: one class, and either one Source plus one FCFS Queue fed by a Poisson stream (open) or one Delay plus one FCFS Queue with a positive population (closed). Checking only the class count let the AUTO report offer mam.ldqbd on a closed FCFS tandem (BUG-105).- Parameters:
sn- the model struct- Returns:
- empty string when applicable, otherwise the refusal
-
mamRetrialRefusal
Can the 'retrial' method answer this model? Empty string when it can.THE RULE IS A "MUST BE PRESENT" ONE, which is why it cannot live in a feature set: a FeatureSet says "I accept this construct", so it can refuse a model for HAVING something and never for LACKING it. Solver_mam_retrial needs the BMAP/PH/N/N bufferless retrial topology of Dudin et al. (Mathematics 13(9), 2025) to analyze, and a model without one is not a smaller retrial model, it is a different one.
ONE PREDICATE, TWO CALLERS: supportsModelMethod asks it so the method is not offered by findSolver or SolverAUTO on a model it cannot answer, and Solver_mam_analyzer's 'retrial' arm asks it so a caller naming the method by hand gets the identical sentence.
As in MATLAB
mam_retrial_applicable, the MAP/M/s+G reneging shape (Solver_mam_reneging) makes the method applicable as well: it is a SHAPE, not a presence, so a patience on a two-queue model is still refused.- Parameters:
sn- the model struct- Returns:
- empty string when applicable, otherwise the refusal
-
mamHasRetrial
True when some station-class pair configures a retrial orbit (Queue.setRetrial / setOrbit), read off sn.retrialProc, which the refresh fills only for a configured delay that is not the Disabled placeholder. retrialProc is the ambiguity-free test: retrialType is 0 both for "none" and, in MATLAB, for an exponential delay (see CLAUDE.md).mamRetrialRefusal(jline.lang.NetworkStruct)answers about the SHAPE Solver_mam_retrial needs, not about whether an orbit EXISTS, and a model with an orbit outside that shape falls through to Solver_mam_basic, which reads no sn.retrial* field and answers with the refused jobs simply lost. Mirrors MATLABmam_has_retrial.- Parameters:
sn- the network structure- Returns:
- true when any station-class pair carries an orbit delay
-
getCdfRespT
Returns cumulative distribution functions of response times at steady-state. Computes response time distributions using matrix-analytic methods.- Overrides:
getCdfRespTin classNetworkSolver- Parameters:
R- response time handles (optional)- Returns:
- result containing CDFs for response times
-
getCdfRespT
Returns cumulative distribution functions of response times at steady-state. Uses default response time handles.- Overrides:
getCdfRespTin classNetworkSolver- Returns:
- result containing CDFs for response times
-
getCdfPassT
Returns cumulative distribution functions of passage times at steady-state.- Overrides:
getCdfPassTin classNetworkSolver- Parameters:
R- response time handles (optional)- Returns:
- result containing CDFs for passage times
-
getCdfPassT
Returns cumulative distribution functions of passage times at steady-state. Uses default response time handles.- Overrides:
getCdfPassTin classNetworkSolver- Returns:
- result containing CDFs for passage times
-
getTranCdfPassT
Returns cumulative distribution functions of passage times during transient analysis.- Overrides:
getTranCdfPassTin classNetworkSolver- Parameters:
R- response time handles (optional)- Returns:
- result containing transient CDFs for passage times
-
getTranCdfPassT
Returns cumulative distribution functions of passage times during transient analysis. Uses default response time handles.- Overrides:
getTranCdfPassTin classNetworkSolver- Returns:
- result containing transient CDFs for passage times
-
getProb
Joint (level, phase) state probability, port of @SolverMAM/getProb.m.The level marginal comes from MMAPPH1FCFS over an aggregate MMAP built from the class throughputs; the phase factor is the arrival-weighted TIME-STATIONARY phase distribution map_prob, not map_pie. map_pie is the embedded equilibrium at departure instants -- the phase a service STARTS in -- so for an Erlang-2 it is [1 0] and the joint gave P(phase 2) = 0 at every level for a server spending half its busy time in phase 2.
Phases are taken independent of level, where an exact QBD would have pi_n = pi_1 R^(n-1). That approximation is the reference's and is reproduced rather than improved.
- Overrides:
getProbin classNetworkSolver- Parameters:
node- node index (0-based)state- [level, phase] pair, or null for the whole matrix- Returns:
- probability of the state, or the (levels x phases) matrix
-
getProbMarg
Get marginal queue-length probability distribution for a job class.Computes the probability distribution P(n jobs of class r) for n=0,1,...,N(r) using MMAPPH1FCFS from BUTools.
Current limitations:
- Only supported for single queue models
- Requires Queue station with FCFS scheduling
- Overrides:
getProbMargin classNetworkSolver- Parameters:
node- Station/node index (0-based)jobclass- Job class index (0-based)state_m- Optional state levels to query (null for all states, 0-based indexing)- Returns:
- Probability result containing marginal probabilities
- Throws:
IllegalArgumentException- if station or class index is invalidUnsupportedOperationException- if model structure is not supported
-
getProbMarg
Get marginal queue-length probability distribution for a job class (all states).Delegates to
getProbMarg(int, int, Matrix)withstate_m == null(all levels). Supported for single-queue models via QBD/MMAPPH1FCFS analysis; a network with multiple queue stations is rejected there, matching the MATLAB@SolverMAM/getProbMarg.mbehaviour.- Overrides:
getProbMargin classNetworkSolver- Parameters:
node- Station/node index (0-based)jobclass- Job class index (0-based)- Returns:
- Probability result containing the marginal queue-length distribution
- Throws:
UnsupportedOperationException- if the model has more than one queue station- See Also:
-
getPerctRespT
Get response time percentiles from Fork-Join analysisThis method retrieves percentile values computed by the FJ_codes algorithm for Fork-Join queueing systems. It automatically detects FJ topology and computes percentiles using the algorithm from "Beyond the Mean in Fork-Join Queues" (IFIP Performance 2015).
Requirements:
- Model must have valid Fork-Join topology: Source → Fork → K Queues → Join → Sink
- Homogeneous service distributions across parallel queues
- The solve runs on first use if no averages are cached yet
- Parameters:
percentiles- Array of percentile levels (0-100 scale, e.g., {50, 90, 95, 99})- Returns:
- List of FJPercentileResult, one per job class, containing: - jobClass: class index - percentiles: requested percentile levels - values: computed percentile values - K: number of parallel queues - method: algorithm used (e.g., "FJ_NARE")
- Throws:
LineUnsupportedException- if the model has a fork-join outside the FJ_codes class (the message names why; use getPerctRespT(percentiles, "forktail"))IllegalStateException- if the model has no fork-join at all
-
getPerctRespT
Get response time percentiles using default values [50, 90, 95, 99]- Returns:
- List of FJPercentileResult for default percentiles
- Throws:
IllegalStateException- if model is not Fork-Join or solver not run- See Also:
-
getLibrariesUsed
Bundled third-party libraries used by the matrix-analytic solver: MAMSolver for the M/G/1 and GI/M/1-type decompositions, Q-MAM for the RCAT-based methods, and BUTools wherever a MAP/PH process is present. Mirrors SolverMAM.getLibrariesUsed in MATLAB.- Overrides:
getLibrariesUsedin classNetworkSolver- Parameters:
sn- the model structure, may be nulloptions- the solver options, may be null- Returns:
- the library names, possibly empty
-