Optimization Basics for Electric Power Markets

Similar documents
Course notes for EE394V Restructured Electricity Markets: Locational Marginal Pricing

More on Lagrange multipliers

Review of Optimization Basics

Nonlinear Programming (Hillier, Lieberman Chapter 13) CHEM-E7155 Production Planning and Control

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

03-Economic Dispatch 1. EE570 Energy Utilization & Conservation Professor Henry Louie

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

Motivation. Lecture 2 Topics from Optimization and Duality. network utility maximization (NUM) problem:

Information Document Calculation of Pool Price and Transmission Constraint Rebalancing Costs During a Constraint Event ID # R

Some Observations on the Locational Marginal Prices and Loads

04-Economic Dispatch 2. EE570 Energy Utilization & Conservation Professor Henry Louie

Constrained Optimization

Constrained Optimization. Unconstrained Optimization (1)

University of California, Davis Department of Agricultural and Resource Economics ARE 252 Lecture Notes 2 Quirino Paris

ISM206 Lecture Optimization of Nonlinear Objective with Linear Constraints

CE 191: Civil & Environmental Engineering Systems Analysis. LEC 17 : Final Review

Congestion and Price Prediction in Locational Marginal Pricing Markets Considering Load Variation and Uncertainty

Bilevel Programming-Based Unit Commitment for Locational Marginal Price Computation

Lecture 18: Optimization Programming

Concave programming. Concave programming is another special case of the general constrained optimization. subject to g(x) 0

Energy System Modelling Summer Semester 2018, Lecture 7

Constrained maxima and Lagrangean saddlepoints

SIGNIFICANT increase in amount of private distributed

Generalization to inequality constrained problem. Maximize

MATH2070 Optimisation

UNIT-I ECONOMIC OPERATION OF POWER SYSTEM-1

ECG 740 GENERATION SCHEDULING (UNIT COMMITMENT)

Constrained Optimization

OPTIMIZATION THEORY IN A NUTSHELL Daniel McFadden, 1990, 2003

Contents Economic dispatch of thermal units

OPTIMALITY OF RANDOMIZED TRUNK RESERVATION FOR A PROBLEM WITH MULTIPLE CONSTRAINTS

Convex Optimization & Lagrange Duality

In view of (31), the second of these is equal to the identity I on E m, while this, in view of (30), implies that the first can be written

Optimization Tutorial 1. Basic Gradient Descent

MATH 4211/6211 Optimization Constrained Optimization

Tutorial 2: Modelling Transmission

On Clearing Coupled Day-Ahead Electricity Markets

Lagrangian Duality. Richard Lusby. Department of Management Engineering Technical University of Denmark

Nonlinear Optimization

RESTRUCTURED wholesale power markets are extraordinarily

Introduction to Machine Learning Lecture 7. Mehryar Mohri Courant Institute and Google Research

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

2.098/6.255/ Optimization Methods Practice True/False Questions

IE 5531: Engineering Optimization I

Nonlinear Programming and the Kuhn-Tucker Conditions

Algorithms for nonlinear programming problems II

Constrained optimization

The general programming problem is the nonlinear programming problem where a given function is maximized subject to a set of inequality constraints.

Perfect and Imperfect Competition in Electricity Markets

STATIC LECTURE 4: CONSTRAINED OPTIMIZATION II - KUHN TUCKER THEORY

Lagrangian Duality. Evelien van der Hurk. DTU Management Engineering

I.3. LMI DUALITY. Didier HENRION EECI Graduate School on Control Supélec - Spring 2010

DIMACS, Rutgers U January 21, 2013 Michael Caramanis

Seminars on Mathematics for Economics and Finance Topic 5: Optimization Kuhn-Tucker conditions for problems with inequality constraints 1

Econ Slides from Lecture 14

Optimization. A first course on mathematics for economists

AM 205: lecture 19. Last time: Conditions for optimality, Newton s method for optimization Today: survey of optimization methods

Economics 101A (Lecture 3) Stefano DellaVigna

Inverse Optimization for the Recovery of Market Structure from Market Outcomes

Capacity Scarcity Condition Monday, September 3, 2018 Two primary factors led to the implementation of OP 4 event Significant generation outages and r

Bringing Renewables to the Grid. John Dumas Director Wholesale Market Operations ERCOT

Optimisation theory. The International College of Economics and Finance. I. An explanatory note. The Lecturer and Class teacher: Kantorovich G.G.

Mathematical Economics. Lecture Notes (in extracts)

