• No results found

Next generation energy modelling - benefits of applying parallel optimization and high performance computing

N/A
N/A
Protected

Academic year: 2021

Share "Next generation energy modelling - benefits of applying parallel optimization and high performance computing"

Copied!
37
0
0

Loading.... (view fulltext now)

Full text

(1)

a project by

Frieder Borggrefe

Modelling Smart Grids 2017 26.10.2017, Prague

System Analysis and Technology Assessment DLR - German Aerospace Center

Stuttgart

Next generation energy modelling

(2)

2

1. Introduction – energy system Modelling and constraints

2. The project BEAM-ME

3. Decomposition

4. Model annotation and PIPS-IPM

Agenda

(3)

3

It is not all about rocket science in DLR…

3

(4)

4

DLR Energy System Model REMix

Mo. 30.10 Di. 31.10 Mi. 1.11 Do. 2.11 Fr. 3.11 Sa. 4.11 So. 5.11

Electricity demand

Conventional generation

nuclear, coal, gas power plants

Storages pumped hydro compressed air hydrogen Demand side management

industry & households, increases system efficiency

Electric vehicles (EV) Heat demand HVDC lines

long-range power exchange and imports

Transmission grid

based on current European AC grid

-x

BEV/hybrids: charging

strategies, hourly battery capacities of the fleet connected to the grid

FCEV: flexible on-site H2

generation

Flexible operation of CHP with:

- heat storages

- peak boiler & electric heaters Installed capacities and power generation profiles from renewables

Scenario analysis with model REMix

cost minimised supply in temporal & spatial resolution

model

results:

generation & storage strategies GHI

DNI

wind speed

run-off river

….

(5)

5

DLR Energy System Model REMix

Mo. 30.10 Di. 31.10 Mi. 1.11 Do. 2.11 Fr. 3.11 Sa. 4.11 So. 5.11

Electricity demand

Conventional generation

nuclear, coal, gas power plants

Storages pumped hydro compressed air hydrogen Demand side management

industry & households, increases system efficiency

Electric vehicles (EV) Heat demand HVDC lines

long-range power exchange and imports

Transmission grid

based on current European AC grid

-x

BEV/hybrids: charging

strategies, hourly battery capacities of the fleet connected to the grid

FCEV: flexible on-site H2

generation

Flexible operation of CHP with:

- heat storages

- peak boiler & electric heaters Installed capacities and power generation profiles from renewables

Scenario analysis with model REMix

cost minimised supply in temporal & spatial resolution

model

results:

generation & storage strategies GHI

DNI

wind speed

run-off river

….

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague 26.10.2017

Energy system models:

• Simulate

– policy and technology choices

– influence on future energy demand and supply, and investments

-> are mostly used in an exploratory manner

• Depend on external assumptions/boundary conditions:

– Development of economic activities, – demographic development,

(6)

6

The Energy System Model REMix

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague 26.10.2017

Mo. 30.10 Di. 31.10 Mi. 1.11 Do. 2.11 Fr. 3.11 Sa. 4.11 So. 5.11

Electricity demand

Conventional generation

nuclear, coal, gas power plants

Storages pumped hydro compressed air hydrogen Demand side management industry & households, increases system efficiency

Electric vehicles (EV) Heat demand HVDC lines

long-range power exchange and imports

Transmission grid

based on current European AC grid

-x

BEV/hybrids: charging

strategies, hourly battery capacities of the fleet connected to the grid

FCEV: flexible on-site H2

generation

Flexible operation of CHP with:

- heat storages - peak boiler & electric

heaters Installed capacities and power generation profiles from renewables

Scenario analysis with model REMix

cost minimised supply in temporal & spatial resolution

model

results:

generation & storage strategies GHI

DNI

wind speed

run-off river

(7)

7

Requirements for Energy System Models Increase

Modelling Smart Grids 2017, Prague 26.10.2017

Petten 2014

JRC Times model:

Modelling comes at a cost:

– Small number of time steps – Or small number of regions – Or small number of

(8)

Energy Sector Integration

8

8

(9)

9

The Energy System Model REMix

(10)

10

The Energy System Model REMix

(11)

11

1. Introduction – energy system Modelling and constraints

2. The project BEAM-ME

3. Decomposition

4. Model annotation and PIPS-IPM

Agenda

(12)

12

Idea and scope of BEAM-ME

• Evaluation of different approaches to reduce model solution times

– Increased Modelling efficiency – Higher computing power

• Implementation of selected approaches into REMix • Assessment of the transferability to other models • Definition of best-practice strategies

Reduction of solution times urgently needed to enable the reflection of energy system complexity in state-of-the-art models

12

(13)

13

BEAM-ME: Optimizing performance of ESM

Frieder Borggrefe (DLR) 26.10.2017

Input data description Model Language & Modelling

Compiler Algorithm

High Performance

(14)

14

BEAM-ME: Optimizing performance of ESM

Frieder Borggrefe (DLR) 26.10.2017

Input data description Model Language & Modelling

Compiler Algorithm

High Performance

Computing

Energy System

(15)

15

Nodes! Nodes? Nodes !? - Challenge: Common language

