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.

Detailed grid example

This example demonstrates how to configure and run an EMPS simulation with detailed grid functionality (Samnett) using the LtmApi. The detailed grid functionality (Samnett) enables explicit modelling of the AC transmission network in EMPS. The example introduces the required objects, explains their purpose, and shows how they are combined to represent a simple transmission network.

The completed model contains:

The resulting input file can be executed directly with the LtmApi and EMPS detailed grid functionality.

Modelling of detailed grid

The following LtmApi objects are used when modelling and running simulations with detailed grid functionality:

Examples for each object are provided using the power system described below.

Example power system in the EMPS

The example system consists of six areas. Four areas (Numedal, TEV, Otra and Osen) are included in the detailed grid, while two areas (Thermal1 and Thermal2) are located outside.

Two HVDC connections are included:

TEV and Otra contain aggregated hydropower production, while Numedal contains detailed hydropower representation. Osen, Thermal1 and Thermal2 contain loads and import opportunities represented by fixed-price market steps.

The load follows a simple seasonal pattern with high demand during winter, low demand during summer and intermediate demand during spring and autumn. Stochastic inflow is represented by eight scenarios with seasonal variation.

The simulation uses a temporal resolution of three hours per time step (prisavsnitt).

Six areas TEV, Otra, Numedal, Osen, Termal1 and Thermal2

Specifying the detailed grid

The detailed grid and the electrical division of areas are specified by the areas object of the LtmApi. See activate detailed grid.

Define detailed grid areas

Four areas in the detailed grid containing detailed grid and two areas outside the detailed grid

"areas": [
    {
        "name": "thermal2"
    },
    {
        "name": "numedal",
        "has_detailed_grid": true
    },
    {
        "name": "tev",
        "has_detailed_grid": true
    },
    {
        "name": "otra",
        "has_detailed_grid": true
    },
    {
        "name": "osen",
        "has_detailed_grid": true
    },
    {
        "name": "thermal1"
    }
],

Run configuration

This object controls the options for simulations with detailed grid. The Run Config is defined as shown below. In this example only basic functionality is activated. All available options are included in the example, including keys with default values for illustration. The swing-bus is defined on busbar 2040 in the area TEV.

Run_config

run_config example

"run_config": [
    {
        "name": "rc",
        "bus_number_swingbus_area_1": 2040,
        "include_shunt_elements": false,
        "include_phase_shifter_in_loadflow_file": false,
        "loss_calculation": false,
        "marginal_loss_calculation": false,
        "nordel_loss_functionality": false,
        "print_fbmc_parameters": false,
        "successive_LP": false,
        "add_all_power_flow_constraints": false,
        "accepted_overload": 1.1,
        "relax_maske_bounds": "none",
        "print_power_balance_mismatch_tolerance": 100.0,
        "ptdf_weight": "flat",
        "max_grid_iterations": 15,
        "loss_voltage_limit": 220
    }
]

Grid description

The grid description is provided by the objects:

Line objects

The Line is used for adding lines to the LtmApi model. Below is an example for adding a line for the interconnection of the areas numedal and tev. The line name is numedal to tev. Busbar with id 1339 is located in numedal and busbar with id 2040 is located in tev (and is also the swing-bus). The resistance is 2.0 Ohm, the reactance is 15.0 Ohm and the base_voltage is 420 kV.

Line example

Line example

"lines": [
    {
        "name": "numedal to tev",
        "from_busbar_id": 1339,
        "to_busbar_id": 2040,
        "resistance": 2.0,
        "reactance": 15.0,
        "base_voltage": 420.0
    }
]

In addition, all other lines shown in the example must be added to the model.

The complete set of line definitions is shown below.

