> 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/deutsch/grundlagen-der-modellierung/parameters/others/deficit-parameter.md).

# Defizitparameter

## Allgemeine Beschreibung

Parameter verfolgen das Defizit (max\ \_flow - tatsächlicher Fluss) eines Knotens. [API Referenz](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.DeficitParameter.html)

Hinweise: Dieser Parameter ist insofern etwas ungewöhnlich, als sein Wert während der After-Methode berechnet wird, nicht bei calc\_Werte. Es soll in Kombination mit einem Rekorder (z. B. numpyArrayNodeRecorder) verwendet werden, um das Defizit (definiert als angefragt - aktueller Fluss) an einem Knoten aufzuzeichnen. Beachten Sie, dass dies bedeutet, dass die Aufzeichnung dieses Parameters *nicht* gibt Ihnen den Wert, der vom Solver in diesem Zeitschritt verwendet wurde. Alternativ kann dieser Parameter im Modell zusammen mit anderen Parametern verwendet werden und wird wie folgt ausgewertet \_Defizit von gestern, wobei das Defizit im nullten Zeitschritt Null ist.

## Attribute

<table><thead><tr><th width="158">Name</th><th width="473">Beschreibung</th><th>Erforderlich</th></tr></thead><tbody><tr><td>Modell</td><td>pywr.model.model</td><td>Ja</td></tr><tr><td>Knoten</td><td>Der Knoten, dessen Defizit verfolgt werden soll</td><td>Ja</td></tr></tbody></table>

## Beispiel

kommt bald...

```json
{

}
```


---

# 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/deutsch/grundlagen-der-modellierung/parameters/others/deficit-parameter.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.
