Numerica - PowerPoint PPT Presentation

About This Presentation
Title:

Numerica

Description:

Computers cannot prove unicity of a solution. Computers cannot find a global optimum ... Prove existence and unicity. 9/18/09. 19. Overview. Global Optimization ... – PowerPoint PPT presentation

Number of Views:49
Avg rating:3.0/5.0
Slides: 70
Provided by: me6154
Learn more at: https://www.mcs.anl.gov
Category:
Tags: numerica | unicity

less

Transcript and Presenter's Notes

Title: Numerica


1
Numerica
  • A Modeling Language for Global Optimization
  • Laurent Michel
  • University of Connecticut

2
Overview
  • Global Optimization
  • Local Methods
  • Global Methods
  • Numerica
  • The Language
  • The Semantics
  • The Implementation

3
Credits
  • Algorithms
  • Van Hentenryck, D. McAllester, D. kapur, J-F.
    Puget
  • Language Design
  • Van Hentenryck, Y. Deville
  • Semantics
  • Van Hentenryck, F. Benhamou, Y. Deville
  • Implementation
  • Van Hentenryck

4
Global Optimization
  • Equation Solving finding all solutions to
  • Optimization finding all global optima to

5
Complexity
  • Computational Complexity
  • in PSPACE
  • NP-Hard
  • Experimental Fact
  • Many challenging problems with less than 10
    variables

6
Floating Point
  • Checking a solution may be hard

7
Floating Point
  • Checking a solution may be hard

8
Numerical Errors
  • A small numerical errors may have dramatic effects

9
What Can Computers Do?
10
Beliefs...
  • It would be wonderful if we had a general
    purpose computer routine that would tell use
    The roots of f1(x) are 0,3,4 and 5 the real
    roots of f2(x) are 1 and 0.888 f3(x) has no
    real roots.
  • It is unlikely that there will ever be such a
    routine. In general, the questions of existence
    and uniqueness -- does a problem have a solution
    and is it unique ?-- are beyond the capabilities
    one can expect of algorithms that solve
    non-linear problems. In fact, we must readily
    admit that for any computer algorithm there exist
    nonlinear functions (infinitely continuously
    differentiable, if you wish) perverse enough to
    defeat the algorithm. Therefore, all a user can
    be guaranteed from any algorithm applied to a
    nonlinear problem is the answer An approximate
    solution to the problem is or No approximate
    solution to the problem was found in the
    allocated time.

11
Beliefs...
  • Computers cannot find all solutions
  • Computers cannot prove the absence of solutions
  • Computers cannot prove existence of solutions
  • Computers cannot prove unicity of a solution
  • Computers cannot find a global optimum

12
Focus of the Talk
  • Intuition
  • equation solving
  • one-dimensional illustrations
  • basic ideas

13
Overview
  • Global Optimization
  • Local Methods
  • Global Methods
  • Numerica
  • The Language
  • The Semantics
  • The Implementation

14
Local Methods
  • Start with a guess
  • Use local information to improve it
  • typical example Newton method
  • Fast when close to a root
  • quadratic convergence
  • Pitfalls
  • convergence

15
Pitfalls
  • Looping
  • Absence of Progress

16
Globally Convergent Local Methods
  • Converge to a stationary point from almost
    everywhere
  • Enhance local methods with a global component

17
Globally Convergent Local Methods
  • Typical examples
  • Quasi-Newton Methods
  • Secant Methods
  • Advantages
  • fast
  • Most appropriate when
  • one solution
  • numerically stable

18
Globally Convergent Local Methods
  • Limitations
  • No guarantee of convergence
  • No guarantee of convergence to a solution
  • No guarantee of convergence to a desired solution
  • What they cannot do
  • Prove the absence of solutions
  • Find all solutions
  • Prove existence and unicity

19
Overview
  • Global Optimization
  • Local Methods
  • Global Methods
  • Numerica
  • The Language
  • The Semantics
  • The Implementation

20
Continuation Methods
  • A is an easy system C(0)
  • B is the original system C(1)
  • Increase t from 0 to 1

