Modeling, equilibria, power and risk

Similar documents
Quadratic Support Functions and Extended Mathematical Programs

Optimization and Equilibrium in Energy Economics

Multiple Optimization Problems with Equilibrium Constraints (MOPEC)

Optimization and Equilibrium in Energy Economics

MOPEC: Multiple Optimization Problems with Equilibrium Constraints

Modeling and Optimization within Interacting Systems

Stochastic Programming, Equilibria and Extended Mathematical Programming

Extended Mathematical Programming: Competition and Stochasticity

Coupled Optimization Models for Planning and Operation of Power Systems on Multiple Scales

Computing risk averse equilibrium in incomplete market. Henri Gerard Andy Philpott, Vincent Leclère

Solving equilibrium problems using extended mathematical programming and SELKIE

Optimality conditions and complementarity, Nash equilibria and games, engineering and economic application

MOPEC: multiple optimization problems with equilibrium constraints

Stochastic Equilibrium Problems arising in the energy industry

Planning a 100 percent renewable electricity system

The convergence of stationary iterations with indefinite splitting

Theory and Computations for Multiple Optimization Problems with Equilibrium Constraints (MOPEC)

Extended Mathematical Programming

A new stochastic program to facilitate intermittent renewable generation

Dynamic risked equilibrium

Stochastic Dual Dynamic Programming with CVaR Risk Constraints Applied to Hydrothermal Scheduling. ICSP 2013 Bergamo, July 8-12, 2012

A three-level MILP model for generation and transmission expansion planning

Optimization Tools in an Uncertain Environment

An Extended Mathematical Programming Framework

Uncertainty Per Krusell & D. Krueger Lecture Notes Chapter 6

Nonlinear Complementarity Problems and Extensions

Competitive Equilibrium

Department of Agricultural Economics. PhD Qualifier Examination. May 2009

Advanced Microeconomics

Market Equilibrium and the Core

Javier Contreras Sanz- Universidad de Castilla-La Mancha Jesús María López Lezama- Universidad de Antioquia Antonio Padilha-Feltrin- Universidade

In the Name of God. Sharif University of Technology. Microeconomics 1. Graduate School of Management and Economics. Dr. S.

Competitive Equilibria in a Comonotone Market

Informed Principal in Private-Value Environments


Ph.D. Preliminary Examination MICROECONOMIC THEORY Applied Economics Graduate Program May 2012

Perfect and Imperfect Competition in Electricity Markets

The ambiguous impact of contracts on competition in the electricity market Yves Smeers

Regularized optimization techniques for multistage stochastic programming

Design Patent Damages under Sequential Innovation

Ph.D. Preliminary Examination MICROECONOMIC THEORY Applied Economics Graduate Program June 2016

Workshop on Nonlinear Optimization

Game theory and market power

Solving a Class of Generalized Nash Equilibrium Problems

Competitive Equilibrium and the Welfare Theorems

problem. max Both k (0) and h (0) are given at time 0. (a) Write down the Hamilton-Jacobi-Bellman (HJB) Equation in the dynamic programming

Notes on General Equilibrium

ECON FINANCIAL ECONOMICS

Economics 501B Final Exam Fall 2017 Solutions

1 Jan 28: Overview and Review of Equilibrium

Multi-Area Stochastic Unit Commitment for High Wind Penetration

Ergodicity and Non-Ergodicity in Economics

Consumption. Consider a consumer with utility. v(c τ )e ρ(τ t) dτ.

Mechanism design and allocation algorithms for energy-network markets with piece-wise linear costs and quadratic externalities

Data Abundance and Asset Price Informativeness. On-Line Appendix

Extended Mathematical Programming

SOME HISTORY OF STOCHASTIC PROGRAMMING

Flow Control, Routing, and Performance with a For-profit Service Provider

FPTAS for Computing a Symmetric Leontief Competitive Economy Equilibrium

Econ 101A Problem Set 6 Solutions Due on Monday Dec. 9. No late Problem Sets accepted, sorry!

Introduction to General Equilibrium

Lecture 1. Stochastic Optimization: Introduction. January 8, 2018

ECO 317 Economics of Uncertainty Fall Term 2009 Slides to accompany 13. Markets and Efficient Risk-Bearing: Examples and Extensions

Contracts under Asymmetric Information

Discussion Papers in Economics

Mixed Integer Linear Programming Formulation for Chance Constrained Mathematical Programs with Equilibrium Constraints

Risk-Averse Second-Best Toll Pricing

Oblivious Equilibrium: A Mean Field Approximation for Large-Scale Dynamic Games

5. Externalities and Public Goods. Externalities. Public Goods types. Public Goods

