mpc for a portfolio of heat pumps new results
play

MPC for a portfolio of heat pumps - new results Hjrdis Amanda - PowerPoint PPT Presentation

Model Predictive Control for smart energy systems MPC for a portfolio of heat pumps - new results Hjrdis Amanda Schlter, Jozsef Gaspar, John Bagterp Jrgensen CITIES MPC Workshop, Technical University of Denmark, Kgs. Lyngby, May 18, 2018


  1. Model Predictive Control for smart energy systems MPC for a portfolio of heat pumps - new results Hjørdis Amanda Schlüter, Jozsef Gaspar, John Bagterp Jørgensen CITIES MPC Workshop, Technical University of Denmark, Kgs. Lyngby, May 18, 2018

  2. Introduction Heat pumps • Efficient for heating (and cooling) buildings • Use electricity efficiently • Ideal for an energy system with significant stochastic energy sources such as wind and solar energy Model Predictive Control (MPC) • MPC has been suggested to control heat pumps. • One can use direct control or control using prices. We investigate price based control. • Use the thermal inertia (mass) of buildings to store heat when the electricity prices are low 2 DTU Compute 18.5.2018

  3. The building and the heat pump 3 DTU Compute 18.5.2018

  4. Building model Energy balances C p,r ˙ T r = Q fr − Q ra + (1 − p ) φ s C p,f ˙ T f = Q wf − Q fr + pφ s C p,w ˙ T w = Q c − Q wf Conductive heat transfer rates Q ra = ( UA ) ra ( T r − T a ) Q fr = ( UA ) fr ( T f − T r ) Q wf = ( UA ) wf ( T w − T f ) 4 DTU Compute 18.5.2018

  5. The heat pump - vapor compression cycle (VCC) COP = h 3 ( T 3 , P 4 ) − h 4 ( T w + ∆ T, P 4 ) h 3 ( T 3 , P 4 ) − h 2 ( T gr − ∆ T, P 2 ) Q c = η e · COP · W c 5 DTU Compute 18.5.2018

  6. Nonlinear economic MPC � t f u ( t ) , ˆ min φ = ( C (ˆ x ( t ) , ˆ d ( t )) + V (ˆ y ( t ))) dt, ˆ u t 0 s.t. x ( t 0 ) = ¯ ˆ x k , k ≥ 0 ˙ u ( t ) + E ˆ ˆ x ( t ) = A ˆ x ( t ) + B ˆ d ( t ) , t ∈ [ t 0 , t f ] y ( t ) = C ˆ ˆ x ( t ) , t ∈ [ t 0 , t f ] u min ( t ) ≤ ˆ u ( t ) ≤ u max ( t ) , t ∈ [ t 0 , t f ] ∆ u min ( t ) ≤ ∆ˆ u ( t ) ≤ ∆ u max ( t ) , t ∈ [ t 0 , t f ] y min ( t ) − v ( t ) ≤ ˆ y ( t ) , t ∈ [ t 0 , t f ] y max ( t ) + v ( t ) ≥ ˆ y ( t ) , t ∈ [ t 0 , t f ] v ( t ) ≥ 0 , t ∈ [ t 0 , t f ] Energy cost: u ( t ) , ˆ C (ˆ x ( t ) , ˆ d ( t )) = p el ( t ) · W c Comfort penalty: V (ˆ y ) = ρ ( T r − T min ) min + ρ ( T r − T max ) max 6 DTU Compute 18.5.2018

  7. Nonlinear economic MPC - results Gaspar et al (2017): NMPC LMPC LMPC w. COP = 4.5 24 a 22 T r ( o C) 20 18 16 3 b Q c (kW) 2 1 0 6 c COP 4 2 1 d W c (kW) 0.75 0.5 0.25 0 p el (Eur/MWh) 60 e 40 20 00:00 06:00 12:00 18:00 00:00 06:00 12:00 18:00 00:00 06:00 12:00 18:00 00:00 06:00 12:00 18:00 00:00 06:00 12:00 18:00 00:00 Control algorithm W c C total W c,avg C avg TVU TVT C rel ( kW h ) ( Euro ) ( kW h/month ) Euro/month ( W ) ( K ) (%) Reference MPC 9.49 1.602 56.9 9.62 289.0 - - Linear MPC, COP = 4 . 5 8.15 0.945 48.9 5.67 389.2 0.92 41.0 Linear MPC 7.84 0.976 47.0 5.86 455.9 0.95 39.0 Nonlinear MPC 7.60 0.943 45.6 5.66 452.5 0.69 41.2 7 DTU Compute 18.5.2018

  8. Heat pump model Nonlinear model: COP = h 3 ( T 3 , P 4 ) − h 4 ( T w + ∆ T, P 4 ) h 3 ( T 3 , P 4 ) − h 2 ( T gr − ∆ T, P 2 ) Q c = η e · COP · W c Linear model with constant coefficient of performance, COP, and electrical efficiency, η e : Q c = ηW c where η = η e · COP 8 DTU Compute 18.5.2018

  9. Model Energy balances C p,r ˙ T r = Q fr − Q ra + (1 − p ) φ s C p,f ˙ T f = Q wf − Q fr + pφ s C p,w ˙ T w = Q c − Q wf Conductive heat transfer rates Q ra = ( UA ) ra ( T r − T a ) Q fr = ( UA ) fr ( T f − T r ) Q wf = ( UA ) wf ( T w − T f ) Heat pump Q c = ηW c 9 DTU Compute 18.5.2018

  10. Linear discrete time state space model Linear model x k +1 = Ax k + Bu k + Ed k y k = Cx k States (x), manipulated variable (u), disturbances (d), and output (y):   T r � � T a x =   u = W c d = y = T r T f   φ s T w 10 DTU Compute 18.5.2018

  11. Linear program - linear economic MPC min φ x k +1 = Ax k + Bu k + Ed k , k = 0 , 1 , . . . , N − 1 , s.t. y k = Cx k , k = 1 , . . . , N, k = 0 , 1 , . . . , N − 1 , u min ≤ u k ≤ u max , ∆ u min ≤ ∆ u k ≤ ∆ u min , k = 0 , 1 , . . . , N − 1 , Soft constraints ( k = 1 , 2 , . . . , N ) y min ,k − s 1 ,k − s 2 ,k ≤ y k , y k ≤ y max ,k + t 1 ,k + t 2 ,k , 0 ≤ s 1 ,k ≤ s 1 , max , 0 ≤ t 1 ,k ≤ t 1 , max , 0 ≤ s 2 ,k ≤ ∞ , 0 ≤ t 2 ,k ≤ ∞ . Objective function Energy cost Temperature violations � �� � � �� � N − 1 N � � c ′ ρ ′ s 1 s 1 ,k + ρ ′ s 2 s 2 ,k + ρ ′ t 1 t 1 ,k + ρ ′ φ = k u k + t 2 t 2 ,k k =0 k =1 11 DTU Compute 18.5.2018

  12. Heat pump performance using Model Predictive Control Heat pump using a standard approach vs. using a MPC over a 5 day period 24 24 22 22 20 20 18 18 100 100 1 1 0.8 0.8 80 80 0.6 0.6 60 60 0.4 0.4 0.2 0.2 40 40 0 0 100 100 1.5 1.5 80 80 1 1 60 60 0.5 0.5 40 40 0 0 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12 DTU Compute 18.5.2018

  13. Heat pump performance using Model Predictive Control Performance improval by using a MPC As illustrated by the figures on the previous slide, the MPC is able to: • Incorporate an upper limit on the input power of a portfolio of heat pumps • Regulate the heat flow such that the indoor temperature is kept between an upper and a lower limit • React on the given electricity prices by only turning the pump on when the electricity price is low House 1 House 2 Price (Eur) - standard approach 0.68 1.41 Price (Eur) - MPC 0.35 0.95 Savings by using MPC 48 . 9% 32 . 8% Table: Price saving over the 5 day period of the previous example using a MPC 13 DTU Compute 18.5.2018

  14. Heat pump for a good and a poorly insulated house How the seasons affect performance of the heat pump of a good and a poorly insulated house In the following "House 1" refers to a good insulated house and "House 2" refers to a poorly insulated house. 24 24 22 22 20 20 18 18 100 100 1 1 0.8 80 0.8 80 0.6 0.6 60 60 0.4 0.4 0.2 0.2 40 40 0 0 30 250 30 250 200 200 20 20 150 150 10 10 100 100 50 50 0 0 0 0 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 12:00 0:00 14 DTU Compute 18.5.2018

  15. Relation between the magnitude of the electricity prices and the penalty for violating constraints Importance of choosing the right penalty parameter The lower soft constraint s 1 for the indoor temperature y and the lower constraint y min is defined as with 0 ≤ s 1 ≤ ∞ . y ≥ y min − s 1 , For the temperature to be as close as possible to the desired y min there is a penalty ρ 1 associated with this soft constraint. However, for heat pumps there is a relation between this penalty parameter and the magnitude of the electricity prices. With a prediction horizon of 2 days this relation is visible: 24 24 24 22 22 22 20 20 20 18 18 18 10 7 10 7 10 7 10 10 10 1 1 1 0.8 8 0.8 8 0.8 8 0.6 0.6 0.6 6 6 6 0.4 0.4 0.4 0.2 0.2 0.2 4 4 4 0 0 0 15 DTU Compute 18.5.2018

  16. How the prediction horizon contributes to an offset between the temperature and the lower constraint Prediction horizons Investigations of different prediction horizons in open loop simulation: 24 23 22 21 20 19 18 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 80 1 70 0.8 60 0.6 50 0.4 40 0.2 0 30 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 DTU Compute 18.5.2018

  17. How the prediction horizon contributes to an offset between temperature and constraint Step responses To understand why the predictions vary a lot for different horizon lengths, one can investigate the step responses. These give an indicate of what amount of compressor input power of the heat pump leads to the following increase in the indoor temperature. As illustrated, the heating process requires an interval of more than 14 days to arrive at a steady state. 17 DTU Compute 18.5.2018

  18. Reducing the offset between temperature and constraint Increasing the prediction horizon length Using a prediction horizon of 2 days compared to 14 days, the offset between temperature and constraint is reduced: 24 24 24 22 22 22 20 20 20 18 18 18 10 7 10 7 10 7 10 10 10 1 1 1 0.8 0.8 0.8 8 8 8 0.6 0.6 0.6 6 6 6 0.4 0.4 0.4 0.2 0.2 0.2 4 4 4 0 0 0 18 DTU Compute 18.5.2018

  19. Choice of the right penalty parameter Introducing another soft constraint To avoid the search for a suited penalty parameter ρ 1 one could consider to introduce another soft constraint s 2 associated with a penalty parameter of large magnitude ρ 2 = 10 12 : y ≥ y min − s 1 − s 2 , with 0 ≤ s 1 ≤ 0 . 75 , 0 ≤ s 2 ≤ ∞ , where the value 0 . 75 is called the borderline between these two soft constraints. Here the borderline parameter can be used to enforce the temperature up or down. 24 22 20 18 10 7 10 1 8 0.5 6 4 0 19 DTU Compute 18.5.2018

  20. Conclusions Observations • Long control and prediction horizons necessary ( N ) • Selection of the prices for soft constraints is non trivial Recommendations • Use tailored algorithms for MPC that scales well with the prediction horizon • Use linear MPC with constant COP (surpricingly it seems that the benefits of NMPC are marginal) • Use several penalty levels for the soft constraints (or a quadratic penalty function - it will however give a QP and not an LP) Key future focus: • Efficient algorithms to tackle challenging realistic problems that cannot be solved by off-the-shelf optimization software 20 DTU Compute 18.5.2018

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