+ All Categories
Home > Documents > Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive...

Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive...

Date post: 08-Apr-2018
Category:
Upload: lamdan
View: 214 times
Download: 1 times
Share this document with a friend
89
Model Predictive Control of Water Networks HYCON/EFFINET School July, 5 th 2013 Prof. Vicenç Puig Advanced Control Systems (SAC) Universitat Politècnica de Catalunya (UPC)
Transcript
Page 1: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Model Predictive Control of Water Networks

HYCON/EFFINET School

July, 5th 2013

Prof. Vicenç Puig

Advanced Control Systems (SAC)

Universitat Politècnica de Catalunya (UPC)

Page 2: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Introduction

Ocampo-Martinez, C.; Puig, V.; Cembrano, M.; Quevedo, J. “Application of predictive control strategies to the management of complex networks in the urban

water cycle”. IEEE Control Systems Magazine.33 - 1, pp. 15 -41. 2013. I SSN 1066-033X.

Page 3: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

3

The Water Cycle

Page 4: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Supply and Production

Transport

Distribution

• Large-scale systems • Complex dynamic models (non-linear, hybrid) • Management and control techniques: centralized scheme • Complex controllers, even un-scalable (due to their system model)

M. Brdys and B. Ulanicki, Operational Control of Water Systems: Structures, algorithms and applications. UK: Prentice Hall International,

1994

4

Drinking Water Networks

Page 5: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Hierarchy of Water Networks

Page 6: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Supply Network

Page 7: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Production Network

Page 8: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Transport Network

Page 9: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Distribution Network

Page 10: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

The Role of MPC in Water Networks: Supervisory Control

Page 11: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC of Water Transport Networks: The Barcelona Case Study

J. Pascual, , J. Romera, , V. Puig, G. Cembrano, Operational predictive optimal control of Barcelona water transport network. Control Engineering Practice

Volume 21, Issue 8, August 2013, Pages 1020–1034

Page 12: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Generación de estrategias de control óptimo/predictivo utilizando un horizonte de 24 horas para ...

Tanks

Valves

Production Plants

Pumps

DMAs

Elements of a Water Transport Network

Page 13: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Generación de estrategias de control óptimo/predictivo utilizando un horizonte de 24 horas para ...

Control Oriented Modelling: Flow-based model

Reservoirs Network Nodes

Network Actuators n states x (volumes) m inputs u (actuator flows) p disturbances (water demands)

with

Flo

w-b

ase

d

Lin

ea

r M

od

el

Page 14: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Reservoirs Pipes

14

Pumps

Valves

Control Oriented Modelling: Pressure-based model

Page 15: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Objective Function Formulation...

1. Energy/Production Costs

2. Demand Supply Guarantees

3. Smoothness of Control Actions

1

0

( )N

i i i

i k

FCP t q k c

1sec,

sec,0

( )1max ,0

Nj j

jjj k

V V kFCS

N V

2

1

max,0

11 Nj j

jjj k

u k u kFCE

N q

MPC Problem

Page 16: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Electricity Cost Model

- An electricity cost model that takes into account the price of electricity depending on the day, hour and period of the year has been developed and taken into account in the MPC formulation.

Page 17: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

The Barcelona Case Study

Page 18: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Production Plants in Barcelona Network

MEDITERRANEAN SEA

FRANCE FRANCE

Barcelona

ETAP ABRERA

ETAP ST. J. DESPÍ

ETAP BESÒS

ETAP CARDEDEU

DESALADORA EN PROYECTO (Año 2009)

Page 19: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Demand and Source Evolution

Besòs Wells

Llobregat Wells

Ter Superficial

Cardedeu Area of Influence

Llobregat Superficial

Abrera Area of Influence

19

50

19

52

19

54

19

56

19

58

19

60

19

62

19

64

19

66

19

68

19

70

19

72

19

74

19

76

19

78

19

80

19

82

19

84

19

86

19

88

19

90

19

92

19

94

19

96

19

98

20

00

20

02

20

04

20

06

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20m3/s

Page 20: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

19/2 21/2 23/2 25/2 27/2 29/2

Days

0

50.000

100.000

150.000

200.000

250.000

300.000

350.000

400.000

450.000

