1 of 80

Keynote Session 2:

The model externality in the Brazilian power system: a call for a new data and model governance

Alexandre Street, Associate Professor

Electrical Eng. Department at the Pontifical Catholic University of Rio de Janeiro

Rio de Janeiro, Brazil, IAG PUC-Rio, October 31, 2024

2 of 80

Preliminaries

  • How do we make them useful?
  • Especially for the energy transition challenges

3 of 80

Preliminaries

  • Models provide us with:
    • Accuracy
    • Reliability
    • Efficiency in complex calculations
    • Transparency
    • Reproducibility
    • Accountability
    • Track record: “knowledge storage”

4 of 80

Preliminaries

  • Models are the platform through which we deliver most of the relevant elements we use in electricity markets
      • Generation and reserve schedules, price signals, security, etc.
      • Market incentives for innovation, the optimal use of flexibility, and supply adequacy
      • All these features are addressed though the models
  • The changes we want implement to provide low-cost electricity for consumers while transitioning to a sustainable low-emission system rely on model updates
      • Storage opportunity cost assessment is among the most sensitive aspects
      • Uncertainty modeling, policy look-ahead, and an accurate description of system characteristics are the building blocks of all opportunity-cost assessments we need to perform

5 of 80

Preliminaries

How to make computer models to capture all the relevant feature we want to consider?

  • We need to tell them what we want
  • But it can not be done case by case…

6 of 80

Preliminaries

This is the goal of Operations Research, Computer Science and AI

  1. We express our goals through an objective function
  2. We teach them how our world functions through learning processes and mathematical expressions (constraints and decision variables)
  3. And this is converted into a code that runs and give us a solution

  • Depending on how we describe the world, steps 1-3, the solutions will be more or less realistic (useful)…

7 of 80

Agenda

  1. What is a policy with look-ahead?
  2. What is relevant to be considered?
  3. Some evidences of market and operation distortions
  4. Recommendations

8 of 80

What is a policy with look-ahead?

Introduction to opportunity cost assessment

9 of 80

How do we operate systems with large storage capacity?

  • Balance between the benefit of using stored resources today or tomorrow
  • Storage opportunity cost estimation (centralized or decentralized)
  • In Brazil, due to relevant externalities and historical reasons, we use the centralized approach to estimate the water opportunity cost (water values)

3.450 km

2.780 km

10 of 80

  • Inflows and all system information are forecasted

  • The optimal operation is planned based on forecasts and system characteristics

  • First-stage decision is implemented (orange star)

How to account for opportunity costs?

Rolling-window policy with look-ahead is one way (MPC)

Forecast model

Planned policy

11 of 80

  • Then, we observe actual inflows and uncertainties

  • The planning window is rolled forward

  • The operation planning with look-ahead is repeated

  • And a new first-stage decision for t+1 is now implemented (orange star)

Rolling window policy with look-ahead

Forecast model

Planned policy

12 of 80

  • This process is repeated every day, every month

Rolling window policy with look-ahead

Forecast model

Planned policy

13 of 80

  • This process is repeated every day, every month

  • Implemented and planned decisions may significantly differ

Rolling window policy with look-ahead

14 of 80

The SDDP is an efficient algorithm to

translate the look-ahead cost into a cost-to-go function!

And it explicitly provides the water opportunity costs (water values)

 

System initial

state (storage)

 

 

 

 

 

 

 

 

 

High inflow

low inflow

High inflow

low inflow

use water

this month

 

Incur low immediate cost

with zero thermal

generation

Store water

for next month

Incur high immediate cost

with expensive thermal

generation

 

15 of 80

What is the role of storage opportunity costs in the operation?

 

 

 

 

 

 

 

 

16 of 80

How do we compute storage opportunity costs through SDDP?

 

17 of 80

How do we compute storage opportunity costs through SDDP?

 

Coupling variables

From t to t+1

18 of 80

How do we compute storage opportunity costs through SDDP?

 

 

19 of 80

How do we compute storage opportunity costs through SDDP?

 

 

 

 

 

 

20 of 80

How do we compute storage opportunity costs through SDDP?

 

 

 

 

 

 

21 of 80

How do we compute storage opportunity costs through SDDP?

 

 

 

 

 

 

 

It is equivalent to a fuel cost for water

22 of 80

What are the challenges in the estimation of opportunity costs?

System-integrated scheduling decisions (UC+OPF+Security+…)

