tools for energy model optimization and analysis - improving … · 2021. 6. 11. · decarolis...

28
Improving Model-based Scenario Analysis with Stochastic Optimization and Modeling to Generate Alternatives Joe DeCarolis, Kevin Hunter, Charles O’Connell Dept of Civil, Construction, and Environmental Engineering NC State University [email protected]; @jfdecarolis; http://temoaproject.org 1 IQ SCENE Workshop University College London 26 March 2014

Upload: others

Post on 11-Sep-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Improving Model-based Scenario Analysis with Stochastic Optimization and Modeling to

Generate Alternatives

Joe DeCarolis, Kevin Hunter, Charles O’Connell

Dept of Civil, Construction, and Environmental Engineering

NC State University

[email protected]; @jfdecarolis; http://temoaproject.org 1

IQ SCENE Workshop University College London

26 March 2014

Page 2: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Talk Outline

Discuss energy economy optimization modeling; problems with the status quo

Outline two techniques for uncertainty analysis: stochastic optimization and modeling-to-generate alternatives

Present results from a simple energy system to illustrate how the techniques work

2

Page 3: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Energy-economy optimization (EEO) models

Energy-economy optimization (EEO) models refer to partial or general equilibrium models that minimize cost or maximize utility by, at least in part, optimizing the energy system over multiple decades. Such models provide:

• Expansive system boundaries and multi-decadal timescales

• Self-consistent framework for evaluation

• Ability to explore how effects may propagate through a system

Model-based analysis can deliver crucial insight that informs key decisions.

What can we usefully conclude from modeling exercises where uncertainty is rigorously quantified?

3

Page 4: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Technology explicit modeling

4

Capital Cost ($M/PJ/yr) Fixed O&M ($M/PJ) Variable O&M ($M/PJ) Capacity factor Efficiency Emissions coefficient (kton/PJ)

Objective function: minimize present cost of energy supply over a defined time horizon Decision variables: activity (PJ) and capacity (PJ/yr) for each technology

Page 5: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Problems with the status quo

5

Inability to validate model

results

Increasing availability of

data

Moore’s Law

+

+

Increasing model

complexity

Lack of openness

+

Inability to verify model

results

Uncertainty analysis is

difficult

Page 6: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Tools for Energy Model Optimization and Analysis (Temoa)

TEMOA is a bottom up, technology explicit model with perfect foresight, similar to the TIMES model generator. Goals Repeatable Analysis • Data and code stored in a publicly accessible web repository

(github.com) • Open source software stack Rigorous treatment of uncertainty • Framework designed to operate in a high performance

computing environment • Capability to do stochastic optimization; modeling-to-generate

alternatives For more information: http://www.temoaproject.org 6

Page 7: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Types of Uncertainty

There are many ways to categorize uncertainty.

A key distinction:

• Parametric: uncertainty regarding the assumed value of model inputs.

• Structural: imperfect and incomplete nature of the equations describing the system

7

Page 8: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Dealing with uncertainty in energy systems

Scenario analysis – Uncertainty type: parametric – Purpose: characterize a small set of possible future outcomes – Weaknesses: cognitive heuristics (Morgan and Keith, 2008); doesn’t

provide a strategy Sensitivity analysis

– Uncertainty type: parametric – Purpose: Identify sensitivity of key model outputs to inputs – Weaknesses: computationally intensive; doesn’t provide a strategy

Stochastic optimization* – Uncertainty type: parametric – Purpose: Develop a unified ‘hedging’ strategy – Weaknesses: computationally intensive, curse of dimensionality

Modeling to Generate Alternatives* – Uncertainty type: structural – Purpose: Explore maximally different solutions in decision space – Weaknesses: doesn’t provide a strategy

8

Page 9: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

9

Stochastic Optimization

Decision-makers need to make choices before uncertainty is resolved. Need to make short-term choices that hedge against future risk Apply stochastic optimization by: • Building a scenario tree • Assigning probabilities to future outcomes • Optimizing over all possibilities

