# Operating Envelopes Partitioning

<figure><img src="/files/8aao4HhXq45zl30Zh8AL" alt=""><figcaption><p>High Level Concept: Operating Envelopes</p></figcaption></figure>

The Operating Envelopes Partitioning is the most crucial step in the overall operating envelope passthrough process.&#x20;

An "operating envelope passthrough" refers to a mechanism that allows for adjustments in the operational limits or envelopes of generating units or electrical systems. These envelopes define the safe operating conditions for various generation assets and network elements, helping ensure reliability and stability in the energy supply.

When unforeseen circumstances arise, such as significant changes in demand, generation availability, or system disturbances, the operating envelope can be exceeded. The passthrough mechanism enables market operators to make necessary adjustments to account for these situations, ensuring that the operation of the market remains secure and efficient. This process is vital for managing risks and maintaining grid reliability amidst changing conditions.

The process starts when the DNSP/DSO sends their operating envelope which needs to be partitioned accordingly, and forwarded to their respective aggregators. The partitioning process needs to take place in a fully trust-less and secured environment where data are pseudo-anonymized to protect aggregators' business interests.

## OEP Solution

<figure><img src="/files/yzA0i65gRz369jhiefjW" alt=""><figcaption><p>Actual Node Red flow of OEP solution</p></figcaption></figure>

The OEP solution aims to test the above business case. Below are the steps which constitute the OEP solution flow:

1. Fetch OEP request from the operating envelope sender every 30 minutes
2. Parse the operating envelope into JSON Object
3. Fetch [NMI](https://www.agl.com.au/help-support/moving-meters-connections/meter-identification-numbers) to aggregator mapping from the NMI Registry. The NMI Registry is a backend API service which simply contains the mapping between NMI and aggregator.
4. Partition the operating envelope according to the aggregator using the NMI to aggregator mapping
5. Generate the [Merkle Tree root hash](https://en.wikipedia.org/wiki/Merkle_tree) of the partitioned data
6. Submit the root hash to EWX as a vote by initiating the EWX Marketplace App Integration node


---

# 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://docs.energyweb.org/ewx-ecosystem/worker-nodes/worker-node-use-cases/sample-enterprise-use-cases/operating-envelopes-partitioning.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.