2

High-dimensional, non-Gaussian, time-spatially dependent uncertainty

3

Accurate system-state-transition modeling, risk aversion, data and model governance and monitoring,

4

 

System initial

state (storage)

 

 

 

 

 

 

 

High inflow

low inflow

High inflow

low inflow

use water

this month

 

Store water

for next month

 

Accurate state

measurements

1

 

 

3.450 km

2.780 km

23 of 80

What is relevant to consider?

Studies with Brazilian Power System Data

24 of 80

  • The immediate cost is generally easier to calculate (short-term models)
    • Transmission constraints, Unit commitment constraints, fuel costs, hydro’s producibility

  • But
    • In general, short-term models are deterministic UC problems, despite the increasingly amount of uncertainty being added with renewables
    • Due to the lack of short-term uncertainty representation, short period look-ahead, and good-quality degradation models, some ISOs in US are experiencing difficulties with batteries coordination

 

 

 

Representing “tomorrow” to decide today

25 of 80

  • The cost-to-go function is much more challenging

    • Multi-period (stages) must be considered

    • Simplifications on the system representation are needed

    • Forecast for all uncertainties must be given

    • The challenge is: what would happen if we simply or forecast optimistically ?

Representing “tomorrow” to decide today

 

 

 

 

 

 

26 of 80

  • The cost-to-go function would be distorted downwards

  • The water values would decrease

  • The new optimum would use more water today

  • Storage for tomorrow would decrease

  • Today we have lower costs, but tomorrow we would be in trouble

What would happen if we simplify constraints or forecast optimistically ?

 

 

 

 

 

 

 

27 of 80

  • The cost-to-go function would exhibit almost zero water values

  • We would reduce our storage up to levels that an exogenous action will be needed to prevent high deficit costs…

If we push this simplifications to the limit…

 

 

 

 

 

 

 

28 of 80

Short-term opportunity costs

  • Is the marginal cost the cost of the most expensive generating unit?

29 of 80

Slide 29

Short-term opportunity costs

  • We just discussed the water opportunity cost of water calculation
    • How much tomorrow’s consumers would be willing to pay for today’s consumers to keep the water stored for them
  • But we have many others
    • How much should consumers be willing to pay for an incremental ramping capacity?

 

 

 

 

 

Maximum ramping capacity = 25 MWh/h

30 of 80

Slide 30

 

 

 

 

 

Maximum ramping capacity = 25+1 MWh/h

 

Short-term opportunity costs

  • We just discussed the water opportunity cost of water calculation
    • How much tomorrow’s consumers would be willing to pay for today’s consumers to keep the water stored for them
  • But we have many others
    • How much should consumers be willing to pay for an incremental ramping capacity?

31 of 80

Slide 31

 

 

 

 

 

 

Short-term opportunity costs

  • How this opportunity cost affects the system operational marginal cost (OMgC) and the spot price?
  • How much should a consumer pay for an additional demand at t=15h?
  • The negative OMgC means that it is cheaper to consume more but flatter
  • Incentives for batteries and demand shift! The flexibility resources that solve the problem!

+100 $/MWh of marginal immediate cost increase

- 200 $/MWh of ROC

= -100 $/MWh of OMgC

32 of 80

Short-term opportunity costs

  • The system OMgC should reflect all opportunity costs regarding the load supply
  • Networks capacity, KVL, ramping capacity, min up and down times, individual reservoirs, and environmental constraints will play a role in the OMgC
  • OMgC and spot prices may not be the cost of the most expensive unit

Costs

Revenue

Total

33 of 80

Some questions:

  • How do short-term opportunity costs affect the dispatch?

  • Should water be stored differently to account for these opportunity costs in the future?
  • Water values change?
  • See [Valor Economico] and Prof. Street’s Energy Economics [slides] for more

  • We have further examples with network KVL
  • See Prof. Street’s Energy Economics [slides] for more ->

34 of 80

Empirical evidence of transmission simplifications bias potential distortions

Studies with Brazilian Power System Data

35 of 80

Impact of simplified network model in Brazil

Network to implement

Planning network

 

Implementation model

(Generally, very accurate)

Model used to make the decision at stage t

 

Planning model

(Generally simplified)

Model used to assess the cost-to-go function

36 of 80

Total Operation

Cost per Policy

(planned/implemented)

No Network

Network (N-1)

