CE 191: Civil and Environmental Engineering Systems Analysis. LEC 05 : Optimality Conditions

Similar documents
CHAPTER 2: QUADRATIC PROGRAMMING

CE 191: Civil & Environmental Engineering Systems Analysis. LEC 17 : Final Review

MATH 4211/6211 Optimization Basics of Optimization Problems

Math 273a: Optimization Basic concepts

Constrained optimization: direct methods (cont.)

Introduction to gradient descent

Lecture 3: Basics of set-constrained and unconstrained optimization

1 Computing with constraints

Functions of Several Variables

minimize x subject to (x 2)(x 4) u,

Optimization Problems with Constraints - introduction to theory, numerical Methods and applications

5 Handling Constraints

SF2822 Applied nonlinear optimization, final exam Wednesday June

Optimization Methods

Performance Surfaces and Optimum Points

Algorithms for Constrained Optimization

N. L. P. NONLINEAR PROGRAMMING (NLP) deals with optimization models with at least one nonlinear function. NLP. Optimization. Models of following form:

Determination of Feasible Directions by Successive Quadratic Programming and Zoutendijk Algorithms: A Comparative Study

HW3 - Due 02/06. Each answer must be mathematically justified. Don t forget your name. 1 2, A = 2 2


ECE580 Fall 2015 Solution to Midterm Exam 1 October 23, Please leave fractions as fractions, but simplify them, etc.

Multidisciplinary System Design Optimization (MSDO)

CONSTRAINED NONLINEAR PROGRAMMING

Solution Methods. Richard Lusby. Department of Management Engineering Technical University of Denmark

1 Overview. 2 A Characterization of Convex Functions. 2.1 First-order Taylor approximation. AM 221: Advanced Optimization Spring 2016

Nonlinear Optimization: What s important?

ISM206 Lecture Optimization of Nonlinear Objective with Linear Constraints

Gradient Descent. Dr. Xiaowei Huang

Math (P)refresher Lecture 8: Unconstrained Optimization

AM 205: lecture 18. Last time: optimization methods Today: conditions for optimality

Optimality Conditions

MATH 4211/6211 Optimization Constrained Optimization

Optimization Part 1 P. Agius L2.1, Spring 2008

Optimization: an Overview

Optimality conditions for unconstrained optimization. Outline

Convex Quadratic Approximation

Multivariate Newton Minimanization

5.5 Quadratic programming

OPER 627: Nonlinear Optimization Lecture 2: Math Background and Optimality Conditions

Structural and Multidisciplinary Optimization. P. Duysinx and P. Tossings

Introduction to unconstrained optimization - direct search methods

Sufficient Conditions for Finite-variable Constrained Minimization

Nonlinear Optimization for Optimal Control

, b = 0. (2) 1 2 The eigenvectors of A corresponding to the eigenvalues λ 1 = 1, λ 2 = 3 are

Lecture Notes: Geometric Considerations in Unconstrained Optimization

OPER 627: Nonlinear Optimization Lecture 14: Mid-term Review

NONLINEAR. (Hillier & Lieberman Introduction to Operations Research, 8 th edition)

Interior Point Methods for Convex Quadratic and Convex Nonlinear Programming

Computational Finance

Semidefinite Programming Basics and Applications

4TE3/6TE3. Algorithms for. Continuous Optimization

Nonlinear equations and optimization

Mathematical optimization

ECE 680 Modern Automatic Control. Gradient and Newton s Methods A Review

Numerical Optimization. Review: Unconstrained Optimization

1. Which one of the following points is a singular point of. f(x) = (x 1) 2/3? f(x) = 3x 3 4x 2 5x + 6? (C)

Numerical Optimization

Nonlinear Optimization for Optimal Control Part 2. Pieter Abbeel UC Berkeley EECS. From linear to nonlinear Model-predictive control (MPC) POMDPs

Constrained Optimization

Generalization to inequality constrained problem. Maximize

Computational Optimization. Convexity and Unconstrained Optimization 1/29/08 and 2/1(revised)

MATH2070 Optimisation

2.3 Linear Programming

E5295/5B5749 Convex optimization with engineering applications. Lecture 8. Smooth convex unconstrained and equality-constrained minimization

Algorithms for constrained local optimization

Written Examination