All lines
"lines": [
    {
        "name": "numedal to tev",
        "from_busbar_id": 1339,
        "to_busbar_id": 2040,
        "resistance": 2.0,
        "reactance": 15.0,
        "base_voltage": 420.0
    },
    {
        "name": "numedal to otra",
        "from_busbar_id": 1340,
        "to_busbar_id": 3041,
        "resistance": 1.6,
        "reactance": 7.8,
        "base_voltage": 420.0
    },
    {
        "name": "otra to osen",
        "from_busbar_id": 3081,
        "to_busbar_id": 4080,
        "resistance": 5.6,
        "reactance": 27.0,
        "base_voltage": 420.0
    },
    {
        "name": "tev to osen",
        "from_busbar_id": 2041,
        "to_busbar_id": 4011,
        "resistance": 1.20,
        "reactance": 10.2,
        "base_voltage": 420.0
    },
    {
        "name": "numedal intern",
        "from_busbar_id": 1339,
        "to_busbar_id": 1338,
        "resistance": 0.4,
        "reactance": 5.1,
        "base_voltage": 420.0
    },
    {
        "name": "numedal intern 2",
        "from_busbar_id": 1338,
        "to_busbar_id": 1340,
        "resistance": 0.2,
        "reactance": 2.0,
        "base_voltage": 420.0
    },
    {
        "name": "tev intern",
        "from_busbar_id": 2040,
        "to_busbar_id": 2041,
        "resistance": 1.0,
        "reactance": 1.9,
        "base_voltage": 420.0
    },
    {
        "name": "otra intern",
        "from_busbar_id": 3041,
        "to_busbar_id": 3073,
        "resistance": 0.14,
        "reactance": 2.045,
        "base_voltage": 420.0
    },
    {
        "name": "otra intern 2",
        "from_busbar_id": 3073,
        "to_busbar_id": 3081,
        "resistance": 1.0,
        "reactance": 3.0,
        "base_voltage": 420.0
    },
    {
        "name": "osen intern",
        "from_busbar_id": 4011,
        "to_busbar_id": 4010,
        "resistance": 0.5,
        "reactance": 3.03,
        "base_voltage": 420.0
    },
    {
        "name": "otra intern 3",
        "from_busbar_id": 4010,
        "to_busbar_id": 4080,
        "resistance": 5.3,
        "reactance": 34.4,
        "base_voltage": 420.0
    },
    {
        "name": "numedal to tev parallell",
        "from_busbar_id": 1339,
        "to_busbar_id": 2040,
        "resistance": 2.0,
        "reactance": 15.0,
        "base_voltage": 420.0
    }
]

Two winding transformer objects

The Two Winding Transformer is used to add two-winding transformers to the LtmApi model. The example below adds a two-winding transformer.

The two_winding_transformer name is trafo numedal. Busbars with from_busbar_id = 1340 and to_busbar_id = 1373 are both located in numedal. The short_circuit_voltage_real = 1 %, short_circuit_voltage_imaginary = 5 %.

The rated_power = 420 kV, the rated_voltage_regulating = 420 kV, the rated_voltage_firm = 320 kV, the base_voltage_regulating = 420 kV and the base_voltage_firm = 320 kV.

Two winding transformer example

Two winding transformer example

"two_winding_transformers": [
    {
        "name": "trafo numedal",
        "from_busbar_id": 1340,
        "to_busbar_id": 1373,
        "short_circuit_voltage_real": 1,
        "short_circuit_voltage_imaginary": 5,
        "rated_power": 420,
        "rated_voltage_regulating": 420,
        "rated_voltage_firm": 320,
        "base_voltage_regulating": 420,
        "base_voltage_firm": 320
    },
    {
        "name": "trafo osen",
        "from_busbar_id": 4010,
        "to_busbar_id": 4073,
        "short_circuit_voltage_real": 1,
        "short_circuit_voltage_imaginary": 5,
        "rated_power": 420,
        "rated_voltage_regulating": 420,
        "rated_voltage_firm": 320,
        "base_voltage_regulating": 420,
        "base_voltage_firm": 320
    }
],

Busbar objects

The Busbar is used for adding busbars with non-default values to the LtmApi model. The Line and Two Winding Transformer objects automatically add any referenced busbars using default values. Below is an example for adding a busbar.

The busbar_id is 1339. Busbar with id 1339 is located in numedal. The load_weight = 5.2 is the share of the area load on the busbar. The hydro_plant_weights shows the busbar has two hydropower plants connected, the LABRO_plant = 24.6 and the VITTINGFOSS_plant = 14.6, with the defined share of power generation allocated. The market_step_weights has the market_step IMPORT numedal connected with a share of 3.0.

The VITTINGFOSS_plant is also connected to the busbar with busbar_id = 1340 where the share of hydropower generation is 10.0. In this example the sum of shares is equal to the hydropower plant’s maximum generation capacity. This busbar also has a load_weight = 7.0. The total load in the area is distributed according the load weight of the busbars in the area.

