Computational complexity of solving polynomial differential - - PowerPoint PPT Presentation

computational complexity of solving polynomial
SMART_READER_LITE
LIVE PREVIEW

Computational complexity of solving polynomial differential - - PowerPoint PPT Presentation

Computational complexity of solving polynomial differential equations over unbounded domains Amaury Pouly , Daniel Graa , Ecole Polytechnique, LIX, 91128 Palaiseau Cedex, France CEDMES/FCT, Universidade do Algarve, C.


slide-1
SLIDE 1

Computational complexity of solving polynomial differential equations over unbounded domains

Amaury Pouly⋆, † Daniel Graça†, ‡

⋆ Ecole Polytechnique, LIX, 91128 Palaiseau Cedex, France † CEDMES/FCT, Universidade do Algarve, C. Gambelas, 8005-139 Faro, Portugal ‡ SQIG /Instituto de Telecomunicações, Lisbon, Portugal

July 8, 2013

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 −∞ / 18

slide-2
SLIDE 2

Outline

1

Introduction Motivation Existing results

Practice Theory

Goal and result

2

Complexity of solving PIVP Crash course on numerical methods

Euler method Taylor method

Basic algorithm Enhanced algorithm

3

Conclusion

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 −∞ / 18

slide-3
SLIDE 3

Introduction Motivation

Problem statement

We want to solve: y′ = p(y) y(t0)= y0 where y: I ⊆ R → Rn p: vector of polynomials Solve ?

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 1 / 18

slide-4
SLIDE 4

Introduction Motivation

Problem statement

We want to solve: y′ = p(y) y(t0)= y0 where y: I ⊆ R → Rn p: vector of polynomials Solve ? ⊲Compute yi(t) with arbitrary precision for any t ∈ I

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 1 / 18

slide-5
SLIDE 5

Introduction Motivation

Problem statement

We want to solve: y′ = p(y) y(t0)= y0 where y: I ⊆ R → Rn p: vector of polynomials Solve ? ⊲Compute yi(t) with arbitrary precision for any t ∈ I Example    c′(t)= −s(t) s′(t)= c(t) x′(t)= 2c(t)s(t)x(t)2    c(0)= 1 s(0)= 0 x(t)= 1

2

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 1 / 18

slide-6
SLIDE 6

Introduction Motivation

Problem statement

We want to solve: y′ = p(y) y(t0)= y0 where y: I ⊆ R → Rn p: vector of polynomials Solve ? ⊲Compute yi(t) with arbitrary precision for any t ∈ I Example    c′(t)= −s(t) s′(t)= c(t) x′(t)= 2c(t)s(t)x(t)2    c(0)= 1 s(0)= 0 x(t)= 1

2

  c(t)= cos(t) s(t)= sin(t) x(t)=

1 1+cos(t)2

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 1 / 18

slide-7
SLIDE 7

Introduction Motivation

Motivation

Theoretical complexity of solving differential equations Functions generated by the General Purpose Analog Computer (GPAC) Solve y′ = f(y) where f is elementary (composition of polynomials, exponential,logarithms, (inverse) trigonometric functions, ...)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 2 / 18

slide-8
SLIDE 8

Introduction Motivation

Motivation

Theoretical complexity of solving differential equations Functions generated by the General Purpose Analog Computer (GPAC) Solve y′ = f(y) where f is elementary (composition of polynomials, exponential,logarithms, (inverse) trigonometric functions, ...)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 2 / 18

slide-9
SLIDE 9

Introduction Motivation

Motivation

Theoretical complexity of solving differential equations Functions generated by the General Purpose Analog Computer (GPAC) Solve y′ = f(y) where f is elementary (composition of polynomials, exponential,logarithms, (inverse) trigonometric functions, ...)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 2 / 18

slide-10
SLIDE 10

Introduction Motivation

Motivation

Theoretical complexity of solving differential equations Functions generated by the General Purpose Analog Computer (GPAC) Solve y′ = f(y) where f is elementary (composition of polynomials, exponential,logarithms, (inverse) trigonometric functions, ...) Example y′ = sin(y) y(0)= 1

z=sin(y)

− − − − − − →