Convex Optimization M2

Solving Dual Problems

Support Vector Machines: Maximum Margin Classifiers

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

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

Part IB Optimisation

Recita,on: Loss, Regulariza,on, and Dual*

Lecture V. Numerical Optimization

The Kuhn-Tucker and Envelope Theorems

I. Why power? II. Model definition III. Model uses IV. The basics. A. Supply Dispatch B. Demand Bidding. D. Transmission

ON LICQ AND THE UNIQUENESS OF LAGRANGE MULTIPLIERS

PRESENTATION OF MATHEMATICAL ECONOMICS SYLLABUS FOR ECONOMICS HONOURS UNDER CBCS, UNIVERSITY OF CALCUTTA

Part 4: Active-set methods for linearly constrained optimization. Nick Gould (RAL)

Outline. Roadmap for the NPP segment: 1 Preliminaries: role of convexity. 2 Existence of a solution

Spatially-Explicit Prediction of Wholesale Electricity Prices

Econ 508-A FINITE DIMENSIONAL OPTIMIZATION - NECESSARY CONDITIONS. Carmen Astorne-Figari Washington University in St. Louis.

5. Duality. Lagrangian

AM 205: lecture 19. Last time: Conditions for optimality Today: Newton s method for optimization, survey of optimization methods

Economic Operation of Power Systems

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

g(x,y) = c. For instance (see Figure 1 on the right), consider the optimization problem maximize subject to

SECTION C: CONTINUOUS OPTIMISATION LECTURE 9: FIRST ORDER OPTIMALITY CONDITIONS FOR CONSTRAINED NONLINEAR PROGRAMMING

Module 04 Optimization Problems KKT Conditions & Solvers

Tutorial on Convex Optimization: Part II

Support Vector Machines

Introduction to Mathematical Programming IE406. Lecture 10. Dr. Ted Ralphs

Optimization Theory. Lectures 4-6

3E4: Modelling Choice. Introduction to nonlinear programming. Announcements

Lecture Note 5: Semidefinite Programming for Stability Analysis

Karush-Kuhn-Tucker Conditions. Lecturer: Ryan Tibshirani Convex Optimization /36-725

Total Market Demand Wed Jan 02 Thu Jan 03 Fri Jan 04 Sat Jan 05 Sun Jan 06 Mon Jan 07 Tue Jan 08

SCHOOL OF DISTANCE EDUCATION

NONLINEAR. (Hillier & Lieberman Introduction to Operations Research, 8 th edition)

Constraint qualifications for nonlinear programming

ELE539A: Optimization of Communication Systems Lecture 6: Quadratic Programming, Geometric Programming, and Applications

Dynamics of Global Supply Chain and Electric Power Networks: Models, Pricing Analysis, and Computations

Midterm Exam - Solutions

Transcription:

Optimization Basics for Electric Power Markets Presenter: Leigh Tesfatsion Professor of Econ, Math, and ECpE Iowa State University Ames, Iowa 50011-1070 http://www.econ.iastate.edu/tesfatsi/ tesfatsi@iastate.edu Last Revised: 14 September 2011 Important Acknowledgement: These lecture materials incorporate edited slides and figures originally developed by R. Baldick, S. Bradley et al., A. Hallam, T. Overbye, and M. Wachowiak 1

Topic Outline ISO Market Optimization on a Typical Operating Day D Alternative modeling formulations Optimization illustration: Real-time economic dispatch Classic Nonlinear Programming Problem (NPP): Minimization subject to equality constraints NPP via the Lagrange multiplier approach NPP Lagrange multipliers as shadow prices Real-time economic dispatch: Numerical example General Nonlinear Programming Problem (GNPP): Minimization subject to equality and inequality constraints GNPP via the Lagrange multiplier approach GNPP Lagrange multipliers as shadow prices Necessary versus sufficient conditions for optimization Technical references 2

ISO Market Optimization on a Typical Operating Day D: Timing from Midwest ISO (MISO) 00:00 Day-ahead market for day D+1 ISO collects bids/offers from LSEs and GenCos Real-time spot market (balancing) for day D 11:00 ISO evaluates LSE demand bids and GenCo supply offers Real-time settlement 16:00 23:00 ISO solves D+1 Security Constrained Unit Commitment (SCUC) & Security Constrained Economic Dispatch (SCED) & posts D+1 commitment, dispatch, and LMP schedule Day-ahead settlement 3

Types of Model Representations (from Bradley et al. [2]) Main focus of 458 (LT) 4

