contraction, propagation and bisection on a validated ... · contraction, propagation and bisection...

31
Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot Department U2IS ENSTA ParisTech SWIM 2016 - Lyon

Upload: lyminh

Post on 02-Jul-2019

229 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction, propagation and bisectionon a validated simulation of ODE

Julien Alexandre dit SandrettoAlexandre Chapoutot

Department U2ISENSTA ParisTechSWIM 2016 - Lyon

Page 2: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contents

Recall on validated simulation

Contraction on a validated simulation

Propagation

Experimentations

Discussion

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 2

Page 3: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Recall on validated simulation

Recall on validated simulation

Initial value problem

y = f (y , p, t) with y(0) ∈ [y0] and p ∈ [p] .

Classical approach

Lohner 2-steps method:1. Find [yi ] and hi with Picard-Lindelof

operator and Banach’s theorem2. Compute [yi+1] with a validated integration

scheme: Taylor (Vnode-LP, CAPD) orRunge-Kutta (DynIbex)

ttj tj+1

[yj]~

hj

[yj]

[yj+1]

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 3

Page 4: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Recall on validated simulation

Recall on validated simulationValidated simulation ⇒ Two lists of boxesS = {[y0], . . . , [yi ], . . . , [yN ]} and S = { ˜[y0], . . . , ˜[yi ], . . . , ˜[yN ]},such that, for all p and y0,

I y(ti) ∈ [yi ] with ti ∈ {0, t1, . . . , tN}I y(t) ∈ [yi ] for all t ∈ [ti , ti+1]

red: Sblack: S

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 4

Page 5: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Recall on validated simulation

Contractors

An interval contractor (Ctc)I Ctc([x ]) ⊂ [x ] (contractance property)I Ctc([x ]) ∩ X = [x ] ∩ X (completeness property)

A contractor associated to a constraint is a contractor associatedto the set X of all x which satisfy the constraint.

Contractors in simulationI Picard operator is a contractor

Ctcpicard([yj ]) := [yj ] ∩ [yj ] +∫ h

0 f ([yj ])dsI Validated integration scheme is a contractor

Ctcintegration([yj+1]) := [yj+1] ∩ [yj ] +∫ h

0 f ([yj ])ds

(∫

enclosed by validated Taylor or RK)

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 5

Page 6: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Recall on validated simulation

Contractors based on tricks

Monotonicity contractorIf 0 /∈ f ([yj ]), monotonicity allows [yj ] = [yj ] ∪ [yj+1] (andrecomputation of [yj+1] with new remainder and fixed point...)

Slicing contractorIf [yj+1] ⊃ [yj ] (possible attractor in [yj ]), slicing of [yj ], integrationof slices, and [yj+1] = union of results...

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 6

Page 7: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction on a validated simulation

Constraint Satisfaction Differential Problems

ProblemIf information is given on y(t) ⇒ how take it into account ?

Information on y(t)Given under the form of a temporal set constraints: y(t∗) ∈ ANote: A can be the result of a contraction of y(t∗)

w.r.t. a constraint (e.g. y(t∗)2 − 3 cos(y(t∗)) < 0 or y(t∗) /∈ B)For us, a CSDP is a set of temporal set constraints:

{y(t1) ∈ A1, . . . , y(tz) ∈ Az}

Our ApproachContraction and propagation of already computed simulation:�� ��avoids costly Lohner first step

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 7

Page 8: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction on a validated simulation

Constraint Satisfaction Differential Problems

ProblemIf information is given on y(t) ⇒ how take it into account ?

Information on y(t)Given under the form of a temporal set constraints: y(t∗) ∈ ANote: A can be the result of a contraction of y(t∗)

w.r.t. a constraint (e.g. y(t∗)2 − 3 cos(y(t∗)) < 0 or y(t∗) /∈ B)For us, a CSDP is a set of temporal set constraints:

{y(t1) ∈ A1, . . . , y(tz) ∈ Az}

Our ApproachContraction and propagation of already computed simulation:�� ��avoids costly Lohner first step

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 7

Page 9: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction on a validated simulation

Constraint Satisfaction Differential Problems

