{
    "$schema": "https://gitlab.sintef.no/energy/ltm/pyltmapi/-/raw/main/model.schema.json",
    "model": {
        "global_settings": {
            "name": "global_settings",
            "output_path": "testout_negative_residual_loads/",
            "calc_water_value_flag": {
                "timestamps": [
                    "2024-01-01T00:00:00Z",
                    "2026-12-28T00:00:00Z"
                ],
                "scenarios": [
                    [
                        1,
                        0
                    ]
                ]
            },
            "historical_period": {
                "timestamps": [
                    "2000-01-01T00:00:00Z",
                    "2002-01-01T00:00:00Z"
                ],
                "scenarios": [
                    [
                        1,
                        0
                    ]
                ]
            },
            "simulation_price_period": {
                "#comment": "prisavsnitt -> PRISREKKE.DATA",
                "timestamps": [
                    "2024-01-01T00:00:00Z",
                    "2024-01-02T00:00:00Z",
                    "2024-01-03T00:00:00Z",
                    "2024-01-04T00:00:00Z",
                    "2024-01-05T00:00:00Z"
                ],
                "scenarios": [
                    [
                        1,
                        2,
                        3,
                        4,
                        5
                    ]
                ]
            }
        },
        "market_calibration_areas": [
            {
                "name": "market_area_1"
            },
            {
                "name": "market_area_2"
            }
        ],
        "loads": [
            {
                "name": "FLAT",
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            100
                        ]
                    ]
                }
            },
            {
                "name": "FLAT_SCENARIO",
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            100
                        ],
                        [
                            500
                        ]
                    ]
                }
            }
        ],
        "wind": [
            {
                "name": "RJU_WIND",
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            150.4
                        ],
                        [
                            245.0
                        ]
                    ]
                }
            }
        ],
        "solar": [
            {
                "#comment": "Gruppe 18 1D",
                "name": "UST_SOLAR",
                "capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            150.4
                        ],
                        [
                            1000
                        ]
                    ]
                }
            }
        ],
        "aggregated_hydro_modules": [
            {
                "name": "ltldalen_enmag_aggregated",
                "reservoir_energy": 63001.0,
                "station_power": 20184.523,
                "regulated_power_inflow": {
                    "#comment": "R30 - GWh/uke i datafil, input in MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2026-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.89285714286,
                            1.48809523810,
                            2.97619047619
                        ],
                        [
                            1.48809523810,
                            1.48809523810,
                            1.48809523810
                        ]
                    ]
                },
                "unregulated_power_inflow": {
                    "#comment": "U30 - GWh/uke i datafil, input in MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2025-01-01T00:00:00Z",
                        "2026-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.06547619048,
                            6.54761904762,
                            0.06547619048
                        ],
                        [
                            0.07142857143,
                            0.07142857143,
                            0.07142857143
                        ]
                    ]
                },
                "upper_reservoir_limits": {
                    "#comment": "Manually adjusted upper reserveroir limits, GWh",
                    "timestamps": [
                        "2024-01-01T00:00:00Z",
                        "2025-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            59000,
                            58000
                        ]
                    ]
                },
                "lower_reservoir_limits": {
                    "#comment": "Manually adjusted lower reserveroir limits, GWh",
                    "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": [
                        [
                            20000
                        ]
                    ]
                },
                "lower_production_limits": {
                    "#comment": "Manually adjusted lower production limits, MW",
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                }
            }
        ],
        "areas": [
            {
                "name": "numedal"
            },
            {
                "name": "rjukan"
            },
            {
                "name": "ustaoset"
            },
            {
                "name": "otta"
            },
            {
                "name": "nordherad"
            },
            {
                "name": "litldalen"
            }
        ],
        "dclines": [
            {
                "name": "DC_A",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "loss_percentage": 1.0,
                "forward_cost": 2.0,
                "backward_cost": 3.0
            },
            {
                "name": "RJU_NUM",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "loss_percentage": 1.0,
                "forward_cost": 2.0,
                "backward_cost": 3.0
            },
            {
                "name": "UST_NUM",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "loss_percentage": 1.0,
                "forward_cost": 2.0,
                "backward_cost": 3.0
            },
            {
                "name": "NOR_OTT",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "loss_percentage": 1.0,
                "forward_cost": 2.0,
                "backward_cost": 3.0
            },
            {
                "name": "LIT_OTT",
                "forward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            50
                        ]
                    ]
                },
                "loss_percentage": 1.0,
                "forward_cost": 2.0,
                "backward_cost": 3.0
            }
        ],
        "connections": [
            {
                "from": "numedal",
                "to": "market_area_1"
            },
            {
                "from": "rjukan",
                "to": "market_area_1"
            },
            {
                "from": "ustaoset",
                "to": "market_area_1"
            },
            {
                "from": "otta",
                "to": "market_area_2"
            },
            {
                "from": "nordherad",
                "to": "market_area_2"
            },
            {
                "from": "litldalen",
                "to": "market_area_2"
            },
            {
                "from": "numedal",
                "to": "DC_A"
            },
            {
                "from": "DC_A",
                "to": "otta"
            },
            {
                "from": "rjukan",
                "to": "RJU_NUM"
            },
            {
                "from": "RJU_NUM",
                "to": "numedal"
            },
            {
                "from": "ustaoset",
                "to": "UST_NUM"
            },
            {
                "from": "UST_NUM",
                "to": "numedal"
            },
            {
                "from": "nordherad",
                "to": "NOR_OTT"
            },
            {
                "from": "NOR_OTT",
                "to": "otta"
            },
            {
                "from": "litldalen",
                "to": "LIT_OTT"
            },
            {
                "from": "LIT_OTT",
                "to": "otta"
            },
            {
                "from": "FLAT",
                "to": "numedal"
            },
            {
                "from": "FLAT_SCENARIO",
                "to": "otta"
            },
            {
                "from": "ltldalen_enmag_aggregated",
                "to": "litldalen"
            },
            {
                "from": "RJU_WIND",
                "to": "rjukan"
            },
            {
                "from": "UST_SOLAR",
                "to": "ustaoset"
            }
        ]
    }
}