SHORT-TERM hydropower planning under uncertainty is

Microeconomics, Block I Part 2

Are Targets for Renewable Portfolio Standards Too Low? A Complementarity-Based Policy Analysis

Mathematical Foundations -1- Constrained Optimization. Constrained Optimization. An intuitive approach 2. First Order Conditions (FOC) 7

5. Externalities and Public Goods

Stochastic Generation Expansion Planning

Optimal Demand Response

Solving Dynamic Games with Newton s Method

Bertrand Model of Price Competition. Advanced Microeconomic Theory 1

Oligopoly Theory 2 Bertrand Market Games

The Consumer, the Firm, and an Economy

Solving Multi-Leader-Common-Follower Games

Decomposability and time consistency of risk averse multistage programs

A Progressive Hedging Approach to Multistage Stochastic Generation and Transmission Investment Planning

Comparing Variance Reduction Techniques for Monte Carlo Simulation of Trading and Security in a Three-Area Power System

ECONOMICS 001 Microeconomic Theory Summer Mid-semester Exam 2. There are two questions. Answer both. Marks are given in parentheses.

Microeconomics II Lecture 4: Incomplete Information Karl Wärneryd Stockholm School of Economics November 2016

Markov Perfect Equilibria in the Ramsey Model

x ax 1 2 bx2 a bx =0 x = a b. Hence, a consumer s willingness-to-pay as a function of liters on sale, 1 2 a 2 2b, if l> a. (1)

General Equilibrium. General Equilibrium, Berardino. Cesi, MSc Tor Vergata

Optimization Problems with Probabilistic Constraints

Lecture Doraszelski and Judd. Dynamic and Stochastic Model of Industry

Firms and returns to scale -1- John Riley

Financial Optimization ISE 347/447. Lecture 21. Dr. Ted Ralphs

1. Linear Incentive Schemes

A DC (DIFFERENCE OF CONVEX FUNCTIONS) APPROACH OF THE MPECS. Matthieu Marechal. Rafael Correa. (Communicated by the associate editor name)

(a) Write down the Hamilton-Jacobi-Bellman (HJB) Equation in the dynamic programming

SOLVING STOCHASTIC PROGRAMMING PROBLEMS WITH RISK MEASURES BY PROGRESSIVE HEDGING

Industrial Organization Lecture 3: Game Theory

FINM6900 Finance Theory Noisy Rational Expectations Equilibrium for Multiple Risky Assets

Content Pricing in Peer-to-Peer Networks

Transcription:

Modeling, equilibria, power and risk Michael C. Ferris Joint work with Andy Philpott and Roger Wets University of Wisconsin, Madison Workshop on Stochastic Optimization and Equilibrium University of Southern California October 16, 2015 Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 1 / 17

(M)OPEC x θ(x, p) s.t. g(x, p) 0 0 p h(x, p) 0 equilibrium theta x g vi h p Solved concurrently Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 2 / 17

(M)OPEC x θ(x, p) s.t. g(x, p) 0 0 p h(x, p) 0 x x θ(x, p) + λ T x g(x, p) 0 λ g(x, p) 0 0 p h(x, p) 0 equilibrium theta x g vi h p Solved concurrently Requires global solutions of agents problems (or theory to guarantee KKT are equivalent) Theory of existence, uniqueness and stability based in variational analysis Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 2 / 17

MOPEC θ i (x i, x i, p) s.t. g i (x i, x i, p) 0, i x i p solves VI(h(x, ), C) equilibrium theta(1) x(1) g(1)... theta(m) x(m) g(m) vi h p cons Trade/Policy Model (MCP) (Generalized) Nash Reformulate optimization problem as first order conditions (complementarity) Use nonsmooth Newton methods to solve Solve overall problem using individual Split model (18,000 vars) via region optimizations? = + Gauss-Seidel, Jacobi, Asynchronous Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 3 / 17

Power generation, transmission and distribution Detere generators output to reliably meet the load Gen MW = Load MW, at all times. Power flows cannot exceed lines transfer capacity. Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 4 / 17

rvoir and one thermal plant, as shown in Figure 1. We Hydro-Thermal System (Philpott/F./Wets) nd de ne Figure 1: Example hydro-thermal system. Competing agents (consumers, or generators in energy market) Each agent imizes objective independently (cost) Market prices are function of all agents activities Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 5 / 17

Simple electricity system optimization problem SO: max d k,u i,v j,x i 0 s.t. W k (d k ) C j (v j ) + V i (x i ) k K j T i H U i (u i ) + v j d k, i H j T k K x i = xi 0 u i + hi 1, i H u i water release of hydro reservoir i H v j thermal generation of plant j T x i water level in reservoir i H prod fn U i (strictly concave) converts water release to energy C j (v j ) denote the cost of generation by thermal plant V i (x i ) future value of terating with storage x (assumed separable) W k (d k ) utility of consumption d k Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 6 / 17