u=cos(y)

   y′= z z′= u u′= −z    y(0)= 1 z(0)= sin(1) u(0)= cos(1)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 2 / 18

slide-11
SLIDE 11

Introduction Existing results

Practical

Definition (Folklore) Numerical method: ti+1 = ti + h and xi+1 = f(x0, . . . , xi; h) Local error: δih = y(ti) − xi∞ Order: maximum ω such that δh

n = O

  • hω+1

as h → 0 t y(t) x0t0 x1 t1 h x2 t2 δ2 x3 t3 δ3 x4 t4 δ4

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 3 / 18

slide-12
SLIDE 12

Introduction Existing results

Practical

Definition (Folklore) Numerical method: ti+1 = ti + h and xi+1 = f(x0, . . . , xi; h) Local error: δih = y(ti) − xi∞ Order: maximum ω such that δh

n = O

  • hω+1

as h → 0 Theorem (Folklore) Euler method has order 1 Runge-Kutta 4 (RK4) has order 4 ∀ω, there exist methods of order ω (RKω, Taylor)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 3 / 18

slide-13
SLIDE 13

Introduction Existing results

Practical

Definition (Folklore) Numerical method: ti+1 = ti + h and xi+1 = f(x0, . . . , xi; h) Local error: δih = y(ti) − xi∞ Order: maximum ω such that δh

n = O

  • hω+1

as h → 0 Theorem (Folklore) Euler method has order 1 Runge-Kutta 4 (RK4) has order 4 ∀ω, there exist methods of order ω (RKω, Taylor)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 3 / 18

slide-14
SLIDE 14

Introduction Existing results

Practical

Definition (Folklore) Numerical method: ti+1 = ti + h and xi+1 = f(x0, . . . , xi; h) Local error: δih = y(ti) − xi∞ Order: maximum ω such that δh

n = O

  • hω+1

as h → 0 Theorem (Folklore) Euler method has order 1 Runge-Kutta 4 (RK4) has order 4 ∀ω, there exist methods of order ω (RKω, Taylor)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 3 / 18

slide-15
SLIDE 15

Introduction Existing results

Practical

Definition (Folklore) Numerical method: ti+1 = ti + h and xi+1 = f(x0, . . . , xi; h) Local error: δih = y(ti) − xi∞ Order: maximum ω such that δh

n = O

  • hω+1

as h → 0 Theorem (Folklore) Euler method has order 1 Runge-Kutta 4 (RK4) has order 4 ∀ω, there exist methods of order ω (RKω, Taylor) Remark Difficult choice of h Quite efficient in practice

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 3 / 18

slide-16
SLIDE 16

Introduction Existing results

Practical (Handwaving)

Definition (Folklore) Adaptive method: ti+1 = ti + hi and xi+1 = f(x0, . . . , xi; h) Local error: δi = y(ti) − xi∞ Error estimate: ei δi, → hi = g(ei, x, t) Idea Big steps when smooth and small error estimate Small steps when stiff and big error estimate Remark Unknown complexity Very efficient in practice

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 3 / 18

slide-17
SLIDE 17

Introduction Existing results

And so ?

Don’t we know everything ?

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-18
SLIDE 18

Introduction Existing results

And so ?

Don’t we know everything ? Not quite!

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-19
SLIDE 19

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-20
SLIDE 20

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: order ω, step size h local error = O

  • hω+1
  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-21
SLIDE 21

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: order ω, step size h local error Khω+1

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-22
SLIDE 22

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: order ω, step size h local error Khω+1 K depends on y and I !!

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-23
SLIDE 23

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: order ω, step size h local error Khω+1 K depends on y and I !! Example: Euler method (Simplified) local error at step i 1 2h2 p′(yi)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-24
SLIDE 24

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: order ω, step size h local error Khω+1 K depends on y and I !! Example: Euler method (Simplified) local error 1 2h2 p′(yi)

  • ∞ ⇒ O (1) = max

t∈I

  • p′(y(t))
  • ∞?
  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-25
SLIDE 25

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I ⊆ [0, 1] → Rn p: vector of polynomials Issue #1: order ω, step size h local error Khω+1 K depends on y and I !! Example: Euler method (Simplified) local error 1 2h2 p′(yi)

  • ∞ ⇒ O (1) = max

