> 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/zhong-guo-ren/jian-mo-ji-chu-zhi-shi/parameters/combining-multiple-parameters/aggregated-parameter.md).

# 聚合参数

## 一般描述

索引参数的集合。这个类的行为就像一个集合。可以在其中添加或删除参数。它的值是使用聚合函数（例如 sum）聚合的子参数的值。[ API 参考资料](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.AggregatedParameter.html#pywr.parameters.AggregatedParameter)

## 属性

<table><thead><tr><th width="154">姓名</th><th width="395">描述</th><th>必填项</th></tr></thead><tbody><tr><td>类型</td><td>汇总</td><td>是的</td></tr><tr><td>参数</td><td>要聚合的参数</td><td>可选</td></tr><tr><td>agg_func</td><td>聚合函数。必须是 {“sum”、“min”、“max”、“mean”、“product”} 或接受值列表的可调用函数之一</td><td>可选</td></tr></tbody></table>

## 示例

\`\`json { “类型”：“聚合参数”， “agg\_func”：“产品”， “参数”：\[ “基准需求”， “控制曲线需求因子” ] }

```

在这种情况下，聚合参数是将两个参数相乘

* [基准需求](https://water-strategy.gitbook.io/water-strategy/modelling-fundamentals/parameters/constant#example)
* 控制曲线需求因子

此示例显示基准需求乘以根据储层控制曲线减少需求的系数。你可以点击每个参数来查看它们是如何定义的。 &#x20;
```


---

# 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/zhong-guo-ren/jian-mo-ji-chu-zhi-shi/parameters/combining-multiple-parameters/aggregated-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.
