MSc Thesis on the Energy System of Region Värmland in Sweden

Hello all,
I selected OSeMOSYS as the simulation tool for my master thesis for a region in Sweden. I have a couple of questions and ideas.

Firstly, as of now the region is a net-importer of electricity and aims on being a net-exporter, therefore I created two technologies: IMPELC and EXPELC, for when the power generation is sufficent or not for the system to meet the demand. I want to calculate the cost of this imported/exported electricity (from the grid) and make it variable over the year, for each month for example, as it is in real-life.

Right now, you can only put one input value per year for all the cost parameters. Is there any other way around it?

Cheers,

Paul Thellenberg

Hello Paul,
You cannot vary the VariableCost parameter by month directly because it is only defined by Region, Technology, and Year ([r,t,y]) in OSeMOSYS. To capture real-life monthly price fluctuations, you need to use Time Slices combined with dummy technologies or fuel.

Step 1: Create technologies named IMPELC_JAN, IMPELC_FEB, etc. (and corresponding EXPELC variants).

Step 2: Assign your specific monthly electricity price to the VariableCost parameter of each respective technology.

Step 3: Use the AvailabilityFactor or CapacityToActivityUnit parameters restricted by Time Slices to ensure IMPELC_JAN can only operate during January time slices, IMPELC_FEB during February, and so on

your model’s Time Slices are explicitly configured to represent the months of the year (e.g., creating 12 distinct seasons or time blocks). If your model only uses a generic annual average or basic day/night splits, it will not track monthly variations regardless of your technology setup.

Best regards,

1 Like

Hello,

It is great to hear that you have chosen OSeMOSYS for your master’s thesis. Modeling regional transitions from Net-Importer to Net-Exporter is an excellent and highly relevant scope, especially within the context of Sweden’s dynamic energy market.

Note: OSeMOSYS is not a simulation tool but rather an Optimization tool; you can use an optimization tool to run scenario simulations.

To answer your question: Yes, there is absolutely a way around this, and you do not have to limit yourself to a single annual cost value.

While it looks like parameters are purely annual at first glance, OSeMOSYS handles time-slice variability through its operational structure. Here is how you can model variable, month-by-month electricity import and export costs:

1. The Standard Approach: Define Fine-Grained Time Slices (TIMESLICE)

OSeMOSYS breaks down a year (YEAR) into smaller operational chunks called TIMESLICE. If you want monthly cost variations, you need to ensure your time-slice framework splits the year into at least 12 blocks (e.g., one for each month, or further split into day/night if you want to capture peak/off-peak pricing).

Once your time slices are defined, you cannot apply varying costs directly to the VariableCost parameter (as that is indeed defined at the annual level per technology). Instead, you use InputActivityRatio and OutputActivityRatio to map the costs dynamically:

  • Create “Dummy” Fuel Commodities: Instead of importing a single generic ELC commodity, split your grid import commodity into monthly commodities (e.g., ELC_JAN, ELC_FEB, etc.).
  • Vary the Capital/Operating Cost via Fuel Price: If you treat the external market grid as a set of separate supply technologies with an explicit VariableCost mapping to those specific months, OSeMOSYS will optimize based on those time-dependent price signals.

2. The Advanced (and Cleaner) Approach: Using TradeRoute or Time-Slice Dependent Costs

If you are using a newer flavor of OSeMOSYS (like OSeMOSYS-data or interfaces like MoManI/clover), check whether your specific version supports time-slice-dependent variable costs directly.

If it does not, the most common workaround in the standard GNU MathProg code is to introduce a specified fuel price matrix. You can assign an explicit cost to the energy carrier entering the system during specific time slices by manipulating the cost framework of the source technology (your IMPELC technology) relative to when it is active.

A Few Tips for Your Sweden Model:

  • Export Pricing: Remember that for EXPELC, you are earning revenue rather than incurring a cost. In OSeMOSYS, you can model this by applying a negative variable cost to the export technology. This incentivizes the model to generate excess electricity and export it whenever the domestic marginal cost of production is lower than the export price.
  • Historical Data: Since you are modeling a region in Sweden, you can pull excellent historical hourly or monthly spot price data from Nord Pool to calibrate your monthly variable cost curves for both imports and exports.