Variations (%)

No network

Network (N-1)

First-stage model

Implementation

Planning

model

Network to implement

Planning network

Implementation model

(Generally, very accurate)

Model used to make the decision at stage t

Planning model

(Generally simplified)

Model used to assess the cost-to-go function

Impact of simplified network model in Brazil

37 of 80

Impact of simplified network model in Brazil

Total Operation

Cost per Policy

(planned/implemented)

No Network

Network (N-1)

Variations (%)

No network

A = R$ 13.7 bn

Network (N-1)

First-stage model

Implementation

Planning

model

Network to implement

Planning network

Implementation model

(Generally, very accurate)

Model used to make the decision at stage t

Planning model

(Generally simplified)

Model used to assess the cost-to-go function

38 of 80

Impact of simplified network model in Brazil

Total Operation

Cost per Policy

(planned/implemented)

No Network

Network (N-1)

Variations (%)

No network

A = R$ 13.7 bn

B = R$ 24.0 bn

B/A-1 = +75.2%

Network (N-1)

First-stage model

Implementation

Planning

model

Network to implement

Planning network

Implementation model

(Generally, very accurate)

Model used to make the decision at stage t

Planning model

(Generally simplified)

Model used to assess the cost-to-go function

39 of 80

Impact of simplified network model in Brazil

Total Operation

Cost per Policy

(planned/implemented)

No Network

Network (N-1)

Variations (%)

No network

A = R$ 13.7 bn

B = R$ 24.0 bn

B/A-1 = +75.2%

Network (N-1)

C = R$ 19.5 bn

C/B-1 = -18.7%

First-stage model

Implementation

Planning

model

Network to implement

Planning network

Implementation model

(Generally, very accurate)

Model used to make the decision at stage t

Planning model

(Generally simplified)

Model used to assess the cost-to-go function

40 of 80

Impact of simplified network model in Brazil

Total Operation

Cost per Policy

(planned/implemented)

No Network

Network (N-1)

Variations (%)

No network

A = R$ 13.7 bn

B = R$ 24.0 bn

B/A-1 = +75.2%

Network (N-1)

C = R$ 19.5 bn

C/B-1 = -18.7%

First-stage model

Implementation

Planning

model

Network to implement

No Net / No Net

No Net / Net (N-1)

Net (N-1) / Net (N-1)

No Net / No Net

No Net / Net (N-1)

Net (N-1) / Net (N-1)

Planning network

41 of 80

Empirical evidence of inflow forecast bias potential distortions

Studies with Brazilian Power System Data

42 of 80

Empirical evidence of biased inflow forecasts in the SE

43 of 80

Empirical evidence of biased inflow forecasts in the NE

44 of 80

Empirical evidence of biased inflow forecasts in the NE

45 of 80

Empirical evidence of biased inflow forecasts in the NE

46 of 80

Empirical evidence of biased look-ahead

10 years of planned vs implemented storage levels in Brazil

  • Planned storage is systematically higher than the implemented

  • Does an optimistic inflow forecast imply in optimistically biased opportunity costs (water values) and reduced implemented storage levels?

47 of 80

Empirical evidence of biased look-ahead

10 years of planned vs implemented thermoelectric generation in Brazil

  • Planned thermoelectric generation is systematically lower than the implemented

48 of 80

Empirical evidence of biased look-ahead

10 years of planned vs implemented spot prices in Brazil

  • Forecasted spot prices are systematically lower than the implemented
  • Do optimistic inflow forecasts affect spot prices levels and volatility, market incentives, attractiveness, and hedging costs?

49 of 80

Preliminary controlled experiments on the effect of unbiased forecasts

Brazilian Power System Data

50 of 80

Controlled experiment

Simulate the rolling window implementation policy with

    • Currrent (official) forecast model (control group): PAR-p-a forecast
    • Heuristically unbiased process (treatment): PAR-p-a forecast / (1+bias factor)

51 of 80

Controlled experiment

Simulate the rolling window implementation policy with

    • Currrent (official) forecast model (control group): PAR-p-a forecast
    • Heuristically unbiased process (treatment): PAR-p-a forecast / (1+bias factor)

PAR-p-a forecast / (1+bias factor)

52 of 80

Preliminary controlled experiment

