Numerical Optimization. Review: Unconstrained Optimization

Similar documents
Lecture 18: Optimization Programming

Scientific Computing: Optimization

Constrained Optimization

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

Computational Finance

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

2.098/6.255/ Optimization Methods Practice True/False Questions

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

Applications of Linear Programming

Optimization Methods

Multidisciplinary System Design Optimization (MSDO)

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

Nonlinear Optimization: What s important?

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

Nonlinear Programming (Hillier, Lieberman Chapter 13) CHEM-E7155 Production Planning and Control

CHAPTER 2: QUADRATIC PROGRAMMING

Written Examination

Lecture Note 1: Introduction to optimization. Xiaoqun Zhang Shanghai Jiao Tong University

ISM206 Lecture Optimization of Nonlinear Objective with Linear Constraints

Constrained optimization: direct methods (cont.)

Constrained optimization. Unconstrained optimization. One-dimensional. Multi-dimensional. Newton with equality constraints. Active-set method.

Appendix A Taylor Approximations and Definite Matrices

10 Numerical methods for constrained problems

LMI Methods in Optimal and Robust Control

Contents. Preface. 1 Introduction Optimization view on mathematical models NLP models, black-box versus explicit expression 3

Numerical optimization. Numerical optimization. Longest Shortest where Maximal Minimal. Fastest. Largest. Optimization problems

Numerical Optimization: Basic Concepts and Algorithms

Chap 2. Optimality conditions

Optimization: an Overview

Lagrange Duality. Daniel P. Palomar. Hong Kong University of Science and Technology (HKUST)

MATH 4211/6211 Optimization Basics of Optimization Problems

IE 5531: Engineering Optimization I

Algorithms for constrained local optimization

IE 5531: Engineering Optimization I

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

Interior Point Methods in Mathematical Programming

Interior Point Methods for Mathematical Programming

Computational Optimization. Augmented Lagrangian NW 17.3

Algorithms for nonlinear programming problems II

MATH2070 Optimisation

Hot-Starting NLP Solvers

Gradient Descent. Dr. Xiaowei Huang

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

Optimization. Next: Curve Fitting Up: Numerical Analysis for Chemical Previous: Linear Algebraic and Equations. Subsections

I.3. LMI DUALITY. Didier HENRION EECI Graduate School on Control Supélec - Spring 2010

Convex Optimization. Newton s method. ENSAE: Optimisation 1/44

Support Vector Machines

Merging Optimization and Control

Optimization Concepts and Applications in Engineering

Quiz Discussion. IE417: Nonlinear Programming: Lecture 12. Motivation. Why do we care? Jeff Linderoth. 16th March 2006

Lecture 13: Constrained optimization

Nonlinear Optimization for Optimal Control

6.252 NONLINEAR PROGRAMMING LECTURE 10 ALTERNATIVES TO GRADIENT PROJECTION LECTURE OUTLINE. Three Alternatives/Remedies for Gradient Projection

3E4: Modelling Choice. Introduction to nonlinear programming. Announcements

Numerical optimization

Motivation. Lecture 2 Topics from Optimization and Duality. network utility maximization (NUM) problem:

Algorithms for nonlinear programming problems II

Generalization to inequality constrained problem. Maximize

Support Vector Machine (continued)

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

Lectures 9 and 10: Constrained optimization problems and their optimality conditions

AM 205: lecture 19. Last time: Conditions for optimality Today: Newton s method for optimization, survey of optimization methods

Optimization for Communications and Networks. Poompat Saengudomlert. Session 4 Duality and Lagrange Multipliers

Lecture 3. Optimization Problems and Iterative Algorithms

Lagrange duality. The Lagrangian. We consider an optimization program of the form

CONSTRAINED NONLINEAR PROGRAMMING

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

Numerical Optimization of Partial Differential Equations

MIT Manufacturing Systems Analysis Lecture 14-16

Constrained optimization

Optimality, Duality, Complementarity for Constrained Optimization

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

4TE3/6TE3. Algorithms for. Continuous Optimization

5 Handling Constraints

Convex Optimization. Ofer Meshi. Lecture 6: Lower Bounds Constrained Optimization

1 Introduction


ICS-E4030 Kernel Methods in Machine Learning

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

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

1 Strict local optimality in unconstrained optimization

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

Optimization Methods