The resultant solution represents a near-term hedging strategy because it accounts for alternative future outcomes.

Page 10: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

10

Simple Example of Stochastic Optimization

Suppose we have two technologies, A and B. Let x represent the installed capacity.

t1 t2

s1

s2

Stage 1 Decision Variables: Stage 2 Decision Variables:

,A Bx x

1 1 2 2, , , ,, , ,A s B s A s B sy y y y1p

2p1

Minimize: cN

T T

s s s

s

x p d y

Subject To:

1,...,

0

0 1,...,

s s s s

s

Ax b

T x W y h for s N

x

y for s N

Page 11: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

11

How can we value the hedging strategy?

Expected value of perfect information (EVPI): The expected savings if planners knew with certainty the outcome at every stage as opposed to following the hedging strategy: Expected Cost of Ignoring Uncertainty (ECIU): The expected savings by following the hedging strategy rather than naively guessing the outcome

𝐸𝑉𝑃𝐼 = 𝐶ℎ𝑒𝑑𝑔𝑒 − 𝑝𝑠𝑠∈𝑆

∙ 𝐶𝑠 1

2

3

p

1-p

1

2

3

p

1-p 𝐸𝐶𝐼𝑈2 =𝐶1|2 + 𝑝 ∙ 𝐶2|2 +

(1 − 𝑝) ∙ 𝐶3|2− 𝐶ℎ𝑒𝑑𝑔𝑒

Page 12: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

What about structural uncertainty?

12

Consider an optimization model that only includes Objective 1 and leaves Objective 2 unmodeled. The true optimum is within the feasible, suboptimal region of the model’s solution space.

Viable alterative solutions exist within the model’s feasible region.

Example adopted from Brill et al. (1990).

Objective 1

Ob

ject

ive

2

Non-inferior frontier

Page 13: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Modeling to Generate Alternatives

13

A method to explore an optimization model’s feasible region → “Modeling to Generate Alternatives”†

MGA generates alternative solutions that are maximally different in decision space but perform well with respect to modeled objectives

The resultant MGA solutions provide modelers and decision-makers with a set of alternatives for further evaluation

†Brill (1979), Brill et al. (1982), Brill et al. (1990)

Page 14: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Hop-Skip-Jump (HSJ) MGA

14

Steps:

1. Obtain an initial optimal solution by any method

2. Add a user-specified amount of slack to the value of the objective function

3. Encode the adjusted objection function value as an additional upper bound constraint

4. Formulate a new objective function that minimizes the decision variables that appeared in the previous solutions

5. Iterate the re-formulated optimization

6. Terminate the MGA procedure when no significant changes to decision variables are observed in the solutions

Brill et al. (1982)

Page 15: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Case Study

15

Page 16: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

‘Temoa Island’

16

• 10 import technologies; constant supply prices

• 54 technologies total;

• 6 end-use demands: lighting, space heating, space cooling, water heating, and light duty transportation

• 6 time slices: summer/ winter /intermediate day/ night

• 5 time periods, each 5 years long: 2010-2030.

Page 17: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Simple Application of Stochastic Optimization

Suppose there are parliamentary elections every 5 years

– If the blue party wins the majority, they implement a 15% annual CO2 reduction.

– If the red party wins the majority, they allow CO2 to grow at 15% annually.

– Election outcome probabilities weighted evenly at 50% each

Elections begin to affect CO2 policy in 2020; therefore we have a unified strategy in 2015

Two branches per node over 3 model time periods, so a total of 8 possible outcomes by 2030.

17

Page 18: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Stochastic Optimization: Electric Sector Results

18

0

2000

4000

6000

8000

10000

12000

14000

Ele

ctri

city

Ge

ne

rati

on

(PJ

/yr)

Year

Nuclear

Gas C-Cycle

Coal

Solar PV (Existing)

Solar Thermal (Existing)

Gas C-Cycle (Existing)

Wind (Existing)

Geothermal (Existing)

Geothermal

Hydro (Existing)

Gas S-Cycle (Existing)

