Class NetworkValidationBenchmarks.BenchmarkResult
java.lang.Object
neqsim.process.equipment.network.NetworkValidationBenchmarks.BenchmarkResult
- Enclosing class:
NetworkValidationBenchmarks
Benchmark result container.
- Version:
- 1.0
- Author:
- Even Solbraa
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether all metrics passed.booleanWhether the solver converged.Individual metric results.final StringBenchmark name.intNumber of solver iterations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a metric comparison.voidevaluate()Evaluate all metrics and set the allPassed flag.Get a formatted summary string.
-
Field Details
-
name
Benchmark name. -
metrics
Individual metric results. -
converged
public boolean convergedWhether the solver converged. -
solverIterations
public int solverIterationsNumber of solver iterations. -
allPassed
public boolean allPassedWhether all metrics passed.
-
-
Constructor Details
-
BenchmarkResult
-
-
Method Details
-
addMetric
Add a metric comparison.- Parameters:
metricName- name of the metriccomputed- computed value from the solverexpected- expected (analytical or reference) valuetolerance- acceptable absolute difference
-
evaluate
public void evaluate()Evaluate all metrics and set the allPassed flag. -
getSummary
-