> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/tutorials/using-allocation-penalties/exercise-1c-minimum-flow-properties.md).

# Exercise 1c Minimum Flow Properties

Note: Create a new network called Exercise 1d and setup the timestep before running the network as described in Exercise 1a.

![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252F9vvPDUvqmPMtTy1B6YC3%252F0.png%3Falt%3Dmedia\&width=768\&dpr=4\&quality=100\&sign=b7fb680a\&sv=2)

### **Create the network** <a href="#create-the-network" id="create-the-network"></a>

Navigate to the left panel and click on **Build** to open the Nodes list.

Drag and drop to the workspace Map:

\- 1 input node ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FVql9GrpHtvFWNIrZlJwt%252Fimage.png%3Falt%3Dmedia%26token%3Dafbbe039-58bd-42f1-a7ca-328c3f52d907\&width=300\&dpr=4\&quality=100\&sign=766e468b\&sv=2)

\- 2 output nodes ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252F4264dvX48MmApPtBAW1V%252Fimage.png%3Falt%3Dmedia%26token%3D0a7d931c-943e-4e1f-bd71-500039fea569\&width=300\&dpr=4\&quality=100\&sign=3114d871\&sv=2)

\- 2 link nodes ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252Fg1RSNddX4ksUHcCJNosN%252Fimage.png%3Falt%3Dmedia%26token%3Df0210046-5792-4ede-92dc-4cad770528bb\&width=300\&dpr=4\&quality=100\&sign=c6941e48\&sv=2)

Click on **edge** ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FfgL2eO97H2QxSOWetpuW%252F4.png%3Falt%3Dmedia\&width=300\&dpr=4\&quality=100\&sign=c443e76e\&sv=2) to activate “link mode”, connect the nodes and fill their attributes as shown in the picture below:

![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252F1dFYasgKp4to8Nuis8p5%252F5.png%3Falt%3Dmedia\&width=768\&dpr=4\&quality=100\&sign=6ceca90e\&sv=2)

Click again on **edge** ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FaE4xc3MWqC1Q44wANF36%252F6.png%3Falt%3Dmedia\&width=300\&dpr=4\&quality=100\&sign=92657f95\&sv=2) to deactivate “link mode”.

On the left panel click on **Run a Model** ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FfwtQdqLb0xKKgbN3vgQn%252F7.png%3Falt%3Dmedia\&width=300\&dpr=4\&quality=100\&sign=ace6b556\&sv=2).

A new window will pop-up, click on **Submit**

Visualize the **simulated\_flow** results

![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FvruStTd3cQdFqPnQJhMi%252Fimage.png%3Falt%3Dmedia%26token%3Df9648eba-d178-4872-ab2e-1ae2121687b8\&width=768\&dpr=4\&quality=100\&sign=5dd426c2\&sv=2)

### **Explanation** <a href="#explanation" id="explanation"></a>

The water distribution network is designed to ensure a mandatory input node supply of 20 Mm³/day. This configuration enforces a minimum and maximum flow of 20 Mm³/day, making it the total daily flow available for the entire network.

**Link1:** High Priority Allocation

* **Priority:** Link1 has the highest priority due to its most negative allocation penalty value.
* **Max Flow Configuration:** The network aims to allocate 8 Mm³/day to Link1, given the available flow.
* **Allocation:** With 20 Mm³/day available, 8 Mm³/day is allocated to Link1, leaving a remaining 12 Mm³/day for subsequent nodes.

**Output2:** Second Priority Allocation

* **Priority:** Output2 is the second priority node based on the allocation penalty value.
* **Max Flow Configuration:** The network targets an allocation of 8 Mm³/day to Output2, if available.
* **Allocation:** With 12 Mm³/day remaining after Link1's allocation, 8 Mm³/day is allocated to Output2, leaving a remaining 4 Mm³/day.

**Link2:** Remaining Flow Route

* **Max Flow Configuration**: Link2 does not have a maximum flow constraint.
* **Flow Dependency:** The flow through Link2 depends on downstream constraints rather than a specific max flow value.

**Output1:** Final Allocation Node

* **Configuration:** Output1 lacks both a maximum flow constraint and an allocation penalty value.
* **Flow Allocation:** Output1 through Link2 receives the remaining 4 Mm³/day flow in the network.
* **Flow Distribution:**

8 Mm³/day is received from Link1.

4 Mm³/day is received from Link2.

**Total Flow:** Output1 ultimately withdraws 12 Mm³/day.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/tutorials/using-allocation-penalties/exercise-1c-minimum-flow-properties.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