t∈I

  • p′(y(t))
  • ∞?

Yes because [0, 1] is a compact set...

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-26
SLIDE 26

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: order ω, step size h local error Khω+1 K depends on y and I !! Example: Typical assumptions I ⊆ [0, 1] p is a lipschitz function

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-27
SLIDE 27

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: unrealistic assumptions

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-28
SLIDE 28

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: unrealistic assumptions Idea: rescale! If I = [a, b], write z(t) = y(a + (b − a)t), then: z : [0, 1] → Rn

  • z′ = (b − a)p(z)

z(t′

0)= z0

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-29
SLIDE 29

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: unrealistic assumptions Idea: rescale! If I = [a, b], write z(t) = y(a + (b − a)t), then: z : [0, 1] → Rn

  • z′ = (b − a)p(z)

z(t′

0)= z0

Still need lipschitz condition, now depends on p, a and b.

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-30
SLIDE 30

Introduction Existing results

And so ?

Don’t we know everything ? Not quite! y′ = p(y) y(t0)= y0 where y: I → Rn p: vector of polynomials Issue #1: unrealistic assumptions Issue #2: rescaling doesn’t help

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 4 / 18

slide-31
SLIDE 31

Introduction Existing results

Computability

Theorem (Pieter Collins, Daniel Graça) Let I ⊆ R open set, t0 ∈ I, y0 ∈ Rn, y : I → Rn, f : Rn → Rn. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = f(y(t)) If y0 is a computable real, p has computable coefficients and f is com- putable then y is a computable function.

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 5 / 18

slide-32
SLIDE 32

Introduction Existing results

Computability

Theorem (Pieter Collins, Daniel Graça) Let I ⊆ R open set, t0 ∈ I, y0 ∈ Rn, y : I → Rn, f : Rn → Rn. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = f(y(t)) If y0 is a computable real, p has computable coefficients and f is com- putable then y is a computable function. Remark f computable ⇒ f continuous ⇒ unique solution We have to assume the existence over I because finding I is undecidable. Absolutely terrible complexity

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 5 / 18

slide-33
SLIDE 33

Introduction Existing results

Complexity

Theorem (ICALP 2012) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, Y, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) and y(t)∞ Y If y0 is a polytime computable real and p has polytime computable coef- ficients, then one can compute x such that x − y(u)∞ 2−µ in time poly(µ, u, Y).

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 6 / 18

slide-34
SLIDE 34

Introduction Existing results

Complexity

Theorem (ICALP 2012) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, Y, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) and y(t)∞ Y If y0 is a polytime computable real and p has polytime computable coef- ficients, then one can compute x such that x − y(u)∞ 2−µ in time poly(µ, u, Y).

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 6 / 18

slide-35
SLIDE 35

Introduction Existing results

Complexity

Theorem (ICALP 2012) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, Y, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) and y(t)∞ Y If y0 is a polytime computable real and p has polytime computable coef- ficients, then one can compute x such that x − y(u)∞ 2−µ in time poly(µ, u, Y). Remark Impossible to bound complexity without Y or something similar If I ⊆ [0, 1], this is “polytime” in poly(µ) Very inefficient in practice

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 6 / 18

slide-36
SLIDE 36

Introduction Goal and result

Goal

Complexity of practical adaptive algorithms ? Theoretical power of adaptiveness ?

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 7 / 18

slide-37
SLIDE 37

Introduction Goal and result

Goal

Complexity of practical adaptive algorithms ?⇒Too ambitious Theoretical power of adaptiveness ?Yes!

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 7 / 18

slide-38
SLIDE 38

Introduction Goal and result

Our result

Theorem (CCA 2013) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, Y, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) If y0 is a polytime computable real and p has polytime computable coef- ficients, then one can compute x such that x − y(u)∞ 2−µ in time poly(µ, u, Z) where Z ≈ u

t0

poly(y(ξ)∞)dξ

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 8 / 18

slide-39
SLIDE 39

Introduction Goal and result

Our result