21
Continuation Methods
  • Basic Ideas
  • A must have at least as many solutions as B
  • Do not lose solutions (path crossing)
  • Avoid solutions at infinities
  • Techniques
  • Approximate the number of solutions (BKK bound)
  • Use randomization

22
Continuation Methods
  • Most appropriate for
  • polynomials
  • less than 20 variables
  • Limitations
  • the approximation of the number of solutions is
    exponential in the degree of the system
  • cannot prove the absence of solutions

23
Interval Methods
  • Collect Global Information
  • over infinitely many points
  • in finite time
  • Guarantee Correctness
  • account for numerical errors
  • Moore 1966

24
Trivial Operator Box(0)
  • Check if the interval evaluation contains 0

25
Newton Interval Operator
  • Interval generalization of Newtons method
    (Moore, 66)

26
Newton Interval Operation
27
Newton Interval Operator
28
Interval Methods
  • Advantages
  • numerically reliable
  • guaranteed convergence
  • existence uniqueness proofs
  • can isolate all solutions
  • can prove the absence of solutions

29
Interval Methods
  • Limitations
  • considered very slow
  • dependency problem
  • Many occurrences of the same variables
  • intervals may grow exponentially
  • not adapted to certain classes of problems
  • Least Square Problems

30
Overview
  • Global Optimization
  • Local Methods
  • Global Methods
  • Numerica
  • The Language
  • The Semantics
  • The Implementation

31
Numerica
  • A Modeling Language
  • statements are very close to descriptions in
    textbooks
  • clear semantics
  • A Novel Constraint-Solving Algorithm
  • numerical analysis
  • close to a solution
  • artificial intelligence
  • far from a solution

32
Numerica
  • Functionalities
  • based on a novel interval method
  • locate all geometrically isolated solutions
  • Most Appropriate for
  • highly nonlinear problems
  • problems with multiple solutions
  • problems with no solution
  • problems where no external knowledge is available

33
Circle Parabola
  • Statement

Variable x,y body solve system
all x2y21 x2y
Solution 1 SAFE ------------ x
-0.78615137775742 -0.38305e-14 ,
-0.26091e-14 y 0.61803398874989
0.37923e-14 , 0.59018e-14 Solution 2
SAFE ------------ x 0.78615137775742
0.26091e-14 , 0.38305e-14 y 0.61803398874989
0.37923e-14 , 0.59018e-14
34
Kinematics
  • Challenging because
  • many solutions
  • local methods diverge easily
  • Statement
  • generic constraints
  • trigonometric features

x,y
q
2
q
B
1
1
B
0
35
Kinematics
Input int x X coordinate int y Y
coordinate Range seg 1..2 Constant int
l arrayseg 1,2 Variable t arrayseg
in 0..2pi Body solve system
all l2cos(t2)l1cos(t1)
x l2sin(t2)l1sin(t1) y
36
Broyden Banded Function
  • Typical benchmarks from numerical analysis

37
Model
  • Input
  • int n Number of variables
  • Range
  • idx 1..n
  • Set
  • Ji in idx j in max(1,i-5)..min(n,i1) i
    ltgt j
  • Variable
  • x arrayidx in -10e8..10e8
  • Body solve system all
  • i in idx
  • 0 xi (2 5 xi2)1 -
  • Sum(k in Ji) xk (1xk)

38
Behavior
  • Numerica
  • is linear (experimentally) in the number of
    variables
  • proves the existence of the unique solution
  • does not make any choice (no branching)
  • solves the problem for 320 variables in 150
    seconds
  • Comparison
  • out of scope for continuation methods

39
Overview
  • Global Optimization
  • Local Methods
  • Global Methods
  • Numerica
  • The Language
  • The Semantics
  • The Implementation

40
Semantics
  • Intervals
  • a,b r ?? a ? r ? b
  • Canonical intervals
  • a,a or a,a

41
Interval Extension
  • Is this correct?

42
Interval Extensions
  • Outward Rounding
  • specify the direction of rounding
  • IEEE standards (but very-system dependent)
  • Other Operations
  • e.g., trigonometric functions
  • tedious and complex
  • Many Possible Interval Extensions
  • e.g. centered forms
  • huge research topic

