Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm One double-sided cheat sheet (8.5in x 11in) allowed Bring your calculator to the exam Chapters.

Slides:



Advertisements
Similar presentations
Lecture 5 Newton-Raphson Method
Advertisements

Line Search.
Optimization.
CSE 330: Numerical Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 One-Dimensional Unconstrained Optimization Chapter.
Open Methods Chapter 6 The Islamic University of Gaza
Optimization Introduction & 1-D Unconstrained Optimization
Today’s class Romberg integration Gauss quadrature Numerical Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 61.
Open Methods Chapter 6 The Islamic University of Gaza
Chapter 4 Roots of Equations
PHYS2020 NUMERICAL ALGORITHM NOTES ROOTS OF EQUATIONS.
Roots of Equations Open Methods (Part 2).
Page 1 Page 1 Engineering Optimization Second Edition Authors: A. Rabindran, K. M. Ragsdell, and G. V. Reklaitis Chapter-2 (Functions of a Single Variable)
A few words about convergence We have been looking at e a as our measure of convergence A more technical means of differentiating the speed of convergence.
Open Methods (Part 1) Fixed Point Iteration & Newton-Raphson Methods
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Optimization Methods One-Dimensional Unconstrained Optimization
Engineering Optimization
ENGR 351 Numerical Methods Instructor: Dr. L.R. Chevalier
Revision.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Martin Mendez UASLP Chapter 61 Unit II.
Optimization Methods One-Dimensional Unconstrained Optimization
Open Methods Chapter 6 The Islamic University of Gaza
ISM 206 Lecture 6 Nonlinear Unconstrained Optimization.
Chapter 6 Numerical Interpolation
Optimization Methods One-Dimensional Unconstrained Optimization
Numerical Methods Newton’s Method for One - Dimensional Optimization - Theory
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 8. Nonlinear equations.
Today’s class Boundary Value Problems Eigenvalue Problems
Today’s class Numerical Integration Newton-Cotes Numerical Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 Roots of Equations Why? But.
Part 2 Chapter 7 Optimization
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Review Taylor Series and Error Analysis Roots of Equations
Chapter 7 Optimization. Content Introduction One dimensional unconstrained Multidimensional unconstrained Example.
Consider the following: Now, use the reciprocal function and tangent line to get an approximation. Lecture 31 – Approximating Functions
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
1 Optimization Multi-Dimensional Unconstrained Optimization Part II: Gradient Methods.
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
1 Solution of Nonlinear Equation Dr. Asaf Varol
Chapter 3 Roots of Equations. Objectives Understanding what roots problems are and where they occur in engineering and science Knowing how to determine.
Numerical Methods for Engineering MECN 3500
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
Dan Simon Cleveland State University Jang, Sun, and Mizutani Neuro-Fuzzy and Soft Computing Chapter 6 Derivative-Based Optimization 1.
Today’s class Roots of equation Finish up incremental search
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
linear  2.3 Newton’s Method ( Newton-Raphson Method ) 1/12 Chapter 2 Solutions of Equations in One Variable – Newton’s Method Idea: Linearize a nonlinear.
Numerical Methods Newton’s Method for One - Dimensional Optimization - Theory
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
One Dimensional Search
Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Optimization in Engineering Design 1 Introduction to Non-Linear Optimization.
INTRO TO OPTIMIZATION MATH-415 Numerical Analysis 1.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 - Chapter 7 Optimization.
MTH 253 Calculus (Other Topics) Chapter 11 – Infinite Sequences and Series Section 11.8 –Taylor and Maclaurin Series Copyright © 2009 by Ron Wallace, all.
Lecture 25 – Power Series Def: The power series centered at x = a:
Chapter 6.
Today’s class Multiple Variable Linear Regression
Computers in Civil Engineering 53:081 Spring 2003
Chapter 7 Optimization.
Numerical Computation and Optimization
Part 4 - Chapter 13.
Chapter 6.
What are optimization methods?
Bracketing.
Presentation transcript:

Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm One double-sided cheat sheet (8.5in x 11in) allowed Bring your calculator to the exam Chapters 1-11 Error Analysis Taylor Series Roots of Equations Linear Systems Numerical Methods, Lecture 8 1 Prof. Jinbo Bi CSE, UConn

