Introduction Lijun Zhang zlj@nju.edu.cn http://cs.nju.edu.cn/zlj - - PowerPoint PPT Presentation

introduction
SMART_READER_LITE
LIVE PREVIEW

Introduction Lijun Zhang zlj@nju.edu.cn http://cs.nju.edu.cn/zlj - - PowerPoint PPT Presentation

Introduction Lijun Zhang zlj@nju.edu.cn http://cs.nju.edu.cn/zlj Outline Mathematical Optimization Least-squares Linear Programming Convex Optimization Nonlinear Optimization Summary Outline Mathematical Optimization


slide-1
SLIDE 1

Introduction

Lijun Zhang zlj@nju.edu.cn http://cs.nju.edu.cn/zlj

slide-2
SLIDE 2

Outline

 Mathematical Optimization  Least-squares  Linear Programming  Convex Optimization  Nonlinear Optimization  Summary

slide-3
SLIDE 3

Outline

 Mathematical Optimization  Least-squares  Linear Programming  Convex Optimization  Nonlinear Optimization  Summary

slide-4
SLIDE 4

Mathematical Optimization (1)

 Optimization Problem

 Optimization Variable:

  •  Objective Function:
  •  Constraint Functions:

⋆ is called optimal or a solution

,

 For any with

, we have

slide-5
SLIDE 5

Mathematical Optimization (2)

 Linear Problem

 for all

and all

 Nonlinear Program

 If the optimization problem is not linear

 Convex Optimization Problem

 for all

and all

with , ,

slide-6
SLIDE 6

Applications

 Abstraction

 represents the choice made 

  • represent firm requirements

that limit the possible choices 

  • represents the cost of choosing

 A solution corresponds to a choice that has minimum cost, among all choices that meet the requirements

slide-7
SLIDE 7

Portfolio Optimization

 Variables

 𝑦 represents the investment in the 𝑗-th asset  𝑦 ∈ 𝐒 describes the overall portfolio allocation across the set of asset

 Constraints

 A limit on the budget the requirement  Investments are nonnegative  A minimum acceptable value of expected return for the whole portfolio

 Objective

 Minimize the variance of the portfolio return

slide-8
SLIDE 8

Device Sizing

 Variables

 𝑦 ∈ 𝐒 describes the widths and lengths of the devices

 Constraints

 Limits on the device sizes  Timing requirements  A limit on the total area of the circuit

 Objective

 Minimize the total power consumed by the circuit

slide-9
SLIDE 9

Data Fitting

 Variables

 𝑦 ∈ 𝐒 describes parameters in the model

 Constraints

 Prior information  Required limits on the parameters (such as nonnegativity)

 Objective

 Minimize the prediction error between the

  • bserved data and the values predicted by the

model

slide-10
SLIDE 10

Solving Optimization Problems

 General Optimization Problem

 Very difficult to solve  Constraints can be very complicated, the number of variables can be very lage  Methods involve some compromise, e.g., computation time, or suboptimal solution

 Exceptions

 Least-squares problems  Linear programming problems  Convex optimization problems

slide-11
SLIDE 11

Outline

 Mathematical Optimization  Least-squares  Linear Programming  Convex Optimization  Nonlinear Optimization  Summary

slide-12
SLIDE 12

Least-squares Problems (1)

 The Problem

 𝐵 ∈ 𝐒, 𝑏

is the 𝑗-th row of 𝐵, 𝑐 ∈ 𝐒

 𝑦 ∈ 𝐒 is the optimization variable

  • How to solve it?
slide-13
SLIDE 13

Least-squares Problems (1)

 The Problem

 𝐵 ∈ 𝐒, 𝑏

is the 𝑗-th row of 𝐵, 𝑐 ∈ 𝐒

 𝑦 ∈ 𝐒 is the optimization variable

 Setting the gradient to be 0

slide-14
SLIDE 14

Least-squares Problems (2)

 A Set of Linear Equations  Solving least-squares problems

 Reliable and efficient algorithms and software  Computation time proportional to

  • ; less if structured

 A mature technology  Challenging for extremely large problems

slide-15
SLIDE 15

Using Least-squares

 Easy to Recognize  Weighted least-squares

 Different importance

slide-16
SLIDE 16

Using Least-squares

 Easy to Recognize  Weighted least-squares

 Different importance

 Regularization

 More stable

slide-17
SLIDE 17

Outline

 Mathematical Optimization  Least-squares  Linear Programming  Convex Optimization  Nonlinear Optimization  Summary

slide-18
SLIDE 18