Nuclear (Existing)

Coal (Existing)

0

2000

4000

6000

8000

10000

12000

14000

Ele

ctri

city

Ge

ne

rati

on

(PJ

/yr)

Year

Nuclear

Gas C-Cycle

Coal

Solar PV (Existing)

Solar Thermal (Existing)

Gas C-Cycle (Existing)

Wind (Existing)

Geothermal (Existing)

Geothermal

Hydro (Existing)

Gas S-Cycle (Existing)

Nuclear (Existing)

Coal (Existing)

Red Blue

Page 19: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Stochastic Optimization: Residential Sector Results

19

0

2000

4000

6000

8000

10000

12000

20102015202020252030

De

man

d D

evic

e A

citi

vty

(PJ/

yr)

Year

NG Water Heater

NG Furnace

Electric Water Heater

Electric Heat

Electric AC

0

2000

4000

6000

8000

10000

12000

20102015202020252030

De

man

d D

evic

e A

citi

vty

(PJ/

yr)

Year

NG Water Heater

NG Furnace

Electric Water Heater

Electric Heat

Electric AC

Red Blue

Page 20: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

0

500

1000

1500

2000

2500

3000

3500

2010 2015 2020 2025 2030

10

9V

eh

icle

Mie

ls T

rave

lled

Year

Gasoline Car (Existing)

Diesel Car (Existing)

CNG Car

Gasoline Car

Ethanol Car

Stochastic Optimization: Transport Sector Results

20

0

500

1000

1500

2000

2500

3000

3500

2010 2015 2020 2025 2030

10

9V

eh

icle

Mie

ls T

rave

lled

Year

Gasoline Car (Existing)

Diesel Car (Existing)

CNG Car

Gasoline Car

Ethanol Car

Blue Red

Page 21: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Stochastic Results Cost of Hedging Strategy: $1.36×1013

EVPI 0.5% (of hedging strategy cost) ECIU 1.05% (of hedging strategy cost) 1.05% 1.05% 1.07% 1.05% 1.05% 2.10% 1.79%

21

Page 22: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Compromise?

Suppose the red party is willing to accept a 10% increase in energy prices if the blue party drops it’s demands for a CO2 cap.

What type of system might be possible?

Apply MGA with 10% cost slack.

22

Page 23: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

MGA Electric Sector Results

23

0

1000

2000

3000

4000

5000

6000

7000

8000

9000

10000

2010 2015 2020 2025 2030

Ele

ctri

city

Ge

ne

rati

on

(P

J/yr

)

Year

Wind

Nuclear

Solar PV (Existing)

Solar Thermal (Existing)

Gas C-Cycle (Existing)

Wind (Existing)

Geothermal (Existing)

Geothermal

Hydro (Existing)

Gas S-Cycle (Existing)

Nuclear (Existing)

Coal (Existing)

0

1000

2000

3000

4000

5000

6000

7000

8000

9000

10000

2010 2015 2020 2025 2030

Ele

ctri

city

Ge

ne

rati

on

(P

J/yr

)

Year

Nuclear

Solar PV (Existing)

Solar Thermal (Existing)

Gas C-Cycle (Existing)

Wind (Existing)

Geothermal (Existing)

Geothermal

Hydro (Existing)

Gas S-Cycle (Existing)

Nuclear (Existing)

Coal (Existing)

0

1000

2000

3000

4000

5000

6000

7000

8000

9000

10000

2010 2015 2020 2025 2030

Ele

ctri

city

Ge

ne

rati

on

(P

J/yr

)

Year

Wind

Coal

Solar PV (Existing)

Solar Thermal (Existing)

Gas C-Cycle (Existing)

Wind (Existing)

Geothermal (Existing)

Geothermal

Hydro (Existing)

Gas S-Cycle (Existing)

Nuclear (Existing)

Coal (Existing)

0

1000

2000

3000

4000

5000

6000

7000

8000

9000

10000

2010 2015 2020 2025 2030

Ele

ctri

city

Ge

ne

