> 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/italiano/nozioni-di-base-sulla-modellazione/node-types/water-transport/piecewiselink-node.md).

# PiecewiseLink Node

## Descrizione generale

Le **PiecewiseLink node** è un'estensione di Node che rappresenta un non lineare [Link](/waterstrategy/italiano/nozioni-di-base-sulla-modellazione/node-types/water-transport/link-node.md) con una funzione di costo a pezzi. Questo oggetto ha lo scopo di modellare situazioni in cui è vantaggioso fornire determinate portate ma oltre un limite fisso si verifica una variazione (o zero) del costo. [API Riferimento](https://pywr.github.io/pywr-docs/master/api/generated/pywr.nodes.PiecewiseLink.html).

Questo nodo è implementato utilizzando una struttura di nodi composti in questo modo:

```
        | Dominio separato         |
Uscita -> Sublink 0 -> Uscita secondaria -> Ingresso
       -> Collegamento secondario 1 ---^
       ...             |
       -> Collegamento secondario n ---|
```

Ciò significa che le rotte non attraversano direttamente questo nodo a causa del dominio separato al centro. Vengono invece creati diversi nuovi percorsi per ciascuno dei collegamenti secondari e delle connessioni al nodo Output/Input. Il motivo di questa interruzione del percorso è evitare un aumento geometrico del numero di percorsi quando più PieceWiseLink sono presenti nello stesso percorso.

## Attributi primari

\_flusso

<table><thead><tr><th width="180.33333333333331">Nome</th><th width="318">Descrizione</th><th>Richiesto</th><th></th><th></th></tr></thead><tbody><tr><td>penalità di allocazione</td><td>Il costo unitario del flusso attraverso il nodo</td><td>Facoltativo</td><td></td><td></td></tr><tr><td>massimo_</td><td></td><td></td><td></td><td></td></tr><tr><td>flow</td><td>Il vincolo di flusso massimo sul nodo</td><td>Opzionale min</td><td>Il vincolo minimo di flusso sul nodo</td><td>Facoltativo</td></tr></tbody></table>

## Esempi

presto in arrivo...


---

# 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/italiano/nozioni-di-base-sulla-modellazione/node-types/water-transport/piecewiselink-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.