SO equivalent to CE (price takers) Consumers k K solve CP(k): max d k 0 Thermal plants j T solve TP(j): max v j 0 Hydro plants i H solve HP(i): max u i,x i 0 W k (d k ) p T d k p T v j C j (v j ) p T U i (u i ) + V i (x i ) s.t. x i = xi 0 u i + hi 1 Perfectly competitive (Walrasian) equilibrium is a MOPEC CE: d k arg max CP(k), k K, v j arg max TP(j), j T, u i, x i arg max HP(i), i H, 0 p U i (u i ) + v j d k. i H j T k K Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 7 / 17

Agents have stochastic recourse? Agents face uncertainties in reservoir inflows Two stage stochastic programg, x 1 is here-and-now decision, recourse decisions x 2 depend on realization of a random variable ρ is a risk measure (e.g. expectation, CVaR) c T x 1 + ρ[q T x 2 ] s.t. Ax 1 = b, x 1 0, T (ω)x 1 + W (ω)x 2 (ω) d(ω), x 2 (ω) 0, ω Ω. A T T W igure Constraints matrix structure of 15) problem by suitable subgradient methods in an outer loop. In the inner Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 8 / 17

Two stage stochastic MOPEC (1,1,1) CP: TP: HP: d 1 0 v 1 0 u 1,x 1 0 p 1 d 1 W (d 1 ) C(v 1 ) p 1 v 1 p 1 U(u 1 ) s.t. x 1 = x 0 u 1 + h 1, 0 p 1 U(u 1 ) + v 1 d 1 Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 9 / 17

Two stage stochastic MOPEC (1,1,1) CP: TP: HP: d 1,d 2 ω 0 p 1 d 1 W (d 1 ) + ρ [ p 2 ωd 2 ω W (d 2 ω) ] C(v 1 ) p 1 v 1 + ρ [ C(vω) 2 pωv 2 2 (ω) ] v 1,vω 2 0 u 1,x 1 0 u 2 ω,x2 ω 0 p 1 U(u 1 ) + ρ [ p 2 (ω)u(uω) 2 V (xω) 2 ] s.t. x 1 = x 0 u 1 + h 1, x 2 ω = x 1 u 2 ω + h 2 ω 0 p 1 U(u 1 ) + v 1 d 1 Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 9 / 17

Two stage stochastic MOPEC (1,1,1) CP: TP: HP: d 1,d 2 ω 0 p 1 d 1 W (d 1 ) + ρ [ p 2 ωd 2 ω W (d 2 ω) ] C(v 1 ) p 1 v 1 + ρ [ C(vω) 2 pωv 2 2 (ω) ] v 1,vω 2 0 u 1,x 1 0 u 2 ω,x2 ω 0 p 1 U(u 1 ) + ρ [ p 2 (ω)u(uω) 2 V (xω) 2 ] s.t. x 1 = x 0 u 1 + h 1, x 2 ω = x 1 u 2 ω + h 2 ω 0 p 1 U(u 1 ) + v 1 d 1 0 p 2 (ω) U(u 2 ω) + v 2 ω d 2 ω, ω Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 9 / 17

0 1 2 3 4 5 6 7 8 9 10 Single hydro, thermal and representative consumer Initial storage 10, inflow of 4 to 0, equal prob random inflows of i to node i Risk neutral: SO equivalent to CE (key point is that each risk set is a singleton, and that is the same as the system risk set) Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 10 / 17

0 1 2 3 4 5 6 7 8 9 10 Single hydro, thermal and representative consumer Initial storage 10, inflow of 4 to 0, equal prob random inflows of i to node i Risk neutral: SO equivalent to CE (key point is that each risk set is a singleton, and that is the same as the system risk set) Each agent has its own risk measure, e.g. 0.8EV + 0.2CVaR Is there a system risk measure? Is there a system optimization problem? i C(x 1 i ) + ρ i ( C(x 2 i (ω)) )???? Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 10 / 17

Equilibrium or optimization? Theorem If (d, v, u, x) solves (risk averse) SO, then there exists a probability distribution σ k and prices p so that (d, v, u, x, p) solves (risk neutral) CE(σ) (Observe that each agent must maximize their own expected profit using probabilities σ k that are derived from identifying the worst outcomes as measured by SO. These will correspond to the worst outcomes for each agent only under very special circumstances) High initial storage level (15 units) Worst case scenario is 1: lowest system cost, smallest profit for hydro SO equivalent to CE Low initial storage level(10 units) Different worst case scenarios SO different to CE (for large range of demand elasticities) Attempt to construct agreement on what would be the worst-case outcome by trading risk Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 11 / 17

