> 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/espanol/conceptos-basicos-de-modelado/parameters/array-based-parameters/indexed-array-parameter.md).

# Parámetro de matriz indexada

## Descripción general

Parámetro que usa un IndexParameter para indexar una matriz de parámetros.

Un ejemplo de uso de este parámetro es devolver un factor de ahorro de demanda (como variable) en función del nivel de ahorro de demanda actual (calculado mediante un *Parámetro de índice*). [API Referencia](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.IndexedArrayParameter.html#pywr.parameters.IndexedArrayParameter)

## Atributos

<table><thead><tr><th width="158">Nombre</th><th width="409">Descripción</th><th>Necesario</th></tr></thead><tbody><tr><td>parámetro_índice</td><td>Parámetro de índice</td><td>Sí</td></tr><tr><td>parámetros</td><td>iterable de <em>Parámetros</em> o flota</td><td>Sí</td></tr></tbody></table>

## Ejemplo

```
{
	«tipo»: «indexedarrayparameter»,
	«index_parameter»: «Curva de control del depósito»,
	«parámetros»: [
		1,
		0.9,
		0.8,
		0.5
	]
}

```

El código anterior utiliza el índice proporcionado por el parámetro denominado «Curva de control del depósito», que es un [Parámetro de índice de la curva de control.](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/control-curve-index-parameter) El índice 0 devuelve un 1, el índice 2 devuelve 0.9, etc.

En este ejemplo, este parámetro se usa para reducir la demanda en función de una curva de control de yacimientos. Por favor, diríjase a [Ejemplo de parámetro agregado](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/aggregated-parameter#example) para ver cómo se hace.

Consulte cómo se define el parámetro de la curva de control del depósito.


---

# 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/espanol/conceptos-basicos-de-modelado/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.
