Class NetworkValidationBenchmarks.BenchmarkResult

java.lang.Object
neqsim.process.equipment.network.NetworkValidationBenchmarks.BenchmarkResult
Enclosing class:
NetworkValidationBenchmarks

public static class NetworkValidationBenchmarks.BenchmarkResult extends Object
Benchmark result container.
Version:
1.0
Author:
Even Solbraa
  • Field Details

    • name

      public final String name
      Benchmark name.
    • metrics

      Individual metric results.
    • converged

      public boolean converged
      Whether the solver converged.
    • solverIterations

      public int solverIterations
      Number of solver iterations.
    • allPassed

      public boolean allPassed
      Whether all metrics passed.
  • Constructor Details

    • BenchmarkResult

      public BenchmarkResult(String name)
      Create a benchmark result.
      Parameters:
      name - benchmark name
  • Method Details

    • addMetric

      public void addMetric(String metricName, double computed, double expected, double tolerance)
      Add a metric comparison.
      Parameters:
      metricName - name of the metric
      computed - computed value from the solver
      expected - expected (analytical or reference) value
      tolerance - acceptable absolute difference
    • evaluate

      public void evaluate()
      Evaluate all metrics and set the allPassed flag.
    • getSummary

      public String getSummary()
      Get a formatted summary string.
      Returns:
      summary