Simulate the rolling window implementation policy with

    • The implementation model should be as close as possible to the model used in practice
    • Preliminary results using the planning model as the implementation model
    • In practice this disregards the compound impact of other well-known simplifications:
      • Reservoir aggregation
      • Transmission constraints (treated before)
      • Intra-day constraints (UC, ramps, etc) and uncertainties
      • Anticipative decisions: hazard-decision information structure used in planning
    • So, results should be worse than the reported here
      • The complete study is part of Arthur Brigatto’s PhD thesis

53 of 80

Controlled experiment

10 years backtest: planning with biased inflow forecasts

54 of 80

Controlled experiment

10 years backtest: planning with unbiased inflow forecasts

55 of 80

10 years backtest comparison:

operating with biased (control) vs unbiased planning look-ahead

Controlled experiment

56 of 80

Backtest experiment indicates relevant differences in crises periods

Controlled experiment

57 of 80

Academic publications

Local media (newspapers) publications

Public contributions to the ministry

Events with industry

Federal Court of Accounts determines

New governance for data and models

A call for new data and model governance

58 of 80

Conclusions and

Recommendations

59 of 80

Conclusions

  1. Addressing renewable integration sustainably requires the characterization of storage opportunity costs
  2. To capture the most relevant opportunity costs and sustainably utilize system’s resources
    • We need to consider short-term uncertainties and constraints
    • Both play a relevant role in the water values
    • The optimistic bias has, in general, the same effects:
      • Reduced reservoir levels,
      • Increased supply risk
      • Distorted spot price signals
  3. In Brazil:
    • A systematic bias on inflow forecasts is observed (in the last 10 years)
    • Relevant evidence that inflow forecast bias and transmission simplifications led to lower reservoir levels
    • Relevant evidence that transmission simplifications induce higher costs and marginal cost distortions

60 of 80

Recommendation

To capture the opportunity costs and sustainably utilize system’s resources

  1. We need a new model and data governance
    • For both short- and long-term models
    • Processes to incrementally incorporate the missing pieces of the reality that are “causing” new opportunity costs
      • out-of-the-market decisions (pós-DESSEM) into the model (DESSEM, DECOMP, NEWAVE, and into the expansion models)
      • Network, wind curtailment, hydro UC, reserve allocation, and demand response need to be integrated
    • Processes to incrementally integrate data, methods, and standards across ONS, CCEE, and EPE
  2. New monitoring procedures (Academy and international experts should be formally involved)
    • Input and output data adherence
    • Forecast bias and accuracy for multiple steps ahead should be monitored
    • Adherence of planned decisions (from the look-ahead) should be statistically monitored
    • Benchmarking the models with the state-of-the-art methods and off-the-shelf software
    • Systematic studies to monitor new opportunity costs to be considered

61 of 80

Recommendation: sent to CONCEPE

  1. Funding for Academic Training for EPE, ONS, and CCEE Professionals
    • The energy transition will be driven by people using mathematical/computational models and shaped by regulation.
    • Without top-tier professionals in these institutions, we will rely on “suboptimal” models, regulation, and, consequently, miss the opportunities to maximize Brazil’s natural and intellectual resources.
  2. Creation of Industry-wide Academic and Sectorial Project Pools:
    • Allow companies to allocate up to 10% of their R&D quotas to an "academic training pool for EPE/CCEE/ONS" and another 10% to a "sectoral project pool for EPE/CCEE/ONS."
    • These pools could support closer academic collaborations, promote the recommended new governance and monitoring processes
    • And reduce the lobby industry influence, promoting a more scientifically grounded sector, less prone to external pressures

62 of 80

Research on the topic

supporting possible improvement pathways

63 of 80

  • ERROR type I or II

  • The application cost should be observed

If the error or simplification is inevitable?

Parkour: forecasted targets are biased

 

 

Energy

loss

Serious

injuries

or death

 

Weather: forecasted targets are biased

64 of 80

  • ERROR type I or II

  • The application cost should be observed

  • Operators implement pessimistic forecast: CAISO and ONS

If the error or simplification is inevitable?

65 of 80

  • ERROR type I or II

  • The application cost should be observed

  • Operators implement pessimistic forecast: CAISO and ONS

If the error or simplification is inevitable?

  • Train Load Forecast and Reserve Model

  • Forecast Loads and Reserve Requirements

  • Plan the Operation

  • Re-Dispatch Resources in Real Time

66 of 80

