Mixed-Integer PDE-Constrained Optimization Frontiers in - - PowerPoint PPT Presentation

mixed integer pde constrained optimization
SMART_READER_LITE
LIVE PREVIEW

Mixed-Integer PDE-Constrained Optimization Frontiers in - - PowerPoint PPT Presentation

Mixed-Integer PDE-Constrained Optimization Frontiers in PDE-constrained Optimization Pelin Cay, Bart van Bloemen Waanders, Drew Kouri, Anna Thuenen and Sven Leyffer Lehigh University, Universit at Magdeburg, Argonne National Laboratory, and


slide-1
SLIDE 1

Mixed-Integer PDE-Constrained Optimization

Frontiers in PDE-constrained Optimization Pelin Cay, Bart van Bloemen Waanders, Drew Kouri, Anna Thuenen and Sven Leyffer

Lehigh University, Universit¨ at Magdeburg, Argonne National Laboratory, and Sandia National Laboratories

June 8, 2016

slide-2
SLIDE 2

Outline

1

Introduction Problem Definition and Applications Theoretical and Computational Challenges

2

Early Numerical Results Source Inversion as MIP with PDE Constraints Eliminating the PDE and States

3

Control of Heat Equation Design and Operation of Actuators Sum-Up Rounding Heuristic for Time-Dependent Controls

4

Conclusions

2 / 32

slide-3
SLIDE 3

Mixed-Integer PDE-Constrained Optimization (MIPDECO)

PDE-constrained MIP ... u = u(t, x, y, z) ⇒ infinite-dimensional! t is time index; x, y, z are spatial dimensions      minimize

u,w

F(u, w) subject to C(u, w) = 0 u ∈ U, and w ∈ Zp (integers), u(t, x, y, z): PDE states, controls, & design parameters w discrete or integral variables

MIPDECO Warning

w = w(t, x, y, z) ∈ Z may be infinite-dimensional integers!

3 / 32

slide-4
SLIDE 4

Mixed-Integer PDE-Constrained Optimization (MIPDECO)

PDE-constrained MIP ... u = u(t, x, y, z) ⇒ infinite-dimensional! t is time index; x, y, z are spatial dimensions      minimize

u,w

F(u, w) subject to C(u, w) = 0 u ∈ U, and w ∈ Zp (integers), u(t, x, y, z): PDE states, controls, & design parameters w discrete or integral variables

MIPDECO Warning

w = w(t, x, y, z) ∈ Z may be infinite-dimensional integers! Oh my God, alien MIPs!

3 / 32

slide-5
SLIDE 5

Grand-Challenge Applications of MIPDECO

Topology optimization [Sigmund and Maute, 2013] Nuclear plant design: select core types & control flow rates [Committee, 2010] Well-selection for remediation of contaminated sites [Ozdogan, 2004] Design of next-generation solar cells

[Reinke et al., 2011]

Design of wind-farms [Zhang et al., 2013] Scheduling for disaster recovery:

  • il-spills [You and Leyffer, 2010]

& wildfires [Donovan and Rideout, 2003] Design & control of gas networks,

[De Wolf and Smeers, 2000, Martin et al., 2006, Zavala, 2014]

... any more applications!

4 / 32

slide-6
SLIDE 6

Mesh-Independent & Mesh-Dependent Integers

Definition (Mesh-Independent & Mesh-Dependent Integers)

1 The integer variables are mesh-independent, iff number of

integer variables is independent of the mesh.

2 The integer variables are mesh-dependent, iff the number of

integer variables depends on the mesh. Mesh-Independent Manageable tree Theory possible Mesh-Dependent Exploding tree Theory???

5 / 32

slide-7
SLIDE 7

Theoretical Challenges of MIPDECO

Functional Analysis (mesh-dependent integers)

