Optimization III: Constrained Optimization

Similar documents
Introduction to Constrained Optimization

Programming, numerics and optimization

Demo 1: KKT conditions with inequality constraints

A Short SVM (Support Vector Machine) Tutorial

Linear methods for supervised learning

Introduction to Optimization

Contents. I Basics 1. Copyright by SIAM. Unauthorized reproduction of this article is prohibited.

LECTURE 13: SOLUTION METHODS FOR CONSTRAINED OPTIMIZATION. 1. Primal approach 2. Penalty and barrier methods 3. Dual approach 4. Primal-dual approach

Nonlinear Programming

Kernel Methods & Support Vector Machines

Constrained Optimization and Lagrange Multipliers

Unconstrained Optimization Principles of Unconstrained Optimization Search Methods

Convex Programs. COMPSCI 371D Machine Learning. COMPSCI 371D Machine Learning Convex Programs 1 / 21

Shiqian Ma, MAT-258A: Numerical Optimization 1. Chapter 2. Convex Optimization

Convex Optimization. Lijun Zhang Modification of

Gate Sizing by Lagrangian Relaxation Revisited

Introduction to Machine Learning

Kernels and Constrained Optimization

Local and Global Minimum

In other words, we want to find the domain points that yield the maximum or minimum values (extrema) of the function.

Constrained Optimization COS 323

Lecture 7: Support Vector Machine

Computational Methods. Constrained Optimization

Applied Lagrange Duality for Constrained Optimization

Characterizing Improving Directions Unconstrained Optimization

Support Vector Machines. James McInerney Adapted from slides by Nakul Verma

David G. Luenberger Yinyu Ye. Linear and Nonlinear. Programming. Fourth Edition. ö Springer

Support Vector Machines.

Optimal Control Techniques for Dynamic Walking

Optimization Methods. Final Examination. 1. There are 5 problems each w i t h 20 p o i n ts for a maximum of 100 points.

Constrained optimization

COMS 4771 Support Vector Machines. Nakul Verma

Department of Mathematics Oleg Burdakov of 30 October Consider the following linear programming problem (LP):

Advanced Operations Research Techniques IE316. Quiz 2 Review. Dr. Ted Ralphs

Lecture 2 Optimization with equality constraints

Introduction to Optimization

QEM Optimization, WS 2017/18 Part 4. Constrained optimization

Lecture 15: Log Barrier Method

Optimization under uncertainty: modeling and solution methods

Lecture Notes: Constraint Optimization

Introduction to Modern Control Systems

5 Day 5: Maxima and minima for n variables.

Lecture 10: SVM Lecture Overview Support Vector Machines The binary classification problem

Augmented Lagrangian Methods

Optimization Methods: Optimization using Calculus Kuhn-Tucker Conditions 1. Module - 2 Lecture Notes 5. Kuhn-Tucker Conditions

Least-Squares Minimization Under Constraints EPFL Technical Report #

Perceptron Learning Algorithm

INTRODUCTION TO LINEAR AND NONLINEAR PROGRAMMING

1. Show that the rectangle of maximum area that has a given perimeter p is a square.

A FACTOR GRAPH APPROACH TO CONSTRAINED OPTIMIZATION. A Thesis Presented to The Academic Faculty. Ivan Dario Jimenez

Linear Programming. Linear Programming. Linear Programming. Example: Profit Maximization (1/4) Iris Hui-Ru Jiang Fall Linear programming

AMS : Combinatorial Optimization Homework Problems - Week V

Convex Optimization and Machine Learning

Lec 11 Rate-Distortion Optimization (RDO) in Video Coding-I

Augmented Lagrangian Methods

Programs. Introduction

PRIMAL-DUAL INTERIOR POINT METHOD FOR LINEAR PROGRAMMING. 1. Introduction

Convex Optimization. Erick Delage, and Ashutosh Saxena. October 20, (a) (b) (c)

Theoretical Concepts of Machine Learning

Computational Optimization. Constrained Optimization Algorithms

15.082J and 6.855J. Lagrangian Relaxation 2 Algorithms Application to LPs

Linear Programming Problems

Chapter II. Linear Programming

Mathematical Programming and Research Methods (Part II)

CS 473: Algorithms. Ruta Mehta. Spring University of Illinois, Urbana-Champaign. Ruta (UIUC) CS473 1 Spring / 36

Linear Programming. Larry Blume. Cornell University & The Santa Fe Institute & IHS

Outline. CS38 Introduction to Algorithms. Linear programming 5/21/2014. Linear programming. Lecture 15 May 20, 2014

An augmented Lagrangian method for equality constrained optimization with fast infeasibility detection

TMA946/MAN280 APPLIED OPTIMIZATION. Exam instructions