Classification of Modeling Tools (from Bradley et al. [2]) Main focus of 458 (LT) Game Theory 5

Optimization in Practice (from Bradley et al. [2]) Main focus of 458 (LT) 6

Source: M. Wachowiak, Optim Lecture Notes (On-Line) Main focus of 458 (LT) 7

Optimization Illustration: Hourly Economic Dispatch Initial Problem Simplification: Ignore Generation Company (GenCo) capacity limits, transmission constraints, line limit losses, and all costs except variable costs. Problem Formulation for Hour H Determine the real-power dispatch levels P Gi (MW) for GenCos i = 1, 2,, I that minimize total variable cost TVC, subject to the constraint that total dispatch equals total real-power demand (load) P D 8

Hourly Economic Dispatch: Mathematical Formulation Variable cost of GenCo i I minimize TVC(P G ) = VC i (P Gi ) i=1 with respect to P G = (P G1,,P GI ) T ($/h) (MW) subject to the balance constraint I P Gi = P D i=1 (MW) constraint constant 9

5-Bus Transmission Grid Example G5 Bus 5 Bus 4 VC 5 5 GenCos (I=5), Load P D = 500MW Load=50MW LSE 3 G4 VC 4 Bus 1 Bus 2 Bus 3 G1 G2 LSE 1 G3 LSE 2 VC 1 VC 2 Load=100MW VC 3 Load=350MW 10

Illustration of TVC Determination 90 70 ($/MWh) P D G3 G5 G4 G4 MC(P G ) Optimal Dispatch P* G1 = 200MW 50 G3 P* G2 = 100MW 30 10 G2 G1 G1 TVC*(500) P* G3 = 200MW P* G4 =P* G5 =0 0 500 200 400 600 8 P G (MW) 11

Illustration of TVC Determination 90 ($/MWh) P D G4 G4 MC(P G ) 70 G5 Optimal Dispatch G3 P* G1 = 200MW 50 G3 P* G2 = 100MW 30 G1 G1 VC 3 * P* G3 = 200MW P* G4 =P* G5 =0 10 0 G2 VC 2 * VC 1 * 500 200 400 600 8 P G (MW) 12

Day-Ahead Supply Offers in MISO Minimum acceptable price (sale reservation price) for each MW $/MWh MW 10 10 10 10 10 10 10 10 13

Supply Offers in the MISO Cont d 14

Important Remark on the Form of GenCo Supply Offers Linear programming (LP) is used to handle economic dispatch when supply offers have block (step-function) form. (typical case in practice) Nonlinear Programming (NP) techniques are used to handle economic dispatch when supply offers take a slope (piecewise differentiable or differentiable) form. (K/S assumption) The remainder of these notes use NP techniques for economic dispatch, assuming supply offers take a differentiable form. When we later treat GenCo capacity constraints, we will need to relax this to permit supply offers to take a piecewise differentiable form. 15

Hourly Economic Dispatch Once Again Variable cost of GenCo i I minimize TVC(P G ) = VC i (P Gi ) i=1 with respect to P G = (P G1,,P GI ) T ($/h) (MW) subject to the balance constraint I P Gi = P D i=1 (MW) constraint constant 16

Minimization with Equality Constraints: General Solution Method? For a differentiable function f(x) of an n-dimensional vector x = (x 1,,x n ) T, a necessary (but not sufficient) condition for x* to minimize f(x) is that x f(x*) = 0. This multi-variable gradient condition generalizes the first derivative condition for 1-variable min problems: n-dimensional row vector! fx f ( x) f ( x) f ( x) ( ) =,,, x x1 x2 x n 17

Minimization with Equality Constraints Cont d When a minimization problem involves equality constraints, we can solve the problem using the method of Lagrange Multipliers The key idea is to transform the constrained minimization problem into an unconstrained problem 18

Minimization with Equality Constraints Cont d n-dimensional vector x = (x 1,,x n ) T n choice variables m-dimensional vector c = (c 1,,c m ) T m constraint constants R n = all real n-dimensional vectors, R m = all real m-dimensional vectors f:r n R objective function mapping x f(x) on real line h:r n R m constraint function mapping x h(x) = (h 1 (x),,h m (x)) T Nonlinear Programming Problem: (NPP) Minimize f(x) with respect to x subject to h(x) = c 19

