> 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/portugues/nocoes-basicas-de-modelagem/node-types/water-transport/piecewiselink-node.md).

# PiecewiseLink Node

## Descrição geral

O **PiecewiseLink node** é uma extensão do Node que representa um elemento não linear [Link](/waterstrategy/portugues/nocoes-basicas-de-modelagem/node-types/water-transport/link-node.md) com uma função de custo por peça. Este objeto tem como objetivo modelar situações em que há um benefício em fornecer determinadas taxas de fluxo, mas além de um limite fixo, há uma mudança no custo (ou zero). [API Referência](https://pywr.github.io/pywr-docs/master/api/generated/pywr.nodes.PiecewiseLink.html).

Esse Node é implementado usando uma estrutura de nó composta, como a seguinte:

```
        | Domínio separado         |
Saída -> Sublink 0 -> Sub-saída -> Entrada
       -> Sublink 1 ---^
       ...             |
       -> Sublink n ---|
```

Isso significa que as rotas não atravessam diretamente esse nó devido ao domínio separado no meio. Em vez disso, várias novas rotas são criadas para cada um dos sublinks e conexões com o nó de saída/entrada. O motivo dessa interrupção da rota é evitar um aumento geométrico no número de rotas quando vários PieceWiselinks estão presentes na mesma rota.

## Atributos primários

\_corrente

<table><thead><tr><th width="180.33333333333331">Nome</th><th width="318">Descrição</th><th>Obrigatório</th><th></th><th></th></tr></thead><tbody><tr><td>penalidade de alocação</td><td>O custo por unidade de fluxo através do nó</td><td>Opcional</td><td></td><td></td></tr><tr><td>máximo_</td><td></td><td></td><td></td><td></td></tr><tr><td>fluxo</td><td>A restrição máxima de fluxo no nó Min</td><td>opcional</td><td>A restrição mínima de fluxo no nó</td><td>Opcional</td></tr></tbody></table>

## Exemplos

em breve...


---

# 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/portugues/nocoes-basicas-de-modelagem/node-types/water-transport/piecewiselink-node.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.