43
Semantics of Numerica
  • Interval Solution
  • canonical interval enclosing a solution
  • Possible Interval Solution
  • canonical interval believed to contain a solution
  • Numerica Returns
  • all interval solutions
  • some possible interval solutions

44
Overview
  • Global Optimization
  • Local Methods
  • Global Methods
  • Numerica
  • The Language
  • The Semantics
  • The Implementation

45
Implementation
  • Global Search Algorithm
  • associate an interval with each variable
  • use constraints to prune the intervals
  • split an interval into two parts and explore
    recursively
  • Key Issue
  • how to prune the search space?
  • Key Insight
  • view continuous problems as discrete problems

46
Pruning
  • Numerical analysis
  • Interval Newton Operator
  • Best when close to a solution
  • Artificial Intelligence
  • Constraint satisfaction techniques
  • Approximations of projections
  • Best when far from a solution

47
Consistency Intervals
  • Three levels
  • Box(0)
  • Trivial pruning operator
  • Box(1)
  • One-dimensional projection
  • Box(2)
  • Two-dimensional projection
  • Three Extensions
  • Natural
  • Distributed
  • Taylor

48
Box(0)-Consistency
  • Trivial Pruning Operator

49
Arc-Consistency
  • From Discrete Constraint Satisfaction

50
Box(1)-Consistency
  • Basic Intuition
  • Project on one variable
  • How?
  • Too hard (complexity is open)
  • Approximate
  • Replace all other variables by their ranges
  • Solve

51
Pictorially
52
Box(1)-Consistency
  • How to obtain box(1)-Consistency?
  • Find the zeros of an interval function
  • Apply an interval method on the interval function
  • Bisection
  • Interval Newton Method
  • Newton Operator
  • Limitations
  • Pruning may be weak when the intervals are large

53
Box(1)-Consistency
  • Algorithm
  • Narrowing IE
  • Splitting

function LNAR(F,FI ?? I,I I) I r
right(I) if 0 ? F(I) then return ? I
N(F,F,I) if 0 ? F(left(I),left(I))
return box(I,r,r) else ltI1,I2gt
SPLIT(I) if LNAR(F,F,I1) ? ?
then return box(LNAR(F,F,I1),r,r)
else return box(LNAR(F,F,I2),r,r)
54
Pruned Box
55
Extensions
  • Can we improve ?
  • Idea
  • Work directly on the
  • Top curve
  • Bottom curve
  • How ?
  • Distributed Extension
  • And A Constructive Definition

56
Distributed Interval Extension
  • Does not preserve the expression
  • Move f to distributed form
  • Distributed Interval Extension

57
Constructive Definition
  • How to obtain the lower curve ?

58
Box(1)-Consistency on DF.
59
Taylor Extension
  • Natural Extension of Taylor Expansion
  • Box(1)-Consistency

60
Improving Box(1)
  • Notice that
  • The Taylor Extension is univariate and linear.
  • Compute Box(1) directly

61
Box(2)-Consistency
  • Stronger Consistency Notion
  • Approximate projection on two variables
  • effective for very tough problems
  • transistor modeling
  • chemical engineering
  • Apply box-consistency on
  • several interval extensions
  • (e.g., centered forms)

62
Box(2)-Consistency
  • Definition

63
Box(2)
  • In 3-D

64
Box(2)
  • Pruning

65
Proof of Solution
66
Optimization
  • Reduction to equation solving
  • necessary conditions e.g. Fritz-John conditions
  • Branch and Bound
  • Accelerators
  • Probing
  • Local methods

67
Conclusion I
  • Numerica for global optimization
  • easy to use
  • orthogonal to local methods
  • highly nonlinear problems
  • multiple solutions
  • no solutions
  • scaling
  • finitely many isolated solutions
  • effective interval algorithm for a variety of
    areas

68
Conclusion II
  • Limitations
  • Dependency problem (e.g., least square problems)
  • Many practical problems are outside the scope of
    all methods
  • Some Extensions
  • combination of symbolic and numerical techniques
  • differential equations

69
Directions
  • Safe Linear Estimators
  • A way to leverage existing tools
  • Exploit semantic information
  • Parallel with global constraints in FD-solvers.
  • Large Scale optimization
Write a Comment
User Comments (0)
About PowerShow.com