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.

FBMC example

This example shows a simple FBMC use case in an EMPS simulation. The FBMC functionality of the EMPS is documented here: Flow-Based Market-Coupling functionality.

Overview of the power system in the EMPS

We have a small power system with four main areas and one battery area. The figure shows a sketch of the system and the interconnections between the areas.

Four main areas TEV, Otra, Numedal and Term. One battery is connected

The areas TEV and Otra have aggregated hydro power, Numedal has detailed hydro power, Battery is a battery area, Term is an area with a load and an import option at a fixed price and volume. As an example of a HVDC cable connecting two areas within the AC-grid we have added a HVDC cable between Numedal and Otra (an analogous real world example is Sydvestlenken between SE3 and SE4). The Term area is connected by a HVDC cable. The loads of the system have simple seasonal variations, high load in the winter, low in the summer and medium load in the spring and fall. Stochastic inflow with 8 scenarios with seasonal variations, low in the winter, medium in the fall and high during spring and summer. The time resolution is set to 3 hours per time-step (prisavsnitt). An overview of the hydro power and battery specification is provided in the figure.

Adaptations of the system for the FBMC functionality

To apply the FBMC functionality we need FBMC-parameters as input to the EMPS simulation. Which requires:

  1. Bidding Zones defined based on available input FBMC-parameters (PTDFs) to the model.

  2. HVDC cables in the AC-grid might need it own FBMC-parameters based on virtual bidding zones (provided by for example JAO).

We put the end-points of the HVDC cable in their own EMPS areas as shown in the figure below.

Four main areas TEV, Otra, Numedal and Term. One battery is connected

This gives us the system areas shown in the table.

Areas and Area Numbers

AreaArea Number
Numedal1
TEV2
Otra3
Term4
Battery5
Numedal_HVDC6
Otra_HVDC7
TEV_HVDC8

This allows for the use of virtual bidding zones at the HVDC cable end-points such that they can apply their own FBMC-parameters (PTDFs). We define the bidding zones as shown in the figure below, where the area Term is outside the AC-grid.

Four main areas TEV, Otra, Numedal and Term. One battery is connected

The areas Numedal, TEV, Otra, Battery, Numedal_HVDC, Otra_HVDC and TEV_HVDC with area numbers 1, 2, 3, 5, 6, 7 and 8, respectively, are in the AC-grid. The area TEV has a Battery attached which is in the same bidding zone. The area Term on area 4 is not in the AC-grid. The system is now defined and the FBMC functionality can be applied.

The CNEs have the following PTDF matrix:

CNEs and PTDFs

CNEBidding_zone: from -> toN1N2N3N1_HVDCN2_HVDCN3_HVDC
1N1 -> N20.33-0.3300.33-0.330
2N2 -> N30.330.6600.330.660
3N3 -> N1-0.66-0.330-0.66-0.330
4N1_HVDC -> N10001.000
5N2_HVDC -> N200001.00
6N3_HVDC -> N3000001.0

meaning that a ΔNP=1\Delta NP=1 MW in bidding zone N1 causes a flow of 0.33 MW, 0.33 MW and -0.66 MW on CNEs 1,2 and 3 respectively.

Input FBMC

The input can be defined on json format. Necessary input is:

  1. Bidding Zones

  2. CNEs

Definition of the Bidding Zones in the ltmapimodel is shown below.

Bidding Zones
"bidding_zones": [
    {
        "#comment": "numedal",
        "name": "N1",
        "is_fbmc": true
    },
    {
        "#comment": "tev and battery",
        "name": "N2",
        "is_fbmc": true
    },
    {
        "#comment": "otra",
        "name": "N3",
        "is_fbmc": true
    },
    {
        "#comment": "HVDC numedal",
        "name": "N1_hvdc",
        "is_fbmc": true
    },
    {
        "#comment": "HVDC tev",
        "name": "N2_hvdc",
        "is_fbmc": true
    },
    {
        "#comment": "HVDC otra",
        "name": "N3_hvdc",
        "is_fbmc": true
    }
],

and the CNEs (collapsed):

