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

Similar documents
Math 273a: Optimization

Numerical Optimization. Review: Unconstrained Optimization

Lecture 3: Basics of set-constrained and unconstrained optimization

Analysis of Algorithms. Unit 5 - Intractable Problems

Mathematical Optimization Models and Applications

Optimization Models and Applications

What is an integer program? Modelling with Integer Variables. Mixed Integer Program. Let us start with a linear program: max cx s.t.

Convex Optimization & Machine Learning. Introduction to Optimization

Algorithms & Data Structures 2

Support Vector Machines: Maximum Margin Classifiers

Lecture 18: Kernels Risk and Loss Support Vector Regression. Aykut Erdem December 2016 Hacettepe University

36106 Managerial Decision Modeling Linear Decision Models: Part II

Chapter 3: Discrete Optimization Integer Programming

Math 381 Midterm Practice Problem Solutions

In complexity theory, algorithms and problems are classified by the growth order of computation time as a function of instance size.

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

Operations Scheduling for the LSST

OPTIMIZATION. joint course with. Ottimizzazione Discreta and Complementi di R.O. Edoardo Amaldi. DEIB Politecnico di Milano

Deterministic Operations Research, ME 366Q and ORI 391 Chapter 2: Homework #2 Solutions

The Method of Substitution. Linear and Nonlinear Systems of Equations. The Method of Substitution. The Method of Substitution. Example 2.

January 29, Introduction to optimization and complexity. Outline. Introduction. Problem formulation. Convexity reminder. Optimality Conditions

Lecture 1. Stochastic Optimization: Introduction. January 8, 2018

Chapter 3: Discrete Optimization Integer Programming

2.098/6.255/ Optimization Methods Practice True/False Questions

Gestion de la production. Book: Linear Programming, Vasek Chvatal, McGill University, W.H. Freeman and Company, New York, USA

SECTION 5.1: Polynomials

Support Vector Machines and Kernel Methods

56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker

Convex Optimization Lecture 16

Applications of Linear Programming

LMI Methods in Optimal and Robust Control

The quest for finding Hamiltonian cycles

Optimization: an Overview

Reconnect 04 Introduction to Integer Programming

LECTURE 13 LECTURE OUTLINE

IE 5531 Practice Midterm #2

Agenda today. Introduction to prescriptive modeling. Linear optimization models through three examples: Beyond linear optimization

Unit 2: Problem Classification and Difficulty in Optimization

Neural Network Training

DRAFT Formulation and Analysis of Linear Programs

SVAN 2016 Mini Course: Stochastic Convex Optimization Methods in Machine Learning

Operations Research Lecture 6: Integer Programming

Lecture 3: Huggett s 1993 model. 1 Solving the savings problem for an individual consumer

Lecture 23 Branch-and-Bound Algorithm. November 3, 2009

On the Power of Robust Solutions in Two-Stage Stochastic and Adaptive Optimization Problems

Computational Integer Programming. Lecture 2: Modeling and Formulation. Dr. Ted Ralphs

Section Notes 9. Midterm 2 Review. Applied Math / Engineering Sciences 121. Week of December 3, 2018

Linear Regression. S. Sumitra

The Perceptron. Volker Tresp Summer 2016

Overfitting, Bias / Variance Analysis

Lecture 5: Computational Complexity

Travelling Salesman Problem

ECE 307- Techniques for Engineering Decisions

Math 1314 Lesson 19: Numerical Integration

Logistic Regression Trained with Different Loss Functions. Discussion

Logistic Regression Review Fall 2012 Recitation. September 25, 2012 TA: Selen Uguroglu

ECS171: Machine Learning

Summary of the simplex method

Simplex tableau CE 377K. April 2, 2015

Bilinear Programming: Applications in the Supply Chain Management

Lecture Note 5: Semidefinite Programming for Stability Analysis

Financial Optimization ISE 347/447. Lecture 21. Dr. Ted Ralphs

