Class SensitivityAnalysis.TrialResult
java.lang.Object
neqsim.process.util.fielddevelopment.SensitivityAnalysis.TrialResult
- All Implemented Interfaces:
Serializable, Comparable<SensitivityAnalysis.TrialResult>
- Enclosing class:
SensitivityAnalysis
public static final class SensitivityAnalysis.TrialResult
extends Object
implements Serializable, Comparable<SensitivityAnalysis.TrialResult>
Single Monte Carlo trial result.
Contains the sampled parameter values and resulting output for one trial.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final booleanprivate final booleanprivate final doubleprivate static final longprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionTrialResult(int trialNumber, Map<String, Double> sampledParameters, double outputValue, String bottleneck, boolean feasible, boolean converged) Creates a trial result. -
Method Summary
Modifier and TypeMethodDescriptionintGets the bottleneck equipment name.doubleGets the output value.Gets the sampled parameter values.intGets the trial number.booleanChecks if the trial converged.booleanChecks if the trial was feasible.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
trialNumber
private final int trialNumber -
sampledParameters
-
outputValue
private final double outputValue -
bottleneck
-
feasible
private final boolean feasible -
converged
private final boolean converged
-
-
Constructor Details
-
TrialResult
public TrialResult(int trialNumber, Map<String, Double> sampledParameters, double outputValue, String bottleneck, boolean feasible, boolean converged) Creates a trial result.- Parameters:
trialNumber- trial indexsampledParameters- map of parameter name to sampled valueoutputValue- output metric valuebottleneck- bottleneck equipment name (may be null)feasible- true if solution was feasibleconverged- true if simulation converged
-
-
Method Details
-
getTrialNumber
public int getTrialNumber()Gets the trial number.- Returns:
- trial number
-
getSampledParameters
-
getOutputValue
public double getOutputValue()Gets the output value.- Returns:
- output metric value
-
getBottleneck
-
isFeasible
public boolean isFeasible()Checks if the trial was feasible.- Returns:
- true if feasible
-
isConverged
public boolean isConverged()Checks if the trial converged.- Returns:
- true if converged
-
compareTo
- Specified by:
compareToin interfaceComparable<SensitivityAnalysis.TrialResult>
-