2.3 Linear Programming

TMA947/MAN280 APPLIED OPTIMIZATION

Numerisches Rechnen. (für Informatiker) M. Grepl P. Esser & G. Welper & L. Zhang. Institut für Geometrie und Praktische Mathematik RWTH Aachen

Module 04 Optimization Problems KKT Conditions & Solvers

Lecture V. Numerical Optimization

AM 205: lecture 19. Last time: Conditions for optimality, Newton s method for optimization Today: survey of optimization methods

CONSTRAINED OPTIMIZATION LARS IMSLAND

Advanced Mathematical Programming IE417. Lecture 24. Dr. Ted Ralphs

Penalty and Barrier Methods. So we again build on our unconstrained algorithms, but in a different way.

Introduction to Optimization

Numerical Optimization

Optimisation and Operations Research

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

8 Numerical methods for unconstrained problems

Mathematical optimization

Sufficient Conditions for Finite-variable Constrained Minimization

Topic one: Production line profit maximization subject to a production rate constraint. c 2010 Chuan Shi Topic one: Line optimization : 22/79

Transcription:

Numerical Optimization Finding the best feasible solution Edward P. Gatzke Department of Chemical Engineering University of South Carolina Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 1 / 32 Review: Unconstrained Optimization Objective Function or Cost Function May be function of many variables Ex: min x 2 + y 2 2D problem defines manifold (surface) in 3D space z = x 2 + y 2 Must find point where gradient of function = 0 f (x,y) = δf δx δf δy Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 2 / 32