CNEs
"cnes": [
    {
        "name": "N1-N2",
        "cnecName": "Test1",
        "biddingZoneFrom": "N1",
        "biddingZoneTo": "N2",
        "active": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    1
                ]
            ]
        },
        "ram": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    20.0
                ]
            ]
        },
        "ptdf": {
            "N1": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.33333,
                        0.33333
                    ]
                ]
            },
            "N2": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        -0.33333,
                        -0.33333
                    ]
                ]
            },
            "N3": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N1_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.33333,
                        0.33333
                    ]
                ]
            },
            "N2_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        -0.33333,
                        -0.33333
                    ]
                ]
            },
            "N3_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            }
        }
    },
    {
        "name": "N2-N3",
        "cnecName": "Test2",
        "biddingZoneFrom": "N2",
        "biddingZoneTo": "N3",
        "active": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    1
                ]
            ]
        },
        "ram": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    20.0
                ]
            ]
        },
        "ptdf": {
            "N1": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.33333,
                        0.33333
                    ]
                ]
            },
            "N2": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.66666,
                        0.66666
                    ]
                ]
            },
            "N3": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N1_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.33333,
                        0.33333
                    ]
                ]
            },
            "N2_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.66666,
                        0.66666
                    ]
                ]
            },
            "N3_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            }
        }
    },
    {
        "name": "N3-N1",
        "cnecName": "Test3",
        "biddingZoneFrom": "N3",
        "biddingZoneTo": "N1",
        "active": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    1
                ]
            ]
        },
        "ram": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    20.0
                ]
            ]
        },
        "ptdf": {
            "N1": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        -0.66666,
                        -0.66666
                    ]
                ]
            },
            "N2": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        -0.33333,
                        -0.33333
                    ]
                ]
            },
            "N3": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N1_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        -0.66666,
                        -0.66666
                    ]
                ]
            },
            "N2_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        -0.33333,
                        -0.33333
                    ]
                ]
            },
            "N3_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            }
        }
    },
    {
        "name": "N1_HVDC-N1",
        "cnecName": "Test3",
        "biddingZoneFrom": "N1_HVDC",
        "biddingZoneTo": "N1",
        "active": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    1
                ]
            ]
        },
        "ram": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    20.0
                ]
            ]
        },
        "ptdf": {
            "N1": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N2": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N3": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N1_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        1.0,
                        1.0
                    ]
                ]
            },
            "N2_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N3_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            }
        }
    },
    {
        "name": "N2_HVDC-N2",
        "cnecName": "Test3",
        "biddingZoneFrom": "N2_HVDC",
        "biddingZoneTo": "N2",
        "active": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    1
                ]
            ]
        },
        "ram": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    20.0
                ]
            ]
        },
        "ptdf": {
            "N1": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N2": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N3": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N1_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N2_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        1.0,
                        1.0
                    ]
                ]
            },
            "N3_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            }
        }
    },
    {
        "name": "N3_HVDC-N3",
        "cnecName": "Test3",
        "biddingZoneFrom": "N3_HVDC",
        "biddingZoneTo": "N3",
        "active": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    1
                ]
            ]
        },
        "ram": {
            "name": "",
            "timestamps": [
                "2025-02-13T00:00:00Z"
            ],
            "scenarios": [
                [
                    20.0
                ]
            ]
        },
        "ptdf": {
            "N1": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N2": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N3": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N1_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N2_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        0.0,
                        0.0
                    ]
                ]
            },
            "N3_HVDC": {
                "timestamps": [
                    "2025-02-12T23:00:00Z",
                    "2025-02-13T00:00:00Z"
                ],
                "scenarios": [
                    [
                        1.0,
                        1.0
                    ]
                ]
            }
        }
    }
]

All detailes of the system can be found in the fbmc_with_cnes.json file below.