ProblemIf information is given on y(t) ⇒ how take it into account ?

Information on y(t)Given under the form of a temporal set constraints: y(t∗) ∈ ANote: A can be the result of a contraction of y(t∗)

w.r.t. a constraint (e.g. y(t∗)2 − 3 cos(y(t∗)) < 0 or y(t∗) /∈ B)For us, a CSDP is a set of temporal set constraints:

{y(t1) ∈ A1, . . . , y(tz) ∈ Az}

Our ApproachContraction and propagation of already computed simulation:�� ��avoids costly Lohner first step

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 7

Page 10: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction on a validated simulation

How take a temporal set constraint into account ?

�� ��y(t∗) ∈ A

1-Add a new integration stepSimulation becomes: S = {[y0], . . . , [yi ], [yk ], [yi+1], . . . , [yN ]}s.t. tk = t∗ and y(tk) ∈ [yk ], and same for S⇒ without Lohner first step because y(tk) ∈ [yi ] and h = tk − ti

2-ContractionApply the basic contractor [yk ] := [yk ] ∩ A

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 8

Page 11: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction on a validated simulation

How take a temporal set constraint into account ?

�� ��y(t∗) ∈ A

1-Add a new integration stepSimulation becomes: S = {[y0], . . . , [yi ], [yk ], [yi+1], . . . , [yN ]}s.t. tk = t∗ and y(tk) ∈ [yk ], and same for S⇒ without Lohner first step because y(tk) ∈ [yi ] and h = tk − ti

2-ContractionApply the basic contractor [yk ] := [yk ] ∩ A

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 8

Page 12: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction on a validated simulation

How take a temporal set constraint into account ?

�� ��y(t∗) ∈ A

1-Add a new integration stepSimulation becomes: S = {[y0], . . . , [yi ], [yk ], [yi+1], . . . , [yN ]}s.t. tk = t∗ and y(tk) ∈ [yk ], and same for S⇒ without Lohner first step because y(tk) ∈ [yi ] and h = tk − ti

2-ContractionApply the basic contractor [yk ] := [yk ] ∩ A

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 8

Page 13: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction on a validated simulation

Remark on bisection

Of boxesBisection of [A] :[Aleft ] := Ctcleft([A]) and [Aright ] := Ctcright([A])

Of statesBisection of y(t) at t = t∗ :Sleft = S and Sright = S, then Sleft : y(t∗) ∈ Ctcleft([yk ]) andSright : y(t∗) ∈ Ctcright([yk ])

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 9

Page 14: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Contraction on a validated simulation

Remark on bisection

Of boxesBisection of [A] :[Aleft ] := Ctcleft([A]) and [Aright ] := Ctcright([A])

Of statesBisection of y(t) at t = t∗ :Sleft = S and Sright = S, then Sleft : y(t∗) ∈ Ctcleft([yk ]) andSright : y(t∗) ∈ Ctcright([yk ])

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 9

Page 15: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Propagation

PropagationImportant to propagate “y(t∗) ∈ A” to y(t), ∀tForward propagationFrom t∗ to tend :

Ctcpicard + CtcintegrationRemark: Picard first to reduce Lagrange remainder of integrationBackward propagationFrom t∗ to t0 :

Ctcpicard + Ctcintegrationwith inverse function -f and past stepsize h = ti − ti−1

Fixed pointWhile sufficient improvement w.r.t. a given threshold:

From t0 to tend :Forward propagation

From tend to t0 :Backward propagationJulien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 10

Page 16: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Propagation

PropagationImportant to propagate “y(t∗) ∈ A” to y(t), ∀tForward propagationFrom t∗ to tend :

Ctcpicard + CtcintegrationRemark: Picard first to reduce Lagrange remainder of integrationBackward propagationFrom t∗ to t0 :

Ctcpicard + Ctcintegrationwith inverse function -f and past stepsize h = ti − ti−1

Fixed pointWhile sufficient improvement w.r.t. a given threshold:

From t0 to tend :Forward propagation

From tend to t0 :Backward propagationJulien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 10

Page 17: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Propagation

