> 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/francais/bases-de-la-modelisation/parameters.md).

# Paramètres

Les paramètres sont des fonctions qui renvoient une valeur dans le modèle à chaque pas temporel. Ces valeurs peuvent être une constante, basée sur le temps (par exemple, le jour ou le mois), un calcul basé sur le stockage du réservoir au pas de temps et de nombreux autres calculs. Le paramètre personnalisé peut également être écrit en Python.

Cette page décrit (la plupart) les types de paramètres pris en charge par Pywr. Un aperçu des paramètres de Pywr est disponible [ici](https://pywr.github.io/pywr-docs/master/json.html#parameters). La liste complète des paramètres Pywr intégrés se trouve [ici](https://pywr.github.io/pywr-docs/master/api/pywr.parameters.html).

## 1. Création d'un paramètre

Dans un réseau, cliquez sur l'onglet « Paramètres » :

<figure><img src="https://3963071958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeDWQ47cDExIYi6YhdD2%2Fuploads%2Fgit-blob-750db6da30ae86b06b1ef55e50114b63b20cc5da%2Fimage%20(114).png?alt=media" alt=""><figcaption><p>Cliquez sur l'onglet « Paramètres »</p></figcaption></figure>

À côté de la section « Catégories de types de paramètres », cliquez sur le bouton « + » et sélectionnez « PYWR \ \_PARAMETER ».

<figure><img src="https://3963071958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeDWQ47cDExIYi6YhdD2%2Fuploads%2Fgit-blob-1601fe0ec5fea7153680ae2190d0f72639459086%2Fimage%20(115).png?alt=media" alt=""><figcaption><p>Cliquez sur pywr_parameter</p></figcaption></figure>

Une saisie de texte apparaîtra. Entrez le nom de votre paramètre : \\

<figure><img src="https://3963071958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeDWQ47cDExIYi6YhdD2%2Fuploads%2Fgit-blob-83fafbbdd8e08d0212e4e8ceebf077dee631c710%2Fimage%20(117).png?alt=media" alt=""><figcaption><p>Entrez le nom du paramètre</p></figcaption></figure>

Modifiez le paramètre selon les besoins dans l'éditeur JSON fourni :

<figure><img src="https://3963071958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeDWQ47cDExIYi6YhdD2%2Fuploads%2Fgit-blob-0443dd85957f9669f4f6f26948da41dbb3d4f282%2Fimage%20(118).png?alt=media" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.youtube.com/watch?v=u-3hotZj_44>" %}
Vidéo montrant comment utiliser un paramètre pour plusieurs nœuds
{% endembed %}

## 2. Éditeurs de paramètres dans WaterStrategy

Pour simplifier les modifications de paramètres, WaterStrategy propose des éditeurs pour les paramètres couramment utilisés, tels que les paramètres du profil mensuel, avec des valeurs par défaut préremplies, et des éditeurs graphiques pour simplifier la saisie des données.

#### Exemple d'éditeur de paramètres

Dans l'onglet Paramètres, lorsque vous ajoutez un nouveau paramètre, sélectionnez « PYWR \_PARAMÈTRE \_\ \_PROFIL MENSUEL » comme indiqué : \\

<figure><img src="https://3963071958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeDWQ47cDExIYi6YhdD2%2Fuploads%2Fgit-blob-6b0b38dc7fdecbd25079dae853adb3857efff7bd%2Fimage%20(119).png?alt=media" alt=""><figcaption><p>Sélectionnez PYWR_PARAMÈTRE_PROFIL_MENSUEL</p></figcaption></figure>

Notez que l'éditeur qui apparaît affichera un onglet JSON, mais également un onglet Plot and Table. La modification des données du tableau mettra automatiquement à jour les données dans le JSON, comme indiqué : \\

<figure><img src="https://3963071958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeDWQ47cDExIYi6YhdD2%2Fuploads%2Fgit-blob-5cf5423845af0350109e89ef99752275aabeefae%2Fimage%20(120).png?alt=media" alt=""><figcaption><p>Notez que les valeurs ont été modifiées dans un éditeur de feuille de calcul</p></figcaption></figure>

Ces modifications mettent automatiquement à jour le JSON :

<figure><img src="https://3963071958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeDWQ47cDExIYi6YhdD2%2Fuploads%2Fgit-blob-7ccaf5448c6b1e129cda0ac435ea48be1df75c89%2Fimage%20(121).png?alt=media" alt=""><figcaption><p>Les données sont automatiquement mises à jour dans la section JSON</p></figcaption></figure>

##


---

# 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/francais/bases-de-la-modelisation/parameters.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.