A primal-dual framework for mixtures of regularizers

CME307/MS&E311 Theory Summary

Finding optimal configurations Adversarial search

Convexity Theory and Gradient Methods

arxiv: v2 [math.oc] 12 Feb 2019

Linear programming and duality theory

Delay-Constrained Optimized Packet Aggregation in High-Speed Wireless Networks

California Institute of Technology Crash-Course on Convex Optimization Fall Ec 133 Guilherme Freitas

Perceptron Learning Algorithm (PLA)

Lagrange multipliers. Contents. Introduction. From Wikipedia, the free encyclopedia

Inverse KKT Motion Optimization: A Newton Method to Efficiently Extract Task Spaces and Cost Parameters from Demonstrations

21-256: Lagrange multipliers

Finite Math Linear Programming 1 May / 7

Virtual Manikin Controller Calculating the movement of a human model Master s thesis in Complex Adaptive Systems DANIEL GLEESON

Solution Methods Numerical Algorithms

Kernel Methods. Chapter 9 of A Course in Machine Learning by Hal Daumé III. Conversion to beamer by Fabrizio Riguzzi

ISM206 Lecture, April 26, 2005 Optimization of Nonlinear Objectives, with Non-Linear Constraints

Mathematical and Algorithmic Foundations Linear Programming and Matchings

New Directions in Linear Programming

EC5555 Economics Masters Refresher Course in Mathematics September Lecture 6 Optimization with equality constraints Francesco Feri

Lecture 19: Convex Non-Smooth Optimization. April 2, 2007

APPLIED OPTIMIZATION WITH MATLAB PROGRAMMING

Optimal Separating Hyperplane and the Support Vector Machine. Volker Tresp Summer 2018

Chapter 3 Numerical Methods

5. DUAL LP, SOLUTION INTERPRETATION, AND POST-OPTIMALITY

CONLIN & MMA solvers. Pierre DUYSINX LTAS Automotive Engineering Academic year

COLUMN GENERATION IN LINEAR PROGRAMMING

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 1: Introduction to Optimization. Instructor: Shaddin Dughmi

Lecture 9: Linear Programming

MATHEMATICS II: COLLECTION OF EXERCISES AND PROBLEMS

Artificial Intelligence

Transcription:

Optimization III: Constrained Optimization CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Doug James (and Justin Solomon) CS 205A: Mathematical Methods Optimization III: Constrained Optimization 1 / 28

Announcements HW6 due today HW7 out HW8 (last homework) out next Thursday CS 205A: Mathematical Methods Optimization III: Constrained Optimization 2 / 28

Constrained Problems minimize f( x) such that g( x) = 0 h( x) 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 3 / 28

Really Difficult! Simultaneously: Minimizing f Finding roots of g Finding feasible points of h CS 205A: Mathematical Methods Optimization III: Constrained Optimization 4 / 28

Implicit Projection Implicit surface: g( x) = 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 5 / 28

Implicit Projection Implicit surface: g( x) = 0 Example: Closest point on surface minimize x x x 0 2 such that g( x) = 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 5 / 28

Nonnegative Least-Squares minimize x A x b 2 2 such that x 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 6 / 28

Manufacturing m materials s i units of material i in stock n products p j profit for product j Product j uses c ij units of material i CS 205A: Mathematical Methods Optimization III: Constrained Optimization 7 / 28

Manufacturing Linear programming problem: maximize x j p jx j such that x j 0 j j c ijx j s i i Maximize profits where you make a positive amount of each product and use limited material. CS 205A: Mathematical Methods Optimization III: Constrained Optimization 8 / 28

Bundle Adjustment min yj,p i ij P i y j x ij 2 2 s.t. P i orthogonal i Applications: Bundler Building Rome in a Day CS 205A: Mathematical Methods Optimization III: Constrained Optimization 9 / 28

Constrained Problems minimize f( x) such that g( x) = 0 h( x) 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 10 / 28

Basic Definitions Feasible point and feasible set A feasible point is any point x satisfying g( x) = 0 and h( x) 0. The feasible set is the set of all points x satisfying these constraints. CS 205A: Mathematical Methods Optimization III: Constrained Optimization 11 / 28

Basic Definitions Feasible point and feasible set A feasible point is any point x satisfying g( x) = 0 and h( x) 0. The feasible set is the set of all points x satisfying these constraints. Critical point of constrained optimization A critical point is one satisfying the constraints that also is a local maximum, minimum, or saddle point of f within the feasible set. CS 205A: Mathematical Methods Optimization III: Constrained Optimization 11 / 28