Minimization with Equality Constraints Cont d The Lagrangean Function for this problem can be expressed in parameterized form as L(x,,c) = f(x) - T [h(x) c ] or equivalently, Making explicit the dependence of L on c L(x,,C) = f(x) + T [c h(x)] where T = ( 1,., m ) 20

Minimization with Equality Constraints Cont d (cf. Fletcher [3]) Regularity Conditions: Suppose f, h are differentiable and either rank( x h(x*))=m or h(x) has form A mxn x nx1 + b mx1. m by n matrix 21

Minimization with Equality Constraints Cont d (cf. Fletcher [3]) First-Order Necessary Conditions (FONC) for x* to solve Problem (NPP), given regularity conditions: There exists a value * for the multiplier vector such that (x*, *) satisfies: (1) 0 = x L(x*, *, c) 1xn = x f(x*) - T x h(x*) (2) 0 = L(x*, *, c) 1xm = [c h(x*)] T 22

Lagrange Multipliers as Shadow Prices? By construction, the solution (x*, *) is a function of the given vector c of constraint constants: (x*, *) = (x(c), (c) ) From FONC condition (2) on previous page: f(x(c)) = L(x(c), (c), c) 23

Lagrange Multipliers as Shadow Prices Total Differential Then from implicit function theorem, the chain rule, and FONC (1), (2), for each constraint k, Partial Differentials h This + sign follows from the form of Lagrangean function 24

Lagrange Multipliers as Shadow Prices In summary, for each constraint k: Thus the Lagrange multiplier solution k (c) for the kth constraint gives the change in the optimized objective function f(x*) = f(x(c)) with respect to a change in the constraint constant c k for the kth constraint. 25

Example: Economic Dispatch Again For the economic dispatch we have a minimization constrained with a single equality constraint G m m constraint constant I h I VC Cc i i PGi PD PGi i 1 i 1 L( P, ) ( ) ( ) (no losses) The necessary conditions for a minimum are P L( PG, ) P D Gi I m I i 1 P Gi 0 dc c i( PGi ) dp dvc i Gi 0 (for i 1 to mi ) 26

Hourly Economic Dispatch: Numerical Example (Baldick/Overbye) What is economic dispatch for a two generator system P D G1 G2 2 1 G1 G1 G1 2 2 G2 G2 G2 G1 500 MW and V C ( P ) 1000 20P 0.01 P $/h V C ( P ) 400 15P 0.03 P $/h Using the Largrange L multiplier method we know d dv dv dc1( PG 1) dp dc2( PG 2) dp G2 P a La G1 G2 P 500 P P 0 20 0.02P 0 G1 15 0.06P 0 G2 This requires cost coefficients to have units, omitted here for simplicity $/MWh 27

Economic Dispatch Example Continued We therefore need to solve three linear equations 20 0.02P 0 G1 G2 G1 15 0.06P 0 G2 500 P P 0 G1 G2 0.02 0 1 P 20 P P G1 0 0.06 1 P 15 G2 1 1 0 500 * * * 312.5 MW 187.5 MW 26.2 $/MWh Solution Values 28

Economic Dispatch Example Continued The solution values for the Economic Dispatch problem are: P G * = (P G1 *,P G2 *) T = (312.5MW, 187.5MW) T *= $26.2/MWh By construction, the solution values P G * and * are functions of the constraint constant P D. That is, a change in P D would result in a change in these solution values. 29

Economic Dispatch Example Continued Applying previous developments for Lagrange multipliers as shadow prices, * = TVC(P G *) (in $/MWh) P D = Change in minimized total variable cost TVC (in $/h) with respect to a change in the total demand P D (in MW), where P D is the constraint constant for the balance constraint [Total Dispatch = Total Demand] 30

Economic Dispatch Example Continued By definition, the locational marginal price (LMP) at any bus k in any hour h is the least cost of servicing one more megawatt (MW) of demand at bus k. Consequently, * = TVC(P G *) P D (in $/MWh) 31

Extension to Inequality Constraints (cf. Fletcher [3]) General Nonlinear Programming Problem (GNPP): x = nx1 choice vector; c = mx1 vector & d = sx1 vector (constraint constants) f(x) maps x into R (all real numbers) h(x) maps x into R m (all m-dimensional vectors) z(x) maps x into R s (all s-dimensional vectors) GNPP: Minimize f(x) with respect to x subject to h(x) = c z(x) d 32

Important Remark on the Representation of Inequality Constraints Note: The inequality constraint for (GNPP) can equivalently be expressed in many different ways: (1) z(x) d ; (2) z(x) - d 0 ; (3) - z(x) [-d] 0 ; (4) r(x) e 0 (r(x) = -[z(x)], e = -[d] ) (5) r(x) e 33

