Class DegradedOperationResult

java.lang.Object
neqsim.process.util.optimizer.DegradedOperationResult
All Implemented Interfaces:
Serializable

public class DegradedOperationResult extends Object implements Serializable
Result of degraded operation optimization.

Contains the optimal operating point, recommended setpoints, and metrics for running with equipment failures or reduced capacity.

Version:
1.0
Author:
NeqSim Development Team
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • failedEquipment

      private String failedEquipment
    • failureMode

      private EquipmentFailureMode failureMode
    • baselineProduction

      private double baselineProduction
    • baselinePower

      private double baselinePower
    • optimalFlowRate

      private double optimalFlowRate
    • optimalProduction

      private double optimalProduction
    • optimalPower

      private double optimalPower
    • productionLossPercent

      private double productionLossPercent
    • powerSavingsPercent

      private double powerSavingsPercent
    • capacityFactor

      private double capacityFactor
    • operatingMode

    • optimizedSetpoints

      private Map<String,Double> optimizedSetpoints
    • converged

      private boolean converged
    • notes

      private String notes
    • computeTimeMs

      private long computeTimeMs
  • Constructor Details

    • DegradedOperationResult

      public DegradedOperationResult()
      Creates a new degraded operation result.
  • Method Details

    • calculateMetrics

      public void calculateMetrics()
      Calculates derived metrics from the set values.
    • getFailedEquipment

      public String getFailedEquipment()
      Gets the failed equipment name.
      Returns:
      the failed equipment name
    • setFailedEquipment

      public void setFailedEquipment(String name)
      Sets the failed equipment name.
      Parameters:
      name - the equipment name
    • getFailureMode

      public EquipmentFailureMode getFailureMode()
      Gets the failure mode.
      Returns:
      the failure mode
    • setFailureMode

      public void setFailureMode(EquipmentFailureMode mode)
      Sets the failure mode.
      Parameters:
      mode - the failure mode
    • getBaselineProduction

      public double getBaselineProduction()
      Gets the baseline production rate.
      Returns:
      the baseline production in kg/hr
    • setBaselineProduction

      public void setBaselineProduction(double rate)
      Sets the baseline production rate.
      Parameters:
      rate - the rate in kg/hr
    • getBaselinePower

      public double getBaselinePower()
      Gets the baseline power consumption.
      Returns:
      the baseline power in kW
    • setBaselinePower

      public void setBaselinePower(double power)
      Sets the baseline power consumption.
      Parameters:
      power - the power in kW
    • getOptimalFlowRate

      public double getOptimalFlowRate()
      Gets the optimal flow rate.
      Returns:
      the optimal flow rate in kg/hr
    • setOptimalFlowRate

      public void setOptimalFlowRate(double rate)
      Sets the optimal flow rate.
      Parameters:
      rate - the rate in kg/hr
    • getOptimalProduction

      public double getOptimalProduction()
      Gets the optimal production rate.
      Returns:
      the optimal production in kg/hr
    • setOptimalProduction

      public void setOptimalProduction(double rate)
      Sets the optimal production rate.
      Parameters:
      rate - the rate in kg/hr
    • getOptimalPower

      public double getOptimalPower()
      Gets the optimal power consumption.
      Returns:
      the optimal power in kW
    • setOptimalPower

      public void setOptimalPower(double power)
      Sets the optimal power consumption.
      Parameters:
      power - the power in kW
    • getProductionLossPercent

      public double getProductionLossPercent()
      Gets the production loss percentage.
      Returns:
      the loss percentage
    • getPowerSavingsPercent

      public double getPowerSavingsPercent()
      Gets the power savings percentage.
      Returns:
      the savings percentage
    • getCapacityFactor

      public double getCapacityFactor()
      Gets the capacity factor.
      Returns:
      the capacity factor (0-1)
    • getOperatingMode

      public DegradedOperationOptimizer.OperatingMode getOperatingMode()
      Gets the recommended operating mode.
      Returns:
      the operating mode
    • setOperatingMode

      public void setOperatingMode(DegradedOperationOptimizer.OperatingMode mode)
      Sets the operating mode.
      Parameters:
      mode - the operating mode
    • getOptimizedSetpoints

      public Map<String,Double> getOptimizedSetpoints()
      Gets the optimized setpoints.
      Returns:
      map of equipment/parameter to recommended value
    • setOptimizedSetpoints

      public void setOptimizedSetpoints(Map<String,Double> setpoints)
      Sets the optimized setpoints.
      Parameters:
      setpoints - the setpoints map
    • isConverged

      public boolean isConverged()
      Checks if optimization converged.
      Returns:
      true if converged
    • setConverged

      public void setConverged(boolean converged)
      Sets the convergence status.
      Parameters:
      converged - true if converged
    • getNotes

      public String getNotes()
      Gets the notes.
      Returns:
      the notes
    • setNotes

      public void setNotes(String notes)
      Sets the notes.
      Parameters:
      notes - the notes
    • getComputeTimeMs

      public long getComputeTimeMs()
      Gets the compute time.
      Returns:
      the compute time in milliseconds
    • setComputeTimeMs

      public void setComputeTimeMs(long timeMs)
      Sets the compute time.
      Parameters:
      timeMs - the time in milliseconds
    • toMap

      public Map<String,Object> toMap()
      Converts to a Map representation.
      Returns:
      map of result properties
    • toJson

      public String toJson()
      Converts to JSON string.
      Returns:
      JSON representation
    • toString

      public String toString()
      Overrides:
      toString in class Object