ConstraintResult#

module wntr.extensions.design_verification.models

class ConstraintResult[source]#

Bases: object

Store the result of one hydraulic-constraint assessment.

Parameters:
  • critical_value (float) – Minimum pressure or maximum absolute velocity found in the hydraulic-results table.

  • compliance_pct (float) – Percentage of assessed values satisfying the constraint.

  • feasible (bool) – Whether the required compliance percentage was achieved.

  • critical_component (str) – Name of the junction or pipe containing the critical value.

  • critical_time (Hashable) – Simulation time corresponding to the critical value.


__init__(critical_value, compliance_pct, feasible, critical_component, critical_time)#
compliance_pct: float#
critical_component: str#
critical_time: Hashable#
critical_value: float#
feasible: bool#