Class ProductionOptimizationSpecLoader.ConstraintSpec

java.lang.Object
neqsim.process.util.optimizer.ProductionOptimizationSpecLoader.ConstraintSpec
Enclosing class:
ProductionOptimizationSpecLoader

private static final class ProductionOptimizationSpecLoader.ConstraintSpec extends Object
Constraint specification in the YAML/JSON file.

Defines a single optimization constraint with its limit, direction, and severity.

Version:
1.0
Author:
NeqSim Development Team
  • Field Details

    • name

      public String name
      Unique name for the constraint.
    • limit

      public double limit
      Constraint limit value.
    • direction

      public String direction
      Comparison direction: LESS_THAN or GREATER_THAN.
    • severity

      public String severity
      Constraint severity: HARD or SOFT.
    • penaltyWeight

      public double penaltyWeight
      Penalty weight for soft constraints (default: 0.0).
    • description

      public String description
      Human-readable description of the constraint.
    • metric

      public String metric
      Key to look up the metric function in the metrics map.
  • Constructor Details

    • ConstraintSpec

      private ConstraintSpec()