Theorem (CCA 2013) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, Y, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) If y0 is a polytime computable real and p has polytime computable coef- ficients, then one can compute x such that x − y(u)∞ 2−µ in time poly(µ, u, Z) where Z ≈ u

t0

poly(y(ξ)∞)dξ Remark Always better than our previous result Doesn’t need an a priori bound on the solution

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 8 / 18

slide-40
SLIDE 40

Introduction Goal and result

Example: why is this better ?

Example fλ,u(t) = λe−λ2(u−t)2 t

1 λ

λ

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 9 / 18

slide-41
SLIDE 41

Introduction Goal and result

Example: why is this better ?

Example fλ,u(t) = λe−λ2(u−t)2 t

1 λ

λ Previous method (ICALP 2012) Complexity: poly(t, Iλ) Iλ = max

t∈I y(t)∞ = λ

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 9 / 18

slide-42
SLIDE 42

Introduction Goal and result

Example: why is this better ?

Example fλ,u(t) = λe−λ2(u−t)2 t

1 λ

λ Previous method (ICALP 2012) Complexity: poly(t, Iλ) Iλ = max

t∈I y(t)∞ = λ

Adaptive method (CCA 2013) Complexity: poly(t, Kλ) Kλ =

  • t∈I

y(t)∞ dt = O (1)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 9 / 18

slide-43
SLIDE 43

Complexity of solving PIVP Crash course on numerical methods

Euler method

Idea y(t + h) ≈ y(t) + hy′(t) ≈ y(t) + hp(y(t))

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 10 / 18

slide-44
SLIDE 44

Complexity of solving PIVP Crash course on numerical methods

Euler method

Idea y(t + h) ≈ y(t) + hy′(t) ≈ y(t) + hp(y(t)) Discretise: make N time steps

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 10 / 18

slide-45
SLIDE 45

Complexity of solving PIVP Crash course on numerical methods

Euler method

Idea y(t + h) ≈ y(t) + hy′(t) ≈ y(t) + hp(y(t)) Discretise: make N time steps Do a linear approximation at each step

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 10 / 18

slide-46
SLIDE 46

Complexity of solving PIVP Crash course on numerical methods

Euler method

Idea y(t + h) ≈ y(t) + hy′(t) ≈ y(t) + hp(y(t)) Discretise: make N time steps Do a linear approximation at each step x0 = y0 xn+1 = xn + h p(xn) t = Nh + t0

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 10 / 18

slide-47
SLIDE 47

Complexity of solving PIVP Crash course on numerical methods

Euler method

Idea y(t + h) ≈ y(t) + hy′(t) ≈ y(t) + hp(y(t)) Discretise: make N time steps Do a linear approximation at each step x0 = y0 xn+1 = xn + h p(xn) t = Nh + t0 Doesn’t work very well !

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 10 / 18

slide-48
SLIDE 48

Complexity of solving PIVP Crash course on numerical methods

Euler method (2)

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 11 / 18

slide-49
SLIDE 49

Complexity of solving PIVP Crash course on numerical methods

Taylor method

Idea y(t + h) ≈ y(t) +

ω

  • i=1

hiy(i)(t) y(i)(t) = polyi(y(t))

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 12 / 18

slide-50
SLIDE 50

Complexity of solving PIVP Crash course on numerical methods

Taylor method

Idea y(t + h) ≈ y(t) +

ω

  • i=1

hiy(i)(t) y(i)(t) = polyi(y(t)) Discretise: make N time steps

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 12 / 18

slide-51
SLIDE 51

Complexity of solving PIVP Crash course on numerical methods

Taylor method

Idea y(t + h) ≈ y(t) +

ω

  • i=1

hiy(i)(t) y(i)(t) = polyi(y(t)) Discretise: make N time steps Do a ω-th order approximation at each step

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 12 / 18

slide-52
SLIDE 52

Complexity of solving PIVP Crash course on numerical methods

Taylor method

Idea y(t + h) ≈ y(t) +

ω

  • i=1

hiy(i)(t) y(i)(t) = polyi(y(t)) Discretise: make N time steps Do a ω-th order approximation at each step x0 = y0 xn+1 = xn +

ω

  • i=1

