oemof-flexmex is a sector-integrated multi-node energy system model featuring a lot of flexibility options. Its region, interconnections and components can be adapted flexibly.

oemof-flexmex builds upon the open energy modeling framework oemof, which is an open source, modular toolbox for building energy system models. It hosts different libraries for different purposes. This model, oemof-flexmex, uses oemof.solph for linear optimisation and oemof.tabular for the handling of input data.

The model has been developed in the context of the model comparison project FlexMex. The project is now completed and the model is no longer maintained.

Energy system

In oemof-flexmex an energy system can be composed of

  • demands and supplies

  • a variety of energy transformers and storages (such as power plants, batteries, renewable energy plants)

  • transmission lines, pipelines

Just as its core, oemof-solph, oemof-flexmex is flexible in modelling different energy carriers, such as electricity, heat, gas or hydrogen. It also allows for defining your own components with the help of oemof.tabular.facades.


Each energy system is separated into regions. Regions can be independent from each other (resulting in a number of isolated energy systems) or linked by transmission lines or pipelines (resulting in a network of energy systems). Timeseries for demand and supply can be applied to each region seperately.


In oemof-flexmex, each scenario defines its own energy system which can include different energy carriers (or sectors), primary energy sources, conversion, storage, transmission and demand. All scenarios are provided with the same set of input data, which consists out of parameters (e.g. capacities) and timeseries (e.g. energy demand or hourly capacity factors for renewable energies). Thus, the scenarios help to model different flexibility options within a given energy system.