Class LalRcat

java.lang.Object
jline.solvers.ag.lal.LalRcat

public final class LalRcat extends Object
Finite-agent RCAT fixed-point approximations for LAL compositions (Python solver_ag.lal_rcat).

The result is an approximation unless the additional product-form conditions are established by certifyResult(jline.lang.lal.Composition, jline.solvers.ag.lal.LalAGResult, double). Passive actions must be enabled in every local state.

  • Method Details

    • structuralSupport

      public static String structuralSupport(LalModel snapshot, String method)
      Check the decomposition constraints without building a global state space; null when supported, else the reason.
    • certificateSupport

      public static String certificateSupport(LalModel snapshot)
      The certificate's conservative structural prerequisites; null when met.
    • solveComposition

      public static LalAGResult solveComposition(Composition model, double tol, int maxIter, String method)
      Finite-agent INAP / INAPRC reversed-rate fixed point (Python solve_composition).
    • orderedActionTable

      public static LalTable orderedActionTable(List<String> labels, Map<String,Double> throughputs)
      The Action/Throughput table in the order of labels, reading each throughput from throughputs. A label with no throughput raises, as the Python rows_by_label[label] lookup raises KeyError, instead of writing a null throughput. Internal to the RCAT solver; public only so the regression test can reach it.
    • certifyResult

      public static String certifyResult(Composition model, LalAGResult result, double tol)
      Replace an approximate solution with an exactly verified RCAT solution (Python certify_result); null when certified, else the reason.
    • compareWithCtmc

      public static Map<String,Object> compareWithCtmc(Composition model, LalAGResult result, Integer maxStates)
      Numerically compare the product of agent marginals with the exact finite CTMC (Python compare_with_ctmc). max_probability_error, total_variation and generator_residual compare the product CONDITIONED on the reachable states. Conditioning can hide product mass on states the CTMC never reaches, so that mass is reported separately as unreachable_product_mass, and unconditioned_total_variation compares the raw product, counting the unreachable mass as error.