Why Our Form of Inequality? Our GNPP Form: Minimize f(x) with respect to x subject to h(x) = c (*) z(x) d Given suitable regularity conditions Given this form, we know that an INCREASE in d has to result in a new value for the minimized objective function f(x*) that is AT LEAST AS GREAT as before. Why? When d increases the feasible choice set for x SHRINKS, hence [min f] either or stays same. h 0 f(x*)/ d = * T = Shadow price vector for (*) h 34

Extension to Inequality Constraints Continued Define the Lagrangean Function as L(x,,,c,d) = f(x) + T [c - h(x)] + T [d - z(x)] Assume Kuhn-Tucker Constraint Qualification (KTCQ) holds at x*, roughly stated as follows: The true set of feasible directions at x* = Set of feasible directions at x* assuming a linearized set of constraints in place of the original set of constraints. 35

Extension to Inequality Constraints Continued Given KTCQ, the First-Order Necessary Conditions (FONC) for x* to solve the (GNPP) are as follows: There exist * and * such that (x*, *, *) satisfy: 0 = x L(x*, *, *,c,d) = [ x f(x*) - * T x h(x*) - * T x z(x*) ] ; h(x*) = c ; z(x*) d; * T [d - z(x*)] = 0; * 0 These FONC are often referred to as the Karush-Kuhn-Tucker (KKT) conditions. 36

Solution as a Function of (c,d) By construction, the components of the solution vector (x*, *, *) are functions of the constraint constant vectors c and d x* = x(c,d) * = (c,d) * = (c,d) 37

GNPP Lagrange Multipliers as Shadow Prices Given certain additional regularity conditions The solution * for the m x 1 multiplier vector is the derivative of the minimized value f(x*) of the objective function f(x) with respect to the constraint vector c, all other problem data remaining the same. f(x*)/ c = f(x(c,d))/ c = * T 38

GNPP Lagrange Multipliers as Shadow Prices Given certain additional regularity conditions The solution * for the s x 1 multiplier vector is the derivative of the minimized value f(x*) of the objective function f(x) with respect to the constraint vector d, all other problem data remaining the same. 0 f(x*)/ d = f(x(c,d))/ d = * T 39

GNPP Lagrange Multipliers as Shadow Prices Consequently The solution * for the multiplier vector thus essentially gives the prices (values) associated with unit changes in the components of the constraint vector c, all other problem data remaining the same. The solution * for the multiplier vector thus essentially gives the prices (values) associated with unit changes in the components of the constraint vector d, all other problem data remaining the same. Each component of * can take on any sign Each component of * must be nonnegative 40

Sufficient Conditions for Minimization? First-order necessary conditions for x* to solve NPP/GNPP are not sufficient in general to ensure x* solves NPP/GNPP, or to ensure x* solves NPP/GNPP uniquely What can go wrong: (1) Local maximum rather than local minimization (2) Inflection point rather than minimum point (3) Local minimum rather than global minimum (4) Multiple minimizing solution points Need conditions on second derivatives to rule out 1 & 2, global methods/conditions to rule out 3 & 41 4

Local Max Rather Than Local Min From A. Hallam, Simple Multivariate Optimization (on-line) 42

Inflection Rather than Min Point From A. Hallam, Simple Multivariate Optimization (on-line) 43

Local Min Rather than Global Min: Both Satisfy the FONC df(x)/dx = 0 f(x) Local Min Global Min x 44

Multiple Minimization Points From A. Hallam, Simple Multivariate Optimization (on-line) 45

Technical References [1] Ross Baldick, Applied Optimization: Formulation and Algorithms for Engineering Systems, Cambridge University Press, 2006, 768 pp. paperback ed. (2009) http://books.google.com/books/cambridge?id=zdldomkgi00c [2] Stephen P. Bradley, Arnoldo C. Hax, and Thomas L. Magnanti, Applied Mathematical Programming, Addison- Wesley, 1977. [3] Roger Fletcher, Practical Methods of Optimization, Second Edition, John Wiley & Sons, New York, c. 1987 [4] G. Sheble and J. McCalley, "Economic Dispatch Calculation" PowerLearn Module 3, Electric Power Engineering Education, 2000 www.econ.iastate.edu/classes/econ458/tesfatsion/econdispatc 46 hcalculation.gsheblejmccalley1999.pdf