500.000

550.000

600.000

650.000

700.000

750.000

800.000 m3

Global Llobregat Ter

Demand by Source

Page 21: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Pressure Floors: DMAs

MEDITERRANEAN SEA

Page 22: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Barcelona Water Trasnport Network

63 tanks 121 actuators 88 demands 15 nodes

Page 23: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Some Numbers of Barcelona Water Transport Network

Different sources

with different prices - Superfitial sources X €/m3

- Underground sources 0,6 X €/m3

- Desalination 4,0 X €/m3

113 Pressure floors

218 Sectors

4.645 km Pipes length

• Network parameters:

• Facilities

92 Flow meters

180 / 84 Pumps / Pumping stations

23 Chlorine dosing devices

74 Chlorine analyzers

64 Valves

81 Water storage tanks

98 Remote stations

2.922.773 Population supplied

7 m3/s Average demand

424 km2 Supply area

23 Municipalities supplied

• General overview:

Page 24: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Demand Forecast for MPC of Water Transport Networks

April 3, 2009

M. Brdys and B. Ulanicki, Operational Control of Water Systems: Structures, algorithms and applications. UK: Prentice Hall International,

1994

Ocampo-Martinez, C.; Puig, V.; Cembrano, M.; Quevedo, J. “Application of predictive control strategies to the management of complex networks in the urban

water cycle”. IEEE Control Systems Magazine.33 - 1, pp. 15 -41. 2013. I SSN 1066-033X.

Page 25: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Water Demand Model

The demand forecast module is needed for the MPC controller.

Water demands presents two main seasonalities: hourly and weekly.

Four methods have been studied: AGBAR methods, ARIMA models, basic structure models and Holt-Winters (HW) methods.

Water demand has been characterized both daily and hourly.

Water demand has been characterized at two levels: for each pressure floor and for the whole network.

Page 26: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Daily Demand Model (1)

Page 27: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Conclusions: The best forecast method is the double HW. The average absolute error of the double HW is considerably smaller than that of the AGBAR methods.

Daily Demand Model (2)

Page 28: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Hourly Demand Model (1)

Page 29: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Conclusions: The best forecast method is the double HW. The average absolute error of the double HW improves in comparison to the error of the AGBAR methods.

Hourly Demand Model (2)

Page 30: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

April 3, 2009 WIDE Meeting – Eindhoven (NL)

MPC Implementation and

Validation on a Simulator

Page 31: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

PLIO: MPC Cotrol of Water Networks

Cembrano, M.; Quevedo, J.; Puig, V.; .PLIO: a generic tool for real-time operational predictive optimal control of water networks. Water science and

technology.64 - 2,pp. 448 - 459. 07/2011 .ISSN 0273-1223, 1994

Page 32: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

DB

MONITORING MODE REPRODUCTION MODE

SIMULATION MODE EDITOR MODE

NETWORK TOPOLOGY EDITION

NETWORK PARAMETRIZATION

MODEL EQUATIONS GENERATION

SIMULATION PARAMETRIZATION

DATABASE PREPARATION

OFF-LINE OPTIMIZATION

REPORT GENERATION

MONITORING PARAMETRIZATION

TELECONTROL CONNECTION

ON-LINE OPTIMIZATION

RESULTS VISUALIZATION

SCADA OPTIMIZER

PLIO Architecture

Page 33: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

EPANET: Simulation of Water Networks

EPANET. http://www.epa.gov/nrmrl/wswrd/dw/epanet.html

Page 34: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Barcelona Network Simulator (1)

Page 35: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Barcelona Network Simulator (2)

Page 36: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Model Validation against Real Data

Tank volumes comparison: model (blue) vs real (red).

20 40 60 80 100 120

2

3

4

5

6

7x 10

4 d100CFE

time (h)

m3

20 40 60 80 100 120

200

300

400

500

d114SCL

time (h)

m3

20 40 60 80 100 120

1000

2000

3000

4000

d115CAST

time (h)

m3

20 40 60 80 100 120

0.5

1

1.5

x 104 d130BAR

time (h)

m3

20 40 60 80 100 120500

1000

1500

2000

2500

3000

d132CMF

time (h)

m3

20 40 60 80 100 120