The resistance is 2.0 Ohm, the reactance is 15.0 Ohm and the base_voltage is 420 kV.

Busbar example

Busbar example

"busbars": [
    {
        "busbar_id": 1339,
        "load_weight": 5.2,
        "hydro_plant_weights": {
            "LABRO_plant": 24.6,
            "VITTINGFOSS_plant": 14.6
        },
        "market_step_weights": {
            "IMPORT numedal": 3.0
        }
    },
    {
        "busbar_id": 1340,
        "load_weight": 7.0,
        "hydro_plant_weights": {
            "VITTINGFOSS_plant": 10.0
        }
    }
]

In addition all other busbars shown in the example must be added to the model. The full example (collapsed) of busbars is show below, click arrow to open:

Busbars with non-default values
"busbars": [
    {
        "busbar_id": 1339,
        "load_weight": 5.2,
        "hydro_plant_weights": {
            "LABRO_plant": 24.6,
            "VITTINGFOSS_plant": 14.6
        },
        "market_step_weights": {
            "IMPORT numedal": 3.0
        }
    },
    {
        "busbar_id": 1340,
        "load_weight": 7.0,
        "hydro_plant_weights": {
            "VITTINGFOSS_plant": 10.0
        }
    },
    {
        "busbar_id": 2040,
        "load_weight": 0.0,
        "market_step_weights": {
            "Export tev": 1.0
        }
    },
    {
        "busbar_id": 3041,
        "load_weight": 0.2,
        "market_step_weights": {
            "Export otra": 3.0
        },
        "wind_park_weights": {
            "ucg_otra": 1.2
        }
    },
    {
        "busbar_id": 3081,
        "load_weight": 0.2,
        "market_step_weights": {
            "IMPORT otra": 2.0
        }
    },
    {
        "busbar_id": 3073,
        "load_weight": 0.2,
        "market_step_weights": {
            "IMPORT otra": 1.0
        }
    },
    {
        "busbar_id": 4011,
        "load_weight": 1.4,
        "market_step_weights": {
            "import_osen": 3.0
        }
    },
    {
        "busbar_id": 4073,
        "load_weight": 0.2,
        "market_step_weights": {
            "Export_osen": 3.0
        }
    }
],

Grid monitoring

The Monitored Network Element (MNE) is used to monitor power flows across selected grid interconnections and define time-dependent trade capacities between areas. The time-dependent trade capacities on the monitored_network_elements are specified per week. See Line outage for the option of specifying outages which changes the grid topology and allows for outages on a finer time resolution.

For every dcline connecting two areas within the detailed grid, a corresponding pure MNE must be defined.

The required relationship between dclines and MNEs is shown below.

dclines

Area name: from - toArea number: from - toMax forward capacityMax backward capacity
numedal - tev1 - 22020
numedal - otra1 - 32020
otra - osen3 - 41010
tev - osen2 - 42020

with the corresponding required MNEs:

mnes

Area name: from - toArea number: from - toMax forward capacityMax backward capacity
numedal - tev1 - 24143
numedal - otra1 - 34242
otra - osen3 - 43946
tev - osen2 - 44045

The required MNEs could ideally be added by the LtmApi automatically, but for now they are required input.

The example below illustrates how to add a MNEs for the interconnection between numedal and otra. The object name is mne_numedal-otra. The MNE has connections in from_area = numedal and to_area = otra. The trade capacity in each direction is specified by forward_capacity (from_area -> to_area) and backward_capacity (from_area <- to_area) using timestamps and scenarios. The monitored_component attribute defines the busbar connection nodes and their associated flow shares. For the required pure MNEs, exactly one monitored_component must be specified. Configurations containing multiple monitored_component entries are not supported and will result in a validation error from the LtmApi.

This example includes only pure MNEs.

MNEs representing combined interconnections may contain multiple monitored_component entries. In contrast, pure MNEs must contain exactly one monitored_component.

A future update will include examples of combined interconnections.

Monitored network element example

Monitored network element example

