> 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/array-based-parameters/indexed-array-parameter.md).

# Paramètre de tableau indexé

## Description générale

Paramètre qui utilise un IndexParameter pour indexer un tableau de paramètres.

Un exemple d'utilisation de ce paramètre est de renvoyer un facteur d'économie de demande (sous forme de variable flottante) basé sur le niveau d'économie de demande actuel (calculé par un *Paramètre d'index*). [API Référence](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.IndexedArrayParameter.html#pywr.parameters.IndexedArrayParameter)

## Attributs

<table><thead><tr><th width="158">Nom</th><th width="409">Descriptif</th><th>Nécessaire</th></tr></thead><tbody><tr><td>paramètre_index</td><td>Paramètre d'index</td><td>Oui</td></tr><tr><td>paramètres</td><td>itérable de <em>Paramètres</em> ou flotteurs</td><td>Oui</td></tr></tbody></table>

## Exemple

```
{
	« tapez » : « indexedarrayparameter »,
	« index_parameter » : « Courbe de contrôle du réservoir »,
	« paramètres » : [
		1,
		0.9,
		0.8,
		0.5
	]
}

```

Le code ci-dessus utilise l'indice fourni par le paramètre appelé « Courbe de contrôle du réservoir », qui est [Paramètre d'indice de courbe de contrôle.](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/control-curve-index-parameter) L'index 0 renvoie un 1, l'index 2 renvoie 0.9 etc...

Dans cet exemple, ce paramètre est utilisé pour réduire une demande sur la base d'une courbe de contrôle du réservoir. Veuillez vous rendre sur [Exemple de paramètre agrégé](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/aggregated-parameter#example) pour voir comment cela se fait.

Veuillez voir comment le paramètre de la courbe de régulation du réservoir est défini.


---

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