Class AgSolverComparison

java.lang.Object
jline.examples.java.advanced.lal.AgSolverComparison

public class AgSolverComparison extends Object
Compare LAL AG methods with the exact finite CTMC (twin of python/examples/advanced/lal/ag_solver_comparison.py) and with seeded serial and NRM simulation.
  • Field Details

    • COLUMNS

      public static final String[] COLUMNS
      Column labels of the comparison tables, in the order of the Python twin.
  • Constructor Details

    • AgSolverComparison

      public AgSolverComparison()
  • Method Details

    • certified

      public static Composition certified()
      Active/passive pair with an exact rational RCAT certificate.
    • blocking

      public static Composition blocking()
      Producer/server handshake where both sides block.
    • mmapAgent

      public static Agent mmapAgent(String name, double[][] d0, double[][] mark)
      Two-phase MMAP agent: _phase for the off-diagonal of D0, one marked action.
    • minimum

      public static Composition minimum()
      Two MMAP agents whose marks fire together at the minimum rate.
    • compare

      public static AgSolverComparison.Comparison compare(Composition model, String method, int events, int seed)
      Solve model with the exact CTMC, SolverAG(method) and seeded serial and NRM simulation, and align their results by (Agent, State) and by Action. Rows follow the CTMC order, then any row only another solver reports; a row a solver does not report is NaN.
    • compare

      public static AgSolverComparison.Comparison compare(Composition model, String method)
      compare(Composition, String, int, int) with 30000 events and seed 42.
    • main

      public static void main(String[] args)