> 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/modeling-basics/node-types/water-output/loss-link-node.md).

# Loss Link Node

## General description

A **loss link** allows for the definition of a fixed proportional loss of flow that goes through this node.  Loss links are often used to represent **potable water treatment works** which incur some process losses.

The Max and Min flow attributes that are defined are applied to the net output after losses.&#x20;

The node itself records the net output in its flow attribute (which would be used by any attached recorders).

## Primary Attributes

<table><thead><tr><th width="181.33333333333331">Name</th><th width="342">Description</th><th>Required</th></tr></thead><tbody><tr><td>Allocation Penalty</td><td>The cost per unit flow via the node</td><td>Optional</td></tr><tr><td>Loss factor</td><td>loss_factor : float or Parameter. The proportion of flow that is lost through this node. Must be greater than or equal to zero. This value is either a proportion of gross or net flow depending on the value of <code>loss_factor_type</code>.</td><td>Optional, defaults to 0</td></tr><tr><td>Loss Factor Type</td><td>Either "gross" or "net" (default) to specify whether the loss factor is applied as a proportion of gross or net flow respectively.</td><td>Optional, defaults to "net" </td></tr><tr><td>Max Flow</td><td>The maximum flow constraint on the node</td><td>Optional</td></tr><tr><td>Min Flow</td><td>The minimum flow constraint on the node</td><td>Optional</td></tr></tbody></table>

## Example

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FUOenCoomXivW5fq5gw1b%2Fimage.png?alt=media&amp;token=0414898f-8da6-4703-8662-79f349169edc" alt=""><figcaption></figcaption></figure>

In this example 10% of the gross amount of water flowing into the node is lost.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://water-strategy.gitbook.io/waterstrategy/modeling-basics/node-types/water-output/loss-link-node.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
