Class DegradedOperationResult
java.lang.Object
neqsim.process.util.optimizer.DegradedOperationResult
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate doubleprivate longprivate booleanprivate Stringprivate EquipmentFailureModeprivate Stringprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalculates derived metrics from the set values.doubleGets the baseline power consumption.doubleGets the baseline production rate.doubleGets the capacity factor.longGets the compute time.Gets the failed equipment name.Gets the failure mode.getNotes()Gets the notes.Gets the recommended operating mode.doubleGets the optimal flow rate.doubleGets the optimal power consumption.doubleGets the optimal production rate.Gets the optimized setpoints.doubleGets the power savings percentage.doubleGets the production loss percentage.booleanChecks if optimization converged.voidsetBaselinePower(double power) Sets the baseline power consumption.voidsetBaselineProduction(double rate) Sets the baseline production rate.voidsetComputeTimeMs(long timeMs) Sets the compute time.voidsetConverged(boolean converged) Sets the convergence status.voidsetFailedEquipment(String name) Sets the failed equipment name.voidSets the failure mode.voidSets the notes.voidSets the operating mode.voidsetOptimalFlowRate(double rate) Sets the optimal flow rate.voidsetOptimalPower(double power) Sets the optimal power consumption.voidsetOptimalProduction(double rate) Sets the optimal production rate.voidsetOptimizedSetpoints(Map<String, Double> setpoints) Sets the optimized setpoints.toJson()Converts to JSON string.toMap()Converts to a Map representation.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
failedEquipment
-
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
-
converged
private boolean converged -
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
Gets the failed equipment name.- Returns:
- the failed equipment name
-
setFailedEquipment
Sets the failed equipment name.- Parameters:
name- the equipment name
-
getFailureMode
-
setFailureMode
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
Gets the recommended operating mode.- Returns:
- the operating mode
-
setOperatingMode
Sets the operating mode.- Parameters:
mode- the operating mode
-
getOptimizedSetpoints
-
setOptimizedSetpoints
-
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
-
setNotes
-
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
-
toJson
-
toString
-