On the Power of Robust Solutions in Two-Stage Stochastic and Adaptive Optimization Problems

16.410/413 Principles of Autonomy and Decision Making

LINEAR PROGRAMMING MODULE Part 1 - Model Formulation INTRODUCTION

Machine Learning. Support Vector Machines. Manfred Huber

Project Discussions: SNL/ADMM, MDP/Randomization, Quadratic Regularization, and Online Linear Programming

MAT016: Optimization

Section #2: Linear and Integer Programming

MODELING (Integer Programming Examples)

Theoretical questions and problems to practice Advanced Mathematics and Statistics (MSc course)

Resource Constrained Project Scheduling Linear and Integer Programming (1)

LINEAR PROGRAMMING: A GEOMETRIC APPROACH. Copyright Cengage Learning. All rights reserved.

NP-Completeness. NP-Completeness 1

Constrained Optimization

1 Strict local optimality in unconstrained optimization

MVE165/MMG630, Applied Optimization Lecture 6 Integer linear programming: models and applications; complexity. Ann-Brith Strömberg

Collaborative Filtering Matrix Completion Alternating Least Squares

Integer Programming and Branch and Bound

is called an integer programming (IP) problem. model is called a mixed integer programming (MIP)

Math 211 Business Calculus TEST 3. Question 1. Section 2.2. Second Derivative Test.

The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:

BLITZER LEARNING GUIDE SAMPLE

Linear Regression (continued)

Introduction to linear programming

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

1 Column Generation and the Cutting Stock Problem

Linear programming. Debrecen, 2015/16, 1st semester. University of Debrecen, Faculty of Business Administration 1 / 46

STA141C: Big Data & High Performance Statistical Computing

A Generalized Homogeneous and Self-Dual Algorithm. for Linear Programming. February 1994 (revised December 1994)

Equations and Inequalities

The P-vs-NP problem. Andrés E. Caicedo. September 10, 2011

min f(x). (2.1) Objectives consisting of a smooth convex term plus a nonconvex regularization term;

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

Machine Learning And Applications: Supervised Learning-SVM

Introduction to Optimization

Warm up: risk prediction with logistic regression

Lecture 10. Neural networks and optimization. Machine Learning and Data Mining November Nando de Freitas UBC. Nonlinear Supervised Learning

Improved Zero-sum Distinguisher for Full Round Keccak-f Permutation

Integer Linear Programming Modeling

Transcription:

Lecture Note 1: Introduction to optimization Xiaoqun Zhang Shanghai Jiao Tong University Last updated: September 23, 2017

1.1 Introduction 1. Optimization is an important tool in daily life, business and engineer: Running a business: to maximize profit, minimize loss, maximize efficiency, or minimize risk. Design: minimize the weight of a bridge, and maximize the strength, within the design constrains; airplane engineering such as shape design and material selection; packing transistors in a computer chip in a functional way. Planning: select a flight route to minimize time or fuel consumption of an airplane Supermarket pricing and logistic 2. Formal definition: to minimize (or maximize) a real function by deciding the values of free variables from within an allowed set. 3. Status of optimization: in last few decades, astonishing improvements in computer hardware and software motivated optimization modeling, algorithm designs, and implementation. Solving certain optimization problems has become standard techniques and everyday practice in businesses, science and engineering. It is now possible to solve certain optimization problems with thousands, millions and even thousands of millions of variables; optimization (along with statistics) has been the foundation of machine learning and big-data analytic. 4. Ingredients of successful optimization: modeling (turn a problem into one of the typical optimization formulations); algorithms an (iterative) procedure that leads you toward a solution (most optimization problems do not have a closed-form solution); software and hardware implementation: realize the algorithms and return numerical solutions. 5. Optimization formulation: mininize x (maximize) f(x) subject to x C minimize is often abbreviated as min ; decision variable is typically stated under minimize, unless obvious; subject to is often shorten as s.t. ; in linear and nonlinear optimization, feasible set C is represented by h i (x) = b i, i E(equality constraints) g j (x) b j, j I(inequality constrains) 2

