> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-microgrid/load-management.md).

# Load Management

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-82c867144acaf0747a05dbb5115d54bc43c17085%2Fimage%20(684).png?alt=media" alt="" width="519"><figcaption></figcaption></figure>

The **Load Management Control** block, located in the **Control Microgrid** library, regulates active power flow through the point of common coupling (PCC) when the microgrid is connected to an external AC grid by allowing adjustment of active power settings. This block is part of the OP1420 microgrid library and must be used with the other library blocks.

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-99f5c39d5afce45ca0fabfcb6f7cdffd6321dc04%2Fimage%20(685).png?alt=media" alt="" width="548"><figcaption></figcaption></figure>

<table><thead><tr><th width="373.19989013671875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Diesel minimum power</strong></td><td>Minimum diesel generator power (pu).</td></tr><tr><td><strong>Diesel maximum power</strong></td><td>Maximum diesel generator power (pu).</td></tr><tr><td><strong>BESS maximum power</strong></td><td>Maximum BESS power (pu).</td></tr><tr><td><strong>Load shedding maximum reduction</strong></td><td>Maximum load-shedding reduction (pu).</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="368.39996337890625">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>Pref RER</strong></td><td>Combined power reference for all renewable energy resources (WT + PV) (pu).</td></tr><tr><td><strong>P ref Total Load</strong></td><td>Combined power reference for all loads (DR, sheddable, critical, and PHIL) (pu).</td></tr><tr><td><strong>P ref Shedable Load*</strong></td><td>User-defined power reference for sheddable load (pu).</td></tr><tr><td><strong>P ref Excess Load</strong></td><td>Excess load in the microgrid (greater than 0 means load must be reduced) (pu).</td></tr><tr><td><strong>P ref Demand Response Load*</strong></td><td>Excess load in the microgrid (greater than 0 means load must be reduced) (pu).</td></tr><tr><td><strong>Islanded</strong></td><td>Grid connection state<br>0 = grid-connected, 1 = islanded</td></tr><tr><td><strong>Dispatch mode</strong></td><td>Internal mode of the real-power (dispatch) controller</td></tr></tbody></table>

## Outputs

| Output                             | Description                                                                               |
| ---------------------------------- | ----------------------------------------------------------------------------------------- |
| **Total Load Reduction**           | Total load reduction applied to adjust the BESS power reference (pu).                     |
| **P ref Demand Response Load**     | Power reference sent to the demand response load (pu).                                    |
| **Demand Response Load Reduction** | <p>Status of the demand response load<br>0 = load is not reduced, 1 = load is reduced</p> |
| **P ref Sheddable Load**           | Power reference sent to the sheddable load (pu).                                          |
| **Load Shedded**                   | <p>Status of the sheddable load<br>0 = load is not shedded, 1 = load is shedded</p>       |


---

# 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://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-microgrid/load-management.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.
