Class FlowRateOptimizationResult.ConstraintViolation
java.lang.Object
neqsim.process.util.optimizer.FlowRateOptimizationResult.ConstraintViolation
- All Implemented Interfaces:
Serializable
- Enclosing class:
FlowRateOptimizationResult
public static class FlowRateOptimizationResult.ConstraintViolation
extends Object
implements Serializable
Details of a constraint violation.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstraintViolation(String constraintName, String equipmentName, double currentValue, double limitValue, String unit, boolean isHardViolation) Creates a new constraint violation record. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
constraintName
-
equipmentName
-
currentValue
private final double currentValue -
limitValue
private final double limitValue -
unit
-
isHardViolation
private final boolean isHardViolation
-
-
Constructor Details
-
ConstraintViolation
public ConstraintViolation(String constraintName, String equipmentName, double currentValue, double limitValue, String unit, boolean isHardViolation) Creates a new constraint violation record.- Parameters:
constraintName- name of the violated constraintequipmentName- name of the equipment with the violationcurrentValue- current value of the constrained variablelimitValue- limit value that was exceededunit- unit of measurementisHardViolation- true if this is a hard constraint violation
-
-
Method Details
-
getConstraintName
-
getEquipmentName
-
getCurrentValue
public double getCurrentValue()Gets the current value.- Returns:
- current value
-
getLimitValue
public double getLimitValue()Gets the limit value.- Returns:
- limit value
-
getUnit
-
isHardViolation
public boolean isHardViolation()Checks if this is a hard constraint violation.- Returns:
- true if hard violation
-
toString
-