> 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/portugues/nocoes-basicas-de-modelagem/parameters/array-based-parameters/indexed-array-parameter.md).

# Parâmetro de matriz indexada

## Descrição geral

Parâmetro que usa um IndexParameter para indexar uma matriz de parâmetros.

Um exemplo de uso desse parâmetro é retornar um fator de economia de demanda (como um flutuante) com base no nível de economia de demanda atual (calculado por um *Parâmetro do índice*). [API Referência](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.IndexedArrayParameter.html#pywr.parameters.IndexedArrayParameter)

## Atributos

<table><thead><tr><th width="158">Nome</th><th width="409">Descrição</th><th>Obrigatório</th></tr></thead><tbody><tr><td>parâmetro de índice</td><td>Parâmetro do índice</td><td>sim</td></tr><tr><td>parâmetros</td><td>iterável de <em>Parâmetros</em> ou flutua</td><td>sim</td></tr></tbody></table>

## Exemplo

```
{
	“tipo”: “indexedarrayparameter”,
	“index_parameter”: “Curva de controle do reservatório”,
	“parâmetros”: [
		1,
		0.9,
		0.8,
		0.5
	]
}

```

O código acima usa o Índice fornecido pelo parâmetro chamado 'Curva de controle do reservatório', que é um [Parâmetro do índice da curva de controle.](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/control-curve-index-parameter) O Índice 0 retorna 1, o Índice 2 retorna 0.9 etc...

Neste exemplo, esse parâmetro é usado para reduzir uma demanda com base em uma curva de controle do reservatório. Por favor, vá para o [Exemplo de parâmetro agregado](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/aggregated-parameter#example) para ver como isso é feito.

Veja como o parâmetro da curva de controle do reservatório é definido.


---

# 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/portugues/nocoes-basicas-de-modelagem/parameters/array-based-parameters/indexed-array-parameter.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.