PropagationImportant to propagate “y(t∗) ∈ A” to y(t), ∀tForward propagationFrom t∗ to tend :

Ctcpicard + CtcintegrationRemark: Picard first to reduce Lagrange remainder of integrationBackward propagationFrom t∗ to t0 :

Ctcpicard + Ctcintegrationwith inverse function -f and past stepsize h = ti − ti−1

Fixed pointWhile sufficient improvement w.r.t. a given threshold:

From t0 to tend :Forward propagation

From tend to t0 :Backward propagationJulien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 10

Page 18: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Propagation

PropagationImportant to propagate “y(t∗) ∈ A” to y(t), ∀tForward propagationFrom t∗ to tend :

Ctcpicard + CtcintegrationRemark: Picard first to reduce Lagrange remainder of integrationBackward propagationFrom t∗ to t0 :

Ctcpicard + Ctcintegrationwith inverse function -f and past stepsize h = ti − ti−1

Fixed pointWhile sufficient improvement w.r.t. a given threshold:

From t0 to tend :Forward propagation

From tend to t0 :Backward propagationJulien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 10

Page 19: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Example

Van Der Pol{x ′ = y

y ′ = 2.0(1.0− x2)y − x

x(0) ∈ [2.0, 2.2] and y(0) ∈ [0.0, 0.1]

tend = 2.0

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 11

Page 20: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Bisection then propagationx(0) = {x(0)left , x(0)right}1 simulation then 2 propagations vs 3 simulationsTime : 2+2*1 = 4 sec. vs 2*3 = 6 sec.

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 12

Page 21: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Bisection then propagationx(0) = {x(0)left , x(0)right}1 simulation then 2 propagations vs 3 simulationsTime : 2+2*1 = 4 sec. vs 2*3 = 6 sec.

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 12

Page 22: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Bisection then propagationx(0) = {x(0)left , x(0)right}1 simulation then 2 propagations vs 3 simulationsTime : 2+2*1 = 4 sec. vs 2*3 = 6 sec.

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 12

Page 23: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Bisection then propagationx(0) = {x(0)left , x(0)right}1 simulation then 2 propagations vs 3 simulationsTime : 2+2*1 = 4 sec. vs 2*3 = 6 sec.

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 12

Page 24: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Contraction then propagation : Initialy(1.0) ∈ [1.58, 1.62] and x(1.0) ∈ [−0.74,−0.69]

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 13

Page 25: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Contraction then propagation : With Measurey(1.0) ∈ [1.58, 1.62] and x(1.0) ∈ [−0.74,−0.69]

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 13

Page 26: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Contraction then propagation : Contractiony(1.0) ∈ [1.58, 1.62] and x(1.0) ∈ [−0.74,−0.69]

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 13

Page 27: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Contraction then propagation : Forwardy(1.0) ∈ [1.58, 1.62] and x(1.0) ∈ [−0.74,−0.69]

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 13

Page 28: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Contraction then propagation : Backwardy(1.0) ∈ [1.58, 1.62] and x(1.0) ∈ [−0.74,−0.69]

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 13

Page 29: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Experimentations

Contraction then propagation : Fixed Pointy(1.0) ∈ [1.58, 1.62] and x(1.0) ∈ [−0.74,−0.69]

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 13

Page 30: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Discussion

Discussion

RemarksI Propagation of a contraction on one state is close to a

contraction on a tube [2]I Easy to generalize to a contraction on parameters by changing

f (y , [p]) by f (y ,Ctc([p]))I Easy to generalize to interval of time (t = [t, t] same job for t

and t)I Periodicity, limit cycle, etc.

Future workFinalize implementation of CSDP in DynIBEX and applications !

[2] A. Bethencourt, and L. Jaulin, Solving Non-Linear Constraint Satisfaction Problems Involving Time-Dependant

Functions, Mathematics in Computer Science, 2014.

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 14

Page 31: Contraction, propagation and bisection on a validated ... · Contraction, propagation and bisection on a validated simulation of ODE Julien Alexandre dit Sandretto Alexandre Chapoutot

Discussion

Questions ?

Julien Alexandre dit Sandretto - Contraction, propagation on a simulation of ODE June 21, 2016- 15