"monitored_network_elements": [
    {
        "name": "mne_numedal-otra",
        "from_area": "numedal",
        "to_area": "otra",
        "forward_capacity": {
            "timestamps": [
                "2024-W01",
                "2024-W03",
                "2024-W07",
                "2024-W17",
                "2024-W22"
            ],
            "scenarios": [
                [
                    42.0,
                    22.0,
                    28.0,
                    32.0,
                    42.0
                ]
            ]
        },
        "backward_capacity": {
            "timestamps": [
                "2024-W01",
                "2024-W06",
                "2024-W09",
                "2024-W14",
                "2024-W21"
            ],
            "scenarios": [
                [
                    41.0,
                    25.0,
                    27.0,
                    31.0,
                    42.0
                ]
            ]
        },
        "monitored_components": [
            {
                "from_busbar_id": 1340,
                "to_busbar_id": 3041,
                "share_from": 0.4,
                "share_to": 0.6
            }
        ]
    }
]

All required pure MNEs from the example must be added to the model. The full example (collapsed) of MNEs is shown below, click arrow to open:

Monitored network elements
"monitored_network_elements": [
    {
        "name": "mne_numedal-otra",
        "from_area": "numedal",
        "to_area": "otra",
        "forward_capacity": {
            "timestamps": [
                "2024-W01",
                "2024-W03",
                "2024-W07",
                "2024-W17",
                "2024-W22"
            ],
            "scenarios": [
                [
                    42.0,
                    22.0,
                    28.0,
                    32.0,
                    42.0
                ]
            ]
        },
        "backward_capacity": {
            "timestamps": [
                "2024-W01",
                "2024-W06",
                "2024-W09",
                "2024-W14",
                "2024-W21"
            ],
            "scenarios": [
                [
                    41.0,
                    25.0,
                    27.0,
                    31.0,
                    42.0
                ]
            ]
        },
        "monitored_components": [
            {
                "from_busbar_id": 1340,
                "to_busbar_id": 3041,
                "share_from": 0.4,
                "share_to": 0.6
            }
        ]
    },
    {
        "name": "mne_numedal-tev",
        "from_area": "numedal",
        "to_area": "tev",
        "forward_capacity": {
            "timestamps": [
                "2024-W01"
            ],
            "scenarios": [
                [
                    41.0
                ]
            ]
        },
        "backward_capacity": {
            "timestamps": [
                "2024-W01"
            ],
            "scenarios": [
                [
                    43.0
                ]
            ]
        },
        "monitored_components": [
            {
                "from_busbar_id": 1339,
                "to_busbar_id": 2040,
                "share_from": 0.0,
                "share_to": 0.0
            }
        ]
    },
    {
        "name": "mne_tev-osen",
        "from_area": "tev",
        "to_area": "osen",
        "forward_capacity": {
            "timestamps": [
                "2024-W01"
            ],
            "scenarios": [
                [
                    40.0
                ]
            ]
        },
        "backward_capacity": {
            "timestamps": [
                "2024-W01"
            ],
            "scenarios": [
                [
                    45.0
                ]
            ]
        },
        "monitored_components": [
            {
                "from_busbar_id": 2041,
                "to_busbar_id": 4011,
                "share_from": 0.1,
                "share_to": 0.8
            }
        ]
    },
    {
        "name": "mne_otra-osen",
        "from_area": "otra",
        "to_area": "osen",
        "forward_capacity": {
            "timestamps": [
                "2024-W01"
            ],
            "scenarios": [
                [
                    39.0
                ]
            ]
        },
        "backward_capacity": {
            "timestamps": [
                "2024-W01"
            ],
            "scenarios": [
                [
                    46.0
                ]
            ]
        },
        "monitored_components": [
            {
                "from_busbar_id": 3081,
                "to_busbar_id": 4080,
                "share_from": 0.3,
                "share_to": 0.4
            }
        ]
    }
],

HVDC connections

The HVDC Connection is used for adding HVDC connections to LtmApi model. Below is an example for adding HVDC connections. The HVDC connections are between numedal - osen and otra - thermal1. Each hvdc_connection contains a reference to an existing dcline in name_of_dcline and a reference to the busbar connections from_busbar_id = 1373 and to_busbar_id = 4073.

For the HVDC connection between otra and thermal1 only one end is in the detailed grid, thus the reference to_busbar_id in thermal1 is removed.

The rated_power = 420 kV, the rated_voltage_regulating = 420 kV, the rated_voltage_firm = 320 kV, the base_voltage_regulating = 420 kV and the base_voltage_firm = 320 kV.

HVDC connections example

HVDC connections example