Denis Ridzal: What function space is w(x, y) ∈ {0, 1}? Consistently approximate w(x, y) ∈ {0, 1} as h → 0? Conjecture: {w(x, y) ∈ {0, 1}} = L2(Ω) ... e.g. binary support of Cantor set not integrable Likely need additional regularity assumptions

Coupling between Discretization & Integers

Discretization scheme (e.g. upwinding for wave equation) depends

  • n direction of flow (integers).

Application: gas network models with flow reversals

6 / 32

slide-8
SLIDE 8

Computational Challenges of MIPDECO

Approaches for humongous branch-and-bound trees ... e.g. 3D topology optimization with 109 binary variables Warm-starts for PDE-constrained optimization (nodes) Guarantees for nonconvex (nonlinear) PDE constraints ... factorable programming approach hopeless for 109 vars!

log ^ 3

1 2 2

x x x * +

... f (x1, x2) = x1 log(x2) + x3

2

7 / 32

slide-9
SLIDE 9

MIPDECO: Two Cartoons Collide

Observation

Mixed-Integer and PDE-optimization developed separately ⇒ different assumptions, methodologies, & computational kernels! Mixed-Integer Programming PDE-Optimization Deliver certificate of optimality Obtain good solutions efficiently Branch-and-Cut Newton’s method Factors & rank-one updates Iterative Krylov solvers Potential for Disaster, or Opportunity for Innovation!

8 / 32

slide-10
SLIDE 10

Outline

1

Introduction Problem Definition and Applications Theoretical and Computational Challenges

2

Early Numerical Results Source Inversion as MIP with PDE Constraints Eliminating the PDE and States

3

Control of Heat Equation Design and Operation of Actuators Sum-Up Rounding Heuristic for Time-Dependent Controls

4

Conclusions

9 / 32

slide-11
SLIDE 11

Source Inversion as MIP with PDE Constraints

Simple Example: Locate number of sources to match observation ¯ u                minimize

u,w

J = 1 2

(u − ¯ u)2dΩ least-squares fit subject to −∆u =

  • k,l

wklfkl in Ω Poisson equation

  • k,l

wkl ≤ S and wkl ∈ {0, 1} source budget with Dirichlet boundary conditions u = 0 on ∂Ω. E.g. Gaussian source term, σ > 0, centered at (xk, yl) fkl(x, y) := exp −(xk, yl) − (x, y)2 σ2

  • ,

Motivated by porous-media flow application to determine number

  • f boreholes, [Ozdogan, 2004, Fipki and Celi, 2008]

10 / 32

slide-12
SLIDE 12

Source Inversion as MIP with PDE Constraints

Consider 2D example with Ω = [0, 1]2 and discretize PDE: 5-point finite-difference stencil; uniform mesh h = 1/N Denote ui,j ≈ u(ih, jh) approximation at grid points                            minimize

u,w

Jh = h2 2

N

  • i,j=0

(ui,j − ¯ ui,j)2 subject to 4ui,j − ui,j−1 − ui,j+1 − ui−1,j − ui+1,j h2 =

N

  • k,l=1

wklfkl(ih, jh) u0,j = uN,j = ui,0 = ui,N = 0

N

  • k,l=1

wkl ≤ S and wkl ∈ {0, 1} ... finite-dimensional (convex) MIQP!

11 / 32

slide-13
SLIDE 13

Mesh-Independent Source Inversion

Potential source locations (blue dots) on 16 × 16 mesh Create target ¯ u using red square sources

12 / 32

slide-14
SLIDE 14

Source Inversion as MIP with PDE Constraints

0.2 0.4 0.6 0.8 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Contours of TARGET ubar(x,y)

0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02 0.2 0.4 0.6 0.8 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Relative error in States ubar(x,y) - u(x,y) & Source Location

  • 0.1
  • 0.05

0.05 0.1 0.15

Target (3 sources), reconstructed sources, & error on 32 × 32 mesh

13 / 32

slide-15
SLIDE 15

