Package jline.lang.lal
Class LalCtmc
java.lang.Object
jline.lang.lal.LalCtmc
Shared finite CTMC analysis for LAL compositions (Python
lal.ctmc).
This explicitly enumerated method is not an RCAT or product-form solution.
The reachable state space is decomposed into closed classes, weighted by
absorption probabilities from the initial distribution.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResult ofsolveComposition(jline.lang.lal.Composition)(PythonLALCTMCResult). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LalTableagentStateRows(LalModel snapshot, List<int[]> states, double[] probs) Marginal state probabilities of every agent as(Agent, State, Probability)rows (Pythonagent_state_rows).static List<int[]>closedClasses(double[][] q) Closed strongly connected classes of the off-diagonal graph ofq(positive entries), each listed in ascending order.rewardValues(LalModel snapshot, List<int[]> states, double[] probs) Stationary expectation of every declared reward (Pythonreward_values).static LalCtmc.ResultsolveComposition(Composition model) static LalCtmc.ResultsolveComposition(Composition model, Long maxStates) static LalCtmc.ResultsolveComposition(LalModel snapshot, Long maxStates, Long maxDenseBytes) Solve a finite composition snapshot, respecting its initial state if reducible.static int[]stronglyConnected(double[][] q) Iterative Tarjan SCC labelling over positive off-diagonal entries.
-
Field Details
-
DEFAULT_MAX_DENSE_BYTES
public static final long DEFAULT_MAX_DENSE_BYTES- See Also:
-
-
Method Details
-
rewardValues
public static Map<String,Double> rewardValues(LalModel snapshot, List<int[]> states, double[] probs) Stationary expectation of every declared reward (Pythonreward_values). -
agentStateRows
Marginal state probabilities of every agent as(Agent, State, Probability)rows (Pythonagent_state_rows). An embedded LINE model contributes one agent per stateful node, whose state is the node's row of LINE's state space, plus the stage agent of an embedded Environment. -
solveComposition
-
solveComposition
-
solveComposition
public static LalCtmc.Result solveComposition(LalModel snapshot, Long maxStates, Long maxDenseBytes) Solve a finite composition snapshot, respecting its initial state if reducible.maxStatesbounds the reachable states;nullleaves only the dense-storage bound. -
closedClasses
Closed strongly connected classes of the off-diagonal graph ofq(positive entries), each listed in ascending order. -
stronglyConnected
public static int[] stronglyConnected(double[][] q) Iterative Tarjan SCC labelling over positive off-diagonal entries.
-