Good luck with the next steps!

Best regards,

Babukiika Fiona

Mentor EMP(OSeMOSYS)

1 Like

Thank you Atique for your time and answer!
I would like to ask whether it is methodologically reasonable to represent regional grid connection and transmission limitation in OSeMOSYS using upper capacity contraints.

In my thesis, I model the energy system of Region Värmland in Sweden. The research qestion is to determine ehere and how much new electricity generation capacity needs to be added under different future electricity demand scenarios.

I have divided Värmland into four electricity areas: North, Central, West and South. This division is based on the regional grid structure, illustrated in the picture below, and known bottlenecks reported by the mains grid operator. For example, current connection limitations for new production are approximately:

  • Central Värmland: up to 10 MW
  • Western/Northern Värmland: up to 3 MW
  • Eastern Värmland/Närke: no limit, assessed case by case

Värmland is within the green lines and the transmission grid are the light blue lines.

My idea is to include these limitations in OSeMOSYS by applying upper power/capacity limits to new generation connections in each area. In addition, I would like to represent the transmission network between the areas using transmission technologies, where the maximum capacity is based on the voltage level and estimated power transfer capacity of the existing lines.

So my main questions are:

  1. Can upper capacity limits in OSeMOSYS be used to represent grid connection limitations for new generation in each regional area?
  2. Can transmission technologies in OSeMOSYS be given maximum capacity constraints to approximate the power transfer limits of existing regional transmission lines?
  3. Is it reasonable to estimate these transmission limits from voltage levels and typical power capacities, if detailed grid data is unavailable?
  4. Are there any important risks with interpreting the model results spatially, given that OSeMOSYS is not a detailed power-flow model?

The goal is not to perform a detailed electrical grid study, but to include simplified grid constraints so that the model does not unrealistically place unlimited new generation in areas where the grid connection capacity is limited.

Best regards,
Paul Thellenberg

Here is the drawing of the energy reference system for MUIO

Thank you Fiona for your time and answer!
I would like to ask whether it is methodologically reasonable to represent regional grid connection and transmission limitation in OSeMOSYS using upper capacity contraints.

In my thesis, I model the energy system of Region Värmland in Sweden. The research qestion is to determine ehere and how much new electricity generation capacity needs to be added under different future electricity demand scenarios.

I have divided Värmland into four electricity areas: North, Central, West and South. This division is based on the regional grid structure, illustrated in the picture below, and known bottlenecks reported by the mains grid operator. For example, current connection limitations for new production are approximately:

  • Central Värmland: up to 10 MW
  • Western/Northern Värmland: up to 3 MW
  • Eastern Värmland/Närke: no limit, assessed case by case

Värmland is within the green lines and the transmission grid are the light blue lines.

My idea is to include these limitations in OSeMOSYS by applying upper power/capacity limits to new generation connections in each area. In addition, I would like to represent the transmission network between the areas using transmission technologies, where the maximum capacity is based on the voltage level and estimated power transfer capacity of the existing lines.

So my main questions are:

  1. Can upper capacity limits in OSeMOSYS be used to represent grid connection limitations for new generation in each regional area?
  2. Can transmission technologies in OSeMOSYS be given maximum capacity constraints to approximate the power transfer limits of existing regional transmission lines?
  3. Is it reasonable to estimate these transmission limits from voltage levels and typical power capacities, if detailed grid data is unavailable?
  4. Are there any important risks with interpreting the model results spatially, given that OSeMOSYS is not a detailed power-flow model?

The goal is not to perform a detailed electrical grid study, but to include simplified grid constraints so that the model does not unrealistically place unlimited new generation in areas where the grid connection capacity is limited.

Best regards,
Paul Thellenberg

Here is the drawing of the energy reference system for MUIO.