Mesh-Independent Source Inversion: MINLP Solvers

Number of Nodes and CPU time for Increasing Mesh Sizes

Mesh-Size

10 20 30 40 50 60 70

Nodes

10 2 10 3 10 4 10 5 BonminOA MINLP Minotaur

Mesh-Size

10 20 30 40 50 60 70

CPU Time

10 0 10 1 10 2 10 3 10 4 10 5 BonminOA MINLP Minotaur

Number of Nodes independent of mesh size! MINLP & Minotaur: filterSQP runs out of memory for N ≥ 32 BonminOA takes roughly 100 iterations ... quadratic objective

14 / 32

slide-16
SLIDE 16

Mesh-Dependent Source Inversion: MINLP Solvers

Number of Nodes and CPU time for Increasing Mesh Sizes

Mesh-Size

4 6 8 10 12 14 16

Nodes

10 1 10 2 10 3 10 4 10 5 10 6 10 7 BonminOA BonminBB MINLP Minotaur

Mesh-Size

4 6 8 10 12 14 16

CPU Time

10 -2 10 0 10 2 10 4 10 6 10 8 BonminOA BonminBB MINLP Minotaur

Number of nodes & CPU time explodes with mesh size! OA <BREAK> after 130,000 seconds ... stress test for solvers!

15 / 32

slide-17
SLIDE 17

Mesh-Dependent MIPDECOs are Really Tough

MIPDECO trees become humongous ... ... and unmanageable.

16 / 32

slide-18
SLIDE 18

MIPDECO Trick # 1: Eliminating the PDE

Discretized PDE constraint (Poisson equation) 4ui,j − ui,j−1 − ui,j+1 − ui−1,j − ui+1,j h2 =

  • k,l

wklfkl(ih, jh), ∀i, j ⇔ Au = wklfkl, where wkl ∈ {0, 1} only appear on RHS!

Elimination of PDE and states u(x, y, z)

Au =

  • k,l

wklfkl ⇔ u = A−1  

k,l

wklfkl   =

  • k,l

wklA−1fkl Solve n2 ≪ 2n PDEs: u(kl) := A−1fkl Eliminate u =

k,l wklu(kl)

17 / 32

slide-19
SLIDE 19

MIPDECO Trick # 1: Eliminating the PDE

Eliminate u =

k,l wklu(kl) in MINLP:

               minimize

w

Jh = h2 2

N

  • i,j=0

 

k,l

wklu(kl)

ij

− ¯ ui,j  

2

subject to

N

  • k,l=1

wkl ≤ S and wkl ∈ {0, 1} Eliminates the states u (N2 variables) Eliminates the PDE constraint (N2 constraints) ... generalizes to other PDEs (with integer controls on RHS) Simplified model is quadratic knapsack problem

18 / 32

slide-20
SLIDE 20

Elimination of States & PDEs: Source Inversion

CPU Time for Increasing Mesh Sizes: Simplified vs. Original Model

Mesh-Size

5 10 15 20 25 30 35

CPU Time

10 -2 10 -1 10 0 10 1 10 2 10 3 10 4 MINLP MINLP-Simple

Eliminating PDEs is two orders of magnitude faster!

19 / 32

slide-21
SLIDE 21

Outline

1

Introduction Problem Definition and Applications Theoretical and Computational Challenges

2

Early Numerical Results Source Inversion as MIP with PDE Constraints Eliminating the PDE and States

3

Control of Heat Equation Design and Operation of Actuators Sum-Up Rounding Heuristic for Time-Dependent Controls

4

Conclusions

20 / 32

slide-22
SLIDE 22

Actuator Placement and Operation [Falk Hante]

Goal: Control temperature with actuators Select sequence of control inputs (actuators) Choose continuous control (heat/cool) at locations Match prescribed temperature profile ... “de-mist bathroom mirror with hair-drier” Potential Actuator Locations l = 1, . . . , L

21 / 32

