Time-Parallel optimal control solver for parabolic equations - - PowerPoint PPT Presentation

time parallel optimal control solver for parabolic
SMART_READER_LITE
LIVE PREVIEW

Time-Parallel optimal control solver for parabolic equations - - PowerPoint PPT Presentation

Time-Parallel optimal control solver for parabolic equations Mohamed Kamal RIAHI, joint work with Yvon MADAY & Julien SALOMON 22 mai 2011 MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 1 / 21


slide-1
SLIDE 1

Time-Parallel optimal control solver for parabolic equations

Mohamed Kamal RIAHI, joint work with Yvon MADAY & Julien SALOMON 22 mai 2011

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 1 / 21

slide-2
SLIDE 2

Optimal control’s tools

The cost quadratic functional considered is as below J(v) := 1 2y(T) − ytarget2 + α 2 T v2dt (1) The primal state variable y(t, x; v) depends linearly on the control v through the heat equation starting form the initial data y0 The first derivative of the Euler-Lagrange equations gives the following

  • ptimality system ;

Primal  ∂ty − µ∆y = Bv y(t = 0) = y0 (2) Dual  ∂tp + µ∆p = 0 p(t = T) = y(T) − y target (3) gradient ∇J(v) = αv +t Bp. (4)

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 2 / 21

slide-3
SLIDE 3

Summary

1 Introduction

Tools of : Optimal Control Solver

2 SITPOC : Parallel optimal control solver

Parallelization setting

3 Coupling SITPOC & Parareal

Parareal algorithm PITPOC algorithm

4 Numerical experiments 5 Further reading 6 Conclusion

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 3 / 21

slide-4
SLIDE 4

Parallelization of the optimal control solver

Now we aim to : Divide the global system into series of dependent time problems Solve iteratively sub problem independently, so that in the limit the solution of the global problem is obtained. The key ingredient is the introduction of the intermediate targets and initial conditions as follows. ∀n ≥ 0

λn := y(tn; vn), γn := p(tn; vn)on [0, T] × Ω (5)

ξ(tn; vn) := y(tn; vn) − p(tn; vn), on [0, T] × Ω (6)

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 4 / 21

slide-5
SLIDE 5

Parallelization of the optimal control solver

Now we aim to : Divide the global system into series of dependent time problems Solve iteratively sub problem independently, so that in the limit the solution of the global problem is obtained. The key ingredient is the introduction of the intermediate targets and initial conditions as follows. ∀n ≥ 0

λn := y(tn; vn), γn := p(tn; vn)on [0, T] × Ω (5)

ξ(tn; vn) := y(tn; vn) − p(tn; vn), on [0, T] × Ω (6)

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 4 / 21

slide-6
SLIDE 6

Parallelization of the optimal control solver

Now we aim to : Divide the global system into series of dependent time problems Solve iteratively sub problem independently, so that in the limit the solution of the global problem is obtained. The key ingredient is the introduction of the intermediate targets and initial conditions as follows. ∀n ≥ 0

λn := y(tn; vn), γn := p(tn; vn)on [0, T] × Ω (5)

ξ(tn; vn) := y(tn; vn) − p(tn; vn), on [0, T] × Ω (6)

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 4 / 21

slide-7
SLIDE 7

Parallelization of the optimal control solver

Now we aim to : Divide the global system into series of dependent time problems Solve iteratively sub problem independently, so that in the limit the solution of the global problem is obtained. The key ingredient is the introduction of the intermediate targets and initial conditions as follows. ∀n ≥ 0

λn := y(tn; vn), γn := p(tn; vn)on [0, T] × Ω (5)

ξ(tn; vn) := y(tn; vn) − p(tn; vn), on [0, T] × Ω (6)

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 4 / 21

slide-8
SLIDE 8

Parallelization setting

That definition allows us to define sub cost functional as follows ; Jn(w n, λn, ξn+1) := 1 2yn(T −

n+1) − ξn+12 + α

2 Tn+1

Tn

w n2dt (7) where yn(T −

n+1) is the solution at time t = Tn+1 evolved from the initial

data yn(T +

n ) = λn according to the PDE : ∂tyn + µ∆yn = Bwn. Here we

note that the local (on In := [Tn, Tn+1]) optimality system is : ∂tyn − µ∆yn = Bwn on In × Ω yn(t = n) = λn (8) ∂tpn + µ∆pn = 0 on In × Ω pn(t−

n+1) = yn(t− n+1) − ξn+1