"hvdc_connections": [
    {
        "name": "hvdc-numedal-osen",
        "name_of_dcline": "numedal-osen",
        "from_busbar_id": 1373,
        "to_busbar_id": 4073
    },
    {
        "name": "hvdc-otra-thermal1",
        "name_of_dcline": "otra-thermal1",
        "from_busbar_id": 3073
    }
],

All details of the example system are available in grid2.json below.

Expand to see full JSON listings.
{
    "$schema": "model.schema.json",
    "model": {
        "global_settings": {
            "name": "samnett",
            "output_path": "testout_grid/",
            "delete_output_dir": false,
            "generate_output_dir": true,
            "simulation_period": {
                "timestamps": [
                    "2024-W01",
                    "2025-W01"
                ]
            },
            "historical_period": {
                "timestamps": [
                    "1981-01-01T00:00:00Z",
                    "1989-01-01T00:00:00Z"
                ]
            },
            "timesteps_per_week": 56,
            "default_spill_cost": 0.01,
            "default_load_penalty": 445.0
        },
        "monitored_network_elements": [
            {
                "name": "mne_numedal-otra",
                "from_area": "numedal",
                "to_area": "otra",
                "forward_capacity": {
                    "timestamps": [
                        "2024-W01",
                        "2024-W03",
                        "2024-W07",
                        "2024-W17",
                        "2024-W22"
                    ],
                    "scenarios": [
                        [
                            42.0,
                            22.0,
                            28.0,
                            32.0,
                            42.0
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-W01",
                        "2024-W06",
                        "2024-W09",
                        "2024-W14",
                        "2024-W21"
                    ],
                    "scenarios": [
                        [
                            41.0,
                            25.0,
                            27.0,
                            31.0,
                            42.0
                        ]
                    ]
                },
                "monitored_components": [
                    {
                        "from_busbar_id": 1340,
                        "to_busbar_id": 3041,
                        "share_from": 0.4,
                        "share_to": 0.6
                    }
                ]
            },
            {
                "name": "mne_numedal-tev",
                "from_area": "numedal",
                "to_area": "tev",
                "forward_capacity": {
                    "timestamps": [
                        "2024-W01"
                    ],
                    "scenarios": [
                        [
                            41.0
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-W01"
                    ],
                    "scenarios": [
                        [
                            43.0
                        ]
                    ]
                },
                "monitored_components": [
                    {
                        "from_busbar_id": 1339,
                        "to_busbar_id": 2040,
                        "share_from": 0.0,
                        "share_to": 0.0
                    }
                ]
            },
            {
                "name": "mne_tev-osen",
                "from_area": "tev",
                "to_area": "osen",
                "forward_capacity": {
                    "timestamps": [
                        "2024-W01"
                    ],
                    "scenarios": [
                        [
                            40.0
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-W01"
                    ],
                    "scenarios": [
                        [
                            45.0
                        ]
                    ]
                },
                "monitored_components": [
                    {
                        "from_busbar_id": 2041,
                        "to_busbar_id": 4011,
                        "share_from": 0.1,
                        "share_to": 0.8
                    }
                ]
            },
            {
                "name": "mne_otra-osen",
                "from_area": "otra",
                "to_area": "osen",
                "forward_capacity": {
                    "timestamps": [
                        "2024-W01"
                    ],
                    "scenarios": [
                        [
                            39.0
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-W01"
                    ],
                    "scenarios": [
                        [
                            46.0
                        ]
                    ]
                },
                "monitored_components": [
                    {
                        "from_busbar_id": 3081,
                        "to_busbar_id": 4080,
                        "share_from": 0.3,
                        "share_to": 0.4
                    }
                ]
            }
        ],
        "run_config": [
            {
                "name": "rc",
                "bus_number_swingbus_area_1": 2040,
                "include_shunt_elements": false,
                "include_phase_shifter_in_loadflow_file": false,
                "loss_calculation": false,
                "marginal_loss_calculation": false,
                "nordel_loss_functionality": false,
                "print_fbmc_parameters": false,
                "successive_LP": false,
                "add_all_power_flow_constraints": false,
                "accepted_overload": 1.5,
                "relax_maske_bounds": "none",
                "print_power_balance_mismatch_tolerance": 100.0,
                "ptdf_weight": "flat",
                "max_grid_iterations": 17,
                "loss_voltage_limit": 220
            }
        ],
        "lineoutages": [
            {
                "name": "test lineoutage",
                "from_busbar_id": 1339,
                "to_busbar_id": 2040,
                "outage_forward": {
                    "timestamps": [
                        "2024-W01-1T03",
                        "2024-W01-1T06",
                        "2024-W02-1T09",
                        "2024-W03-1T03"
                    ],
                    "scenarios": [
                        [
                            2,
                            1.5,
                            2.1,
                            0
                        ]
                    ]
                },
                "outage_backward": {
                    "timestamps": [
                        "2024-W01-1T00",
                        "2024-W01-1T03",
                        "2024-W02-1T06",
                        "2024-W03-1T03"
                    ],
                    "scenarios": [
                        [
                            2,
                            1,
                            1.5,
                            1.3
                        ]
                    ]
                }
            }
        ],
        "hvdc_connections": [
            {
                "name": "hvdc-numedal-osen",
                "name_of_dcline": "numedal-osen",
                "from_busbar_id": 1373,
                "to_busbar_id": 4073
            },
            {
                "name": "hvdc-otra-thermal1",
                "name_of_dcline": "otra-thermal1",
                "from_busbar_id": 3073
            }
        ],
        "lines": [
            {
                "name": "numedal to tev",
                "from_busbar_id": 1339,
                "to_busbar_id": 2040,
                "resistance": 2.0,
                "reactance": 15.0,
                "base_voltage": 420.0
            },
            {
                "name": "numedal to otra",
                "from_busbar_id": 1340,
                "to_busbar_id": 3041,
                "resistance": 1.6,
                "reactance": 7.8,
                "base_voltage": 420.0
            },
            {
                "name": "otra to osen",
                "from_busbar_id": 3081,
                "to_busbar_id": 4080,
                "resistance": 5.6,
                "reactance": 27.0,
                "base_voltage": 420.0
            },
            {
                "name": "tev to osen",
                "from_busbar_id": 2041,
                "to_busbar_id": 4011,
                "resistance": 1.20,
                "reactance": 10.2,
                "base_voltage": 420.0
            },
            {
                "name": "numedal intern",
                "from_busbar_id": 1339,
                "to_busbar_id": 1338,
                "resistance": 0.4,
                "reactance": 5.1,
                "base_voltage": 420.0
            },
            {
                "name": "numedal intern 2",
                "from_busbar_id": 1338,
                "to_busbar_id": 1340,
                "resistance": 0.2,
                "reactance": 2.0,
                "base_voltage": 420.0
            },
            {
                "name": "tev intern",
                "from_busbar_id": 2040,
                "to_busbar_id": 2041,
                "resistance": 1.0,
                "reactance": 1.9,
                "base_voltage": 420.0
            },
            {
                "name": "otra intern",
                "from_busbar_id": 3041,
                "to_busbar_id": 3073,
                "resistance": 0.14,
                "reactance": 2.045,
                "base_voltage": 420.0
            },
            {
                "name": "otra intern 2",
                "from_busbar_id": 3073,
                "to_busbar_id": 3081,
                "resistance": 1.0,
                "reactance": 3.0,
                "base_voltage": 420.0
            },
            {
                "name": "osen intern",
                "from_busbar_id": 4011,
                "to_busbar_id": 4010,
                "resistance": 0.5,
                "reactance": 3.03,
                "base_voltage": 420.0
            },
            {
                "name": "otra intern 3",
                "from_busbar_id": 4010,
                "to_busbar_id": 4080,
                "resistance": 5.3,
                "reactance": 34.4,
                "base_voltage": 420.0
            },
            {
                "name": "numedal to tev parallell",
                "from_busbar_id": 1339,
                "to_busbar_id": 2040,
                "resistance": 2.0,
                "reactance": 15.0,
                "base_voltage": 420.0
            }
        ],
        "two_winding_transformers": [
            {
                "name": "trafo numedal",
                "from_busbar_id": 1340,
                "to_busbar_id": 1373,
                "short_circuit_voltage_real": 1,
                "short_circuit_voltage_imaginary": 5,
                "rated_power": 420,
                "rated_voltage_regulating": 420,
                "rated_voltage_firm": 320,
                "base_voltage_regulating": 420,
                "base_voltage_firm": 320
            },
            {
                "name": "trafo osen",
                "from_busbar_id": 4010,
                "to_busbar_id": 4073,
                "short_circuit_voltage_real": 1,
                "short_circuit_voltage_imaginary": 5,
                "rated_power": 420,
                "rated_voltage_regulating": 420,
                "rated_voltage_firm": 320,
                "base_voltage_regulating": 420,
                "base_voltage_firm": 320
            }
        ],
        "busbars": [
            {
                "busbar_id": 1339,
                "load_weight": 5.2,
                "hydro_plant_weights": {
                    "LABRO_plant": 24.6,
                    "VITTINGFOSS_plant": 14.6
                },
                "market_step_weights": {
                    "IMPORT numedal": 3.0
                }
            },
            {
                "busbar_id": 1340,
                "load_weight": 7.0,
                "hydro_plant_weights": {
                    "VITTINGFOSS_plant": 10.0
                }
            },
            {
                "busbar_id": 2040,
                "load_weight": 0.0,
                "market_step_weights": {
                    "Export tev": 1.0
                }
            },
            {
                "busbar_id": 3041,
                "load_weight": 0.2,
                "market_step_weights": {
                    "Export otra": 3.0
                },
                "wind_park_weights": {
                    "ucg_otra": 1.2
                }
            },
            {
                "busbar_id": 3081,
                "load_weight": 0.2,
                "market_step_weights": {
                    "IMPORT otra": 2.0
                }
            },
            {
                "busbar_id": 3073,
                "load_weight": 0.2,
                "market_step_weights": {
                    "IMPORT otra": 1.0
                }
            },
            {
                "busbar_id": 4011,
                "load_weight": 1.4,
                "market_step_weights": {
                    "import_osen": 3.0
                }
            },
            {
                "busbar_id": 4073,
                "load_weight": 0.2,
                "market_step_weights": {
                    "Export_osen": 3.0
                }
            }
        ],
        "dclines": [
            {
                "name": "numedal-osen",
                "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-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": "thermal1-thermal2",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "numedal-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": "otra-osen",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "tev-osen",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            },
            {
                "name": "otra-thermal1",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 2.0
            }
        ],
        "loads": [
            {
                "#comment": "Gruppe 16",
                "name": "Season var numedal",
                "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": "Season var tev",
                "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": "Season var otra",
                "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": "Season var osen",
                "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": [
                        [
                            1.3,
                            1.6,
                            0.89,
                            1.448,
                            1.80,
                            1.30,
                            1.048,
                            0.899,
                            1.448,
                            1.80,
                            1.30,
                            1.048,
                            0.899,
                            1.448,
                            1.80
                        ]
                    ]
                }
            },
            {
                "#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": "Season var otra",
                "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 otra",
                "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_osen",
                "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": [
                        [
                            26,
                            24,
                            27,
                            26,
                            24,
                            27,
                            26,
                            24,
                            27
                        ]
                    ]
                }
            },
            {
                "#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": "IMPORT thermal2",
                "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": [
                        [
                            65.0,
                            32.5,
                            52.0,
                            65.0,
                            32.5,
                            52.0,
                            65.0,
                            32.5,
                            52.0
                        ]
                    ]
                },
                "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": [
                        [
                            1,
                            2,
                            1,
                            1,
                            2,
                            1,
                            1,
                            2,
                            1
                        ]
                    ]
                }
            },
            {
                "#comment": "type: market_step",
                "name": "Export otra",
                "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": [
                        [
                            -20,
                            -30,
                            -30,
                            -20,
                            -30,
                            -30,
                            -20,
                            -30,
                            -30
                        ]
                    ]
                }
            },
            {
                "#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
                        ]
                    ]
                }
            },
            {
                "#comment": "type: market_step",
                "name": "Export thermal2",
                "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 tev",
                "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": [
                        [
                            80,
                            55,
                            70,
                            80,
                            55,
                            70,
                            80,
                            55,
                            70
                        ]
                    ]
                },
                "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_osen",
                "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-10-01T00:00:00Z",
                        "1982-01-01T00:00:00Z",
                        "1982-05-01T00:00:00Z",
                        "1982-10-01T00:00:00Z",
                        "1983-01-01T00:00:00Z",
                        "1983-05-01T00:00:00Z",
                        "1983-10-01T00:00:00Z",
                        "1984-01-01T00:00:00Z",
                        "1984-05-01T00:00:00Z",
                        "1984-10-01T00:00:00Z",
                        "1985-01-01T00:00:00Z",
                        "1985-05-01T00:00:00Z",
                        "1985-10-01T00:00:00Z",
                        "1986-01-01T00:00:00Z",
                        "1986-05-01T00:00:00Z",
                        "1986-10-01T00:00:00Z",
                        "1987-01-01T00:00:00Z",
                        "1987-05-01T00:00:00Z",
                        "1987-10-01T00:00:00Z",
                        "1988-01-01T00:00:00Z",
                        "1988-05-01T00:00:00Z",
                        "1988-10-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.47,
                            1.79,
                            1.30,
                            0.49,
                            1.87,
                            1.35,
                            0.38,
                            1.45,
                            1.05,
                            0.34,
                            1.33,
                            0.96,
                            0.32,
                            1.25,
                            0.90,
                            0.36,
                            1.40,
                            1.01,
                            0.44,
                            1.72,
                            1.24,
                            0.43,
                            1.67,
                            1.21
                        ]
                    ]
                }
            }
        ],
        "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": {
                    "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"
                    ],
                    "scenarios": [
                        [
                            500.0,
                            450.0,
                            400.0,
                            550.0,
                            450.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
                        ]
                    ]
                }
            }
        ],
        "uncontrollable_generation_series": [
            {
                "name": "ucg_otra_series",
                "series": {
                    "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
                        ]
                    ]
                }
            }
        ],
        "uncontrollable_generation": [
            {
                "name": "ucg_otra",
                "series_name": "ucg_otra_series",
                "scale": {
                    "scenarios": [
                        [
                            1.0
                        ]
                    ]
                }
            }
        ],
        "areas": [
            {
                "name": "thermal2"
            },
            {
                "name": "numedal",
                "has_detailed_grid": true
            },
            {
                "name": "tev",
                "has_detailed_grid": true
            },
            {
                "name": "otra",
                "has_detailed_grid": true
            },
            {
                "name": "osen",
                "has_detailed_grid": true
            },
            {
                "name": "thermal1"
            }
        ],
        "connections": [
            {
                "from": "ucg_otra",
                "to": "otra"
            },
            {
                "from": "Export tev",
                "to": "tev"
            },
            {
                "from": "Season var numedal",
                "to": "numedal"
            },
            {
                "from": "Season var tev",
                "to": "tev"
            },
            {
                "from": "Season var otra",
                "to": "otra"
            },
            {
                "from": "repurchase",
                "to": "otra"
            },
            {
                "from": "Season var osen",
                "to": "osen"
            },
            {
                "from": "Seasonal var TERM",
                "to": "thermal1"
            },
            {
                "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": "numedal",
                "to": "numedal-tev"
            },
            {
                "from": "numedal-tev",
                "to": "tev"
            },
            {
                "from": "numedal",
                "to": "numedal-otra"
            },
            {
                "from": "numedal-otra",
                "to": "otra"
            },
            {
                "from": "tev",
                "to": "tev-osen"
            },
            {
                "from": "tev-osen",
                "to": "osen"
            },
            {
                "from": "otra",
                "to": "otra-osen"
            },
            {
                "from": "otra-osen",
                "to": "osen"
            },
            {
                "from": "numedal",
                "to": "numedal-osen"
            },
            {
                "from": "numedal-osen",
                "to": "osen"
            },
            {
                "from": "otra",
                "to": "otra-thermal1"
            },
            {
                "from": "otra-thermal1",
                "to": "thermal1"
            },
            {
                "from": "thermal1",
                "to": "thermal1-thermal2"
            },
            {
                "from": "thermal1-thermal2",
                "to": "thermal2"
            },
            {
                "from": "IMPORT numedal",
                "to": "numedal"
            },
            {
                "from": "IMPORT otra",
                "to": "otra"
            },
            {
                "from": "Export otra",
                "to": "otra"
            },
            {
                "from": "IMPORT term",
                "to": "thermal1"
            },
            {
                "from": "Export term",
                "to": "thermal1"
            },
            {
                "from": "IMPORT thermal2",
                "to": "thermal2"
            },
            {
                "from": "Export thermal2",
                "to": "thermal2"
            },
            {
                "from": "import_osen",
                "to": "osen"
            },
            {
                "from": "Export_osen",
                "to": "osen"
            }
        ]
    }
}

Results

The notebook below shows the results obtained by running the LtmApi with grid2.json as input. The notebook contains figures illustrating the results from an EMPS simulation using detailed grid (Samnett) functionality.