If the error or simplification is inevitable?

  • Realistic system 6470-rte (from the previous Section)
  • Real hourly load data from the PJM power system - (EIA 2023)
  • Results: improvements on the least-squares load forecast and exogenous reserve requirements benchmark

67 of 80

Incorporating n-K criterion in SDDP

2011: robust optimization IS the n-K security criterion

(First transactions power systems paper on robust models for power systems operation)

With no transmission constraints, binary uncertainty set becomes polyhedral

  • Robust optimization: optimize for the nominal but ensure the system is functional under all (critical) scenarios

68 of 80

Incorporating n-K criterion in SDDP

2014: n-K in transmission constrained system -> optimal endogenous reserves

  • CCG is a cutting planes with polyhedral cuts
  • Stronger albeit heavier than Benders cuts
  • Works well in medium sized networks

Feasible space projection

in the pre-contingency variables

x

y

  • Column and Constraint Generation discovers the umbrella-set of outage scenarios that covers all other cases

69 of 80

Incorporating n-K criterion in SDDP

2014: Endogenous reserves for n-K via Column and Constraint Generation

  • CCG is a cutting planes with polyhedral cuts
  • Stronger albeit heavier than Benders cuts
  • Works well in medium sized networks

Feasible space projection

in the pre-contingency variables

x

y

  • Few critical (max-violation-selected) scenarios support the optimal decision

70 of 80

Incorporating n-K criterion in SDDP

2014: Endogenous reserves for n-K via Column and Constraint Generation

  • CCG is a cutting planes with polyhedral cuts
  • Stronger albeit heavier than Benders cuts
  • Works well in medium sized networks

Feasible space projection

in the pre-contingency variables

x

y

  • Few critical (max-violation-selected) scenarios support the optimal decision

71 of 80

Incorporating n-K criterion in SDDP

2014: Endogenous reserves for n-K via Column and Constraint Generation

  • CCG is a cutting planes with polyhedral cuts
  • Stronger albeit heavier than Benders cuts
  • Works well in medium sized networks

Feasible space projection

in the pre-contingency variables

x

y

  • Solve the problem with no scenarios

72 of 80

Incorporating n-K criterion in SDDP

2014: Endogenous reserves for n-K via Column and Constraint Generation

  • CCG is a cutting planes with polyhedral cuts
  • Stronger albeit heavier than Benders cuts
  • Works well in medium sized networks

Feasible space projection

in the pre-contingency variables

x

y

  • Find the worst-case violation and include it and solve it again

73 of 80

Incorporating n-K criterion in SDDP

2014: Endogenous reserves for n-K via Column and Constraint Generation

  • CCG is a cutting planes with polyhedral cuts
  • Stronger albeit heavier than Benders cuts
  • Works well in medium sized networks

Feasible space projection

in the pre-contingency variables

x

y

  • Repeat until no violation is found
  • This is optimal and ensures complete coverage

74 of 80

Incorporating n-K criterion in SDDP

2017: n-K in SDDP via Distributed CCG

75 of 80

Incorporating n-K criterion in SDDP

Solve the first problem and find the umbrella set of constraints

 

scenario 1

 

scenario 1

 

 

 

scenario 1

 

 

 

 

 

76 of 80

Incorporating n-K criterion in SDDP

Second problem is initialized with previously found constraints

 

scenario 1

 

scenario 1

 

 

 

scenario 1

 

 

 

 

 

77 of 80

Incorporating n-K criterion in SDDP

New violated constraints are added if any

 

scenario 1

 

scenario 1

 

 

 

scenario 1

 

 

 

 

 

78 of 80

Incorporating n-K criterion in SDDP

We turn off CCG for a while the search if no violation is found in a complete forward iteration

 

 

scenario 1

 

scenario 1

 

 

 

scenario 1

 

 

 

 

79 of 80

Impact of simplified network model

  • Simplifications in network constraints
  • Planning: NFA, DC, DC-LL, SOCP, SDP �Implementation: AC
  • Results indicate that DC with losses (DCLL) is the model with the best tradeoff between computational time and cost/distortions
    • Lowest implementation cost, lowest inconsistency gap, highest reservoir levels, second lowest marginal cost profile

80 of 80

Optimistic bias vs optimality

  • The best point forecast for a deterministic scheduling is pessimistically biased

Application-Driven Learning:

A Closed-Loop Prediction and Optimization Approach

Applied to Dynamic Reserves and Demand Forecasts

To appear in