2 Today’s class Optimization One-dimensional unconstrained Numerical Methods, Fall 2011 Lecture 10 2 Prof. Jinbo Bi CSE, UConn

Optimization Given a function f(x 1, x 2, x 3, …, x n ) find the set of values that minimize or maximize the function Examples: Lowering power usage in a circuit while maximizing speed Least-cost management of supply chain 3 Numerical Methods, Fall 2011 Lecture 10 3 Prof. Jinbo Bi CSE, UConn

Optimization Optimization of a differential function means setting the derivative f’(x 1, x 2, x 3, …, x n ) to zero and finding solutions to that equation. If f’’(x 1, x 2, x 3, …, x n ) > 0, it is a minimum and if f’’ (x 1, x 2, x 3, …, x n ) < 0, it is a maximum To find where the derivative is zero, we can use the root-finding techniques we discussed before 4 Numerical Methods, Fall 2011 Lecture 10 4 Prof. Jinbo Bi CSE, UConn

Optimization 5 Numerical Methods, Fall 2011 Lecture 10 5 Prof. Jinbo Bi CSE, UConn

Optimization Finding the roots of the derivative requires knowing what the derivative is Often, the function is not well-defined and you can not analytically derive the derivative Requires finite-difference approximation of the derivative 6 Numerical Methods, Fall 2011 Lecture 10 6 Prof. Jinbo Bi CSE, UConn

Optimization General optimization problem: p 7 Numerical Methods, Fall 2011 Lecture 10 7 Prof. Jinbo Bi CSE, UConn

8 Optimization Unconstrained optimization Constrained optimization Degrees of freedom n-p-m Under-constrained p+m≤n Solution possible Over-constrained p+m>n Solution unlikely 8 Numerical Methods, Fall 2011 Lecture 10 8 Prof. Jinbo Bi CSE, UConn

Optimization Linear Programming Objective function and the constraints are all linear Quadratic Programming Objective function is quadratic and the constraints are linear Nonlinear Programming Objective function is not linear or quadratic and/or the constraints are nonlinear 9 Numerical Methods, Fall 2011 Lecture 10 9 Prof. Jinbo Bi CSE, UConn

Optimization Dimensionality One-dimensional Single dependent variable Multi-dimensional Function is dependent on more than one variable 10 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Optimization How do you know that the minimum or maximum that you found is the global minimum or maximum? Multimodal systems 11 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Optimization How do you find the global extremum? Use graphical methods to gain insight Use multiple guesses to find multiple local extrema and then pick the largest as global Slight perturbations of initial guesses to see if the extrema changes For large multi-dimensional problems it is sometimes too difficult to guarantee that you have found the global extremum 12 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

One-dimensional Unconstrained Optimization Similar to root-finding Bracketing methods Golden-section search Quadratic interpolation Open methods Newton’s method 13 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search Also called Golden Ratio search Start with an interval bracket around the maximum 14 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search Assume that the function is unimodal over interval 15 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search 16 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search Pick two interior points in the interval using the golden ratio 17 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search Two possibilities 18 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search Example maximum 19 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search 20 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search 21 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search Error analysis Worst-case error is when true value is at the far-end of the sub-interval Take case when optimum value is in upper interval True value is at the left 22 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Golden-section search Relative error is (considering the worst case) 23 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Quadratic interpolation Use a second order polynomial as an approximation of the function near the optimum 24 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Quadratic interpolation Use the above formula to get a new guess and then use same method as with Golden-search to get rid of one of the guesses x 3 is the value of x that corresponds to the maximum of the quadratic function 25 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Quadratic interpolation Example maximum 26 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Quadratic interpolation 27 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Newton’s Method Newton-Raphson could be used to find the root of an function When finding a function optimum, use the fact that we want to find the root of the derivative and apply Newton-Raphson 28 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Newton’s Method Example maximum 29 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Newton’s Method Example 30 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Newton’s Method Like Newton-Raphson for roots, Newton’s method for finding optima may also diverge Can use secant-like methods using finite- difference approximations if the derivative is not available Usually used only near the optima Use Hybrid methods Bracketing methods to get near the optimum Open methods to quickly converge to the optimum 31 Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn

Next class Multi-dimensional Optimization Read Chapter 13 and Numerical Methods, Fall 2011 Lecture Prof. Jinbo Bi CSE, UConn