Welcome to CPSC 4850/ OR Algorithms

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

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

Ch.03 Solving LP Models. Management Science / Prof. Bonghyun Ahn

Operations Research: Introduction. Concept of a Model

Linear Programming Duality

Review Questions, Final Exam

Integer Linear Programming Modeling

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

56:171 Operations Research Midterm Exam--15 October 2002

Linear programming: algebra

0.1 O. R. Katta G. Murty, IOE 510 Lecture slides Introductory Lecture. is any organization, large or small.

System Planning Lecture 7, F7: Optimization

Optimization Methods in Management Science

Lecture 11: Post-Optimal Analysis. September 23, 2009

Optimization Methods in Management Science

Integer programming: an introduction. Alessandro Astolfi

Do not turn this page until you have received the signal to start. Please fill out the identification section above. Good Luck!

MA 162: Finite Mathematics - Section 3.3/4.1

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

Econ 172A, Fall 2012: Final Examination (I) 1. The examination has seven questions. Answer them all.

INTEGER PROGRAMMING. In many problems the decision variables must have integer values.

MS-E2140. Lecture 1. (course book chapters )

Optimeringslära för F (SF1811) / Optimization (SF1841)

Linear Programming: Computer Solution and Sensitivity Analysis

Reconnect 04 Introduction to Integer Programming

Review Questions, Final Exam

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

CS599: Algorithm Design in Strategic Settings Fall 2012 Lecture 12: Approximate Mechanism Design in Multi-Parameter Bayesian Settings

Optimization Methods in Management Science

Duality Theory, Optimality Conditions

Linear Programming, Lecture 4

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

Sensitivity Analysis and Duality in LP

2. Linear Programming Problem

Answer the following questions: Q1: Choose the correct answer ( 20 Points ):

Linear Programming. H. R. Alvarez A., Ph. D. 1

Simplex Method for LP (II)

Optimization Models and Applications

Optimisation. 3/10/2010 Tibor Illés Optimisation

...(iii), x 2 Example 7: Geetha Perfume Company produces both perfumes and body spray from two flower extracts F 1. The following data is provided:

Activity Predecessors Time (months) A - 2 B A 6 C A 4 D B 4 E C 2 F B,D 1 G D,E 2 H C 1. dummy0 C4 E2

SAMPLE QUESTIONS. b = (30, 20, 40, 10, 50) T, c = (650, 1000, 1350, 1600, 1900) T.

AM 121: Intro to Optimization Models and Methods

Introduction to the Simplex Algorithm Active Learning Module 3

3E4: Modelling Choice

Introduction to Operations Research Economics 172A Winter 2007 Some ground rules for home works and exams:

Network Flows. 7. Multicommodity Flows Problems. Fall 2010 Instructor: Dr. Masoud Yaghini

Outline. Outline. Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING. 1. Scheduling CPM/PERT Resource Constrained Project Scheduling Model

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

Algebraic Simplex Active Learning Module 4

Resource Constrained Project Scheduling Linear and Integer Programming (1)

CHAPTER 11 Integer Programming, Goal Programming, and Nonlinear Programming

MATH 137 : Calculus 1 for Honours Mathematics Instructor: Barbara Forrest Self Check #1: Sequences and Convergence

MS-E2140. Lecture 1. (course book chapters )

Network Flows. 6. Lagrangian Relaxation. Programming. Fall 2010 Instructor: Dr. Masoud Yaghini

Fundamentals of Operations Research. Prof. G. Srinivasan. Indian Institute of Technology Madras. Lecture No. # 15

5 Integer Linear Programming (ILP) E. Amaldi Foundations of Operations Research Politecnico di Milano 1

Topic: Primal-Dual Algorithms Date: We finished our discussion of randomized rounding and began talking about LP Duality.

Linear Programming Applications. Transportation Problem

Example: 1. In this chapter we will discuss the transportation and assignment problems which are two special kinds of linear programming.

CS261: A Second Course in Algorithms Lecture #8: Linear Programming Duality (Part 1)

Introduction to Operations Research

Section Notes 8. Integer Programming II. Applied Math 121. Week of April 5, expand your knowledge of big M s and logical constraints.

Lecture 5 Simplex Method. September 2, 2009

Summary of the simplex method

LP Definition and Introduction to Graphical Solution Active Learning Module 2

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

Practice Questions for Math 131 Exam # 1

Lecture 5. x 1,x 2,x 3 0 (1)

MATH2070 Optimisation

Applications of Linear Programming - Minimization

SELECT TWO PROBLEMS (OF A POSSIBLE FOUR) FROM PART ONE, AND FOUR PROBLEMS (OF A POSSIBLE FIVE) FROM PART TWO. PART ONE: TOTAL GRAND

MATH36061 Convex Optimization

The Simplex Method of Linear Programming