400

600

800

1000

d135VIL

time (h)

m3

20 40 60 80 100 120200

400

600

800

1000

d176BARsud

time (h)

m3

20 40 60 80 100 120

500

1000

1500

2000

2500

3000

d450BEG

time (h)

m3

20 40 60 80 100 120

1000

2000

3000

d80GAVi80CAS85

time (h)

m3

Simulator

Real data

Upper limit

Safety level

Page 37: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

April 3, 2009 WIDE Meeting – Eindhoven (NL)

Results of MPC Control of the Barcelona Water

Transport Network

Page 38: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC Results (1)

MPC Control of Barcelona water network has been implemented by means of PLIO tool.

To test and adjust the MPC controller some different scenarios have been studied. Parameters to take into account in the calibration of the model are:

Initial and security levels in tanks

Objective function weights: economical, safety and maintenance factors.

Working with different sources operation:

Llobregat source set at constant flow (Scenario 1)

Fixed sources at real flow (Scenario 2)

Source optimization. The optimizer calculates the flow for each time step inside the operational limits of each source (Scenario 3)

Page 39: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC Results (2)

Flow(m3/s)

Case 1 Case 2

Llobregat surface source 3 0

Llobregat underground source 2 2

Barcelona’s average input flow is about 7.5 m3/s.

In case 1 an important part of the total demand is taken from Llobregat.

In case 2 only a 25% of the total demand is taken from Llobregat. It is expected that an important part of the network consumption is going to be taken from Ter.

These two scenarios are interesting from the point of view of the behaviour of the economical cost.

Scenario 1: Llobregat source set at constant flow

Page 40: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC Results (3)

Conclusions

– It exists a strong and linear dependency between economical cost and the operation of this two sources.

– In order to reduce the total cost it is necessary to maximise the quantity of water taken from Llobregat.

Electrical cost Water cost Total cost

Day 1 52,42 47,58 100,00

Day 2 46,65 53,35 100,00

Day 3 48,10 51,90 100,00

Day 4 47,57 52,43 100,00

Electrical cost Water cost Total cost

Day 1 -50,27 +91,34 +17,11

Day 2 -47,94 +72,77 +16,47

Day 3 -48,37 +78,27 +17,36

Day 4 -47,67 +71,06 +14,58

Case 1

Case 2

Increase/decrease % in comparison to case 1

2 2.5 3 3.5 4 4.5 5 5.5 20

30

40

50

60

70

80

Llobregat flow (m3/s)

Ele

ctr

ical/w

ate

r cost (%

)

2 2.5 3 3.5 4 4.5 5 20

30

40

50

60

70

80

Ter flow (m3/s)

Ele

ctr

ical/w

ate

r C

ost (%

)

Electrical cost regression

Water cost regression

qLl=4

qLl=3

Optimised sources case

Page 41: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC Results (4)

Sources flow is imposed by using real data obtained from AGBAR historical

database.

It is an interesting case study in order to compare centralised MPC control and

current control applied regarding to transportation cost.

It is a previous step before comparing centralised and decentralised MPC control.

Important improvement in electrical cost, which represents between 10% and the

25 % of the real operation cost.

Total cost using MPC control is between 4 and 8 % lower than the real one.

Scenario 2: Sources set at real flow

Current control

MPC

Increase/decrease % in comparison to current control

Electrical cost Water cost Total cost

23/07/2007 33,13 66,87 100,00

24/07/2007 34,66 65,34 100,00

25/07/2007 32,00 68,00 100,00

26/07/2007 31,29 68,71 100,00

Electrical cost Water cost Total cost

23/07/2007 -23,27 +0,00 -7,71

24/07/2007 -10,56 +0,00 -3,66

25/07/2007 -20,61 +0,00 -6,59

26/07/2007 -18,58 +0,00 -5,81

0 20 40 60 80 1000

0.5

1

1.5

2Underground sources flow

time (h)

flow

(m

3/s

)

iSJDSub

iPousCast

iCastelldefels8

iMinaSeix

iEstrella12

iEstrella3456

iEtapBesos

0 20 40 60 80 1000

1

2

3

4

5

6Surface sources flow

time (h)

flow

(m

3/s

)

