Enum Class CapacityConstraint.ConstraintSeverity
java.lang.Object
java.lang.Enum<CapacityConstraint.ConstraintSeverity>
neqsim.process.equipment.capacity.CapacityConstraint.ConstraintSeverity
- All Implemented Interfaces:
Serializable, Comparable<CapacityConstraint.ConstraintSeverity>, Constable
- Enclosing class:
CapacityConstraint
public static enum CapacityConstraint.ConstraintSeverity
extends Enum<CapacityConstraint.ConstraintSeverity>
Enum defining the severity level of constraint violations.
Used by the optimizer to determine how to handle constraint violations:
- CRITICAL: Equipment damage or safety hazard - optimization must stop
- HARD: Exceeds design limits - marks solution as infeasible
- SOFT: Exceeds recommended limits - applies penalty to objective
- ADVISORY: Information only - no impact on optimization
- Version:
- 1.0
- Author:
- NeqSim Development Team
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CRITICAL
Critical violation - exceeding causes equipment damage or safety hazard. Examples: surge, overspeed, over-temperature. Optimizer must stop immediately when this is violated. -
HARD
Hard violation - exceeding means solution is infeasible. Examples: design capacity, maximum power. Optimizer marks solution as infeasible. -
SOFT
Soft violation - exceeding is undesirable but acceptable. Examples: efficiency targets, recommended operating range. Optimizer applies penalty to objective function. -
ADVISORY
Advisory only - information for reporting. Examples: turndown ratio, design point deviation. No impact on optimization.
-
-
Constructor Details
-
ConstraintSeverity
private ConstraintSeverity()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-