Class SolverAG
- Direct Known Subclasses:
AG
Solves a network by the Reversed Compound Agent Theorem: every (station, class) pair becomes an isolated agent, and the agents are coupled ONLY through the reversed rates of the synchronizing actions. Agent k carries
Q_k(x) = L_k + sum_{c passive at k} x_c Pb_c
and publishes, for every action it is active on, a scalar read off its own
stationary vector. The fixed point over that scalar vector is the whole
analysis.
Because the coupling is that thin, the sweep parallelises exactly rather
than approximately: see AgExec for the threads and
cluster execution backends and why they walk the same iterates as the
serial loop.
Methods: inap, inaprc, inapinf, and the vestigial
exact alias which warns and falls back to inap. Per Marin,
Rota Bulo and Balsamo, "A Numerical Algorithm for the Decomposition of
Cooperating Structured Markov Processes", MASCOTS 2012.
These are the only algorithms in LINE that read sn.issignal, so the
G-network feature names belong here and to no other solver.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactT()Alias ofgetActTable()(MATLAB and PythonactT).static AGOptionsThroughputs of several actions, each a name or anObject[]ofgetAvgAct(java.lang.Object...)arguments.Alias ofgetActTable()(MATLAB and PythongetActionTable).getActT()Alias ofgetActTable()(MATLAB and PythongetActT).Steady-state labelled event rates, columns Action/Throughput (PythongetActTable).PythongetAGDiagnostics().getAGDiagnostics(boolean compareCtmc, Integer maxStates) Diagnostics of the LAL solution, optionally compared against the finite CTMC (PythongetAGDiagnostics(compare_ctmc=, max_states=)).The converged reversed rates and the agents they induce, in addition to the mean measures returned by getAvg.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).Refused on a LAL composition, whose results are agent state probabilities rather than station averages: usegetLALAvgTable().static FeatureSetThe RCAT feature envelope.Agent state probabilities of a finite LAL composition, columns Agent/State/Probability (PythongetAvgTableon a Composition).The LAL result container, solving first if needed (PythongetAGResulton a Composition).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).booleanTrue when this solver analyses a LAL composition rather than a Network.Methods available for a finite LAL Composition (PythonlistLALMethods).The registry row minus the LAL-only methods for a Network (Python_NETWORK_METHODS); a finite LAL composition is offeredlistLALMethods()instead.listValidMethods(Network model) static FeatureSetmethodFeatureSet(String method) Every AG method is the same decomposition differing only in how the reversed rate is read off an agent, so they share one envelope; the genuine restrictions are structural and applied insupportsModelMethod(String).static booleanTrue when the RCAT analyzers can give a process of this type a phase dimension: after snNonmarkovToPh (which AG runs with phfit='ph' and preserveDet=false) it must hold a genuine (D0,D1) pair with non-negative off-diagonal rates and a single arrival per epoch.voidreset()Drop the cached results, including the cached LAL result, so the next getter re-solves (PythonSolverAG.reset).voidExecutes the solver algorithm to analyze the model.setGroupMaxStates(int maxStates) Python optiongroup_max_states.Python optiongroupsfor method 'grouped'.setLALCtmcMaxStates(Integer maxStates) Python optionlal_ctmc_max_states; null means unlimited.static SolverTypebooleanChecks if this solver supports the given network model.supportsModelMethod(String method) Fine, method-aware gate.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, getCdfPassT, getCdfPassT, getCdfRespT, getCdfRespT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getChainAvgT, getDeadlineTable, getLibrariesUsed, 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, getProb, getProbAggr, getProbAggr, getProbMarg, getProbMarg, getProbNormConstAggr, getProbSys, getProbSysAggr, getProbSysMarg, getProbSysMarg, getSensitivityT, getSensitivityT, getSensitivityTable, getSensitivityTable, getStageT, getStageT, getStageTable, getStageTable, getSysAvgT, getSysAvgT, getSysAvgT, getTranAvg, getTranCdfPassT, getTranCdfPassT, 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, tranHandles, unsupportedMethodReasonMethods 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, unsupportedRefusalId
-
Constructor Details
-
SolverAG
-
SolverAG
-
SolverAG
-
SolverAG
-
SolverAG
Solve a finite LAL composition.argsare key-value pairs with the Python option names:method,tol,max_iter,groups,group_max_states,lal_ctmc_max_states,verbose,timeoutandlang. An unknown key is refused. Results are read withgetLALAvgTable()andgetActTable().
-
-
Method Details
-
setGroups
Python optiongroupsfor method 'grouped'. -
getGroups
-
setGroupMaxStates
Python optiongroup_max_states. -
setLALCtmcMaxStates
Python optionlal_ctmc_max_states; null means unlimited. -
listLALMethods
Methods available for a finite LAL Composition (PythonlistLALMethods). -
isLALComposition
public boolean isLALComposition()True when this solver analyses a LAL composition rather than a Network.- Overrides:
isLALCompositionin classNetworkSolver- Returns:
- true when the solver was built from a LAL composition
-
reset
public void reset()Drop the cached results, including the cached LAL result, so the next getter re-solves (PythonSolverAG.reset). -
getLALAvgTable
Agent state probabilities of a finite LAL composition, columns Agent/State/Probability (PythongetAvgTableon a Composition). The table attributes carry the provenance: method, exact, converged, truncated, fallback_reason and the method's residuals. -
getActTable
Steady-state labelled event rates, columns Action/Throughput (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). -
getLALResult
The LAL result container, solving first if needed (PythongetAGResulton a Composition). -
getAGDiagnostics
PythongetAGDiagnostics(). -
getAGDiagnostics
Diagnostics of the LAL solution, optionally compared against the finite CTMC (PythongetAGDiagnostics(compare_ctmc=, max_states=)).maxStates == nullbounds the comparison CTMC only by the dense storage limit of the LAL CTMC path. -
getAvgTable
Refused on a LAL composition, whose results are agent state probabilities rather than station averages: usegetLALAvgTable().- 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
-
defaultOptions
-
getStruct
-
listValidMethods
The registry row minus the LAL-only methods for a Network (Python_NETWORK_METHODS); a finite LAL composition is offeredlistLALMethods()instead. -
listValidMethods
-
getFeatureSet
The RCAT feature envelope. The G-network names live here becauseSolver_ag_buildis the only code in LINE that readssn.issignal. -
methodFeatureSet
Every AG method is the same decomposition differing only in how the reversed rate is read off an agent, so they share one envelope; the genuine restrictions are structural and applied insupportsModelMethod(String). -
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
-
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. -
rcatSupportsProcess
True when the RCAT analyzers can give a process of this type a phase dimension: after snNonmarkovToPh (which AG runs with phfit='ph' and preserveDet=false) it must hold a genuine (D0,D1) pair with non-negative off-diagonal rates and a single arrival per epoch.The list is an ALLOW-list on purpose: a process type nobody has checked against this construction must be refused, not answered. Refused are the laws whose matrices are not a generator (ME, RAP), those that are not time-homogeneous (NHPP, MAPt, PHt), those that are not continuous-time (DMAP), and those that arrive in batches (BMAP, MMAP), since a batch moves the level by more than one. Compare BY NAME across codebases, never by the raw ordinal.
-
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
-
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
-
getAGResult
The converged reversed rates and the agents they induce, in addition to the mean measures returned by getAvg.Mean values alone hide the objects the decomposition is built on. The reversed rates ARE the coupling between agents -- one scalar per synchronizing action -- so a run cannot be checked against a published derivation, or against a product-form condition, without them.
-
solverType
-