Expand to see full JSON listings.
{
    "$schema": "model.schema.json",
    "model": {
        "global_settings": {
            "name": "fbmc",
            "output_path": "testout_fbmc/",
            "delete_output_dir": false,
            "generate_output_dir": true,
            "simulation_period": {
                "timestamps": [
                    "2024-W15",
                    "2026-W52"
                ]
            },
            "historical_period": {
                "timestamps": [
                    "1981-01-01T00:00:00Z",
                    "1989-01-01T00:00:00Z"
                ]
            },
            "precision": 0.001,
            "timesteps_per_week": 56,
            "default_spill_cost": 0.01,
            "default_load_penalty": 445.0
        },
        "bidding_zones": [
            {
                "#comment": "numedal",
                "name": "N1",
                "is_fbmc": true
            },
            {
                "#comment": "tev and battery",
                "name": "N2",
                "is_fbmc": true
            },
            {
                "#comment": "otra",
                "name": "N3",
                "is_fbmc": true
            },
            {
                "#comment": "HVDC numedal",
                "name": "N1_HVDC",
                "is_fbmc": true
            },
            {
                "#comment": "HVDC tev",
                "name": "N2_HVDC",
                "is_fbmc": true
            },
            {
                "#comment": "HVDC otra",
                "name": "N3_HVDC",
                "is_fbmc": true
            }
        ],
        "dclines": [
            {
                "name": "numedal-tev",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "tev-otra",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "numedal_hvdc-numedal",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "loss_percentage": 0.0,
                "forward_cost": 0.0,
                "backward_cost": 0.0
            },
            {
                "name": "otra_hvdc-numedal_hvdc",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "loss_percentage": 3.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "otra-numedal",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            5
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            5
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "tev_hvdc-term",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "loss_percentage": 3.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "tev_hvdc-tev",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            2
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            2
                        ]
                    ]
                },
                "loss_percentage": 3.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "otra_hvdc-otra",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20
                        ]
                    ]
                },
                "loss_percentage": 0.0,
                "forward_cost": 0.0,
                "backward_cost": 0.0
            },
            {
                "name": "tev-battery_area",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            2
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            2
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            }
        ],
        "loads": [
            {
                "#comment": "Gruppe 16",
                "name": "Seasonal variation",
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-03-01T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-09-01T00:00:00Z",
                        "2024-12-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-03-01T00:00:00Z",
                        "2025-06-01T00:00:00Z",
                        "2025-09-01T00:00:00Z",
                        "2025-12-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-03-01T00:00:00Z",
                        "2026-06-01T00:00:00Z",
                        "2026-09-01T00:00:00Z",
                        "2026-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10.50,
                            7.31,
                            4.52,
                            7.31,
                            12.10,
                            10.50,
                            7.31,
                            4.52,
                            7.31,
                            12.10,
                            10.50,
                            7.31,
                            4.52,
                            7.31,
                            12.10
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "Seasonal variation 2",
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-03-01T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-09-01T00:00:00Z",
                        "2024-12-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-03-01T00:00:00Z",
                        "2025-06-01T00:00:00Z",
                        "2025-09-01T00:00:00Z",
                        "2025-12-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-03-01T00:00:00Z",
                        "2026-06-01T00:00:00Z",
                        "2026-09-01T00:00:00Z",
                        "2026-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            15.0,
                            12.48,
                            4.99,
                            12.48,
                            18.0,
                            15.0,
                            12.48,
                            4.99,
                            12.48,
                            18.0,
                            15.0,
                            12.48,
                            4.99,
                            12.48,
                            18.0
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "Seasonal variation 3",
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-03-01T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-09-01T00:00:00Z",
                        "2024-12-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-03-01T00:00:00Z",
                        "2025-06-01T00:00:00Z",
                        "2025-09-01T00:00:00Z",
                        "2025-12-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-03-01T00:00:00Z",
                        "2026-06-01T00:00:00Z",
                        "2026-09-01T00:00:00Z",
                        "2026-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            13.0,
                            10.48,
                            8.99,
                            14.48,
                            18.0,
                            13.0,
                            10.48,
                            8.99,
                            14.48,
                            18.0,
                            13.0,
                            10.48,
                            8.99,
                            14.48,
                            18.0
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "Seasonal var TERM",
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-03-01T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-09-01T00:00:00Z",
                        "2024-12-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-03-01T00:00:00Z",
                        "2025-06-01T00:00:00Z",
                        "2025-09-01T00:00:00Z",
                        "2025-12-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-03-01T00:00:00Z",
                        "2026-06-01T00:00:00Z",
                        "2026-09-01T00:00:00Z",
                        "2026-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            2.10,
                            1.31,
                            0.52,
                            1.31,
                            2.10,
                            2.10,
                            1.31,
                            0.52,
                            1.31,
                            2.10,
                            2.10,
                            1.31,
                            0.52,
                            1.31,
                            2.10
                        ]
                    ]
                }
            }
        ],
        "market_steps": [
            {
                "#comment": "type: market_step",
                "name": "repurchase",
                "load_name": "Seasonal variation 3",
                "price": {
                    "#comment": "type: time series / txy",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-03-01T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-09-01T00:00:00Z",
                        "2024-12-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-03-01T00:00:00Z",
                        "2025-06-01T00:00:00Z",
                        "2025-09-01T00:00:00Z",
                        "2025-12-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-03-01T00:00:00Z",
                        "2026-06-01T00:00:00Z",
                        "2026-09-01T00:00:00Z",
                        "2026-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            60,
                            58,
                            60,
                            56,
                            55,
                            59,
                            60,
                            55,
                            70,
                            65,
                            50,
                            70,
                            62,
                            61,
                            57
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-03-01T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-09-01T00:00:00Z",
                        "2024-12-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-03-01T00:00:00Z",
                        "2025-06-01T00:00:00Z",
                        "2025-09-01T00:00:00Z",
                        "2025-12-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-03-01T00:00:00Z",
                        "2026-06-01T00:00:00Z",
                        "2026-09-01T00:00:00Z",
                        "2026-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            7.0,
                            5.48,
                            4.99,
                            7.48,
                            9.0,
                            7.0,
                            5.48,
                            4.99,
                            7.48,
                            9.0,
                            7.0,
                            5.48,
                            4.99,
                            7.48,
                            9.0
                        ]
                    ]
                }
            },
            {
                "#comment": "type: market_step",
                "name": "IMPORT",
                "price": {
                    "#comment": "type: time series / txy",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50,
                            25,
                            40,
                            50,
                            25,
                            40,
                            50,
                            25,
                            40
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            7,
                            9,
                            5,
                            7,
                            9,
                            5,
                            7,
                            9,
                            5
                        ]
                    ]
                }
            },
            {
                "#comment": "type: market_step",
                "name": "IMPORT numedal",
                "price": {
                    "#comment": "type: time series / txy",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            70,
                            25,
                            80,
                            70,
                            25,
                            80,
                            70,
                            25,
                            80
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            6,
                            4,
                            7,
                            6,
                            4,
                            7,
                            6,
                            4,
                            7
                        ]
                    ]
                }
            },
            {
                "#comment": "type: market_step",
                "name": "IMPORT term",
                "price": {
                    "#comment": "type: time series / txy",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50,
                            25,
                            40,
                            50,
                            25,
                            40,
                            50,
                            25,
                            40
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            15,
                            20,
                            12,
                            15,
                            20,
                            12,
                            15,
                            20,
                            12
                        ]
                    ]
                }
            },
            {
                "#comment": "type: market_step",
                "name": "Export",
                "price": {
                    "#comment": "type: time series / txy",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50,
                            25,
                            40,
                            50,
                            25,
                            40,
                            50,
                            25,
                            40
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            -2,
                            -3,
                            -3,
                            -2,
                            -3,
                            -3,
                            -2,
                            -3,
                            -3
                        ]
                    ]
                }
            },
            {
                "#comment": "type: market_step",
                "name": "Export term",
                "price": {
                    "#comment": "type: time series / txy",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50,
                            25,
                            40,
                            50,
                            25,
                            40,
                            50,
                            25,
                            40
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-10-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2025-04-01T00:00:00Z",
                        "2025-10-01T00:00:00Z",
                        "2026-01-01T00:00:00Z",
                        "2026-04-01T00:00:00Z",
                        "2026-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            -2,
                            -3,
                            -3,
                            -2,
                            -3,
                            -3,
                            -2,
                            -3,
                            -3
                        ]
                    ]
                }
            }
        ],
        "inflow_series": [
            {
                "name": "yearly_inflow_profile",
                "series": {
                    "timestamps": [
                        "1981-01-01T00:00:00Z",
                        "1981-05-01T00:00:00Z",
                        "1981-09-01T00:00:00Z",
                        "1982-01-01T00:00:00Z",
                        "1982-05-01T00:00:00Z",
                        "1982-09-01T00:00:00Z",
                        "1983-01-01T00:00:00Z",
                        "1983-05-01T00:00:00Z",
                        "1983-09-01T00:00:00Z",
                        "1984-01-01T00:00:00Z",
                        "1984-05-01T00:00:00Z",
                        "1984-09-01T00:00:00Z",
                        "1985-01-01T00:00:00Z",
                        "1985-05-01T00:00:00Z",
                        "1985-09-01T00:00:00Z",
                        "1986-01-01T00:00:00Z",
                        "1986-05-01T00:00:00Z",
                        "1986-09-01T00:00:00Z",
                        "1987-01-01T00:00:00Z",
                        "1987-05-01T00:00:00Z",
                        "1987-09-01T00:00:00Z",
                        "1988-01-01T00:00:00Z",
                        "1988-05-01T00:00:00Z",
                        "1988-09-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.47,
                            1.79,
                            0.80,
                            0.49,
                            1.67,
                            0.90,
                            0.40,
                            1.45,
                            0.75,
                            0.43,
                            1.33,
                            0.76,
                            0.39,
                            1.25,
                            0.69,
                            0.46,
                            1.40,
                            0.81,
                            0.44,
                            1.72,
                            0.94,
                            0.43,
                            1.67,
                            0.73
                        ]
                    ]
                }
            }
        ],
        "reservoirs": [
            {
                "name": "LABRO",
                "average_regulated_inflow": 0.8,
                "degree_of_regulation": 2,
                "initial_volume": 60,
                "max_discharge": 30,
                "reference_curve": {
                    "timestamps": [
                        "2024-04-29T00:00:00Z",
                        "2024-06-03T00:00:00Z",
                        "2024-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.0,
                            35.0,
                            75.0
                        ]
                    ]
                },
                "regulated_inflow_name": "yearly_inflow_profile",
                "gross_head": 40.0,
                "tailrace_elevation": 1030,
                "volume_curve": {
                    "x": [
                        1050,
                        1100
                    ],
                    "y": [
                        0,
                        100
                    ]
                }
            },
            {
                "name": "VITTINGFOSS",
                "average_regulated_inflow": 0.8,
                "degree_of_regulation": 2,
                "initial_volume": 60,
                "max_discharge": 20,
                "reference_curve": {
                    "timestamps": [
                        "2024-04-29T00:00:00Z",
                        "2024-06-03T00:00:00Z",
                        "2024-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.0,
                            35.0,
                            75.0
                        ]
                    ]
                },
                "regulated_inflow_name": "yearly_inflow_profile",
                "gross_head": 40.0,
                "tailrace_elevation": 1030,
                "volume_curve": {
                    "x": [
                        1050,
                        1100
                    ],
                    "y": [
                        0,
                        100
                    ]
                }
            }
        ],
        "plants": [
            {
                "name": "LABRO_plant",
                "average_energy_equivalent": 0.12,
                "discharge_energy_equivalent": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.12
                        ]
                    ]
                },
                "pq_curves": {
                    "2024-01-01T00:00:00Z": {
                        "y": [
                            0.0,
                            9.89
                        ],
                        "x": [
                            0.0,
                            24.6
                        ]
                    }
                },
                "average_unregulated_inflow": 0.6,
                "unregulated_inflow_name": "yearly_inflow_profile",
                "min_discharge_curve": {
                    "timestamps": [
                        "2024-W01",
                        "2024-W26",
                        "2024-W52"
                    ],
                    "scenarios": [
                        [
                            0.5,
                            1.0,
                            0.5
                        ]
                    ]
                },
                "max_discharge_curve": {
                    "timestamps": [
                        "2024-W01",
                        "2024-W26",
                        "2024-W52"
                    ],
                    "scenarios": [
                        [
                            2.0,
                            5.0,
                            2.0
                        ]
                    ]
                },
                "min_bypass_curve": {
                    "timestamps": [
                        "2024-W01",
                        "2024-W13",
                        "2024-W25",
                        "2024-W37",
                        "2024-W52"
                    ],
                    "scenarios": [
                        [
                            0.1,
                            0.2,
                            0.1,
                            0.4,
                            0.2
                        ]
                    ]
                },
                "max_bypass_curve": {
                    "timestamps": [
                        "2024-W01",
                        "2024-W13",
                        "2024-W25",
                        "2024-W37",
                        "2024-W52",
                        "2025-W03",
                        "2025-W25",
                        "2025-W52"
                    ],
                    "scenarios": [
                        [
                            500.0,
                            450.0,
                            400.0,
                            550.0,
                            450.0,
                            500.0,
                            400.0,
                            350.0
                        ]
                    ]
                }
            },
            {
                "name": "VITTINGFOSS_plant",
                "average_energy_equivalent": 0.12,
                "discharge_energy_equivalent": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.12
                        ]
                    ]
                },
                "pq_curves": {
                    "2024-01-01T00:00:00Z": {
                        "y": [
                            0.0,
                            9.89
                        ],
                        "x": [
                            0.0,
                            24.6
                        ]
                    }
                },
                "average_unregulated_inflow": 0.7,
                "unregulated_inflow_name": "yearly_inflow_profile"
            }
        ],
        "aggregated_hydro_modules": [
            {
                "name": "tev_enmag_aggregated",
                "reservoir_energy": 100000.0,
                "station_power": 23.0,
                "start_reservoir_energy": 60000,
                "regulated_power_inflow": {
                    "#comment": "R30 - GWh/uke i datafil, input i MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-05-01T00:00:00Z",
                        "2024-09-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            6.89202380952,
                            19.11273809524,
                            10.95738095238
                        ],
                        [
                            6.05464285714,
                            18.55982142857,
                            10.65779761905
                        ],
                        [
                            5.84619047619,
                            15.35976190476,
                            9.89357142857
                        ],
                        [
                            6.46202380952,
                            17.51803571429,
                            9.60244047619
                        ],
                        [
                            7.14827380952,
                            16.03315476190,
                            9.12244047619
                        ],
                        [
                            7.14660714286,
                            17.64208333333,
                            11.55101190476
                        ],
                        [
                            6.47934523810,
                            18.45386904762,
                            10.90172619048
                        ],
                        [
                            6.79904761905,
                            17.14916666667,
                            10.31136904762
                        ]
                    ]
                },
                "unregulated_power_inflow": {
                    "#comment": "U30 - GWh/uke i datafil, input in MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-05-01T00:00:00Z",
                        "2024-09-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.07178571429,
                            0.09660714286,
                            0.04863095238
                        ],
                        [
                            0.05994047619,
                            0.10880952381,
                            0.05476190476
                        ],
                        [
                            0.07160714286,
                            0.11976190476,
                            0.05410714286
                        ],
                        [
                            0.05976190476,
                            0.13190476190,
                            0.04827380952
                        ],
                        [
                            0.06000000000,
                            0.12089285714,
                            0.05494047619
                        ],
                        [
                            0.06577380952,
                            0.13208333333,
                            0.03654761905
                        ],
                        [
                            0.05982142857,
                            0.01303571429,
                            0.03059523810
                        ],
                        [
                            0.06571428571,
                            0.12583333333,
                            0.05416666667
                        ]
                    ]
                },
                "upper_reservoir_limits": {
                    "#comment": "Manually adjusted upper reserveroir limits, MWh",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            95000
                        ]
                    ]
                },
                "lower_reservoir_limits": {
                    "#comment": "Manually adjusted lower reserveroir limits, MWh",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            7000
                        ]
                    ]
                },
                "upper_production_limits": {
                    "#comment": "Manually adjusted upper production limits, MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            23
                        ]
                    ]
                },
                "lower_production_limits": {
                    "#comment": "Manually adjusted lower production limits, MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0
                        ]
                    ]
                }
            },
            {
                "name": "otra_enmag_aggregated",
                "reservoir_energy": 100000.0,
                "station_power": 18.0,
                "start_reservoir_energy": 40000,
                "regulated_power_inflow": {
                    "#comment": "R30 - GWh/uke i datafil, input i MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-04-01T00:00:00Z",
                        "2024-09-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            6.89202380952,
                            19.11273809524,
                            10.95738095238
                        ],
                        [
                            6.05464285714,
                            18.55982142857,
                            10.65779761905
                        ],
                        [
                            5.84619047619,
                            15.35976190476,
                            9.89357142857
                        ],
                        [
                            6.46202380952,
                            17.51803571429,
                            9.60244047619
                        ],
                        [
                            7.14827380952,
                            16.03315476190,
                            9.12244047619
                        ],
                        [
                            7.14660714286,
                            17.64208333333,
                            11.55101190476
                        ],
                        [
                            6.47934523810,
                            18.45386904762,
                            10.90172619048
                        ],
                        [
                            6.79904761905,
                            17.14916666667,
                            10.31136904762
                        ]
                    ]
                },
                "unregulated_power_inflow": {
                    "#comment": "U30 - GWh/uke i datafil, input in MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-05-01T00:00:00Z",
                        "2024-09-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.03607142857,
                            0.12636904762,
                            0.01022023810
                        ],
                        [
                            0.04208333333,
                            0.14452380952,
                            0.12023809524
                        ],
                        [
                            0.01803571429,
                            0.06078571429,
                            0.05410714286
                        ],
                        [
                            0.02404761905,
                            0.09619047619,
                            0.06613095238
                        ],
                        [
                            0.04809523810,
                            0.12684523810,
                            0.09065476190
                        ],
                        [
                            0.03005952381,
                            0.11422619048,
                            0.08416666667
                        ],
                        [
                            0.03005952381,
                            0.11422619048,
                            0.07821428571
                        ],
                        [
                            0.02404761905,
                            0.08416666667,
                            0.06011904762
                        ]
                    ]
                },
                "upper_reservoir_limits": {
                    "#comment": "Manually adjusted upper reserveroir limits, MWh",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            100000
                        ]
                    ]
                },
                "lower_reservoir_limits": {
                    "#comment": "Manually adjusted lower reserveroir limits, MWh",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1000
                        ]
                    ]
                },
                "upper_production_limits": {
                    "#comment": "Manually adjusted upper production limits, MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            18
                        ]
                    ]
                },
                "lower_production_limits": {
                    "#comment": "Manually adjusted lower production limits, MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0
                        ]
                    ]
                }
            }
        ],
        "batteries": [
            {
                "name": "battery",
                "start_battery_energy": 0,
                "charging_efficiency": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-06-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1.0,
                            1.0
                        ]
                    ]
                },
                "max_charging_power": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-06-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50.0,
                            50.0
                        ]
                    ]
                },
                "charging_cost": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-06-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            5.0,
                            5.0
                        ]
                    ]
                },
                "endvalue_type": 1,
                "max_energy_level": {
                    "#comment": "Manually adjusted upper reserveroir limits, GWh",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-06-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            2500,
                            2400
                        ]
                    ]
                },
                "min_energy_level": {
                    "#comment": "Manually adjusted lower reserveroir limits, GWh",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.5
                        ]
                    ]
                },
                "max_discharge_power": {
                    "#comment": "Manually adjusted upper production limits, MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            40
                        ]
                    ]
                },
                "min_discharge_power": {
                    "#comment": "Manually adjusted lower production limits, MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0
                        ]
                    ]
                },
                "exogenous_endvalue": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2024-06-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1,
                            1
                        ],
                        [
                            2,
                            2
                        ],
                        [
                            3,
                            3
                        ],
                        [
                            4,
                            4
                        ],
                        [
                            5,
                            5
                        ],
                        [
                            6,
                            6
                        ],
                        [
                            7,
                            7
                        ],
                        [
                            8,
                            8
                        ],
                        [
                            9,
                            9
                        ],
                        [
                            10,
                            10
                        ],
                        [
                            11,
                            11
                        ],
                        [
                            12,
                            12
                        ],
                        [
                            13,
                            13
                        ],
                        [
                            14,
                            14
                        ],
                        [
                            15,
                            15
                        ],
                        [
                            16,
                            16
                        ],
                        [
                            17,
                            17
                        ],
                        [
                            18,
                            18
                        ],
                        [
                            19,
                            19
                        ],
                        [
                            20,
                            20
                        ],
                        [
                            21,
                            21
                        ],
                        [
                            22,
                            22
                        ],
                        [
                            23,
                            23
                        ],
                        [
                            24,
                            24
                        ],
                        [
                            25,
                            25
                        ],
                        [
                            26,
                            26
                        ],
                        [
                            27,
                            27
                        ],
                        [
                            28,
                            28
                        ],
                        [
                            29,
                            29
                        ],
                        [
                            30,
                            30
                        ],
                        [
                            31,
                            31
                        ],
                        [
                            32,
                            32
                        ],
                        [
                            33,
                            33
                        ],
                        [
                            34,
                            34
                        ],
                        [
                            35,
                            35
                        ],
                        [
                            36,
                            36
                        ],
                        [
                            37,
                            37
                        ],
                        [
                            38,
                            38
                        ],
                        [
                            39,
                            39
                        ],
                        [
                            40,
                            40
                        ],
                        [
                            41,
                            41
                        ],
                        [
                            42,
                            42
                        ],
                        [
                            43,
                            43
                        ],
                        [
                            44,
                            44
                        ],
                        [
                            45,
                            45
                        ],
                        [
                            46,
                            46
                        ],
                        [
                            47,
                            47
                        ],
                        [
                            48,
                            48
                        ],
                        [
                            49,
                            49
                        ],
                        [
                            50,
                            50
                        ],
                        [
                            51,
                            51
                        ]
                    ]
                }
            }
        ],
        "areas": [
            {
                "name": "numedal"
            },
            {
                "name": "tev"
            },
            {
                "name": "otra"
            },
            {
                "name": "term"
            },
            {
                "name": "battery_area"
            },
            {
                "name": "numedal_hvdc"
            },
            {
                "name": "otra_hvdc"
            },
            {
                "name": "tev_hvdc"
            }
        ],
        "connections": [
            {
                "from": "WIND_TEST_01",
                "to": "tev"
            },
            {
                "from": "Seasonal variation",
                "to": "numedal"
            },
            {
                "from": "Seasonal variation 2",
                "to": "tev"
            },
            {
                "from": "Seasonal variation 3",
                "to": "otra"
            },
            {
                "from": "repurchase",
                "to": "otra"
            },
            {
                "from": "Seasonal var TERM",
                "to": "term"
            },
            {
                "from": "numedal",
                "to": "numedal-tev"
            },
            {
                "from": "numedal-tev",
                "to": "tev"
            },
            {
                "from": "VITTINGFOSS",
                "to": "numedal"
            },
            {
                "from": "VITTINGFOSS",
                "to": "VITTINGFOSS_plant"
            },
            {
                "from": "LABRO",
                "to": "numedal"
            },
            {
                "from": "LABRO",
                "to": "LABRO_plant"
            },
            {
                "from": "tev_enmag_aggregated",
                "to": "tev"
            },
            {
                "from": "otra_enmag_aggregated",
                "to": "otra"
            },
            {
                "from": "tev",
                "to": "tev-battery_area"
            },
            {
                "from": "tev-battery_area",
                "to": "battery_area"
            },
            {
                "from": "battery",
                "to": "battery_area"
            },
            {
                "from": "tev",
                "to": "tev-otra"
            },
            {
                "from": "tev_hvdc",
                "to": "tev_hvdc-tev"
            },
            {
                "from": "tev_hvdc-tev",
                "to": "tev"
            },
            {
                "from": "tev_hvdc-term",
                "to": "term"
            },
            {
                "from": "tev_hvdc",
                "to": "tev_hvdc-term"
            },
            {
                "from": "tev-otra",
                "to": "otra"
            },
            {
                "from": "otra_hvdc",
                "to": "otra_hvdc-otra"
            },
            {
                "from": "otra_hvdc-otra",
                "to": "otra"
            },
            {
                "from": "numedal_hvdc",
                "to": "numedal_hvdc-numedal"
            },
            {
                "from": "numedal_hvdc-numedal",
                "to": "numedal"
            },
            {
                "from": "otra_hvdc",
                "to": "otra_hvdc-numedal_hvdc"
            },
            {
                "from": "otra_hvdc-numedal_hvdc",
                "to": "numedal_hvdc"
            },
            {
                "from": "otra",
                "to": "otra-numedal"
            },
            {
                "from": "otra-numedal",
                "to": "numedal"
            },
            {
                "from": "IMPORT numedal",
                "to": "numedal"
            },
            {
                "from": "IMPORT",
                "to": "otra"
            },
            {
                "from": "Export",
                "to": "otra"
            },
            {
                "from": "IMPORT term",
                "to": "term"
            },
            {
                "from": "Export term",
                "to": "term"
            },
            {
                "from": "numedal",
                "to": "N1"
            },
            {
                "from": "tev",
                "to": "N2"
            },
            {
                "from": "battery_area",
                "to": "N2"
            },
            {
                "from": "otra",
                "to": "N3"
            },
            {
                "from": "numedal_hvdc",
                "to": "N1_HVDC"
            },
            {
                "from": "tev_hvdc",
                "to": "N2_HVDC"
            },
            {
                "from": "otra_hvdc",
                "to": "N3_HVDC"
            }
        ],
        "wind": [
            {
                "name": "WIND_TEST_01",
                "capacity": {
                    "timestamps": [
                        "1981-01-01T00:00:00Z",
                        "1981-01-03T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.1,
                            0.1
                        ],
                        [
                            0.2,
                            0.2
                        ],
                        [
                            0.3,
                            0.3
                        ],
                        [
                            0.4,
                            0.4
                        ],
                        [
                            0.5,
                            0.5
                        ],
                        [
                            0.6,
                            0.6
                        ],
                        [
                            0.7,
                            0.7
                        ],
                        [
                            0.8,
                            0.8
                        ]
                    ]
                }
            }
        ],
        "cnes": [
            {
                "name": "N1-N2",
                "active": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1
                        ]
                    ]
                },
                "ram": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20.0
                        ]
                    ]
                },
                "ptdf": {
                    "N1": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.33333,
                                0.33333
                            ]
                        ]
                    },
                    "N2": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                -0.33333,
                                -0.33333
                            ]
                        ]
                    },
                    "N3": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N1_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.33333,
                                0.33333
                            ]
                        ]
                    },
                    "N2_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                -0.33333,
                                -0.33333
                            ]
                        ]
                    },
                    "N3_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    }
                }
            },
            {
                "name": "N2-N3",
                "active": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1
                        ]
                    ]
                },
                "ram": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20.0
                        ]
                    ]
                },
                "ptdf": {
                    "N1": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.33333,
                                0.33333
                            ]
                        ]
                    },
                    "N2": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.66666,
                                0.66666
                            ]
                        ]
                    },
                    "N3": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N1_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.33333,
                                0.33333
                            ]
                        ]
                    },
                    "N2_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.66666,
                                0.66666
                            ]
                        ]
                    },
                    "N3_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    }
                }
            },
            {
                "name": "N3-N1",
                "active": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1
                        ]
                    ]
                },
                "ram": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20.0
                        ]
                    ]
                },
                "ptdf": {
                    "N1": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                -0.66666,
                                -0.66666
                            ]
                        ]
                    },
                    "N2": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                -0.33333,
                                -0.33333
                            ]
                        ]
                    },
                    "N3": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N1_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                -0.66666,
                                -0.66666
                            ]
                        ]
                    },
                    "N2_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                -0.33333,
                                -0.33333
                            ]
                        ]
                    },
                    "N3_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    }
                }
            },
            {
                "name": "N1_HVDC-N1",
                "active": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1
                        ]
                    ]
                },
                "ram": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20.0
                        ]
                    ]
                },
                "ptdf": {
                    "N1": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N2": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N3": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N1_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                1.0,
                                1.0
                            ]
                        ]
                    },
                    "N2_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N3_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    }
                }
            },
            {
                "name": "N2_HVDC-N2",
                "active": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1
                        ]
                    ]
                },
                "ram": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20.0
                        ]
                    ]
                },
                "ptdf": {
                    "N1": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N2": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N3": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N1_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N2_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                1.0,
                                1.0
                            ]
                        ]
                    },
                    "N3_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    }
                }
            },
            {
                "name": "N3_HVDC-N3",
                "active": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1
                        ]
                    ]
                },
                "ram": {
                    "name": "",
                    "timestamps": [
                        "2025-02-13T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            20.0
                        ]
                    ]
                },
                "ptdf": {
                    "N1": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N2": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N3": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N1_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N2_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                0.0,
                                0.0
                            ]
                        ]
                    },
                    "N3_HVDC": {
                        "timestamps": [
                            "2025-02-12T23:00:00Z",
                            "2025-02-13T00:00:00Z"
                        ],
                        "scenarios": [
                            [
                                1.0,
                                1.0
                            ]
                        ]
                    }
                }
            }
        ]
    }
}

Results

The link below takes you to a (static) notebook where LTM-API have been run using the fbmc_with_cnes.json file as input. The notebook contains the result from the EMPS show in a set of figures.