4M020 Design tools. Algorithms for numerical optimization. L.F.P. Etman. Department of Mechanical Engineering Eindhoven University of Technology

Lecture 2 - Unconstrained Optimization Definition[Global Minimum and Maximum]Let f : S R be defined on a set S R n. Then

ECE580 Exam 1 October 4, Please do not write on the back of the exam pages. Extra paper is available from the instructor.

Vector Derivatives and the Gradient

Unconstrained Optimization

Lecture 5: September 15

Quiescent Steady State (DC) Analysis The Newton-Raphson Method

UNCONSTRAINED OPTIMIZATION

Chapter 3 Numerical Methods

Optimization. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Optimization 1 / 30

ECE580 Partial Solution to Problem Set 3

A STABILIZED SQP METHOD: SUPERLINEAR CONVERGENCE

MATH 5720: Unconstrained Optimization Hung Phan, UMass Lowell September 13, 2018

A New Penalty-SQP Method

A GLOBALLY CONVERGENT STABILIZED SQP METHOD: SUPERLINEAR CONVERGENCE

Handout 1: Introduction to Dynamic Programming. 1 Dynamic Programming: Introduction and Examples

Quadratic Programming

MVE165/MMG631 Linear and integer optimization with applications Lecture 13 Overview of nonlinear programming. Ann-Brith Strömberg

Lecture 18: Optimization Programming

Support Vector Machines: Maximum Margin Classifiers

Scientific Computing: Optimization

Lecture 3 September 1

Chapter 2: Unconstrained Extrema

Two hours. To be provided by Examinations Office: Mathematical Formula Tables. THE UNIVERSITY OF MANCHESTER. 29 May :45 11:45

Lecture 5: September 12

Transpose & Dot Product

Optimization Methods. Lecture 18: Optimality Conditions and. Gradient Methods. for Unconstrained Optimization

Lecture V. Numerical Optimization

A Project Report Submitted by. Devendar Mittal 410MA5096. A thesis presented for the degree of Master of Science

Part 4: Active-set methods for linearly constrained optimization. Nick Gould (RAL)

8 Numerical methods for unconstrained problems

CS 542G: Robustifying Newton, Constraints, Nonlinear Least Squares

Transpose & Dot Product

Direct Methods. Moritz Diehl. Optimization in Engineering Center (OPTEC) and Electrical Engineering Department (ESAT) K.U.

Transcription:

CE 191: Civil and Environmental Engineering Systems Analysis LEC : Optimality Conditions Professor Scott Moura Civil & Environmental Engineering University of California, Berkeley Fall 214 Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 1

Conditions for Optimality Consider an unconstrained QP min f(x) = 1 2 xt Qx + Rx Recall from calculus (e.g. Math 1A) the first order necessary condition (FONC) for optimality: If x is an optimum, then it must satisfy d dx f(x ) = = Qx + R = x = Q 1 R Also recall the second order sufficiency condition (SOSC): If x is a stationary point (i.e. it satisfies the FONC), then it is also a minimum if 2 f(x ) Q positive definite positive definite Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 2

Review: Positive-definite matrices All of the following conditions are equivalent: Consider Q R n n Q is positive definite x T Qx >, x the real parts of all eigenvalues of Q are positive Q is negative definite Q is positive semi-definite x T Qx, x the real parts of all eigenvalues of Q are positive, and at least one eigenvalue is zero Q is negative semi-definite Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 3

Nature of stationary point based on SOSC Hessian matrix Quadratic form Nature of x positive definite x T Qx > local minimum negative definite x T Qx < local maximum positive semi-definite x T Qx valley negative semi-definite x T Qx ridge indefinite x T Qx any sign saddle point Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 4

