Class AgentBenchmarkSuite.BenchmarkProblem
java.lang.Object
neqsim.util.agentic.AgentBenchmarkSuite.BenchmarkProblem
- All Implemented Interfaces:
Serializable
- Enclosing class:
AgentBenchmarkSuite
A single benchmark problem with expected reference solution.
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AgentBenchmarkSuite.ProblemCategoryprivate final Stringprivate final AgentBenchmarkSuite.Difficultyprivate final doubleprivate final Stringprivate final Stringprivate static final longprivate final doubleprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkProblem(String id, AgentBenchmarkSuite.ProblemCategory category, AgentBenchmarkSuite.Difficulty difficulty, String description, String unit, double expectedValue, double tolerancePct, String referenceSource) Creates a new benchmark problem. -
Method Summary
Modifier and TypeMethodDescriptionReturns the problem category.Returns the human-readable description.Returns the difficulty level.doubleReturns the expected reference value.getId()Returns the unique identifier.Returns the source of the reference data.doubleReturns the acceptable tolerance in percent.getUnit()Returns the unit of measurement for the expected result.toMap()Converts the problem to a map for JSON serialization.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
id
-
category
-
difficulty
-
description
-
unit
-
expectedValue
private final double expectedValue -
tolerancePct
private final double tolerancePct -
referenceSource
-
-
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 problemcategory- engineering discipline categorydifficulty- difficulty leveldescription- human-readable description of what to computeunit- unit of the expected resultexpectedValue- reference value from literature or validated simulationtolerancePct- acceptable deviation in percentreferenceSource- source of the reference value
-
-
Method Details
-
getId
-
getCategory
Returns the problem category.- Returns:
- the category enum value
-
getDifficulty
Returns the difficulty level.- Returns:
- the difficulty enum value
-
getDescription
Returns the human-readable description.- Returns:
- the problem description
-
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
Returns the source of the reference data.- Returns:
- the reference source description
-
toMap
-