slide-23
SLIDE 23

Actuator Placement and Operation

Find optimal sequence of actuators, wl(t), and controls, vl(t): minimize

u,v,w

u(tf , ·)2

Ω + 2u2 T×Ω + 1 500v2 T

subject to ∂u ∂t − κ∆u =

L

  • l=1

vl(t)fl in T × Ω wl(t) ∈ {0, 1},

L

  • l=1

wl(t) ≤ W , ∀t ∈ T Lwl(t) ≤ vl(t) ≤ Uwl(t), ∀l = 1, . . . , L, ∀t ∈ T where fl(x, y) = 1 √ 2πσ exp −(x, y) − (xl, yl)2) 2σ

  • point-source for actuators at (xl, yl)

22 / 32

slide-24
SLIDE 24

Actuator Placement and Operation

Solution of NLP relaxation on 32 × 32 mesh ... ... provides no useful information?

23 / 32

slide-25
SLIDE 25

Actuator Placement and Operation

Solution of MIPDECO on 32 × 32 mesh ... ... implementable discrete control!

24 / 32

slide-26
SLIDE 26

NLP Relaxations of MIPDECOs Not Meaningfully

Relaxations give useless controls ... ... and need some supervision ...

25 / 32

slide-27
SLIDE 27

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-28
SLIDE 28

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-29
SLIDE 29

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-30
SLIDE 30

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-31
SLIDE 31

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-32
SLIDE 32

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-33
SLIDE 33

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-34
SLIDE 34

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-35
SLIDE 35

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-36
SLIDE 36

Sum-Up Rounding Heuristics for MIPDECOs

MIPDECO with binary control w(t) independent of (x, y, z) ...

  • minimize

u,w

F(u, w) subject to C(u, w) = 0, u ∈ U, w(t) ∈ {0, 1}p Generalize optimal control sum-up-rounding [Sager et al., 2012] ... Let ˜ wt ∈ [0, 1] solution of discretized continuous relaxation for t = 1, . . . , T do Compute rounding residual: rt :=

t

  • τ=0

˜ wτ −

t−1

  • τ=0

wt Round: wt = 1 if rt > 1

2

0 else end

26 / 32

slide-37
SLIDE 37

Sum-Up Rounding vs. Simple Rounding

Simple rounding: wt = round(˜ wt) Sum-Up Rounding: 6.31 → 6 Simple Rounding: 6.31 → 7 Simple Rounding arbitrarily poor: ˜ wt = 0.500001 ⇒ wt = 1 Sum-Up Rounding has guarantees on quality of bounds!

27 / 32

slide-38
SLIDE 38

Results for Sum-Up Rounding

Consider 2D heat equation with Robin boundary control Ω = [0, 1]2 × [0, 2] discretized with N = 8, 16, 32 in space and M = 16, 32, 64 in time. MINLP solvers: Minotaur and Bonmin (BnB, Hyb, OA) Sum-Up-Rounding (knapsack): Two NLPs solved with IPOPT Two instances per mesh (different initial conds & forcing) Problem Size Mesh # Variables # Binary Vars # Constraints 8x8x16 2873 272 3094 16x16x32 13497 528 13926 32x32x64 82745 1040 83590

28 / 32

slide-39
SLIDE 39

Results for Sum-Up Rounding

Consider 2D heat equation with Robin boundary control Ω = [0, 1]2 × [0, 2] discretized with N = 8, 16, 32 in space and M = 16, 32, 64 in time. MINLP solvers: Minotaur and Bonmin (BnB, Hyb, OA) Sum-Up-Rounding (knapsack): Two NLPs solved with IPOPT Two instances per mesh (different initial conds & forcing) CPU Time [s] for Solution Mesh Minotaur B-BnB B-Hyb B-OA SUR-k 8x8x16 4660.4 4660.4 4660.4 Time 1.08 8x8x16 18240.4 18240.4 18240.4 18240.4 1.66 16x16x32 Time Time Time Time 23.7 16x16x32 4333.4 Time 4332.6 Time 43.5 32x32x64 Time Time Time Time 9297.5 32x32x64 Time Time Time Time 2650.7

