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 Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate booleanprivate intprivate booleanprivate intprivate longprivate static final longprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the number of trials.intGets the parallel thread count.longGets the random seed.includeBaseCase(boolean include) Enables or disables base case inclusion in trials.booleanChecks if base case is included.booleanChecks if parallel execution is enabled.booleanChecks if using a fixed seed.numberOfTrials(int trials) Sets the number of Monte Carlo trials.parallel(boolean parallel) Enables or disables parallel execution.parallelThreads(int threads) Sets the number of parallel threads.randomSeed(long seed) Sets the random seed for reproducibility.
-
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
Sets the number of Monte Carlo trials.- Parameters:
trials- number of trials- Returns:
- this config
-
randomSeed
Sets the random seed for reproducibility.- Parameters:
seed- random seed- Returns:
- this config
-
parallel
Enables or disables parallel execution.- Parameters:
parallel- true to enable parallel- Returns:
- this config
-
parallelThreads
Sets the number of parallel threads.- Parameters:
threads- thread count- Returns:
- this config
-
includeBaseCase
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
-