Class SensitivityAnalysis.SensitivityConfig

java.lang.Object
neqsim.process.util.fielddevelopment.SensitivityAnalysis.SensitivityConfig
All Implemented Interfaces:
Serializable
Enclosing class:
SensitivityAnalysis

public static final class SensitivityAnalysis.SensitivityConfig extends Object implements Serializable
Configuration for sensitivity analysis.

Builder-style configuration for Monte Carlo simulation parameters.

Version:
1.0
Author:
ESOL
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • numberOfTrials

      private int numberOfTrials
    • randomSeed

      private long randomSeed
    • useFixedSeed

      private boolean useFixedSeed
    • parallel

      private boolean parallel
    • parallelThreads

      private int parallelThreads
    • includeBaseCase

      private boolean includeBaseCase
    • convergenceTolerance

      private double convergenceTolerance
  • Constructor Details

    • SensitivityConfig

      public SensitivityConfig()
      Creates a default configuration.
  • Method Details

    • numberOfTrials

      public SensitivityAnalysis.SensitivityConfig numberOfTrials(int trials)
      Sets the number of Monte Carlo trials.
      Parameters:
      trials - number of trials
      Returns:
      this config
    • randomSeed

      public SensitivityAnalysis.SensitivityConfig randomSeed(long seed)
      Sets the random seed for reproducibility.
      Parameters:
      seed - random seed
      Returns:
      this config
    • parallel

      public SensitivityAnalysis.SensitivityConfig parallel(boolean parallel)
      Enables or disables parallel execution.
      Parameters:
      parallel - true to enable parallel
      Returns:
      this config
    • parallelThreads

      public SensitivityAnalysis.SensitivityConfig parallelThreads(int threads)
      Sets the number of parallel threads.
      Parameters:
      threads - thread count
      Returns:
      this config
    • includeBaseCase

      public SensitivityAnalysis.SensitivityConfig includeBaseCase(boolean include)
      Enables or disables base case inclusion in trials.
      Parameters:
      include - true to include base case
      Returns:
      this config
    • getNumberOfTrials

      public int getNumberOfTrials()
      Gets the number of trials.
      Returns:
      number of trials
    • getRandomSeed

      public long getRandomSeed()
      Gets the random seed.
      Returns:
      seed
    • isUseFixedSeed

      public boolean isUseFixedSeed()
      Checks if using a fixed seed.
      Returns:
      true if fixed seed
    • isParallel

      public boolean isParallel()
      Checks if parallel execution is enabled.
      Returns:
      true if parallel
    • getParallelThreads

      public int getParallelThreads()
      Gets the parallel thread count.
      Returns:
      thread count
    • isIncludeBaseCase

      public boolean isIncludeBaseCase()
      Checks if base case is included.
      Returns:
      true if included