Question 1 f (x,y) = x 3 y 2 Question: What is equivalent to the gradient of the above function evaluated at the point x = 1, y = 1 [ [ [ 3x 3 3x [A [B [C 2 y 2 2y 2 2x 3 y [D All of the above. [E I have no clue. Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 3 / 32 Question 2 f (x,y) = 3x 2y Question: What is the gradient of the above function at x = 1, y = 1 [ [ [ 0 3 3 [A [B [C 0 2 2 [D All of the above. [E I have no clue. Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 4 / 32

Review: Unconstrained Optimization For minimization, f points downhill in steepest direction Trick for maximization problems: max x f (x) = min x f (x) Steepest Descent Method: Start at initial guess, x 0 Evaluate f at current point Perform line search in improving direction Update current best point and repeat until f is small Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 5 / 32 Review: Constrained Optimization Standard form with N constraints: min x f (x) subject to g 1 (x) 0 Bounds on variables in standard form: g 2 (x) 0. g N (x) 0 1 x 10 1 x 0 x 10 0 Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 6 / 32

Review: Constrained Optimization Standard form with N constraints: min x f (x) subject to g 1 (x) 0 Equality constraints in standard form: g 2 (x) 0. g N (x) 0 x = y 2 0 x y 2 0 x y 2 0 x + y 2 0 Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 7 / 32 Review: Linear vs. Nonlinear Linear examples and general form for sets of linear equality and inequality constraints: 2x + 3y = 4 x y 2 A x = b A x b Nonlinear examples and general form for nonlinear constraints: 2x 2 + y 2 = 4 y = e x g(x) 0 h(x) = 0 Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 8 / 32

Review: Convex vs. Nonconvex Eigenvalues of Hessian must be 0 to be convex function Graphically: In a convex set you may pick any two points and the line between the two points contains only points inside the set. Get problem in standard form, check Hessian eigenvalues: f (x) = [ 2x 1 H = y x 2 x 2 y 0 2 f x 2 2 f x y 2 f y x 2 f y 2 = Eigenvalues are 2, 0 so y x 2 is a convex constraint. [ 2 0 0 0 Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 9 / 32 Review: Convex vs. Nonconvex Unconstrained example f (x) = [ 2x 2y H = min x,y x2 + y 2 2 f x 2 2 f x y 2 f y x 2 f y 2 = [ 2 0 0 2 Eigenvalues are 2, 0 so x 2 + y 2 is a convex constraint. Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 10 / 32

Question 3 x 2 + y 2 9 Question: Is the constraint convex? [A Yes [B No [C What? [D All of the above. [E I have no clue. Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 11 / 32 Review: Convex vs. Nonconvex General form for constrained optimization: min x f (x) subject to g 1 (x) 0 g 2 (x) 0 h 1 (x) = 0 h 2 (x) = 0 Rules. Nonconvex problem if any of following are true: f (x) is a nonconvex function in the domain of x Any g i (x) inequality constraint is a nonconvex function in the domain of x Any h i (x) equality constraint is nonlinear Convex problems have a single solution Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 12 / 32

Question 4 min x,y 2x + y x 2 + y 2 9 Question: Is the problem convex? [A Yes [B No [C What? [D All of the above. [E I have no clue. Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 13 / 32 Review: KKT Conditions Check to see if a point x is optimal in constrained optimization Put problem in standard form with only inequality constraints Find any active constraints, g i (x ) = 0 Solve for Lagrange multipliers f (x ) = λ i g i (x ) λ i 0 Lagrange multipliers represent how hard the problem pushes against the constraints Lagrange multipliers must all be positive for the point to be a KKT point Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 14 / 32

Review: KKT Conditions [ 3 3 [ 2 3 Feasible space = λ 1 [ 2 1 λ 1 = λ 2 = 1 [ 2 = λ 1 1 λ 1 =?? + λ 2 [ 1 2 g f Objective Function Contours (minimum) [ 2 3 [ 2 [ 0 = λ 1 + λ 1 2 2 λ 1 = 1, λ 2 = 1 g Infeasible space Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 15 / 32 Question 5 min x,y x x 2 + y 2 9 Question: Is the point x = 3, y = 0 a KKT point? [A Yes [B No [C What? [D All of the above. [E I have no clue. Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 16 / 32

Question 6 Question: Why do we care about optimization? [A Gatzke told me to [B Model Predictive Control (MPC) [C Parameter estimation [D It is a useful tool for many problems [E All of the above Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 17 / 32 Motivation: Process Design Objective function: Maximize profits, minimize cost Decision variables: Number and size of components Flow rates, temperatures, pressures Constraints Mass and energy balances / design equations Environmental limits, product limits Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 18 / 32

Motivation: Process Modeling Objective function: minimize the error between data and model Decision variables: Model parameters (kinetic parameters) Constraints: Model equations Assumed limits on parameters Physical limits on variables (concentrations positive) Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 19 / 32 Motivation: Process Scheduling Objective function: minimize the cost for your process Decision variables: When to make products What equipment to use Constraints: Limits on batch sizes Limits on storage Order fulfillment requirements Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 20 / 32

Motivation: Process Control Objective function: minimize future deviation from setpoint Decision variables: Future process input values Constraints: Dynamic model equations for prediction Limits on the inputs Process variable limits Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 21 / 32 Problems: Linear Programming (LP) Space for Notes Below Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 22 / 32

Problems: Quadratic Programming (QP) Space for Notes Below Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 23 / 32 Problems: Nonlinear Programming (NLP) Space for Notes Below Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 24 / 32

Problems: Mixed-Integer Linear Programming (MILP) Space for Notes Below Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 25 / 32 Problems: Mixed-Integer Nonlinear Programming (MINLP) Space for Notes Below Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 26 / 32

Question 7 min x,y x x 2 + y 2 9 Question: What kind of problem is this? [A LP [B QP [C Convex NLP [D Nonconvex NLP [E MILP Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 27 / 32 Question 8 min x,y x x + y 9 y x = 7 Question: What kind of problem is this? [A LP [B QP [C Convex NLP [D Nonconvex NLP [E MILP Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 28 / 32

Question 9 min x,y x2 + y 2 x + 2y 9 Question: What kind of problem is this? [A LP [B QP [C Convex NLP [D Nonconvex NLP [E MILP Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 29 / 32 LP / NLP / QP Solution Strategies Active set (simplex) Pick set of active constraints Solve problem in form Ax = b Check to see if KKT holds Interior point Put constraints into objective function Find improving direction Polynomial time algorithm Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 30 / 32

NLP / MILP / MINLP Stochastic Solution Strategies Genetic Algorithms Make a population of random points,evaluate [0 1 1 0 0 1 Breed based on resulting objective function values Mutate some points randomly Simulated Annealing Start at some initial guess Search randomly nearby As system cools limit search area Particle Swarm Start with a random group of points Get group information to move in better direction Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 31 / 32 Question 10 What is the most confusing optimization topic? [A Convexity of functions / constraints [B KKT conditions [C Problem classification [D Solution strategies [E Other Ed Gatzke (USC CHE ) Numerical Optimization ECHE 589, Spring 2011 32 / 32