650 likes | 957 Views
Optimization Problems. 虞台文. 大同大學資工所 智慧型多媒體研究室. Content. Introduction Definitions Local and Global Optima Convex Sets and Functions Convex Programming Problems. Optimization Problems. Introduction. 大同大學資工所 智慧型多媒體研究室. General Nonlinear Programming Problems. objective function.
E N D
Optimization Problems 虞台文 大同大學資工所 智慧型多媒體研究室
Content • Introduction • Definitions • Local and Global Optima • Convex Sets and Functions • Convex Programming Problems
Optimization Problems Introduction 大同大學資工所 智慧型多媒體研究室
General Nonlinear Programming Problems objective function constraints
Local Minima vs. Global Minima objective function constraints local minimum global minimum
Local optimality Global optimality Convex Programming Problems objective function constraints convex f (x) gi(x) concave hj(x) linear
Local optimality Global optimality Linear Programming Problems objective function constraints linear f (x) a special case of convex programming problems gi(x) linear hj(x) linear
Local optimality Global optimality Linear Programming Problems objective function constraints linear f (x) gi(x) linear hj(x) linear
Integer Programming Problems objective function constraints linear f (x) gi(x) linear hj(x) linear
The Hierarchy of Optimization Problems Nonlinear Programs Convex Programs Linear Programs (Polynomial) Integer Programs (NP-Hard) Flow and Matching
Optimization Problems • General Nonlinear Programming Problems • Convex Programming Problems • Linear Programming Problems • Integer Linear Programming Problems
Optimization Techniques • General Nonlinear Programming Problems • Convex Programming Problems • Linear Programming Problems • Integer Linear Programming Problems Continuous Variables Continuous Optimization Combinatorial Optimization Discrete Variables
Optimization Problems Definitions 大同大學資工所 智慧型多媒體研究室
Optimization Problems Minimize cost c: FR1 Define the set of feasible points F
F: the domain of feasible points c: F R1 cost function A global optimum Definition:Instance of an Optimization Problem (F, c) Goal: To findf Fsuch that c( f) c(g) for allgF.
Definition:Optimization Problem • A set of instances of an optimization problem, e.g. • Traveling Salesman Problem (TSP) • Minimal Spanning Tree (MST) • Shortest Path (SP) • Linear Programming (LP)
Traveling Salesman Problem (TSP) • Instance of the TSP • Given ncities and an nn distance matrix [dij], the problem is to find a Hamiltonian cycle with minimal total length.
Minimal Spanning Tree (MST) • Instance of the MST • Given an integern > 0and an nn symmetric distance matrix [dij], the problem is to find a spanning tree on n vertices that has minimum total length of its edge.
Linear Programming (LP) minimize Subject to
Linear Programming (LP) minimize Subject to
Linear Programming (LP) minimize Subject to
Example:Linear Programming (LP) minimize Subject to
x3 x2 x1 Example:Linear Programming (LP) minimize Subject to v3 c(v3) = 6 The optimal point is at one of the vertices. c(v2) = 4 c(v1) = 8 v2 v1 The optimum
x3 c1=4 c2=2 x2 c3=3 x1 Example:Minimal Spanning Tree (3 Nodes) minimize Integer Programming Subject to x1{0, 1} x3{0, 1} x2{0, 1}
x3 c1=4 c2=2 x2 c3=3 x1 Some integer programs can be transformed into linear programs. Example:Minimal Spanning Tree (3 Nodes) minimize Linear Programming Subject to x1{0, 1} x3{0, 1} x2{0, 1}
Optimization Problems Local and Global Optima 大同大學資工所 智慧型多媒體研究室
For combinatorial optimization, the choice of N is critical. Neighborhoods Given an optimization problem with instance (F, c), a neighborhood is a mapping defined for each instance.
TSP (2-Change) gN2(f ) f F
MST gN(f ) f F • Adding an edge to form a cycle. • Deleting any edge on the cycle.
minimize Subject to LP
(F, c) an instance of an optimization problem Given N neighborhood Local Optima f F is called locally optimum with respect to N (or simply locally optimum whenever N is understood by context) if c(f ) c(g)for allgN(f ).
c small 1 0 F Local Optima F = [0, 1] R1 Global minimum C Local minimum Local minimum A B
Decent Algorithm f = initial feasible solution While Improve(f ) do f = any element in Improve(f ) return f Decent algorithm is usually stuck at a local minimum unless the neighborhood N is exact.
Exactness of Neighborhood Neighborhood N is said to be exact if it makes Local minimum Global Minimum
F = [0, 1] R1 c Global minimum C Local minimum Local minimum A B 1 0 F N is exact if 1. Exactness of Neighborhood
TSP N2:not exact Nn: exact
gN(f ) f F • Adding an edge to form a cycle. • Deleting any edge on the cycle. N is exact MST
Optimization Problems Convex Sets and Functions 大同大學資工所 智慧型多媒體研究室
A convex combination of x, y. A strictconvex combination of x, y if 0, 1. Convex Combination x, y Rn z = x +(1)y 0 1
z = x +(1)y Convex Sets 0 1 S Rn is convex if it contains all convex combinations of pairs x, y S. convex nonconvex
z = x +(1)y Convex Sets 0 1 S Rn is convex if it contains all convex combinations of pairs x, y S. n = 1 S is convex iff S is an interval.
Convex Sets Fact: The intersection of any number of convex sets is convex.
a convex set a convex function if c x y Every linear function is convex. Convex Functions S Rn c:S R c(x +(1)y) c(x) + (1)c(y), 0 1 c(x) + (1)c(y) c(y) c(x) c(x +(1)y) x +(1)y
a convex set a convex function on S a real number Lemma S c(x) is convex. t Pf) Let x, y St x +(1)y S c(x +(1)y) c(x) + (1)c(y) t + (1)t = t x +(1)y St
Level Contours c = 5 c = 4 c = 3 c = 2 c = 1
a convex set a concave function if Every linear function is concave as well as convex. Concave Functions S Rn c:S R c is a convex