Class AgentBenchmarkSuite.BenchmarkProblem

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

public static class AgentBenchmarkSuite.BenchmarkProblem extends Object implements Serializable
A single benchmark problem with expected reference solution.
Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

  • Constructor Details

    • BenchmarkProblem

      public BenchmarkProblem(String id, AgentBenchmarkSuite.ProblemCategory category, AgentBenchmarkSuite.Difficulty difficulty, String description, String unit, double expectedValue, double tolerancePct, String referenceSource)
      Creates a new benchmark problem.
      Parameters:
      id - unique identifier for the problem
      category - engineering discipline category
      difficulty - difficulty level
      description - human-readable description of what to compute
      unit - unit of the expected result
      expectedValue - reference value from literature or validated simulation
      tolerancePct - acceptable deviation in percent
      referenceSource - source of the reference value
  • Method Details

    • getId

      public String getId()
      Returns the unique identifier.
      Returns:
      the problem id
    • getCategory

      Returns the problem category.
      Returns:
      the category enum value
    • getDifficulty

      public AgentBenchmarkSuite.Difficulty getDifficulty()
      Returns the difficulty level.
      Returns:
      the difficulty enum value
    • getDescription

      public String getDescription()
      Returns the human-readable description.
      Returns:
      the problem description
    • getUnit

      public String getUnit()
      Returns the unit of measurement for the expected result.
      Returns:
      the unit string
    • getExpectedValue

      public double getExpectedValue()
      Returns the expected reference value.
      Returns:
      the expected numerical value
    • getTolerancePct

      public double getTolerancePct()
      Returns the acceptable tolerance in percent.
      Returns:
      the tolerance percentage
    • getReferenceSource

      public String getReferenceSource()
      Returns the source of the reference data.
      Returns:
      the reference source description
    • toMap

      public Map<String,Object> toMap()
      Converts the problem to a map for JSON serialization.
      Returns:
      map representation of the problem