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.

EMPS - serial simulation

How it works

EMPS/serial simulation is a way to run scenarios (historical years) in sequence. The output from year 1 is input for year 2, until the reqested number of scenarios has been reached.

Results from detailed hydro has been made into a “continuous” line showing the inputs matches the outputs from previous year.

In this notebook, real inflow series from NVE has been used.

How to use

EMPS/serial simulation is enabled by settings keys "model_type": "EMPS" and "simulation_type": "serial" under global_settings.

{
    "model": {
        "global_settings": {
            "model_type": "EMPS",
            "simulation_type": "serial"
        }
    }
}

The simulation must be exactly 52 weeks. The API enforce that limit and will refuse to run simulations with other durations.

"simulation_period": {
    "timestamps": [
        "2024-W01",
        "2025-W01"
    ],
    "scenarios": [
        [
            1,
            0
        ]
    ]
}

For the special case EMPS/serial, it is allowed to only provide 1 timestamp for simulation_period. The API will then use a 52 week duration from the start.

"simulation_period": {
    "timestamps": [
        "2024-W01"
    ],
    "scenarios": [
        [
            1
        ]
    ]
}
'pyltm version PyLTM version: 0.27.0.post1.dev0'
INFO:LtmApiModel:(ikernel) Loading model from file: emps_serial.json
INFO:LtmApiModel:(ikernel) Using license file '/path/to/ltm-license.dat'
INFO:LtmApiModel:(ikernel) LtmApiModel::maybe_generate_output_dir: output_path: docs/ltm-api/guides/emps/emps_serial/testout_emps_serial/2026-11-05-142828.140-EMPS-series
INFO:LtmApiModel:(ikernel) Using license file '/path/to/ltm-license.dat'
INFO:Validator:(ikernel) Model validation succeeded
INFO:LtmApiModel:(ikernel) Writing model to path docs/ltm-api/guides/emps/emps_serial/testout_emps_serial/2026-11-05-142828.140-EMPS-series
INFO:InflowHandler:(ikernel) Writing inflow series
INFO:Validator:(ikernel) Model validation succeeded
Loading...
INFO:LtmApiModel:(ikernel) Model executed successfully
Loading...
<Figure size 640x480 with 2 Axes>
<Figure size 640x480 with 1 Axes>
Loading...
<Figure size 640x480 with 2 Axes>
<Figure size 640x480 with 1 Axes>
Loading...
'Reservoir'
<Figure size 1200x400 with 1 Axes>
<Figure size 1200x400 with 1 Axes>
<Figure size 1200x400 with 1 Axes>
<Figure size 1200x400 with 1 Axes>
<Figure size 1200x400 with 1 Axes>
<Figure size 1200x400 with 1 Axes>
Loading...
INFO:LtmApiModel:(ikernel) Not deleting output dir (docs/ltm-api/guides/emps/emps_serial/testout_emps_serial/2026-11-05-142828.140-EMPS-series), as delete_output_dir: false, and has_generated_output_dir: true
INFO:LtmApiModel:(ikernel) Not deleting output dir (docs/ltm-api/guides/emps/emps_serial/testout_emps_serial/2026-11-05-142828.140-EMPS-series), as delete_output_dir: false, and has_generated_output_dir: true