optimal energy management for a microgrid
play

Optimal Energy Management For A Microgrid Pierre Martinon CAS - PowerPoint PPT Presentation

Optimal Energy Management For A Microgrid Pierre Martinon CAS seminar - January 13, 2015 Outline Context: microgrid Optimal control problem Numerical simulations Ongoing work Part of a France-Chile collaboration Inria Saclay /


  1. Optimal Energy Management For A Microgrid Pierre Martinon CAS seminar - January 13, 2015

  2. Outline • Context: microgrid • Optimal control problem • Numerical simulations • Ongoing work

  3. Part of a France-Chile collaboration Inria Saclay / CMAP Polytechnique and Univ. Limoges (F. Bonnans, P.Martinon, B. Heymann, F. Silva) CMM and Centro di Energia, Santiago (A. Joffre, G. Jimenez, F. Lanas)

  4. Huatacondo village, Chile (Tarapac´ a) Population: 53 Prototype of electric microgrid for renewable energy management (project ESUSCON)

  5. Overview of the microgrid Power sources - diesel generator* - photovoltaic panels - battery storage (- wind turbines) Power consumption - domestic power load - battery storage (- water pump) → Satisfy power demand with minimal operating cost Operating cost: diesel consumption [ + battery cost ] (* diesel generator sufficient to fulfill the demand)

  6. Optimal control formulation (1/3) State variables: - Battery State of Charge: SOC ∈ [ SOC min , SOC max ] Control variables: - Diesel power: P Diesel ∈ { 0 } ∪ [ P min Diesel , P max Diesel ] - Charge/discharge power: P in ∈ [0 , P max ], P out ∈ [0 , P max out ] in - Slack power (excess/default): P excess , P default External data: - Solar power P solar and power load P load Dynamics: 1 ˙ P in ( t ) ρ in ρ inv in − P out ( t ) ρ out ρ inv � � SOC ( t ) = out Q bat

  7. Optimal control formulation (2/3) Objective function • Fuel consumption for diesel generator - Consumption depending on power output CONSUMPTION FOR DIESEL GENERATOR 40 ACTUAL DATA - Switching cost when generator is turned on 35 LINEAR MODEL: C = P / 3 C = 0.471426 pow (P+1E−4,0.9) 30 CONSUMPTION (l/h) 25 �� T 20 � 15 C diesel C ( t ) dt + N switch C switch 10 5 0 0 0 20 40 60 80 100 120 POWER (kW) • Price of default power (external source) � T C default P default ( t ) dt 0 • Cost of the battery aging ( SOH ∈ [0 , 1] the State of Health) C battery ( SOH ( T ) − SOH (0))

  8. Optimal control formulation (3/3) Constraints • Power equilibrium at all times P solar + P diesel + P out + P default = P load + P in + P excess • SOC periodicity SOC (0) = SOC ( T ) • Maximal charging power if SOC < SOC 1 : P in < P max in if SOC > SOC 1 : P in < P max ( SOC − SOC 1 ) 2 in ( SOC 1 − 1) 2

  9. Summary • Model with nonlinearities and non-convex objective • Control, state and mixed control-state constraints • Switching cost for diesel generator (boolean variable) • Estimate battery aging under non-nominal conditions • Stochastic input data (solar power, power load) • Requires fast computation times (rolling horizon)

  10. Current approach: mixed integer* linear programming * for the switching cost of the diesel generator Linearization of the model then solving with CPLEX Prediction (neural network) for solar power and domestic demand

  11. New approach: continuous optimal control framework • No need to linearize the equations • Local or global optimization methods • Optimality conditions: insight on the solutions • Possible expansion to the stochastic case Optimal control methods 1. Direct transcription approach 2. Dynamic programming with switchings → BOCOP toolbox (www.bocop.org)

  12. Direct transcription Sometimes referred to as ’Discretize then optimize’ • Discretization in time: state/control variables → vectors - Rewrite objective and constraints - Dynamics discretized as additional constraints (any generalized RK formula, implicit or explicit) • Solve the resulting NLP problem (SQP, interior point) Advantages and disadvantages + Easy to implement + Good precision attainable with higher CPU/RAM cost - Local method (reasonably good convergence) - No easy way to include the switching cost

  13. Dynamic programming Based on Bellmann’s optimality principle • Discretization in both time and state/control • Compute the Value Function over the whole time × space grid (backwards in time, using interpolation over the grid) � � h 0 l ( u , x i ) + ˜ V ( t k , x i ) := min V ( t k +1 , x i + h 0 f ( u , x )) u ∈ U • Reconstruct the trajectory for given initial conditions Advantages and disadvantages + Global method (no iterations, known complexity) + Does not require differentiability, can handle switchings + Can be extended to the stochastic case - Precision limited by full discretization (time,state, control) - high CPU/RAM cost, curse of dimension

  14. (Indirect method) Sometimes referred to as ’Optimize then discretize’ • Apply Pontryagin’s Maximum Principle on continuous OCP • Solve the resulting BVP problem (shooting, collocation) → leads to solving a nonlinear system Advantages and disadvantages + Very high precision for small CPU times - Local method, starting point can be tricky (adjoint variables) - Applying PMP is sometimes complicated (state constraints, singular arcs)

  15. Numerical simulations • Timeframe: 48h, time step: 15 minutes • Starting and final SOC set to 0.7 • Interpolated historical data for solar power and power load • CPU times: a few seconds (similar to MILP) Test case: winter and summer sample data 25 20 SUMMER TEST CASE WINTER TEST CASE SUMMER TEST CASE 18 WINTER TEST CASE 20 16 14 15 12 10 10 8 5 6 0 4 0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50 Solar power Power load

  16. Direct method solutions (winter / summer) 100 80 SOC * 100 SLACK 70 INVERTER 80 INV. LIMIT 60 DEMAND SOLAR SOC * 100 50 DIESEL SLACK 60 INVERTER 40 INV. LIMIT DEMAND 40 30 SOLAR DIESEL 20 20 10 0 0 −10 −20 −20 0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50 TIME (H) TIME (H) • Diesel is on at consumption peaks, with lots of switchings • Battery discharge during the night when diesel is off • Solar power excess is used to charge battery • In winter maximal charging limit can be saturated • Quadratic regularization to improve numerical behaviour • Still no switching cost or minimal diesel power...

  17. Dynamic programming solutions (winter / summer) 100 100 SOC * 100 SOC * 100 SLACK SLACK INVERTER 80 INVERTER 80 INV. LIMIT INV. LIMIT DEMAND DEMAND SOLAR SOLAR DIESEL 60 60 DIESEL 40 40 20 20 0 0 −20 −20 0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50 TIME (H) TIME (H) • Solutions are close in terms of objective • Less switchings for the diesel generator • Diesel is also used to charge the battery • Can be improved with information from Pontryagin’s Principle (use the optimality conditions on the control)

  18. Battery aging (1/2) Overall operating cost includes battery system maintenance Historical data at Huatacondo over 20 years: Cost of replacing the batteries ≈ Diesel cost ! → Estimate battery aging and add it in objective function Main difficulties • BESS operates at irregular charge / discharge cycles • Strong restrictions on the model - few available variables (SOC, power) - no temperature, intensity or voltage data - no identified ’cycles’ - must be fast in terms of computation

  19. Battery aging (2/2): weighted Ah throughput Simple model from Svoboda et al, relies solely on SOC • Battery State of health based on total throughput of the battery over its life 6 5 • Nominal case weighted by a certain 4 SF 3 severity factor depending on SOC 2 � T 1 1 0 ∆ SOH = SF ( t ) I out ( t ) dt 0 0.2 0.4 0.6 0.8 1 SOC Ah battery 0 + easy to implement in the optimization - very abstract model, is it meaningful ?

  20. Effect of the battery aging in the cost Winter test case Battery aging Diesel cost Battery cost Total cost no battery aging 29409.1 (13216.6) (42625.7) weighted Ah model 30236.2 9945.4 40181.6 Summer test case Battery aging Diesel cost Battery cost Total cost no battery aging 32115.5 (10752.5) (42868.0) weighted Ah model 32639.6 5650.9 38290.1 Slight increase in diesel consumption Significant decrease of the estimated battery cost → lower global cost (according to battery aging model)

  21. Solution with battery aging cost Summer test case SOC x 100 100 100 90 80 80 60 70 SOC * 100 DIESEL SLACK 40 60 INVERTER INV. LIMIT SOLAR 50 20 40 0 NO BATT. AGING 30 AGING MODEL 2 −20 20 0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50 TIME (H) • SOC is overall higher, to benefit from lower severity factor • Diesel is (almost) not used to charge battery anymore

  22. Ongoing work (1/2) More refined battery aging model, with effect on characteristics Requires a more complex model and expensive experimental data

  23. Ongoing work (2/2) Stochastic model for power load and solar power Sample data over 1 week FVPower − April,16 to 20, 2012 Load April, 16 to 20, 2012 20 16 day 1 day 1 day 2 18 day 3 day 2 day 4 day 3 day 5 14 day 4 mean 16 day 5 mean 14 12 12 KWat KWat 10 10 8 8 6 4 6 2 0 4 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Hours Hours Thanks !

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend