Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Loads

A load in the LTM represents a contract granting the right to buy or sell power. Multiple such contracts can be defined for each area in the model.

1D vs 2D Load

The capacity of a load can be defined as either:

For 2D data, the number of scenarios must exactly match the number of historical years in the model. The time series must start at the beginning of the dataperiod and fully cover the period.

In EMPS, all loads must use the same format—either all 1D or all 2D. However, the API supports mixed input. If at least one load uses a 2D format, any 1D loads will be automatically converted to an equivalent 2D structure internally.

Output Files

The API generates .enmd files for each area, each containing a load entry (group 16). The content and format of the capacity data depend on its resolution:

Input Parameters

To define a Load in the API, the following fields may be provided:

Common fields:

Attributes:

Connections

Each load must be connected to a area.

Example Usage

Below is an example of a 2D load with three scenarios and weekly resolution:

{
    "#comment": "ENMD group 16",
    "name": "load1",
    "capacity": {
        "timestamps": [
            "2024-01-00T00:00:00Z",
            "2024-01-08T00:00:00Z",
            "2024-01-15T00:00:00Z"
        ],
        "scenarios": [
            [100.0, 101.1, 102.2],
            [200.0, 201.1, 202.2],
            [300.0, 301.1, 302.2]
        ]
    }
}

Notebook Example

For a complete, runnable example of how to define a load in the model using pyltmapi, see the following Jupyter notebook:

Downloads

You can download the full input model file used in the example here:

Notes