6. First examples: An office furniture manufacturer wants to maximize the daily profit. Decide the daily number of desks and chairs that should be manufactured such that the profit is maximum. The required material and profit of manufacturer desks and chair is listed as followed: Each piece Required material Required labor Profit desk 10 5 20 chair 6 2 10 Total available 240 100 Problem: let the daily manufactured number of desks and chairs be x 1, x 2, solve max x 1,x 2 20x 1 +10x 2 s.t. 10x 1 +6x 2 240 5x 1 +2x 2 100 x 1,x 2 0 Find two nonnegative numbers whosesumis up to6sothattheir product is a maximum. ( find the largest area of a rectangular region provided that its perimeter is no greater than 12). Problem: let the two numbers be x,y, solve max x,y xy s.t. x+y = 6 x,y 0 Find a line that best fit three given points (x 1,y 1 ) = (2,1),(x 2,y 2 ) = (3,6) and (x 3,y 3 ) = (5,4). Problem: let the line equation be y = ax+b, in the following least square sense: min a,b 3 (ax i +b y i ) 2 = (2a+b 1) 2 +(3a+b 6) 2 +(5a+b 4) 2 i=1 Traveling sales man problem: A salesman needs to visit a number (n) of cities, denoted by city 1,2,,n. The distances between cities are known, i.e. d ij denotes the distance between city i and city j. The salesman wants to travel each city once in turn and in the meantime 3

minimize the total travel distance. What order should be used? Problem: denote the order of travelling by (i 1,,i n ), model n 1 min d ik,i k+1 k=1 s.t. (i 1,i 2,,i n ) is a permutation of (1,2,,n) 7. Classification of optimization problems 8. Convex programming: Continuous vs Discrete Constrained vs Unconstrained Global vs Local Stochastic vs Deterministic Convex vs Nonconvex minf(x) s.t. X C both f and C are convex. Special cases: linear programming minc T x s.t. Ax b;bx = d; least square problems (quadratic program): minx T Qx+c T x s.t. Ax b;bx = d; 9. Global vs local solution: solutions means optimal solution. Global solution x : f(x ) f(x) for all x C. Local solutions x : δ > 0 such that f(x ) f(x) for all x C and x x δ. A (global or local) solution x is unique if holds strictly as <. In general, it is difficult to tell if a local solution is global because algorithms can only check nearby points and have not clue of behaviors father way. Hence a solution may refer to a local solution. A local solution to a convexprogram if globally optimal. A LP is convex. A stationary point (where the derivatives is zero is also known as a solution, but it can be a maximization, minimization 10. Nonlinear program: min f(x) = (x 1 +x 2 ) 2 s.t.x 1 x 2 0 2 x 1 1 2 x 2 1 Decision variables, feasible set, objective, (box) constraints,global minimizer (x = ( 2, 2)) vs local minimizer (x = (1,1)). See the figure 10. 4

3 2 A 1 H D x (Local solution 4 3 F 2 1 E I 1 2 1 B 2 x g G (Global solution) C 3 4 5 Figure 1.1: Global solution vs. local solution 11. Optimization algorithms requirement Robustness: perform well on a wide variety of problem Efficiency: reasonable computer time or storage Accuracy: precision, not being sensitive to norms Using convex optimization problem: often difficult to recognize, many tricks for transforming problems into convex form, surprisingly many problems can be solved via convex optimization. 12. This course focuses on finding local solutions and, for convex programs, global solutions. Asking for global solutions is computationally intractable, in general. Many useful problems are convex, that is, a local solution is global In some applications, a local solution is an improvement from an existing point. Local solutions are OK. 13. We do not cover discrete optimization: Discrete variables often take binary or integer values, or values from a discrete set. Those problems are called discrete optimization. 5