# 索引数组参数

## 一般描述

使用索引参数来索引参数数组的参数。

此参数的一个示例用法是根据当前的需求储蓄水平（按浮点数计算）返回需求储蓄系数（浮动值） *索引参数*）。 [API 参考资料](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.IndexedArrayParameter.html#pywr.parameters.IndexedArrayParameter)

## 属性

<table><thead><tr><th width="158">姓名</th><th width="409">描述</th><th>必填项</th></tr></thead><tbody><tr><td>索引_参数</td><td>索引参数</td><td>是的</td></tr><tr><td>参数</td><td>可迭代的 <em>参数</em> 或者花车</td><td>是的</td></tr></tbody></table>

## 示例

```
{
	“类型”：“indexedarrayparameter”，
	“index_parameter”：“水库控制曲线”，
	“参数”：[
		1,
		0.9，
		0.8，
		0.5
	]
}

```

上面的代码使用名为 “水库控制曲线” 的参数提供的索引，该参数是 [控制曲线索引参数。](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/control-curve-index-parameter) 索引 0 返回 1，索引 2 返回 0.9 等...

在此示例中，此参数用于根据储层控制曲线减少需求。请前往 [聚合参数示例](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/aggregated-parameter#example) 看看这是怎么做的。

请查看水库控制曲线参数是如何定义的。


---

# Agent Instructions: 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:

```
GET https://water-strategy.gitbook.io/waterstrategy/zhong-guo-ren/jian-mo-ji-chu-zhi-shi/parameters/array-based-parameters/indexed-array-parameter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