hi polyi(xn) t = Nh + t0

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 12 / 18

slide-53
SLIDE 53

Complexity of solving PIVP Crash course on numerical methods

Taylor method

Idea y(t + h) ≈ y(t) +

ω

  • i=1

hiy(i)(t) y(i)(t) = polyi(y(t)) Discretise: make N time steps Do a ω-th order approximation at each step x0 = y0 xn+1 = xn +

ω

  • i=1

hi polyi(xn) t = Nh + t0 Works much better for ω 3. How to choose h and ω ?

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 12 / 18

slide-54
SLIDE 54

Complexity of solving PIVP Basic algorithm

Adaptive variable-order Taylor method

Idea Change the time step and the order at each step.

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 13 / 18

slide-55
SLIDE 55

Complexity of solving PIVP Basic algorithm

Adaptive variable-order Taylor method

Idea Change the time step and the order at each step. x0 = y0 xn+1 = xn +

ωn

  • i=1

hni polyi(xn) t =

N

  • i=1

hi + t0 where

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 13 / 18

slide-56
SLIDE 56

Complexity of solving PIVP Basic algorithm

Adaptive variable-order Taylor method

Idea Change the time step and the order at each step. x0 = y0 xn+1 = xn +

ωn

  • i=1

hni polyi(xn) t =

N

  • i=1

hi + t0 where hn = 1 poly(xn∞) ωn = log2 poly

  • xn∞ , K, 1

ε

  • N = poly(K)

ε = output precision K t

t0

poly(y(u)∞)du

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 13 / 18

slide-57
SLIDE 57

Complexity of solving PIVP Basic algorithm

Adaptive variable-order Taylor method

Idea Change the time step and the order at each step. x0 = y0 xn+1 = xn +

ωn

  • i=1

hni polyi(xn) t =

N

  • i=1

hi + t0 where hn = 1 poly(xn∞) ωn = log2 poly

  • xn∞ , K, 1

ε

  • N = poly(K)

ε = output precision K t

t0

poly(y(u)∞)du Remark We need to know t

t0 poly(y(u)∞)du

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 13 / 18

slide-58
SLIDE 58

Complexity of solving PIVP Basic algorithm

Complexity

Theorem (Complexity) If y0 and p are polytime computable, A(t0, y0, p, K, u, µ) has running time poly(u − t0, K, µ).

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 14 / 18

slide-59
SLIDE 59

Complexity of solving PIVP Basic algorithm

Complexity

Theorem (Complexity) If y0 and p are polytime computable, A(t0, y0, p, K, u, µ) has running time poly(u − t0, K, µ). Proof ideas Show that derivatives of y can be computed quickly from p Tedious computations

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 14 / 18

slide-60
SLIDE 60

Complexity of solving PIVP Basic algorithm

A crucial property

Theorem (Algorithm is correct) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, K, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) There exist an algorithm A such that K t

t0

poly(y(ξ)∞)dξ ⇒ A(t0, y0, p, K, u, µ) − y(u)∞ e−µ

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 15 / 18

slide-61
SLIDE 61

Complexity of solving PIVP Basic algorithm

A crucial property

Theorem (Algorithm is correct) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, K, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) There exist an algorithm A such that K t

t0

poly(y(ξ)∞)dξ ⇒ A(t0, y0, p, K, u, µ) − y(u)∞ e−µ Proof ideas Bound dependency in the initial condition Tedious error analysis

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 15 / 18

slide-62
SLIDE 62

Complexity of solving PIVP Basic algorithm

A crucial property

Theorem (Algorithm is correct) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, K, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) There exist an algorithm A such that K t

t0

poly(y(ξ)∞)dξ ⇒ A(t0, y0, p, K, u, µ) − y(u)∞ e−µ Remark What if we give A a K which is not big enough ?

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 15 / 18

slide-63
SLIDE 63

Complexity of solving PIVP Basic algorithm

A crucial property

Theorem (Algorithm is correct) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, K, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) There exist an algorithm A such that K t

t0

poly(y(ξ)∞)dξ ⇒ A(t0, y0, p, K, u, µ) − y(u)∞ e−µ Remark What if we give A a K which is not big enough ? Theorem (Algorithm is complete) A can detect if K is not big enough.

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 15 / 18

