Shantanu Chavan Navaneethakrishnan Raman Tamil Kadir Rajavel 3/22/2016 1 Linear Programming (LP) Economic Dispatch (ED) ◦ ED without loss ◦ ED with loss Hydro Scheduling Literature Review ◦ Commercial Solvers ◦ Research Paper Review EE 5721 Power Generation and Control Project Presentation 3/22/2016 2 What is LP? LP deals with optimizing objective function satisfying various constraints on decision variables Optimization may be in terms of minimization or maximization Typical LP formulation: min or max f=cTx s.t. Ax≤ b; x≥0 c: coefficient matrix (objective function) A, b: parameters representing constraint functions Various Solvers use LP Optimization Toolbox in MATLAB EE 5721 Power Generation and Control Project Presentation 3/22/2016 3 Requires linear objective function Uses Simplex Algorithm which moves along the edges of the polyhedron defined by the constraints, from one vertex to another, while decreasing the value of objective function What are the limitations? Lack of ability to incorporate non linear functions, but this can be overcome by the technique of piecewise linear approximation EE 5721 Power Generation and Control Project Presentation 3/22/2016 4 Linear programming function: LINPROG Syntax: ◦ x= linprog(c, A, b, Aeq, Beq, LB, UB) ‘x’ solves min cTx such that Ax ≤ b while additionally satisfying Aeq*x=Beq. ◦ It also defines upper (UB) and lower (LB) bound for the decision variables ◦ EE 5721 Power Generation and Control Project Presentation 3/22/2016 5 What is ED? Method of determining the most efficient, low-cost and reliable operation of a power system supplying the load on the system with the help of generation resources available What is the Objective? Minimizing the production cost of thermal generation satisfying the constraints on generation levels EE 5721 Power Generation and Control Project Presentation 3/22/2016 6 Objective function: Min C(P)= ∑Ci(Pi) where, i= 1,2,… Ng (No. of generators) Ci(Pi)=αi+βiPi+γiPi2 $/hr PiMin≤Pi≤PiMax Equality Constraints: Equality constraints consists of Loadbalance equation, Pload- ∑ Pi=0 EE 5721 Power Generation and Control Project Presentation 3/22/2016 7 Non linear nature of cost function can be addressed in LP Piecewise linear approximation e.g. Consider a non linear cost function given in FIG.1 It can be approximated linearly as shown in FIG.2, where the slopes s1,s2 of the respective segments represent the cost function More no. of slope segments increase the accuracy of approximation EE 5721 Power Generation and Control Project Presentation 3/22/2016 8 FIG.1 FIG.2 EE 5721 Power Generation and Control Project Presentation 3/22/2016 9 Formulation of LP in MATLAB: ◦ Objective function: F= ∑ ∑ sijPij Where, i=1,2,…Ns (no. of slope segments) j=1,2,..Ng (no. of generators) ◦ Equality and Inequality constraints: Equality Constraints: Beq vector is given by, Beq= Pload- ∑ Pimin EE 5721 Power Generation and Control Project Presentation 3/22/2016 10 Equality and Inequality Constraints: ◦ Inequality Constraints: LB, UB parameters in MATLAB are used. LB and UB are the lower and upper bounds of the decision variables Final Formulation: x=linprog(F, A, b, Aeq, Beq, LB, UB) F=vector containing slope segments for ‘Ng’ generators A=[], b=[] (since inequality constraints are not used) EE 5721 Power Generation and Control Project Presentation 3/22/2016 11 In practical systems, we always have losses Generators have to supply the load plus the losses incurred in the system. LP in MATLAB does not have in built ready to use function to incorporate the losses However, loss term can be included in LP formulation by virtue of including penalty factor term EE 5721 Power Generation and Control Project Presentation 3/22/2016 12 In Lagrange multiplier method, we come across penalty factor term, pf= 1-(dPLoss/dPi) as, pf1 (dℒ/dP1)= pf2 (dℒ/dP2) Include penalty factor term in the objective function coefficient vector F= ∑ ∑ pfjsijPij Where, i=1,2,…Ns (no. of slope segments) j=1,2,..Ng (no. of generators) e.g. for Ns=2, Ng=2, F= pf1(s11P11+s12P12)+pf2(s21P21+s22P22) EE 5721 Power Generation and Control Project Presentation 3/22/2016 13 Load- balance equation is given as, Beq= Pload+Ploss- ∑ Pimin e.g. for the case mentioned, Beq= Pload+Ploss- (P1min+ P2min) EE 5721 Power Generation and Control Project Presentation 3/22/2016 14 Advantages: ◦ This approach can also be extended to large scale problems, including hundreds of generation units ◦ Loss function can be introduced as a linear, non linear function or even as an incremental function EE 5721 Power Generation and Control Project Presentation 3/22/2016 15 • • Deals with supplying load by running both hydro and steam plant. Aims at reducing the cost of steam plant. Two type of Hydro scheduling Long range hydro scheduling Short range hydro scheduling EE 5721 Power Generation and Control Project Presentation 3/22/2016 16 Timescale ranges from 1week to several years. Due to the timeframe, unknown variables are treated statistically. Typical optimizing variables include load, inflow etc. DP can be used for solving long range scheduling. EE 5721 Power Generation and Control Project Presentation 3/22/2016 17 Timeframe involved is between 1 day and 1 week. Solved on a hour to hour basis. Load, inflow, initial conditions are known beforehand. Find optimal hourly schedule by optimizing objective functions based on constraints. EE 5721 Power Generation and Control Project Presentation 3/22/2016 18 Utilize the amount of water in reservoir to minimize operating cost of steam plants. Usually load is larger than generating capacity of hydro plant. Steam plant can have various constraints such as generation limits. EE 5721 Power Generation and Control Project Presentation 3/22/2016 19 Cost function of steam plant is non linear as seen in ED problem formulation. Ci(Pi)=αi+βiPi+γiPi2 $/hr. Cost function is linearized over the steam plant operating region. Flow characteristics is assumed to be linear. EE 5721 Power Generation and Control Project Presentation 3/22/2016 20 • Objective function: F= ∑∑ si(j)Pi(j) i=1,2,…,Ns, the number of slope segments j=1,2,…,N, the number of load periods Equality constraints: There are 2 sets of equality constraints. Load balance equation: ∑Ps,i(j) +Ph(j) =Pload(j)- Ps,min(j) EE 5721 Power Generation and Control Project Presentation 3/22/2016 21 Hydraulic continuity constraint: Vj-1+rj-qj=Vj Vj: reservoir volume at period j. rj : net inflow to reservoir during period j qj : water discharge during period j Losses can be included in terms of spillage discharge rate. In our project, spillage discharge is not considered. EE 5721 Power Generation and Control Project Presentation 3/22/2016 22 Inequality constraints: These are mainly included as the lower bounds(LB) and the upper bounds(UB) Storage limits: VjMin≤Vj≤VjMax Generation limits: PhMin ≤ Ph ≤PhMax (Hydro plant) PsMin ≤ Ps ≤PsMax (Steam plant) Flow limits: qj≥ 0; Ph=0 when qj=0 EE 5721 Power Generation and Control Project Presentation 3/22/2016 23 Constant term in flow equation, prevents the flow qj from reaching zero value. This affects the performance of LP. Difference between the answer found using LP and DP. Sometimes DP solution can be better EE 5721 Power Generation and Control Project Presentation 3/22/2016 24 Where as absence of constant term, provides leverage to LP in terms of satisfying the condition- Ph=0 when qj=0 Answer through LP in this case can be better as compared to that found using DP Salient feature of LP is that every point in the range of can be accessed to find the best possible answer EE 5721 Power Generation and Control Project Presentation 3/22/2016 25 MATLAB CPLEX Mathematica Analytica MOSEK EE 5721 Power Generation and Control Project Presentation 3/22/2016 26 IBM ILOG CPLEX Optimization Studio Originally developed by Robert E. Bixby Used by over 50% of the world's largest companies, 1000’s of Universities, and 1000's of application providers EE 5721 Power Generation and Control Project Presentation 3/22/2016 27 Solves Integer programming problems Very large linear programming problems ◦ Primal or dual variants of the simplex method ◦ Barrier interior point method Convex quadratic programming problems Convex quadratically constrained problems EE 5721 Power Generation and Control Project Presentation 3/22/2016 28 Features CPLEX IDE: ◦ CPLEX Optimizer for mathematical programming ◦ CPLEX CP Optimizer for constraint programming ◦ Optimization Programming Language (OPL) ◦ Interactive Optimizer Concert – A modeling layer ◦ Interfaces to C++, C#, Java. And Python. ◦ Connectors to Microsoft Excel and MATLAB Accessible through modeling systems such as AMPL, GAMS, etc. EE 5721 Power Generation and Control Project Presentation 3/22/2016 29 Advantages Industry standard Wealth of readily available info ◦ Whitepapers ◦ Tutorials ◦ Webcasts IBM Academic initiative EE 5721 Power Generation and Control Project Presentation 3/22/2016 30 IBM Academic initiative No-Charge Access to IBM ILOG Optimization Products Course modules ◦ Linear & integer programming ◦ Constraint programming Discussion forums Web-based support EE 5721 Power Generation and Control Project Presentation 3/22/2016 31 LINEAR PROGRAMMING FOR POWER-SYSTEM NETWORK SECURITY APPLICATIONS B . Stott J.L.Marinho CEPEL, Ilha do Fundao, Rio de Janeiro, Brazil IEEE Transactions on Power Apparatus and Systems, Vol. PAS-98, No. 3 May/June 1979 LP method for security dispatch and emergency control calculations on large power systems. Handles multi-segment generator cost curves neatly and efficiently. Deals with shortcomings of non-linear programming methods such as low-speed, unreliability and difficulties in recognizing infeasibility. EE 5721 Power Generation and Control Project Presentation 3/22/2016 33 Requires initial power system operating state along with overloads Branch flow limits are known. For high accuracy, LP iteration with ac load flow solution can be implemented EE 5721 Power Generation and Control Project Presentation 3/22/2016 34 Relief of network overloads by active power control Includes Generation shifting, Load shedding, etc. All control actions can be summed up as bus injection changes represented as where ‘n’ is number of controllable bus generations EE 5721 Power Generation and Control Project Presentation 3/22/2016 35 Objective function: where ‘C’ is vector containing bus-generation incremental cost Constraints: The power balance equation is, where ‘ßi’ is the incremental loss factor Limit constraints: ∆Pjmin ≤ ∆Pj ≤ ∆Pjmax EE 5721 Power Generation and Control Project Presentation 3/22/2016 36 EE 5721 Power Generation and Control Project Presentation 3/22/2016 37 Various objective functions: Uses a single variable for each controlled bus, instead of representing each cost-curve segment by a separate LP variable. EE 5721 Power Generation and Control Project Presentation 3/22/2016 38 Control Priorities Soft Limits Ineffective Control Actions Interchange Restrictions EE 5721 Power Generation and Control Project Presentation 3/22/2016 39 This method efficiently handles any convex objective function, piecewise modeled to any desired accuracy Security-constrained economic dispatch/control using LP. Applications of the method maybe extended: ◦ network-constrained reactive-power control ◦ including transformers, etc. EE 5721 Power Generation and Control Project Presentation 3/22/2016 40 References [1] A. J. Wood and B. F. Wollenberg, Power Generation Operation and Control. John Wiley & Sons, Inc., New York, NY, 2nd Edition, 1996. [2] Molly E. Ison, Frederick Wurtz, Commercial Linear Programming Solvers and Their Applications to Power System Optimization. Power and Energy Society General Meeting Conversion and Delivery of Electrical Energy in the 21st Century, 2008 IEEE, Pittsburgh, PA, pp. 1 - 7, July 2008. [3] “General Algebraic Modeling System.”, Wikipedia. Available: http://en.wikipedia.org/wiki/General_Algebraic_Modeling_System [4] “Economic Dispatch: Concepts, Practices and Issues.”, Presentation to the Joint Board for the Study of Economic Dispatch. FERC Sta Palm Springs, California. November 13, 2005 [5] Stephen Boyd, Lieven Vandenberghe, Convex Optimization. Cambridge University Press, New York, pp. 146 - 148, 2009. Available: http://www.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf [6] “Optimization Toolbox.”, The MathWorks Inc. Available: http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ [7] B . Stott, J.L.Marinho, CEPEL, Ilha do Fundao Rio de Janeiro, Brazil, Linear Programming for power-system network security applications. IEEE Transactions on Power Apparatus and Systems, Vol. PAS-98, No. 3 May/June 1979. EE 5721 Power Generation and Control Project Presentation 3/22/2016 41