Class ProcessSimulationEvaluator.ParameterDefinition
java.lang.Object
neqsim.process.util.optimizer.ProcessSimulationEvaluator.ParameterDefinition
- All Implemented Interfaces:
Serializable
- Enclosing class:
ProcessSimulationEvaluator
public static class ProcessSimulationEvaluator.ParameterDefinition
extends Object
implements Serializable
Definition of a decision variable (parameter) for optimization.
- Version:
- 1.0
- Author:
- NeqSim Development Team
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate doubleprivate doubleprivate Stringprivate Stringprivate static final longprivate BiConsumer<ProcessSystem, Double> private Stringprivate double -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ParameterDefinition(String name, String equipmentName, String propertyName, double lowerBound, double upperBound, String unit) Constructor with all fields. -
Method Summary
Modifier and TypeMethodDescriptiondoubleclamp(double value) Clamps value to bounds.doubledoublegetName()getUnit()doublebooleanisWithinBounds(double value) Checks if value is within bounds.voidsetEquipmentName(String equipmentName) voidsetInitialValue(double initialValue) voidsetLowerBound(double lowerBound) voidvoidsetPropertyName(String propertyName) voidsetSetter(BiConsumer<ProcessSystem, Double> setter) voidvoidsetUpperBound(double upperBound)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
equipmentName
-
propertyName
-
lowerBound
private double lowerBound -
upperBound
private double upperBound -
unit
-
initialValue
private double initialValue -
setter
-
-
Constructor Details
-
ParameterDefinition
public ParameterDefinition()Default constructor. -
ParameterDefinition
public ParameterDefinition(String name, String equipmentName, String propertyName, double lowerBound, double upperBound, String unit) Constructor with all fields.- Parameters:
name- parameter nameequipmentName- equipment namepropertyName- property namelowerBound- lower boundupperBound- upper boundunit- unit of measurement
-
-
Method Details
-
getName
-
setName
-
getEquipmentName
-
setEquipmentName
-
getPropertyName
-
setPropertyName
-
getLowerBound
public double getLowerBound() -
setLowerBound
public void setLowerBound(double lowerBound) -
getUpperBound
public double getUpperBound() -
setUpperBound
public void setUpperBound(double upperBound) -
getUnit
-
setUnit
-
getInitialValue
public double getInitialValue() -
setInitialValue
public void setInitialValue(double initialValue) -
getSetter
-
setSetter
-
isWithinBounds
public boolean isWithinBounds(double value) Checks if value is within bounds.- Parameters:
value- value to check- Returns:
- true if within bounds
-
clamp
public double clamp(double value) Clamps value to bounds.- Parameters:
value- value to clamp- Returns:
- clamped value
-