iSJDSpf

vAbrera

vTer

0 10 20 30 40 50 60 70 80 90 1005

6

7

8

9

10

11Total input flow

time (h)

flow

(m

3/s

)

Page 42: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC Results (5)

– Some tanks volume evolution (real-red ,MPC-blue)

20 40 60 80

2

4

6

x 104 d100CFE

time (h)

m3

20 40 60 80

0.5

1

1.5

x 104 d130BAR

time (h)

m3

20 40 60 80

1000

2000

3000

4000

d200ALT

time (h)

m3

20 40 60 80

3

4

5

6

x 104 d70BBE

time (h)

m3

Page 43: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC Results (6)

April 3, 2009

– Stability term effects in pumps:

0 50 1000

1

2

3

4iSJD10

time (h)

Flo

w (

m3/s

)

0 50 1000

0.5

1

1.5

2iSJD50

time (h)

Flo

w (

m3/s

)

0 50 1000

0.1

0.2

0.3

0.4iSJD70

time (h)

Flo

w (

m3/s

)

0 50 1000

1

2

3

4iSJD10

time (h)

Flo

w (

m3/s

)

0 50 1000

0.5

1

1.5

2iSJD50

time (h)

Flo

w (

m3/s

)

0 50 1000

0.1

0.2

0.3

0.4iSJD70

time (h)

Flo

w (

m3/s

)

Without stability term With stability term

Page 44: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

– Electrical cost depends on pumps operation. If it is possible pumps are only running during the cheapest period.

MPC Results (7)

0 50 1000

0.2

0.4

0.6

0.8iFnestrelles200

time (h)

Flo

w (

m3/s

)

0 50 1000

0.01

0.02

0.03iPalleja1

time (h)

Flo

w (

m3/s

)

0 50 1000

0.01

0.02

0.03

0.04iStaClmCervello

time (h)

Flo

w (

m3/s

)

0 50 1000

0.02

0.04

0.06

0.08iTibidabo

time (h)

Flo

w (

m3/s

)

Page 45: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC Results (8)

45

In this case electrical and water costs are minimised, so it is expected a higher improvement in the total cost referring to the scenario with fixed sources.

Taking into account results obtained in the first case study (constant fixed flow in Llobregat source) a solution with maximum average flow from Llobregat source is expected.

In the optimization results shown the term that guarantees stability in control elements (pumps and valves) is on.

Underground sources’ water cost is penalized to avoid its over-exploitation.

Scenario 3: Flow optimization

Page 46: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

0 20 40 60 80 1000

1

2

3Underground sources flow

time (h)

flow

(m

3/s

)

iSJDSub

iPousCast

iCastelldefels8

iMinaSeix

iEstrella12

iEstrella3456

iEtapBesos

0 20 40 60 80 1000

2

4

6Surface sources flow

time (h)

flow

(m

3/s

)

iSJDSpf

vAbrera

vTer

0 10 20 30 40 50 60 70 80 90 1004

6

8

10

12Total input flow

time (h)

flow

(m

3/s

)

MPC Results (9)

Electrical cost Water cost Total cost

23/07/2007 33,13 66,87 100,00

24/07/2007 34,66 65,34 100,00

25/07/2007 32,00 68,00 100,00

26/07/2007 31,29 68,71 100,00

Current control

Electrical cost Water cost Total cost

23/07/2007 18,92 -50,70 -27,63

24/07/2007 14,04 -32,56 -16,41

25/07/2007 26,29 -43,91 -21,45

26/07/2007 26,09 -44,43 -22,36

MPC improvement in comparison to current control case

MPC improvement in comparison to fixed sources to real flow case (Scenario 2)

Electrical cost Water cost Total cost

23/07/2007 54,99 -50,70 -21,59

24/07/2007 27,51 -32,56 -13,23

25/07/2007 59,08 -43,91 -15,91

26/07/2007 54,86 -44,43 -17,57

– Big water cost savings, between 30% and 50 %.

– Electrical cost has increased regarding to current control case ([+18,+27]%) and MPC case with fixed sources ([+27,+60]%).

– Total cost has decreased between 13% and 22 % regarding to MPC results obtained with fixed sources.