Local Minimum Local Minimum 2 2 2 1 1 1 1 x 1 x 1 Q = [ 3 2 2 3, eig(q) = {1, } Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide

Local Maximum Local Maximum 2 4 6 8 1 x 1 1 1 12 14 x 1 Q = [ 2 1 1 2, eig(q) = { 3, 1} Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 6

Valley Valley 4 6 3 3 2 2 4 2 x 1 1 1 x 1 Q = [ 8 4 4 2, eig(q) = {, 1} Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 7

Ridge Ridge 2 4 6 1 x 1 8 1 1 12 x 1 Q = [, eig(q) = {, } Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 8

Saddle Point Saddle Point 3 2 2 2 1 1 1 x 1 1 2 x 2 x 1 Q = [ 2 4 4 1., eig(q) = { 2.26, 7.76} Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 9

Example.1 f(x 1, ) = (3 x 1 ) 2 + (4 ) 2 = [ [ [ 1 x1 x 1 1 + [ 6 8 [ x 1 Check the FONC: [ f 6 + x = 2x1 8 + 2 has the solution (x, 1 x 2 ) = (3, 4). = [ Check the SOFC: [ 2 f 2 x = 2 2 positive definite Solution: Unique local minimum Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 1

Example.2 f(x 1, ) = 4x 1 + 2 + 4 1 4x 1 + 2 = [ [ [ 4 2 x1 x 1 + [ [ x 4 2 1 2 1 Check the FONC: [ [ f 4 + x = 8x1 4 = 2 4x 1 + 2 has an infinity of solutions (x 1, x 2 ) on the line 2x 1 = 1. Check the SOFC: 2 f = [ 8 4 4 2 positive semidefinite Solution: Infinite set of minima (valley) Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 11

A Connection to Nonlinear Programming Consider the more general nonlinear programming problem, with nonlinear cost and nonlinear constraints min J = f(x) s. to g(x) Consider a given value for the decision variable, x k. Let s take a Taylor series expansion of the cost and constraints. Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 12

Taylor Series Review: Expand f(x) into infinite power series around x = x k f(x) = f(x k ) + f (x k ) (x x k ) + 1 2 f (x k ) (x x k ) 2 +... = n= f n (x k ) n! (x x k ) n Expand cost function, truncated to be 2nd order f(x) f(x k ) + f (x k ) (x x k ) + 1 2 f (x k ) (x x k ) 2 Expand inequality constraints, truncated to be 1st order g(x) g(x k ) + g (x k ) (x x k ) For ease of notation, define x = x x k Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 13

Sequential Quadratic Programming (SQP) We arrive at the following approximate QP min Q + R x s. to A x b where Q = 1 2 f (x k ), R = f (x k ) A = g (x k ), b = g(x k ) Suppose the optimal solution is x. Then let x k+1 = x k + x. Repeat. Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 14

SQP Remarks Remark 1: Can add equality constraints h(x) = and expand via 1st order Taylor series. Remark 2: If x k+1 does not satisfy g(x k+1 ), then you can project x k+1 onto surface g( ) =. Remark 3: Iterate until a stopping criteria is reached, e.g. x ε. Summary: Can re-formulate nonlinear program into sequence of quadratic programs. Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 1

Example.3 Consider the NLP min e x1 + ( 2) 2 x 1, s. to x 1 1. with the initial guess [x 1,,, T = [1, 1 T. Perform 3 iterations of SQP. We have the functions: f(x) = e x1 + ( 2) 2 and g(x) = x 1 1 We seek to find the approximate QP subproblem min 1 2 xt Q x + R T x s. to A x b Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 16

Example.3 Taking derivatives of f(x) and g(x), Q = [ e x 1 2 [, R = A = [ x 1, b = 1 x1 e x1 2( 2) Now consider the initial guess [x 1,,, T = [1, 1 T. This iterate is feasible., First iteration: Q, R, A, b matrices are [ [ e 1 e 1 Q =, R = 2 2 A = [ 1 1, b =, Solving this QP subproblem results in x = [.6893,.6893. Next iterate: [x 1,1,,1 = [x 1,,, + x = [.317, 1.6893 Iterate is feasible. Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 17

Example.3 Second iteration: Result is [x 1,2,,2 = [.443, 1.9483. Iterate is infeasible. Continuing the process... 4 3. 3 2. 2 1. 1. g(x) = Iterations of SQP 2 1 1 2 x 1 1 9 8 7 6 4 3 2 1 Iter. [x 1, f(x) g(x) [1, 1 1.3679 1 [.317, 1.6893.829 -.471 2 [.443, 1.9483.829.6 3 [.22, 1.9171.62.1 4 [.211, 1.9192.64 -. Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 18

Additional Reading Papalambros & Wilde Section 4.2 - Local Approximations Papalambros & Wilde Section 4.3 - Optimality Conditions Papalambros & Wilde Section 7.7 - Sequential Quadratic Programming Prof. Moura UC Berkeley CE 191 LEC 4 - Optimality Conditions Slide 19