add_control
Add a simple control rule to an EPANET network using a control string to specify conditions like node level or time for actions on links or pumps.
Instructions
Add a new simple control rule.
Example control strings::
"LINK P1 CLOSED IF NODE T1 ABOVE 20"
"LINK P1 OPEN IF NODE J2 BELOW 10"
"LINK Pump9 1.5 AT TIME 16:00"Args: network_id: Session id. control_string: EPANET simple-control syntax string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network_id | Yes | ||
| control_string | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |