Class AgentBenchmarkSuite.BenchmarkReport

java.lang.Object
neqsim.util.agentic.AgentBenchmarkSuite.BenchmarkReport
All Implemented Interfaces:
Serializable
Enclosing class:
AgentBenchmarkSuite

public static class AgentBenchmarkSuite.BenchmarkReport extends Object implements Serializable
Aggregate report for the full benchmark suite evaluation.
Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • suiteName

      private final String suiteName
    • results

      private final List<AgentBenchmarkSuite.ProblemResult> results
    • passed

      private final int passed
    • failed

      private final int failed
    • notAttempted

      private final int notAttempted
  • Constructor Details

    • BenchmarkReport

      public BenchmarkReport(String suiteName, List<AgentBenchmarkSuite.ProblemResult> results, int passed, int failed, int notAttempted)
      Creates a new benchmark report.
      Parameters:
      suiteName - the name of the benchmark suite
      results - individual problem results
      passed - number of passed problems
      failed - number of failed problems
      notAttempted - number of problems not attempted
  • Method Details

    • getPassRate

      public double getPassRate()
      Returns the pass rate as a fraction (0.0 to 1.0) of attempted problems.
      Returns:
      the pass rate, or 0.0 if no problems were attempted
    • getConvergenceRate

      public double getConvergenceRate()
      Returns the convergence rate as a fraction of total problems that either passed or were attempted.
      Returns:
      the convergence rate
    • getPassed

      public int getPassed()
      Returns the number of passed problems.
      Returns:
      passed count
    • getFailed

      public int getFailed()
      Returns the number of failed problems.
      Returns:
      failed count
    • getNotAttempted

      public int getNotAttempted()
      Returns the number of not-attempted problems.
      Returns:
      not-attempted count
    • getFailedProblems

      public List<AgentBenchmarkSuite.ProblemResult> getFailedProblems()
      Returns only the failed problem results.
      Returns:
      list of failed problem results
    • getResults

      Returns all individual problem results.
      Returns:
      unmodifiable list of all results
    • getResultsByCategory

      Returns results filtered by problem category.
      Parameters:
      category - the category to filter by
      Returns:
      list of results in that category
    • toJson

      public String toJson()
      Serializes the benchmark report to JSON.
      Returns:
      JSON string representation