slide-64
SLIDE 64

Complexity of solving PIVP Basic algorithm

A crucial property

Theorem (Algorithm is correct) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, K, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) There exist an algorithm A such that K t

t0

poly(y(ξ)∞)dξ ⇒ A(t0, y0, p, K, u, µ) − y(u)∞ e−µ Theorem (Algorithm is complete) A can detect if K is not big enough. Proof ideas Clever bound on the number of steps

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 15 / 18

slide-65
SLIDE 65

Complexity of solving PIVP Enhanced algorithm

Enhanced algorithm

Idea Start with K = 1. While A fails, double K.

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 16 / 18

slide-66
SLIDE 66

Complexity of solving PIVP Enhanced algorithm

Enhanced algorithm

Idea Start with K = 1. While A fails, double K. Theorem (CCA 2013) Let I ⊆ R open set, t0, u ∈ I, y0 ∈ Rn, y : I → Rn, Y, µ > 0. Assume y(t0) = y0 and ∀t ∈ I, y′(t) = p(y(t)) If y0 is a polytime computable real and p has polytime computable coef- ficients, then one can compute x such that x − y(u)∞ 2−µ in time poly(µ, u, Z) where Z ≈ u

t0

poly(y(ξ)∞)dξ

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 16 / 18

slide-67
SLIDE 67

Conclusion

Conclusion

Adaptive algorithm to solve polynomial initial value problem Proven complexity Theoretical power of adaptiveness

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 17 / 18

slide-68
SLIDE 68

Conclusion

Conclusion

Adaptive algorithm to solve polynomial initial value problem Proven complexity Theoretical power of adaptiveness

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 17 / 18

slide-69
SLIDE 69

Conclusion

Conclusion

Adaptive algorithm to solve polynomial initial value problem Proven complexity Theoretical power of adaptiveness

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 17 / 18

slide-70
SLIDE 70

Conclusion

Future Work

General study of explicit methods Study implicit methods Lower bound on complexity of solving initial value problem Lower bound on adaptive algorithms

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 18 / 18

slide-71
SLIDE 71

Conclusion

Future Work

General study of explicit methods Study implicit methods Lower bound on complexity of solving initial value problem Lower bound on adaptive algorithms

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 18 / 18

slide-72
SLIDE 72

Conclusion

Future Work

General study of explicit methods Study implicit methods Lower bound on complexity of solving initial value problem Lower bound on adaptive algorithms

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 18 / 18

slide-73
SLIDE 73

Conclusion

Future Work

General study of explicit methods Study implicit methods Lower bound on complexity of solving initial value problem Lower bound on adaptive algorithms

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 18 / 18

slide-74
SLIDE 74

Questions ?

Do you have any questions ?

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 ∞ / 18

slide-75
SLIDE 75

Hidden table

Method

  • Max. Order

At Point u Guaranteed Hint Number of steps Previous (with hint I)∗ O

  • log

I ε

  • kΣp(t − t0)×

sup

u∈[t0,t]

(1 + y(u)∞)k−1 2I Fixed ω (with hint I)† ω =

1 λ

I Kλ 1 + (3I)

ω+1 ω−1

k + λ ε

  • 1

1−λ

Fixed ω (enhanced)† ω =

1 λ

Not Applicable r +

  • 3 · 2r+1 ω+1

ω−1

k + λ ε

  • 1

1−λ

where r = ⌈log2 Kλ⌉ Variable (with hint I) O

  • log

K y(u)∞ ε

  • I K0

1 + 12(k + 1)I Variable (enhanced) O

  • log

K0 y(u)∞ ε

  • Not Applicable

r + 12(k + 1)2r+1 where r = ⌈log2 K0⌉ where Kλ = t

t0

kΣp(1 + ε + y(u)∞)k−1+λdu ∗This algorithm only works if the given hint is greater than the guaranteed hint, the

result is otherwise undefined.

†This algorithm can detect if the hint is not large enough.

  • A. Pouly, D. Graça (LIX, FCT)

Complexity of solving PIVP July 8, 2013 ∞ / 18