(9) ∇Jn(w n) = αw n +t Bpn. (10)

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 5 / 21

slide-9
SLIDE 9

Theoretical support

Lemma (Consistence Lemma)

Let τ ∈]0, T[, and the optimal control problem : Find w⋆

τ ∈ H such that

w ⋆

τ := argminw∈HJτ(w)

where Jτ(w) := 1 2y(τ) − ξ⋆(τ)2 + α 2 Z Tn+1

Tn

w2 (11) with y(τ) the solution of Equation (2). We have w ⋆

τ = v ⋆ I[0,τ]

Intermediate targets : With the notations above, denote by ξ⋆ the target trajectory defined by Equation (6) with y = y ⋆ and p = p⋆ and by y⋆

n , p⋆ n, v ⋆ n the solutions of

Equations (8–10) associated with v⋆. One has : v ⋆

n = v ⋆ |In .

With an arbitrary subinterval index n

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 6 / 21

slide-10
SLIDE 10

Play SITPOC algorithm

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 7 / 21

slide-11
SLIDE 11

Over view of the Parareal algorithm

The parareal algorithm is an iterative preconditioned scheme that ensure convergence at its nth iteration, this happens thanks to the pascal triangle behavior. λk+1

n+1 = G∆T(λk+1 n

) + F∆T(λk

n) − G∆T(λk n)

(12) Compatibility with parallel architecture. No sleeping process (with some particular implementation). Fast convergence if it holds (stability question). For instance we get : when the error is about 1.E − 4

  • Nb processor

4# 8# 16# Nb itrations 3 3 3 Wallclock mn : s 2 : 23 1 : 15 0 : 49

  • MK.Riahi, Y.Maday & J.Salomon

() Parallel In Time Optimal Control Solver 22 mai 2011 8 / 21

slide-12
SLIDE 12

Over view of the Parareal algorithm

The parareal algorithm is an iterative preconditioned scheme that ensure convergence at its nth iteration, this happens thanks to the pascal triangle behavior. λk+1

n+1 = G∆T(λk+1 n

) + F∆T(λk

n) − G∆T(λk n)

(12) Compatibility with parallel architecture. No sleeping process (with some particular implementation). Fast convergence if it holds (stability question). For instance we get : when the error is about 1.E − 4

  • Nb processor

4# 8# 16# Nb itrations 3 3 3 Wallclock mn : s 2 : 23 1 : 15 0 : 49

  • MK.Riahi, Y.Maday & J.Salomon

() Parallel In Time Optimal Control Solver 22 mai 2011 8 / 21

slide-13
SLIDE 13

Over view of the Parareal algorithm

The parareal algorithm is an iterative preconditioned scheme that ensure convergence at its nth iteration, this happens thanks to the pascal triangle behavior. λk+1

n+1 = G∆T(λk+1 n

) + F∆T(λk

n) − G∆T(λk n)

(12) Compatibility with parallel architecture. No sleeping process (with some particular implementation). Fast convergence if it holds (stability question). For instance we get : when the error is about 1.E − 4

  • Nb processor

4# 8# 16# Nb itrations 3 3 3 Wallclock mn : s 2 : 23 1 : 15 0 : 49

  • MK.Riahi, Y.Maday & J.Salomon

() Parallel In Time Optimal Control Solver 22 mai 2011 8 / 21

slide-14
SLIDE 14

Over view of the Parareal algorithm

The parareal algorithm is an iterative preconditioned scheme that ensure convergence at its nth iteration, this happens thanks to the pascal triangle behavior. λk+1

n+1 = G∆T(λk+1 n

) + F∆T(λk

n) − G∆T(λk n)

(12) Compatibility with parallel architecture. No sleeping process (with some particular implementation). Fast convergence if it holds (stability question). For instance we get : when the error is about 1.E − 4

  • Nb processor

4# 8# 16# Nb itrations 3 3 3 Wallclock mn : s 2 : 23 1 : 15 0 : 49

  • MK.Riahi, Y.Maday & J.Salomon

() Parallel In Time Optimal Control Solver 22 mai 2011 8 / 21

slide-15
SLIDE 15

PITPOC algorithm

In this algorithm, our aim is to Reduce complexity by applying the coarse operator G instead of the fine operator F Replace y(T)(v) by λN on the functional J in order to hang over the target solution ytarget

Φvk,λk (θ) := 1 2λk+1

N

(θ) − y target2 + α 2 Z T v k+1(θ)2dt

Use parallel information in order to correct predictor propagator in the sequential part of the algorithm Optimize relaxation of the coupled parareal-control algorithm

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 9 / 21

slide-16
SLIDE 16

PITPOC algorithm

In this algorithm, our aim is to Reduce complexity by applying the coarse operator G instead of the fine operator F Replace y(T)(v) by λN on the functional J in order to hang over the target solution ytarget

Φvk,λk (θ) := 1 2λk+1

N

(θ) − y target2 + α 2 Z T v k+1(θ)2dt

Use parallel information in order to correct predictor propagator in the sequential part of the algorithm Optimize relaxation of the coupled parareal-control algorithm

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 9 / 21

slide-17
SLIDE 17

PITPOC algorithm

In this algorithm, our aim is to Reduce complexity by applying the coarse operator G instead of the fine operator F Replace y(T)(v) by λN on the functional J in order to hang over the target solution ytarget

Φvk,λk (θ) := 1 2λk+1

N

(θ) − y target2 + α 2 Z T v k+1(θ)2dt

Use parallel information in order to correct predictor propagator in the sequential part of the algorithm Optimize relaxation of the coupled parareal-control algorithm

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 9 / 21

slide-18
SLIDE 18

PITPOC algorithm

In this algorithm, our aim is to Reduce complexity by applying the coarse operator G instead of the fine operator F Replace y(T)(v) by λN on the functional J in order to hang over the target solution ytarget

Φvk,λk (θ) := 1 2λk+1

N

(θ) − y target2 + α 2 Z T v k+1(θ)2dt

Use parallel information in order to correct predictor propagator in the sequential part of the algorithm Optimize relaxation of the coupled parareal-control algorithm

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 9 / 21

slide-19
SLIDE 19

Numerical experiments

Play PITPOC algorithm

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 10 / 21

slide-20
SLIDE 20

Speed up convergence I

Figure: SITPOC : Decaying against number of global iterations

4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 20 40 60 80 100

N = 1 : N = 2 : N = 4 : N = 8 : N = 16 : N = 32 :

Number of iterations Functional values

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 11 / 21

slide-21
SLIDE 21

Speed up convergence II

Figure: PITPOC : Decaying against number of global iterations

! "! #! $! %! &!! ' $ ( % ) *+,-./ 0-1023*456#42016& 0-1023*456%42016& 0-1023*456&$42016& 0-1023*4567"42016&

!"#$%&'()$*"(+,%-+,'.#%/.)+0*(1%"(%$2.%1,"3+,%+,1"4*$256#%*$.4+$*"(# 7'53.4%"&%$2.%1,"3+,%*$.4+$*"(# 8'()$*"(+,%-+,'.#

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 12 / 21

slide-22
SLIDE 22

Speed up by reducing complexity I

Figure: Decaying against number of multiplications

4 5 6 7 8 9 100000 200000 300000 400000 500000 600000

N = 1 : N = 2 : N = 4 : N = 8 : N = 16 : N = 32 :

Number of multiplications Functional values

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 13 / 21

slide-23
SLIDE 23

Speed up by reducing complexity II

Figure: Decaying of the functional value per complexity per processor

! "!!!!! #!!!!! $!!!!! %!!!!! &'&!$ &("'&!$ ) $ * % + ,-./01 2/3245,678#64238& 2/3245,678%64238& 2/3245,678&$64238& 2/3245,6789"64238&

!"#$%&'()'(*%&+,-(./'()'#"0,-*0-1+,-(./ 2".1,-.+0'3+0"%/ 4(/,')".1,-(.+0'3+0"%'5%1+6-.7'(.',8%'."#$%&'()'#"0,-*0-1+,-(./' *%&'-,%&+&,-(./

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 14 / 21

slide-24
SLIDE 24

Speed up the wallclock Simulation

Figure: Elapsed real time for the simulation with SITPOC algorithm

1e-06 1e-05 0.0001 0.001 0.01 0.1 1 10 00:00 05:00 10:00 15:00 20:00 25:00 30:00 35:00 40:00 45:00 log scale relative error value wallclock Relative error functional value decaying : SITPOC n=01 n=02 n=04 n=08 n=16

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 15 / 21

slide-25
SLIDE 25

Figure: Elapsed real time for the simulation with PITPOC algorithm

1e-06 1e-05 0.0001 0.001 0.01 0.1 1 10 00:00 03:00 06:00 09:00 12:00 15:00 18:00 21:00 24:00 27:00 log scale relative error value wallclock Relative error functional value decaying : PITPOC n=01 n=02 n=04 n=08 n=16 n=32 n=64

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 16 / 21

slide-26
SLIDE 26

We calculate the speed up using a serial and MPI simulation of the same problem with the same tools used as solvers. The reference here is the elapsed real time of an ordinary simulation (for instance optimal time step decent algorithm). The speed up formula reads Sp# = T1#(serial) Tp#(MPI)

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 17 / 21

slide-27
SLIDE 27

Elapsed time to reach 1% of the result

  • Numer of processor#

1# 2# 4# 8# 16# 32# 64# Timing SITPOC 08 : 05 13 : 59 nan 02 : 34 02 : 30 − − Timing PITPOC 08 : 05 nan 04 : 10 02 : 11 01 : 27 01 : 04 00 : 58

  • Figure:

1 2 3 4 5 6 7 8 9 10 20 30 40 50 60 70 Speed up value Number of processor Speed Up Wallclock computation PITPOC SITPOC

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 18 / 21

slide-28
SLIDE 28

For further reading

References J.-L. Lions,Virtual and effetive control for distributed systems and decomposition of everything

  • J. Anal. Math. 80 257-297 ,2000
  • Y. Maday&G. Turinici, A parareal in time procedure for the control of partial

differential equations

  • C. R. Math. Acad. Sci. Paris 335,

4 387-392, 2002.

  • G. Bal &Y. Maday A parareal time discretization for non-linear PDEs with

application to the pricing of an american put , Springer,Lect Notes Comput. Sci. Eng. ,189-202, 2002. J.-L. Lions &,&Y. Maday,&G Turinici, Résolution d’EDP par un shéma pararréel,

  • C. R. Acad. Sci Paris, I 332 , 661-668, 2001
  • Y. Maday& J. Salomon,& G. Turinici, Parareal in time control for quantum systems

SIAM J. Num Anal, 45(6) 2468-2482, 2007. TAREK P. MATHEW&, MARCUS SARKIS,&, CHRISTIAN E. SCHAERER ANALYSIS OF BLOCK PARAREAL PRECONDITIONERS FOR PARABOLIC OPTIMAL CONTROL PROBLEMS, SIAM J. SCI. COMPUT., 32 3 1180-1200, 2010.

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 19 / 21

slide-29
SLIDE 29

Conclusion & perspectives

Even if we are under the master-slaves net-framework an important speed up is shown Conjugate descent is applicable in the parallel resolution, and it may gives some more speed up. There is in algebraic interpretation for theses algorithms, that shows some relationship with the Jacobi process. Parareal could be coupled with others iterative solvers. We project to apply these parallel optimal control solvers to non-linear PDE

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 20 / 21

slide-30
SLIDE 30

Conclusion & perspectives

Even if we are under the master-slaves net-framework an important speed up is shown Conjugate descent is applicable in the parallel resolution, and it may gives some more speed up. There is in algebraic interpretation for theses algorithms, that shows some relationship with the Jacobi process. Parareal could be coupled with others iterative solvers. We project to apply these parallel optimal control solvers to non-linear PDE

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 20 / 21

slide-31
SLIDE 31

Conclusion & perspectives

Even if we are under the master-slaves net-framework an important speed up is shown Conjugate descent is applicable in the parallel resolution, and it may gives some more speed up. There is in algebraic interpretation for theses algorithms, that shows some relationship with the Jacobi process. Parareal could be coupled with others iterative solvers. We project to apply these parallel optimal control solvers to non-linear PDE

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 20 / 21

slide-32
SLIDE 32

Conclusion & perspectives

Even if we are under the master-slaves net-framework an important speed up is shown Conjugate descent is applicable in the parallel resolution, and it may gives some more speed up. There is in algebraic interpretation for theses algorithms, that shows some relationship with the Jacobi process. Parareal could be coupled with others iterative solvers. We project to apply these parallel optimal control solvers to non-linear PDE

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 20 / 21

slide-33
SLIDE 33

Conclusion & perspectives

Even if we are under the master-slaves net-framework an important speed up is shown Conjugate descent is applicable in the parallel resolution, and it may gives some more speed up. There is in algebraic interpretation for theses algorithms, that shows some relationship with the Jacobi process. Parareal could be coupled with others iterative solvers. We project to apply these parallel optimal control solvers to non-linear PDE

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 20 / 21

slide-34
SLIDE 34

THANK YOU

MK.Riahi, Y.Maday & J.Salomon () Parallel In Time Optimal Control Solver 22 mai 2011 21 / 21