– Sources flow distribution is the expected one. Llobregat’s source flow is maximized.

Page 47: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Results Summary

Page 48: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Decentralising/Distributing the MPC control in Water Networks

Page 49: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

4

2

2

5

1

3

3

2

2 2

4

1

1

Algorithm Steps Start up Preliminary partitioning Uncoarserning (Internal balance) Refining (External balance) Auxiliary routines (Pre/post-filtering)

C. Ocampo-Martinez, S. Bovo, V. Puig. Partitioning Approach oriented to the decentralised MPC of Large-Scale Systems. Journal of Process Control, 21(5):775-786, 2011.

49

Partitioning Algorithm

Page 50: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

50 63 tanks 121 actuators 88 demands 15 nodes

Partitioning Results of Barcelona Network (1)

Page 51: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Partitioning Results of Barcelona Network (2)

Comparison of the dimension of the resultant subsystems

every tank, sector of consume, water source and node is a vertex of the graph

every pump, valve and link with a sector of consume is a graph edge

51

Page 52: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Hierarchical-like DMPC Approach

Subsystems MPC controllers

52

Ocampo-Martinez, C.; Barcelli, D.; Puig, V.; Bemporad, A.Hierarchical and decentralised model predictive control of drinking water networks: Application to Barcelona case study.IET

control theory and applications.6 - 1,pp. 62-71 2012.

Page 53: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SOLVING SEQUENCE

C4 for S4 and μ14, μ34.

In parallel, C2 for S2 and μ12.

C1 for S1 and sets μ31, μ51, and μ61. Sets μ12, μ13, μ14, μ16 are virtual demands (VD) for C1.

C5 for S5 with μ51 as VD.

C3 for S3 with μ31, μ34 as VD. C3 also computes μ13 as VD for C1 in t + 1.

C6 for S6 with μ61 as VD. C6 also computes μ16 as VD for C1 at t + 1.

Values of μ13, μ16 at t=1 CSP with S1, S3 and S6 53

Hierarchical-like DMPC Approach

Page 54: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

DWN Management Criteria

Minimizing water production and transport cost

1

Ensuring safety water storage

2

Ensuring smoothness of the control actions

3 54

Cost of water at source (water taxes and treatment costs)

GLOBAL OBJECTIVE

Cost of water transport (mainly due to pumpung costs)

LOCAL OBJECTIVE

Page 55: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Multi-temporal DMPC

55

C. Ocampo-Martinez, V. Puig, J.M. Grosso and S. Montes-de-Oca Multi-layer Decentralized Model Predictive Control of Large-Scale Networked

Systems. Distributed MPC made easy. Springer. 2013.

Page 56: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MATLAB® 7.1, Intel® CoreTM2, 2.4 GHz, 4Gb RAM

Economic costs (Performance comparisons)

56

Main Results

Economic units (due to confidenciality reasons)

X S

imposio

CE

A d

e I

ngenie

ría d

e C

ontr

ol

Page 57: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Main Results: Costs

57

Page 58: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Main Results: Inflows (sources)

58 Llobregat Flow

Ter Flow

Abrera Flow

Page 59: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Main Results: Behaviour in Elements

59

Page 60: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC of Regional Water Networks: The Catalonia Case Study

M C.C. Sun, V.¸ Puig, G. Cembrano., Temporal Multi-level Coordination Techniques Oriented to Regional Water Networks:

Application to the Catalonia Case Study. IWA Jounal of Hydroinformatics (submitted). 2013

Page 61: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Motivation

Page 62: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Motivation

Chronic water shortages are periodically affecting 4.5 million of people in Catalonia.

Page 63: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Motivation

The authorities were considering building a desalination plant or construction of a pipeline to divert water from the Rhone in France to Barcelona

Finally, authorities built a desalination plant.

Page 64: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Motivation

1. Supply

upper layer, composed by water sources, large reservoirs and also natural aquifers, rivers, wells, etc.

2. Production/transportation

middle layer, links the water treatment and desalinization plants with the reservoirs distributed all over the city.

3. Distribution

lower layer, used to meet demands of consumers.

Page 65: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Control Objectives (1)

Page 66: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Control Objectives (2)

Page 67: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Control Objectives (3)

Page 68: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