Frieder Borggrefe (DLR) 26.10.2017

Energy System

Modeling Modelling Language Development Solver High Performance Computing

Efficient Nodes Robust results Storage Storage Robust results Efficient Efficient Nodes Nodes

(16)

16

1. Introduction – energy system Modelling and constraints

2. The project BEAM-ME

3. Decomposition

4. Model annotation and PIPS-IPM

Agenda

(17)

17

Categorization of speed-up approaches

Model specific Solver related Software related speed-up approaches Solver Solver parameters Algorithm Exact methods Meta-Heuristics Problem formulation

Heuristics Model reduction and clustering Solving multiple,

small problems Exact methods

(18)

18

Benders decomposition for two-stage stochastic optimization

Investment -> Master problem: • Decide now which capacities

should be expanded

Dispatch -> Sub problem:

• Decide later on economic dispatch to satisfy electrical demand with capacities given by master problem

Benders decomposition in capacity expansion and economic dispatch

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague 26.10.2017

1st Stage: Capacity expansion – Installed capacities 2nd Stage: Dispatch – Generation variables Linking variables:

Installed capacities, connecting the capacity expansion problem and the dispatch problem

(19)

19

Benders Decomposition

Master Subproblem

• Subproblems can be solved in parallel • Memory demand scales with number of

parallel solve processes

Deterministic Model

• Size of LP increases with number of scenarios, solved by SIMPLEX / Barrier • Out of memory for typical REMix problems

with scenario dimension

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague 26.10.2017

Deterministic vs. Benders Decomposition

1st Stage: Capacity expansion – Installed capacities 2nd Stage: Dispatch – Generation variables

(20)

20

Challenges 3: Efficient use of ressources

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague

Input data description Model Language & Modelling, Compiler Mathematical Optimization High Performance Computing t

Synchronous Model Asynchronous Model

t

Iteration 1 Iteration 2 Iteration 3 Iteration 4 Iteration 1 Iteration 2

(21)

21

1. Introduction – energy system Modelling and constraints

2. The project BEAM-ME

3. Decomposition

4. Model annotation and PIPS-IPM

Agenda

(22)

Categorization of speed-up approaches

Model specific Solver related Software related speed-up approaches Solver Solver parameters Algorithm Exact methods Meta-Heuristics Problem formulation

Heuristics Model reduction and clustering Solving multiple,

small problems Exact methods

(23)

23

Challenges: Scalable Implementation

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague 26.10.2017

Input data description Model Language & Modelling Compiler Mathematical Optimization High Performance Computing • Efficient HPC implementation • Benchmarking and profiling

• Distributed storage for large ESMs

• Apply new concepts for assigning tasks to cores

CRAY XC40 @ HLRS: 3,944 nodes / 94,656 cores

IBM Blue Gene/Q @ JSC: 28,672 nodes / 458,752 cores

(24)

24

Investment Operation & Maintainance Capacity

Expansion Planning Capacity

Constraints Dispatch

PIPS-Solver (Argonne National Lab)

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague 26.10.2017

Application of stochastic PIPS solver

Dispatch Dispatch Capacity Constraints Capacity Constraints Ca pa ci ty Li m its El ec tr ic al D em and Capacity Constraints Dispatch Capacity Expansion Planning Capacity Constraints Dispatch Capacity Constraints Dispatch Decomposition Approach

(25)

25

Master Sub problems

Capacity Expansion

Planning Linking

Variables Sub-Problem

New PIPS-IPM-Solver under development

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague 26.10.2017

Within BEAM-ME adaptation of PIPS-Solver to PIPS IPM

Sub-Problem Sub-Problem Linking Variables Linking Variables Li m its: M ast er Li m its S ubs Linking Equations Linking Variables PIPS-Solver

• New developed PIPS-IPM can be used for non stochastic models • PIPS-IPM will also bring benefits to stochastic Modelling

(26)

26

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague

How to get there? b = c min/max x ≤ * A

Original problem with “random” matrix structure

*

PIPS exploits matrix block structure

A= b bupp A≤ blow = Ts1= Ws1= = bs1 Tsn= Wsn= = bsn c0 cs1 csn Tsn≤ Wsn≤ bsnupp bsnlow Ts1≤ Ws1≤ bs1upp bs1low C= C sn= = bC Cs1= . . . C≤ C sn≤ bCupp bClow Cs1≤ . . . min x0 x0low x0upp xsn xsnlow xsnupp Model annotation b' = c’ min/max x' A’

Permutation reveals block structure

(27)

27

Frieder Borggrefe (DLR) Modelling Smart Grids 2017, Prague

How to get there? b = c min/max x ≤ * A

Original problem with “random” matrix structure

*

PIPS exploits matrix block structure

A= b bupp A≤ blow = Ts1= Ws1= = bs1 Tsn= Wsn= = bsn c0 cs1 csn Tsn≤ Wsn≤ bsnupp bsnlow Ts1≤ Ws1≤ bs1upp bs1low C= C sn= = bC Cs1= . . . C≤ C sn≤ bCupp bClow Cs1≤ . . . min x0 x0low x0upp xsn xsnlow xsnupp Model annotation b' = c’ min/max x' A’