Contracts in MOPEC (F./Wets) Can we modify (complete) system to have a social optimum by trading risk? How do we design these instruments? How many are needed? What is cost of deficiency? Facilitated by allowing contracts bought now, for goods delivered later (e.g. Arrow-Debreu Securities) Conceptually allows to transfer goods from one period to another (provides wealth retention or pricing of ancilliary services in energy market) Can investigate new instruments to mitigate risk, or move to system optimal solutions from equilibrium (or market) solutions Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 12 / 17

CP: TP: HP: d 1,d 2 ω 0 v 1,v 2 ω 0 u 1,x 1 0 u 2 ω,x2 ω 0 [ p 1 d 1 W (d 1 ) + ρ pωd 2 ω 2 W (dω) 2 [ C(v 1 ) p 1 v 1 + ρ C(vω) 2 pωv 2 2 (ω) [ p 1 U(u 1 ) + ρ p 2 (ω)u(uω) 2 V (xω) 2 s.t. x 1 = x 0 u 1 + h 1, ] ] ] x 2 ω = x 1 u 2 ω + h 2 ω 0 p 1 U(u 1 ) + v 1 d 1 0 p 2 (ω) U(u 2 ω) + v 2 ω d 2 ω, ω Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 13 / 17

Trading risk: pay σ ω now, deliver 1 later in ω CP: TP: HP: d 1,d 2 ω 0,tC v 1,v 2 ω 0,t T u 1,x 1 0 u 2 ω,x2 ω 0,tH [ ] σt C + p 1 d 1 W (d 1 ) + ρ pωd 2 ω 2 W (dω) 2 tω C [ ] σt T + C(v 1 ) p 1 v 1 + ρ C(vω) 2 pωv 2 2 (ω) tω T [ ] σt H p 1 U(u 1 ) + ρ p 2 (ω)u(uω) 2 V (xω) 2 tω H s.t. x 1 = x 0 u 1 + h 1, x 2 ω = x 1 u 2 ω + h 2 ω 0 p 1 U(u 1 ) + v 1 d 1 0 p 2 (ω) U(u 2 ω) + v 2 ω d 2 ω, ω 0 σ ω t C ω + t T ω + t H ω 0, ω Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 13 / 17

Main Result Theorem Agents a have polyhedral node-dependent risk sets D a (n), n N \ L with nonempty intersection. Now let {u s a(n) : n N, a A} be a solution to SO with risk sets D s (n) = a A D a (n). Suppose this gives rise to µ (hence σ) and prices {p(n) : n N } where p(n)σ(n) are Lagrange multipliers. These prices and quantities form a multistage risk-trading equilibrium in which agent a solves OPT(a) with a policy defined by u a ( ) together with a policy of trading Arrow-Debreu securities defined by {t a (n), n N \ {0}}. Low storage setting If thermal is risk neutral (even with trading) SO equivalent to CE If thermal is identically risk averse, there is a CE, but different to original SO Trade risk to give optimal solutions for the sum of their positions Under a complete market for risk assumption, we may construct a competitive equilibrium with risk trading from a social planning solution Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 14 / 17

Theory and Observations agent problems are multistage stochastic optimization models perfectly competitive partial equilibrium still corresponds to a social optimum when all agents are risk neutral and share common knowledge of the probability distribution governing future inflows situation complicated when agents are risk averse utilize stochastic process over scenario tree under mild conditions a social optimum corresponds to a competitive market equilibrium if agents have time-consistent dynamic coherent risk measures and there are enough traded market instruments (over tree) to hedge inflow uncertainty Otherwise, must solve the stochastic equilibrium problem Research challenge: develop reliable algorithms for large scale decomposition approaches to MOPEC Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 15 / 17

What is EMP? Annotates existing equations/variables/models for modeler to provide/define additional structure equilibrium vi (agents can solve /max/vi) bilevel (reformulate as MPEC, or as SOCP) disjunction (or other constraint logic primitives) randvar dualvar (use multipliers from one agent as variables for another) extended nonlinear programs (library of plq functions) Currently available within GAMS Solution algorithms implemented in modeling system Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 16 / 17

Conclusions MOPEC problems capture complex interactions between optimizing agents Policy implications addressable using MOPEC MOPEC available to use within the GAMS modeling system Stochastic MOPEC enables modeling dynamic decision processes under uncertainty Many new settings available for deployment; need for more theoretic and algorithmic enhancements Ferris (Univ. Wisconsin) SOE 2015 Supported by DOE/LBNL 17 / 17