SOLVING INTEGER LINEAR PROGRAMS. 1. Solving the LP relaxation. 2. How to deal with fractional solutions?

ORF 363/COS 323 Final Exam, Fall 2015

Chapter 2 Introduction to Optimization & Linear Programming

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

Integer Programming (IP)

Algorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on

Introduction to integer programming III:

Practice Final Exam Answers

Lecture 8 Network Optimization Algorithms

CSCI5654 (Linear Programming, Fall 2013) Lecture-8. Lecture 8 Slide# 1

Totally unimodular matrices. Introduction to integer programming III: Network Flow, Interval Scheduling, and Vehicle Routing Problems

MATH 445/545 Test 1 Spring 2016

56:171 Operations Research Fall 1998

CS 598RM: Algorithmic Game Theory, Spring Practice Exam Solutions

SYLLABUS SEFS 540 / ESRM 490 B Optimization Techniques for Natural Resources Spring 2017

Linear and Integer Programming - ideas

The Transportation Problem

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

MAT016: Optimization

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

PROJECT MANAGEMENT CHAPTER 1

MATH 1010 Assignment 2 Solutions 14R-T1

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

Optimization Methods in Management Science

MAC 2233, Survey of Calculus, Exam 3 Review This exam covers lectures 21 29,

Transcription:

Welcome to CPSC 4850/5850 - OR Algorithms 1 Course Outline 2 Operations Research definition 3 Modeling Problems Product mix Transportation 4 Using mathematical programming

Course Outline Instructor: Robert Benkoczi, D520. Resources: 1 Text: Operations Research (95), Katta Murty; highly recommended. 2 Papers on course web page. 3 Other links will be posted as necessary. 4 Tutorials & Octave manual (programming). Grading: Assignments: problem solving and coding. Paper presentation. A schedule of paper presentations will be posted on the course web page. Project: 3 weeks (view as a larger assignment); topics will be provided, but free to chose your own. Consult your instructor. Take home exam (24 or 48 h).

Course Outline GRADUATE VS UNDERGRADUATE WORK: Lectures: same. Assignments: extra questions for graduate students. Paper presentation: if you are undergraduate, guidance will be provided; talk to your instructor before choosing paper. Project: if you are undergraduate, consult your instructor before choosing project. Take home exam: extra questions for graduate students; same time for completing questions for both graduate & undergraduates.

What is OR? OR = techniques for optimizing the performance of systems. Example 1 Product mix problems: planning manufacturing process (maximize profit). 2 Machine scheduling (minimize completion time). 3 Matching problem (minimize cost of matching). 4 Generalized assignment problem: agents and tasks, cost & profit for tasks, budget for agents (maximize total profit) 5 Shortest paths in a weighted graph 6 Protein-lattice alignment (minimize total error). 7 Scheduling for courier company: assign people, vehicles, routes and jobs (maximize profit subject to capacity constraints) 8...

Approaches to solving optimization pb. 1 Using combinatorics 2 Using numerical variables and algebra/calculus (mathematical programming).

Approaches to solving optimization pb. 1 Using combinatorics 2 Using numerical variables and algebra/calculus (mathematical programming). Product mix (numerical by nature): Profits and requirements for products A,B A B Availability RM1 2 1 15 RM2 1 1 12 RM3 1 0 5 profit 15 10

Approaches to solving optimization pb. Profits and requirements for products A,B A B Availability RM1 2 1 15 RM2 1 1 12 RM3 1 0 5 profit 15 10 COMBINATORIAL ALGORITHM: maximize production for A (largest profit) produce B if materials left. Solution: 5 A and 5 B. Profit: 125.

Approaches to solving optimization pb. 15 x B x A 5 x A, x B : production (decision variables) OPT 2x A + x B 15 x A + x B 12 x A 5 7.5 2x A + x B 15 x A + x B 12 x A Max 15x A + 10x B (objective function) OPT profit: 135 at (3, 9)

Other examples. Transportation d j s i c ij Given Supply s i for source i; Demand t j for target j; Transportation cost c ij ; sources destinations Output Shipment x ij from source i to target j Objective Minimize transportation cost

Other examples. Transportation s i c ij d j Balanced transportation Total supply = total demand COMBINATORIAL ALGORITHMS: sources destinations Given Supply s i for source i; Demand t j for target j; Transportation cost c ij ; Output Shipment x ij from source i to target j Objective Minimize transportation cost

Other examples. Transportation s i c ij d j Balanced transportation Total supply = total demand COMBINATORIAL ALGORITHMS: sources destinations Brute force (enumeration): O(n m ) & split shipment (greedily?) Given Supply s i for source i; Demand t j for target j; Transportation cost c ij ; Output Shipment x ij from source i to target j Objective Minimize transportation cost

