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

# Parametro dell'array indicizzato

## Descrizione generale

Parametro che utilizza un IndexParameter per indicizzare una matrice di parametri.

Un esempio di utilizzo di questo parametro consiste nel restituire un fattore di risparmio della domanda (come float) basato sull'attuale livello di risparmio della domanda (calcolato da un *Parametro indice*). [API Riferimento](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.IndexedArrayParameter.html#pywr.parameters.IndexedArrayParameter)

## Attributi

<table><thead><tr><th width="158">Nome</th><th width="409">Descrizione</th><th>Richiesto</th></tr></thead><tbody><tr><td>parametro_indice</td><td>Parametro indice</td><td>sì</td></tr><tr><td>parametri</td><td>iterabile di <em>Parametri</em> o galleggianti</td><td>sì</td></tr></tbody></table>

## Esempio

```
{
	«tipo»: «indexedarrayparameter»,
	«index_parameter»: «Curva di controllo del serbatoio»,
	«parametri»: [
		1,
		0.9,
		0.8,
		0.5
	]
}

```

Il codice precedente utilizza l'indice fornito dal parametro chiamato 'Reservoir control curve', che è un [Parametro dell'indice della curva di controllo.](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/control-curve-index-parameter) L'indice 0 restituisce un 1, l'indice 2 restituisce 0.9 ecc...

In questo esempio questo parametro viene utilizzato per ridurre una domanda in base a una curva di controllo del serbatoio. Per favore, vai al [Esempio di parametro aggregato](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/aggregated-parameter#example) per vedere come si fa.

Guarda come viene definito il parametro della curva di controllo del serbatoio.


---

# 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/italiano/nozioni-di-base-sulla-modellazione/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.