Linear Programming

 The Problem

  • ,
  •  Solving Linear Programs

 No analytical formula for solution  Reliable and efficient algorithms and software  Computation time proportional to 𝑜𝑛 if 𝑛 𝑜; less with structure  A mature technology  Challenging for extremely large problems

slide-19
SLIDE 19

Using Linear Programming

 Not as easy to recognize  Chebyshev Approximation Problem

,…,

  • ,…,
slide-20
SLIDE 20

Outline

 Mathematical Optimization  Least-squares  Linear Programming  Convex Optimization  Nonlinear Optimization  Summary

slide-21
SLIDE 21

Convex Optimization

 Why Convexity?

“ The great watershed in optimization isn’t between linearity and nonlinearity, but convexity and nonconvexity.” — R. Rockafellar, SIAM Review 1993

slide-22
SLIDE 22

Convex Optimization

 Why Convexity?

“ The great watershed in optimization isn’t between linearity and nonlinearity, but convexity and nonconvexity.” — R. Rockafellar, SIAM Review 1993

Local minimizers are also global minimizers.

slide-23
SLIDE 23

Convex Optimization Problems (1)

 The Problem

 Functions

  • for all

and all

with , ,  Least-squares and linear programs as special cases

slide-24
SLIDE 24

Convex Optimization Problems (2)

 Solving Convex Optimization Problems

 No analytical solution  Reliable and efficient algorithms (e.g., interior-point methods)  Computation time (roughly) proportional to

  •  𝐺 is cost of evaluating 𝑔
  • s and their first and

second derivatives

 Almost a technology

slide-25
SLIDE 25

Using Convex Optimization

 Often difficult to recognize  Many tricks for transforming problems into convex form  Surprisingly many problems can be solved via convex optimization

slide-26
SLIDE 26

An Example (1)

 lamps illuminating patches

 Intensity at patch depends linearly on lamp powers

  • 𝐽 𝑏
  • 𝑞,

𝑏 𝑠

  • max cos𝜄, 0
slide-27
SLIDE 27

An Example (2)

 Achieve desired illumination with bounded lamp powers

,...,

  • How to solve it?
slide-28
SLIDE 28

An Example (3)

  • 1. Use uniform power:
  • , vary
  • 2. Use least-squares

 Round

if

  • r
  • 3. Use weighted least-squares

 Adjust weights

until

  • min
  • 𝐽 𝐽
  • 𝑏𝑞
  • 𝐽
  • min
  • 𝐽 𝐽
  • 𝑥
  • 𝑞 𝑞

2

slide-29
SLIDE 29

An Example (4)

  • 4. Use linear programming
  • 5. Use convex optimization

,...,

  • ,...,
  • ,...,
slide-30
SLIDE 30

An Example (5)

  • ,...,
  • ,...,
slide-31
SLIDE 31

Outline

 Mathematical Optimization  Least-squares  Linear Programming  Convex Optimization  Nonlinear Optimization  Summary

slide-32
SLIDE 32

Nonlinear Optimization

 An optimization problem when the

  • bjective or constraint functions are not

linear, but not known to be convex  Sadly, there are no effective methods for solving the general nonlinear programming problem

 Could be NP-hard

 We need compromise

slide-33
SLIDE 33

Local Optimization Methods

 Find a point that minimizes among feasible points near it

 The compromise is to give up seeking the optimal

 Fast, can handle large problems  Differentiability  Require initial guess  Provide no information about distance to (global) optimum  Local optimization methods are more art than technology

slide-34
SLIDE 34

Comparisons

Problem Formulation Solving the Problem Local Optimization Methods for Nonlinear Programming

Straightforward Art

Convex Optimization

Art Standard

slide-35
SLIDE 35

Global Optimization

 Find the global solution

 The compromise is efficiency

 Worst-case complexity grows exponentially with problem size  Worst-case Analysis

 Whether the worst-case value is acceptable  A local optimization method can be tried

slide-36
SLIDE 36

Role of Convex Optimization in Nonconvex Problems

 Initialization for local optimization

 An approximate, but convex, formulation

 Convex heuristics for nonconvex

  • ptimization

 Sparse solutions (compressive sensing)

 Bounds for global optimization

 Relaxation  Lagrangian relaxation

slide-37
SLIDE 37

Outline

 Mathematical Optimization  Least-squares  Linear Programming  Convex Optimization  Nonlinear Optimization  Summary

slide-38
SLIDE 38

Summary

 Mathematical Optimization  Least-squares

 Closed-form Solution

 Linear Programming

 Efficient algorithms

 Convex Optimization

 Efficient algorithms, Modeling is an art

 Nonlinear Optimization

 Compromises, Optimization is an Art