Other examples. Transportation s i c ij d j Balanced transportation Total supply = total demand sources Given Supply s i for source i; Demand t j for target j; Transportation cost c ij ; destinations COMBINATORIAL ALGORITHMS: Brute force (enumeration): O(n m ) & split shipment (greedily?) Gredy: find cheapest cost, satisfy corresponding demand fully, iterate. Output Shipment x ij from source i to target j Objective Minimize transportation cost

Other examples. Transportation s i c ij d j Balanced transportation Total supply = total demand sources Given Supply s i for source i; Demand t j for target j; Transportation cost c ij ; destinations COMBINATORIAL ALGORITHMS: Brute force (enumeration): O(n m ) & split shipment (greedily?) Gredy: find cheapest cost, satisfy corresponding demand fully, iterate. Not optimal! Output Shipment x ij from source i to target j Objective Minimize transportation cost

Other examples. Transportation s i c ij d j MATHEMATICAL PROGRAMMING: Decision variables x ij : shipment from i to j. sources destinations Given Supply s i for source i; Demand t j for target j; Transportation cost c ij ; Output Shipment x ij from source i to target j Objective Minimize transportation cost

Other examples. Transportation s i sources Given c ij Supply s i for source i; Demand t j for target j; Transportation cost c ij ; d j destinations MATHEMATICAL PROGRAMMING: Decision variables x ij : shipment from i to j. Constraints x ij = s i, j x ij = t j, i x ij 0. i j Output Shipment x ij from source i to target j Objective Minimize transportation cost

Other examples. Transportation s i sources Given c ij Supply s i for source i; Demand t j for target j; Transportation cost c ij ; Output d j destinations Shipment x ij from source i to target j MATHEMATICAL PROGRAMMING: Decision variables x ij : shipment from i to j. Constraints x ij = s i, j x ij = t j, i x ij 0. i j Objective min c ij x ij i j Objective Minimize transportation cost

How useful are mathematical programs? Computing the optimal solution.

How useful are mathematical programs? Computing the optimal solution. Values of slack variables at optimal solution: critical resource analysis.

How useful are mathematical programs? Computing the optimal solution. Values of slack variables at optimal solution: critical resource analysis. Marginal cost analysis: how to change supplies or requirements to improve the objective.

Slack variables at OPT Recall product mix problem: max 15x A + 10x B 2x A + x B 15 x A + x B 12 x A 5

Slack variables at OPT Recall product mix problem: max 15x A + 10x B 2x A + x B 15 x A + x B 12 x A 5 We can translate inequalities in equalities using slack variables (useful for LP algorithms like simplex). 2x A + x B + z 1 = 15 x A + x B + z 2 = 12 x A + z 3 = 5 z 1, z 2, z 2 0

Slack variables at OPT x B 2x A + x B + z 1 = 15 15 OPT x A 5 z 3 at OPT x A + x B + z 2 = 12 x A + z 3 = 5 z 1, z 2, z 2 0 7.5 level set for objective at OPT x x A + x B 12 A 2x A + x B 15 OPT value: 135 at (3, 9) z 3 = 2, z 1 = z 2 = 0 (slack variables show critical resources)

Marginal values x B 12 + ɛ OPT-2 d max 15x+10x B 2x A + x B 15 x A + x B 12 + ɛ x A 5 OPT x A + x B 12 + ɛ x A + x B 12 x A Obj: 15x A + 10x B Marginal value of constraint (2) is π 2 = 10d.

Marginal values x B 12 + ɛ OPT-2 d max 15x+10x B 2x A + x B 15 x A + x B 12 + ɛ x A 5 OPT x A + x B 12 + ɛ x A + x B 12 x A Obj: 15x A + 10x B Marginal value of constraint (2) is π 2 = 10d. Definition Marginal value of constraint (i) = change in optimal cost if RHS of (i) is perturbed by 1.

Marginal values Profits and requirements for products A,B A B Av.ity M.V x A x B RM1 2 1 15 π 1 RM2 1 1 12 π 2 RM3 1 0 5 π 3 profit 15 10

Marginal values Profits and requirements for products A,B A B Av.ity M.V x A x B RM1 2 1 15 π 1 RM2 1 1 12 π 2 RM3 1 0 5 π 3 profit 15 10 M.V. IN PLANNING: Should new product C be manufactured if it requires, say 2 units RM1, 1 unit RM2, and 1 unit RM3?

Marginal values Profits and requirements for products A,B A B Av.ity M.V x A x B RM1 2 1 15 π 1 RM2 1 1 12 π 2 RM3 1 0 5 π 3 profit 15 10 M.V. IN PLANNING: Should new product C be manufactured if it requires, say 2 units RM1, 1 unit RM2, and 1 unit RM3? Yes, if the sale profit of C is > 2π 1 + π 2 + π 3.