MPC Multi-objective Function

Page 69: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Preliminary Results

Coordination Strategy

Page 70: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Preliminary Results

Coordination Strategy

Page 71: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Preliminary Results

Balance management:

Page 72: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Preliminary Results

Performance comparation:

Page 73: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Embedding Fault tolerance in the MPC of Water Networks

D. Robles, V. Puig, C. Ocampo-Martinez, L.E. Garza Actuator Fault Tolerance Evaluation Methodology for Overactuated Systems using Linear Constrained Model Predictive

Control, Control Engineering Pracitce (under revision). 2013

Page 74: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

ACD'06 74

Fault-tolerance against faults can be embedded in MPC it relatively easy (Maciejowski, 2002).

This can be done in two ways:

(1) Redefining the constraints to represent certain kinds of faults, being this particularly appropriate for actuator fault.

For example, in the case that a actuator is stuck at a given position, it can be represented in the optimization program by changing:

the lower and upper constraints,

or if the value at which the actuator is stuck is known, inserting it as both a lower an upper constraint;

(2) Changing the control objectives to reflect limitations because of the faulty conditions.

Fault-tolerance in MPC

Page 75: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Embedding Fault-tolerant MPC in the Hybrid Framework

After fault modes has been incorporated in the model used by the controller, an Active Fault Tolerant HMPC (AFTMPC) architecture is proposed to handle faults.

The control system should incorporate an FDI module that will be used to as an external event generator to change from fault modes

Page 76: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 76

Fault Tolerance Evaluation Methodology

Page 77: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 77

Identifying Critical and Redundant Elements

Page 78: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 78

Structural Analysis

Page 79: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

79

Tolerance Evaluation (1)

The objective is to assess the tolerance of a certain actuator fault configuration considering a non-linear predictive/optimal control law with constraints.

This problem has been already treated in the literature for the case of LQR problem without constraints (Staroswiecki,2003), thanks to the existence of analytical solution.

However, Model Predictive Control (MPC) problem does not have, in general, an analytical solution, which makes difficult to do this type of analysis

Nonlinearity and constraints (on states and control signals) are always present in real industrial control problems.

The method proposed is not of analytical but of computational nature.

Page 80: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 80

It follows the idea based on the calculation of the control law for a predictive/optimal controller with constraints can be divided in two steps:

first, the calculation of solutions set that satisfies the constraints (feasible solutions) and

second, the optimal solution determination.

Faults in actuators will cause changes in the set of feasible solutions since constraints on the control signals have varied.

This causes that the set of admissible solutions for the control objective could be empty.

Therefore, the admissibility of the control law facing the actuator faults can be determined knowing the feasible solutions set.

Tolerance Evaluation (2)

Page 81: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 81

Constraints satisfaction problem:

"A constraints satisfaction problem (CSP) on sets can be formulated as a 3-tuple H = (V,D,C) where:

V = { v1 , ,vn } is a finite set of variables,

D = {D1 , ,Dn } is the set of their domains represented by closed sets

C ={c1 , ,cn } is a finite set of constraints relating variables of V "

A point solution of H is a n-tuple (v1 , ,vn ) 2 D such that all constraints C are satisfied.

The set of all point solutions of H is denoted by S(H). This set is called the global solution set.

The variable vi 2 Vi is consistent in H if and only if:

with i=1...n

Constraints Satisfaction Problem

Page 82: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 82

Feasibility Evaluation using Constraints Satisfaction

Page 83: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 83

Performance Evaluation using Constraints Satisfaction

Page 84: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 84

Reliability Analysis

Page 85: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 85

Tolerance Evaluation: Structural Analysis

Page 86: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 86

Tolerance Evaluation: Structural Analysis

Page 87: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 87

Tolerance Evaluation: Performance Analysis

Page 88: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

SAFEPROCESS'06 88

Tolerance Evaluation: Reliability Analysis

Page 89: Model Predictive Control of Water Networks5hycon2.imtlucca.it/slides/PUIG.pdf · Model Predictive Control of Water Networks HYCON/EFFINET School ... 2000 3000 4000 d115CAST time (h)

Thank you very much

April 3, 2009 WIDE Meeting – Eindhoven (NL)


Recommended