rati

on

(P

J/yr

)

Year

Solar Thermal

Wind

Coal

Solar PV (Existing)

Solar Thermal (Existing)

Gas C-Cycle (Existing)

Wind (Existing)

Geothermal (Existing)

Geothermal

Hydro (Existing)

Gas S-Cycle (Existing)

Nuclear (Existing)

Coal (Existing)

1 2

3 4

Page 24: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

MGA Residential Sector Results

24

0

2000

4000

6000

8000

10000

12000

2010 2015 2020 2025 2030

De

man

d D

evi

ce A

citi

vty

(PJ/

yr)

Year

NG Water Heater

NG Furnace

Electric Water Heater

Electric Heat

Electric AC

0

2000

4000

6000

8000

10000

12000

2010 2015 2020 2025 2030

De

man

d D

evi

ce A

citi

vty

(PJ/

yr)

Year

NG Water Heater

NG Furnace

Electric Water Heater

Electric Heat

Electric AC

0

2000

4000

6000

8000

10000

12000

2010 2015 2020 2025 2030

De

man

d D

evi

ce A

citi

vty

(PJ/

yr)

Year

NG Water Heater

NG Furnace

Electric Water Heater

Electric Heat

Electric AC

0

2000

4000

6000

8000

10000

12000

2010 2015 2020 2025 2030

De

man

d D

evi

ce A

citi

vty

(PJ/

yr)

Year

NG Water Heater

NG Furnace

Electric Water Heater

Electric Heat

Electric AC

1 2

3 4

Page 25: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

MGA Transportation Sector Results

25

0

500

1000

1500

2000

2500

3000

3500

2010 2015 2020 2025 2030

10

9V

eh

icle

Mie

ls T

rave

lled

Year

Gasoline Car (Existing)

Diesel Car (Existing)

Gasoline Hybrid

Ethanol Car

0

500

1000

1500

2000

2500

3000

3500

2010 2015 2020 2025 2030

10

9V

eh

icle

Mie

ls T

rave

lled

Year

Gasoline Car (Existing)

Diesel Car (Existing)

CNG Car

Ethanol Car

0

500

1000

1500

2000

2500

3000

3500

2010 2015 2020 2025 2030

10

9V

eh

icle

Mie

ls T

rave

lled

Year

Gasoline Car (Existing)

Diesel Car (Existing)

CNG Car

Ethanol Car

0

500

1000

1500

2000

2500

3000

3500

2010 2015 2020 2025 2030

10

9V

eh

icle

Mie

ls T

rave

lled

Year

Gasoline Car (Existing)

Diesel Car (Existing)

Gasoline Hybrid

Ethanol Car

1 2

3 4

Page 26: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Discussion

Energy system planning and policy fraught with large future uncertainties

Policy relevant insight derived from scenario analysis should account for such uncertainties Our approach: • Use an open source model and software stack to maximize

transparency (Temoa) • Use techniques like stochastic optimization and MGA to derive

policy relevant insight • Utilize high performance computing resources where necessary Next Step: Build US dataset using newly developed interface and use apply uncertainty techniques discussed above

26

Page 27: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Relevant Outputs DeCarolis J.F. (2011). Using modeling to generate alternatives (MGA)

to expand our thinking on energy futures. Energy Economics, 33: 145-152.

DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy Optimization Models. Energy Economics, 34: 1845-1853.

Hunter K., Sreepathi S., DeCarolis J.F. (2013). Tools for Energy Model Optimization and Analysis. Energy Economics, 40: 339-349.

All model source code and data available for viewing and download through the project website:

http://temoaproject.org

27

Page 28: Tools for Energy Model Optimization and Analysis - Improving … · 2021. 6. 11. · DeCarolis J.F., Hunter K., Sreepathi S. (2012). The Case for Repeatable Analysis with Energy Economy

Acknowledgments

This material is based upon work supported by the National Science Foundation under Grant No. 1055622 (CAREER: Modeling for Insights with an Open Source Energy Economy Optimization Model). Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

28