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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • name

      private String name
    • equipmentName

      private String equipmentName
    • propertyName

      private String propertyName
    • lowerBound

      private double lowerBound
    • upperBound

      private double upperBound
    • unit

      private String unit
    • initialValue

      private double initialValue
    • setter

      private transient BiConsumer<ProcessSystem, Double> 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 name
      equipmentName - equipment name
      propertyName - property name
      lowerBound - lower bound
      upperBound - upper bound
      unit - unit of measurement
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getEquipmentName

      public String getEquipmentName()
    • setEquipmentName

      public void setEquipmentName(String equipmentName)
    • getPropertyName

      public String getPropertyName()
    • setPropertyName

      public void setPropertyName(String propertyName)
    • getLowerBound

      public double getLowerBound()
    • setLowerBound

      public void setLowerBound(double lowerBound)
    • getUpperBound

      public double getUpperBound()
    • setUpperBound

      public void setUpperBound(double upperBound)
    • getUnit

      public String getUnit()
    • setUnit

      public void setUnit(String unit)
    • getInitialValue

      public double getInitialValue()
    • setInitialValue

      public void setInitialValue(double initialValue)
    • getSetter

      public BiConsumer<ProcessSystem, Double> getSetter()
    • setSetter

      public void setSetter(BiConsumer<ProcessSystem, Double> setter)
    • 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