Permutation reveals block structure

(28)

28

GAMS Annotation for PIPS-IPM

Linking variables Linking equations PIPS-IPM

blocks

Permuted matrix revealing block structure Matrix of non-zero entries of REMix LP

Annotation can be implemented directly in GAMS

Modellers provide knowledge about problem and decompositions

(29)

29

Introducing PIPS-IPM

Parallel Interior Point Solver – Interior Point Method (PIPS-IPM)

Petra et al. 2014: “Real-Time Stochastic Optimization of Complex Energy Systems

on High-Performance Computers”

• Wind feed-in planning in electrical power systems under uncertainty

OR 2017: D. Rehfeldt „Optimizing large-scale linear energy problems with

block diagonal structure by using parallel interior-point methods“

(30)

30

Decomposition by region I

Linking by region: electricity transports, fuel transports, global constraints (CO2)

4 partial problems including 4 regions

hourly power flows

between regionblocks

power flow limitation

Temporal dimension of transport decisions leads to the largest number of linking variables

t

(31)

31

Decomposition by region II

4 partial problems

including 4 regions 16 partial problems including 1 region

low increase in linking variables and constraints

due to sparsely connected regions

Target: Find maximum number of regionblocks of similar size which are

sparely linked to other regionblocks

(32)

32

Decomposition by time

7 partial problems

including 24 time steps 56 partial problems including 3 time steps 168 partial problems including 1 time step

Target: Find good trade-off between number of time blocks and

number of linking constraints 1 out of 24 storage

constraints linking 3 out of 8 storage constraints linking Every storage constraint linking

(33)

33

Evaluation of Annotations

All previously shown annotation plots describe exactly the same ESM problem Systematic evaluation of promising annotations required

Decomposition by time and region can be applied at the same time

power flow limitation from spatial decomposition Linking to previous time step from temporal decomposition

(34)

34

Current state of extended PIPS-IPM for BEAM-ME test problems:

• sequentially 10 times slower than CPLEX 12.7.1.0 (latest version) barrier. • can solve problems with few (< 1000) linking constraints and variables

faster than CPLEX (multi-threaded) when enough CPU-cores can be used (on several compute nodes).

• biggest problem solved so far has > 10 million variables and constraints

Current challenges:

• LPs with many (>10000) linking constraints and variables hard to solve due to factorization of large dense matrix in solving process

Current state and challenges

(35)

35

• How to cut the model to allow for efficient application of solvers? • How can PIPS-IPM use salient features of the problem?

• Identify options for „model tuning“ that work?

• algorithmic and implementation improvements, e.g. (parallel, structure-preserving) preprocessing, scaling, adaptation of interior-point algorithm • handle dense (symmetric indefinite) matrix more efficiently:

– try GPUs (e.g., MAGMA, cuSolver) for problems with not too many (< 10000) linking constraints and variables

– try distributed linear algebra (e.g., Elemental, DPLASMA) for bigger problems

Challenges

(36)

36

• How to cut the model to allow for efficient application of solvers? • How can PIPS-IPM use salient features of the problem?

• Identify options for „model tuning“ that work?

• algorithmic and implementation improvements, e.g. (parallel, structure-preserving) preprocessing, scaling, adaptation of interior-point algorithm • handle dense (symmetric indefinite) matrix more efficiently:

– try GPUs (e.g., MAGMA, cuSolver) for problems with not too many (< 10000) linking constraints and variables

– try distributed linear algebra (e.g., Elemental, DPLASMA) for bigger problems

Benchmark: PIPS-IPM and PIPS must beat SIMPLEX in the first

place

Challenges

(37)

• Model new markets and market design

• Increase sparcial and temporal resolution

• Answer new questions

– Improved market analysis – Regional potential of specific

technologies

• Address uncertainty with

stochastic models

– Exploring solution space

– Identifying tipping points between subsities

• Modelling sectors and sector

integration

Outlook: What can we do with more efficient models?

37

References

Related documents

“Part of the problem at the jail is that it’s a dumping ground for the police department,” said Governor Lolo Matalasi Moliga during a briefing with DPS officials about the problems

We also found that the hypothesis of a better taxonom - ic coverage achieved with molecular technique is sup - ported by a significant number of species, most of them

Title: Final report on quality assurance, evaluation and validation of the ICT training Model Product Type: evaluation methods. Marketing Text: Evaluation and quality assurance

successfully provide telephone advice to 999 callers categorised by EMD systems as non-urgent 13. The study assessed the advice service in shadow form, that is an ambulance was

Roadmap Retrieving Data Using SELECT Joining Tables Using JOIN Restricting Data Using WHERE Sorting Data Using ORDER BY Data Definition Language (DDL) Structured Query

Physicians and scientists read AnnalsATS to learn the latest clinical advances in the treatment of Asthma, COPD, Pulmonary Infections, PAH, Lung Cancer, IPF, Critical

The studies suggested that by optimizing the engine operating parameters and design factors such as engine speed, loading condition, compression ratio, injection

The recent review of the Educational Master Plan for the Ohlone College Newark Center for Technology and Health Sciences resulted in space reductions based on program and curriculum