Back to roadmapBack to list

MAGPIE Energy matching tool

This is the MAGPIE energy matching tool.

Port energy system

Introduction

Ports are complex, energy-intensive ecosystems where multiple stakeholders must coordinate operations while responding to ambitious decarbonisation targets. At the same time, they face rising operational energy costs, growing CO2 emissions, limited visibility over local flexibility and missed opportunities to use energy resources more efficiently. The Energy Matching Tool (EMT), developed within MAGPIE, is an open-source decision-support solution that helps ports and port actors plan short-term energy operations over the next 24–48 hours. By coordinating local generation, demand flexibility and storage, it supports more efficient energy use, lower operational costs and improved integration of low-carbon energy sources. The tool provides users with practical operational recommendations and KPI-based results, helping them compare baseline and optimized scenarios in a transparent way.

[Benefit 2]

Value proposition

  • Flexibility activation

    identifies when loads, storage or other controllable resources can adapt their operation without compromising technical or operational constraints.

  • Renewable integration

    increases the use of local renewable production by aligning flexible consumption with periods of higher availability.

  • Cost and coordination benefits

    supports lower energy costs, reduced dependence on external supply and more transparent decision-making between actors.

The EMT suggests an optimized operation plan that helps identify and activate flexibility that may otherwise remain unused in daily energy operation. By considering demand, local generation, storage and operational constraints together, it shows where consumption can be shifted, stored or coordinated to make better use of available renewable energy. This can support higher renewable self-consumption, lower electricity costs and a clearer understanding of how different operational choices affect the overall energy performance of the port community.

Port applicability

The EMT is applicable to ports with a diverse mix of energy assets, including renewable generation, storage systems and flexible demand. It can model building climatization, smart reefers, onshore power supply, e-truck charging, swap battery containers, industrial loads and other modular or shiftable loads. For each use case, the model should be adapted to reflect the specific asset flexibility, operating rules, data availability and stakeholder constraints. The tool can support single operators as well as aggregators or port energy communities, particularly where coordinated energy use can create shared operational and economic benefits. Examples of port contexts where it can be applied Container terminals: high applicability due to cranes, reefers, e-trucks, onshore power supply and the potential for large-scale renewable integration. Ferry terminals: applicable where vessel charging, shore power or fleet electrification create controllable electricity demand. Industrial ports: applicable where flexible industrial loads, hydrogen production or shared energy infrastructure can be coordinated to improve energy efficiency and reduce operational costs. In general, the greater the level of energy demand, local production and operational flexibility, the greater the opportunity to unlock value through coordinated planning.

Impact

Impact level per aspect
ImpactLevelRemark
Energy efficiencyMedium impact
Improves the scheduling of flexible assets and reduces inefficient energy use, particularly when demand can be shifted to periods of local renewable availability or lower system cost.
GHG emissionsMedium impact
Can be reduced when flexibility increases the use of local renewable energy and decreases reliance on carbon-intensive grid electricity. Time-shifting consumption can also support operation during periods with cleaner or lower-cost electricity.
Air pollutantsLimited impact
Provides an indirect positive contribution by supporting electrification and cleaner energy use, especially when port equipment and local operations can reduce reliance on fossil-fuel-based processes.
SafetyLimited impact
Has a neutral to limited direct impact, as operational safety requirements remain constraints that the optimized schedules must respect.
Other impactsLimited impact
Supports lower energy costs, digitalization of energy planning, stakeholder cooperation and evidence-based decisions on flexibility, renewable integration and future decarbonisation investments.

Port characteristics

Implementation requires access to representative energy data, asset characteristics, tariffs, operational constraints and, where relevant, grid topology. The tool can initially be used locally for experiments and demonstrations, using prepared input files and example notebooks from the MAGPIE repository.

Barriers and enablers

Enablers

  • Modular asset modelsEnabler

    Representing operational requirements

  • Accessible web interfaceEnabler
  • Open-source stackEnabler

    An open-source stack and clear data preparation workflows that support adaptation to different port use cases

Barriers

  • Model calibrationBarrier
  • Data formattingBarrier
  • Integration with operational systemsBarrier

How to implement?

  1. Step 1

    Scope definition and data collection

  2. Step 2

    Baseline validation

  3. Step 3

    Flexible scenario testing

  4. Step 4

    Stakeholder review

  5. Step 5

    Market-layer testing

  6. Step 6

    Integration roadmap

What should a port do in the next 3 years?

A practical implementation starts with selecting the port area or community to analyse, identifying relevant assets and collecting the required input data. A first baseline simulation should be run to validate profiles and constraints. Flexible simulation scenarios can then be tested to understand the potential of having controllable assets such as smart reefers, OPS, e-truck charging, storage or industrial loads. For multi-player settings, the market layer can be added to test internal energy exchange and compare benefits for the community and each player. As stakeholders gain confidence in the digital solution, implementation can evolve from simulation-based assessment to real operational use, first through pilot applications and later across broader port use cases.

Stakeholder overview

The core stakeholders are the port authority, terminal operators, industrial consumers, renewable energy producers, distribution/grid operators, technology providers. Port authorities can coordinate strategy and data governance; operators and industrial users provide operational constraints and validate recommendations; energy producers and aggregators enable local supply and trading; technology providers support deployment and maintenance; research partners support modelling, validation and future improvements.