Differential Optimality Without h: Λ( x, λ) f( x) λ g( x) Lagrange Multipliers CS 205A: Mathematical Methods Optimization III: Constrained Optimization 12 / 28

Inequality Constraints at x CS 205A: Mathematical Methods Optimization III: Constrained Optimization 13 / 28

Inequality Constraints at x Two cases: Active: h i ( x ) = 0 Optimum might change if constraint is removed Inactive: h i ( x ) > 0 Removing constraint does not change x locally CS 205A: Mathematical Methods Optimization III: Constrained Optimization 14 / 28

Idea Remove inactive constraints and make active constraints equality constraints. CS 205A: Mathematical Methods Optimization III: Constrained Optimization 15 / 28

Lagrange Multipliers Λ( x, λ, µ) f( x) λ g( x) µ h( x) No longer a critical point! But if we ignore that: 0 = f( x) i λ i g i ( x) j µ j h j ( x) CS 205A: Mathematical Methods Optimization III: Constrained Optimization 16 / 28

Lagrange Multipliers Λ( x, λ, µ) f( x) λ g( x) µ h( x) No longer a critical point! But if we ignore that: 0 = f( x) i λ i g i ( x) j µ j h j ( x) µ j h j ( x) = 0 Zero out inactive constraints! CS 205A: Mathematical Methods Optimization III: Constrained Optimization 16 / 28

Inequality Direction So far: Have not distinguished between h j ( x) 0 and h j ( x) 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 17 / 28

Inequality Direction So far: Have not distinguished between h j ( x) 0 and h j ( x) 0 Direction to decrease f: f( x ) Direction to decrease h j : h j ( x ) CS 205A: Mathematical Methods Optimization III: Constrained Optimization 17 / 28

Inequality Direction So far: Have not distinguished between h j ( x) 0 and h j ( x) 0 Direction to decrease f: f( x ) Direction to decrease h j : h j ( x ) f( x ) h j ( x ) 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 17 / 28

Dual Feasibility µ j 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 18 / 28

KKT Conditions Theorem (Karush-Kuhn-Tucker (KKT) conditions) x R n is a critical point when there exist λ R m and µ R p such that: 0 = f( x ) i λ i g i ( x ) j µ j h j ( x ) ( stationarity ) g( x ) = 0 and h( x) 0 ( primal feasibility ) µ j h j ( x ) = 0 for all j ( complementary slackness ) µ j 0 for all j ( dual feasibility ) CS 205A: Mathematical Methods Optimization III: Constrained Optimization 19 / 28

KKT Example from Book CS 205A: Mathematical Methods Optimization III: Constrained Optimization 20 / 28

KKT Example from Book CS 205A: Mathematical Methods Optimization III: Constrained Optimization 21 / 28

Physical Illustration of KKT Example: Minimal gravitational-potential-energy position x = (x 1, x 2 ) T of a particle attached to inextensible rod (of length l), and above a hard surface. minimize x x 2 (Minimize gravitational potential energy) such that x c 2 l = 0 (rod of length l attached at c) x 2 0 (height 0) Physical interpretation of f, g, h, λ and µ? Physical interpretation of stationarity, primal feasibility, complementary slackness and dual feasibility? CS 205A: Mathematical Methods Optimization III: Constrained Optimization 22 / 28

Sequential Quadratic Programming (SQP) x k+1 x k + arg min d [ ] 1 d 2 H f ( x k ) d + f( x k ) d such that g i ( x k ) + g i ( x k ) d = 0 h i ( x k ) + h i ( x k ) d 0 CS 205A: Mathematical Methods Optimization III: Constrained Optimization 23 / 28

Equality Constraints Only ( Hf ( x k ) [Dg( x k )] Dg( x k ) 0 ) ( d λ ) = ( f( xk ) g( x k ) ) Can approximate H f Can limit distance along d CS 205A: Mathematical Methods Optimization III: Constrained Optimization 24 / 28

Inequality Constraints Active set methods: Keep track of active constraints and enforce as equality, update based on gradient CS 205A: Mathematical Methods Optimization III: Constrained Optimization 25 / 28

Barrier Methods: Equality Case f ρ ( x) f( x) + ρ g( x) 2 2 Unconstrained optimization, crank up ρ until g( x) 0 Caveat: H fρ becomes poorly conditioned CS 205A: Mathematical Methods Optimization III: Constrained Optimization 26 / 28

Barrier Methods: Inequality Case 1 Inverse barrier: h i ( x) Logarithmic barrier: log h i ( x) CS 205A: Mathematical Methods Optimization III: Constrained Optimization 27 / 28

To Read: Convex Programming A ray of hope: Minimizing convex functions with convex constraints Next CS 205A: Mathematical Methods Optimization III: Constrained Optimization 28 / 28