29 / 32

slide-40
SLIDE 40

Results for Sum-Up Rounding

NLPs solve faster than MINLPs ... what about solution quality?

30 / 32

slide-41
SLIDE 41

Results for Sum-Up Rounding

NLPs solve faster than MINLPs ... what about solution quality? Solution Bounds and Gap N Low Bnd Upp Bnd

  • Rel. Gap

8 4660.4 4809.9 3.1% 8 18240.4 18838.6 3.2% 16 2483.6 2517.9 1.4% 16 4332.7 4840.1 10.5% 32 900.8 976.8 7.8% 32 1840.8 2560.5 28.1% ... most solutions within 10% of optimum!

30 / 32

slide-42
SLIDE 42

Conclusions

Mixed-Integer PDE-Constrained Optimization (MIPDECO) Class of challenging problems with important applications

Subsurface flow: oil recovery or environmental remediation Design and operation of gas-/power-networks

Classification: mesh-dependent vs. mesh-independent On-going work: Building library of test problems ... formulation matters: interplay of binary and continuous Elimination of PDE and state variables u(t, x, y, z) Discretized PDEs ⇒ huge MINLPs ... push solvers to limit Sum-up rounding heuristics can be generalized Outlook and Extensions Consider multi-level in space (network) and time Move toward truly multi-level approach similar to PDEs

31 / 32

slide-43
SLIDE 43

The Nastiest Optimization Problem Ever???

Add nonlinearities, uncertainty, robustness ...

32 / 32

slide-44
SLIDE 44

Committee, T. (2010). Advanced fueld pellet materials and fuel rod design for water cooled reactors. Technical report, International Atomic Energy Agency. De Wolf, D. and Smeers, Y. (2000). The gas transmission problem solved by an extension of the simplex algorithm. Management Science, 46:1454–1465. Donovan, G. and Rideout, D. (2003). An integer programming model to optimize resource allocation for wildfire contrainment. Forest Science, 61(2). Fipki, S. and Celi, A. (2008). The use of multilateral well designs for improved recovery in heavy oil reservoirs. In IADV/SPE Conference and Exhibition, Orlanda, Florida. SPE. Martin, A., M¨

  • ller, M., and Moritz, S. (2006).

Mixed integer models for the stationary case of gas network optimization. Mathematical Programming, 105:563–582. Ozdogan, U. (2004). Optimization of well placement under time-dependent uncertainty. Master’s thesis, Stanford University. Reinke, C. M., la Mata Luque, T. M. D., Su, M. F., Sinclair, M. B., and El-Kady, I. (2011). Group-theory approach to tailored electromagnetic properties of metamaterials: An inverse-problem solution.

32 / 32

slide-45
SLIDE 45

Physical Review E, 83(6):066603–1–18. Sager, S., Bock, H., and Diehl, M. (2012). The integer approximation error in mixed-integer optimal control. Mathematical Programming A, 133(1–2):1–23. Sigmund, O. and Maute, K. (2013). Topology optimization approaches: A comparative review. Structural and Multidisciplinary Optimization, 48(6):1031–1055. You, F. and Leyffer, S. (2010). Oil spill response planning with MINLP. SIAG/OPT Views-and-News, 21(2):1–8. Zavala, V. M. (2014). Stochastic optimal control model for natural gas networks. Computers & Chemical Engineering, 64:103–113. Zhang, P., Romero, D., Beck, J., and Amon, C. (2013). Integration of AI and OR Techniques in Contraint Programming for Combinatorial Optimization Problems, chapter Solving Wind Farm Layout Optimization with Mixed Integer Programming and Constraint Programming. Springer Verlag.

32 / 32