Class LalCtmc

java.lang.Object
jline.lang.lal.LalCtmc

public final class LalCtmc extends Object
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.
  • 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 (Python reward_values).
    • agentStateRows

      public static LalTable agentStateRows(LalModel snapshot, List<int[]> states, double[] probs)
      Marginal state probabilities of every agent as (Agent, State, Probability) rows (Python agent_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

      public static LalCtmc.Result solveComposition(Composition model)
    • solveComposition

      public static LalCtmc.Result solveComposition(Composition model, Long maxStates)
    • solveComposition

      public static LalCtmc.Result solveComposition(LalModel snapshot, Long maxStates, Long maxDenseBytes)
      Solve a finite composition snapshot, respecting its initial state if reducible. maxStates bounds the reachable states; null leaves only the dense-storage bound.
    • closedClasses

      public static List<int[]> closedClasses(double[][] q)
      Closed strongly connected classes of the off-diagonal graph of q (positive entries), each listed in ascending order.
    • stronglyConnected

      public static int[] stronglyConnected(double[][] q)
      Iterative Tarjan SCC labelling over positive off-diagonal entries.