BA 452 Lesson B.3 Integer Programming 11ReadingsReadings Chapter 7 Integer Linear Programming.

Slides:



Advertisements
Similar presentations
Integer Optimization Basic Concepts Integer Linear Program(ILP): A linear program except that some or all of the decision variables must have integer.
Advertisements

BU Decision Models Integer_LP1 Integer Optimization Summer 2013.
BA 452 Lesson B.4 Binary Fixed Costs 11ReadingsReadings Chapter 7 Integer Linear Programming.
Lesson 08 Linear Programming
Planning with Linear Programming
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
1 1 BA 452 Lesson B.2 Transshipment and Shortest Route ReadingsReadings Chapter 6 Distribution and Network Models.
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Operations Management Linear Programming Module B - Part 2
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Kerimcan OzcanMNGT 379 Operations Research1 Integer Linear Programming Chapter 8.
BA 452 Lesson B.1 Transportation 1 1Review We will spend up to 30 minutes reviewing Exam 1 Know how your answers were graded.Know how your answers were.
An Introduction to Linear Programming : Graphical and Computer Methods
Transportation Problems Dr. Ron Tibben-Lembke. Transportation Problems Linear programming is good at solving problems with zillions of options, and finding.
Linear Programming Integer Linear Models. When Variables Have To Be Integers Example – one time production decisions –Fractional values make no sense.
1 1 Slide Chapter 14: Goal Programming Goal programming is used to solve linear programs with multiple objectives, with each objective viewed as a "goal".
D Nagesh Kumar, IIScOptimization Methods: M7L1 1 Integer Programming All Integer Linear Programming.
Review of Reservoir Problem OR753 October 29, 2014 Remote Sensing and GISc, IST.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Chapter 3 An Introduction to Linear Programming
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Readings Readings Chapter 2 An Introduction to Linear Programming.
FORMULATION AND GRAPHIC METHOD
(Not in text).  An LP with additional constraints requiring that all the variables be integers is called an all-integer linear program (IP).  The LP.
Linear programming. Linear programming… …is a quantitative management tool to obtain optimal solutions to problems that involve restrictions and limitations.
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
Introduction to Mathematical Programming OR/MA 504 Chapter 5 Integer Linear Programming.
Chapter 3 Introduction to Optimization Modeling
DECISION MODELING WITH MICROSOFT EXCEL Copyright 2001 Prentice Hall Publishers and Ardith E. Baker IntegerOptimization Chapter 6.
BA 452 Lesson A.8 Marketing and Finance Applications 1 1ReadingsReadings Chapter 4 Linear Programming Applications in Marketing, Finance, and Operations.
1 1 Slide © 2005 Thomson/South-Western Chapter 8 Integer Linear Programming n Types of Integer Linear Programming Models n Graphical and Computer Solutions.
1 1 Slide Integer Linear Programming Professor Ahmadi.
Readings Readings Chapter 3
1 1 Slide Integer Linear Programming Professor Ahmadi.
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
Spreadsheet Modeling & Decision Analysis:
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Types of IP Models All-integer linear programs Mixed integer linear programs (MILP) Binary integer linear programs, mixed or all integer: some or all of.
Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 6-1 Integer Linear Programming Chapter 6.
Chapter 7 Duality and Sensitivity in Linear Programming.
Linear Programming: Sensitivity Analysis and Interpretation of Solution Pertemuan 5 Matakuliah: K0442-Metode Kuantitatif Tahun: 2009.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
DISTRIBUTION AND NETWORK MODELS (1/2)
Linear Programming Models: Graphical and Computer Methods
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Integer LP In-class Prob
Highline Class, BI 348 Basic Business Analytics using Excel Chapter 08 & 09: Introduction to Linear Programing 1.
Integer Programming Key characteristic of an Integer Program (IP) or Mixed Integer Linear Program (MILP): One or more of the decision variable must be.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Chapter 8 Integer Linear Programming n Types of Integer Linear Programming Models n Graphical and Computer Solutions for an All- Integer Linear Program.
LINEAR PROGRAMMING.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
1 Linear Programming: Assumptions and Implications of the LP Model updated 18 January 2006 SMU EMIS 8374 Network Flows.
Introduction to Integer Programming Integer programming models Thursday, April 4 Handouts: Lecture Notes.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an.
An Introduction to Linear Programming
6.5 Stochastic Prog. and Benders’ decomposition
The Transportation Model
Slides by John Loucks St. Edward’s University.
Integer Linear Programming
Constraint management
Linear Programming Integer Linear Models.
6.5 Stochastic Prog. and Benders’ decomposition
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Integer Linear Programming
Presentation transcript:

BA 452 Lesson B.3 Integer Programming 11ReadingsReadings Chapter 7 Integer Linear Programming

BA 452 Lesson B.3 Integer Programming 22OverviewOverview

33Overview Rounding Off solutions in continuous variables to the nearest integer (like 2.67 rounded off to 3) is an unreliable way to solve a linear programming problem when decision variables should be integers. Sensitivity Analysis with Integer Variables is more important than with continuous variables because a small change in a constraint coefficient can cause a relatively large change in the optimal solution. Assignment Problems with Valuable Time minimize the total time of assigning workers to jobs. Minimizing total time is appropriate when each worker has the same value of time. Assignment Problems with Supply and Demand are Transportation Problems of suppliers to demanders except that each demand is assigned to exactly one supplier.

BA 452 Lesson B.3 Integer Programming 44 Tool Summary n Do not make integer restrictions, and maybe the variables at an optimum will be integers. First Example: P i = (integer) number of producers in month i. First Example: P i = (integer) number of producers in month i. n Use compound variables: First Example: P i = number of producers in month i First Example: P i = number of producers in month i n Use dynamic or recursive constraints: First Example: Define the constraint that the number of apprentices in a month must not exceed the number of recruits in the previous month: A 2 - R 1 < 0; A 3 - R 2 < 0 First Example: Define the constraint that the number of apprentices in a month must not exceed the number of recruits in the previous month: A 2 - R 1 < 0; A 3 - R 2 < 0 n Constrain one variable to be a proportional to another variable: First Example: Define the constraint that each trainer can train two recruits: 2T 1 - R 1 > 0; 2T 2 - R 2 > 0 First Example: Define the constraint that each trainer can train two recruits: 2T 1 - R 1 > 0; 2T 2 - R 2 > 0 n Use inventory variables: Second Example: P2 + I1–I2 = 150 (production-net inventory = demand) Second Example: P2 + I1–I2 = 150 (production-net inventory = demand)Overview

BA 452 Lesson B.3 Integer Programming 55 Tool Summary n Use binary variables to model fixed cost constraints. For example, consider a linear programming problem with a constraint For example, consider a linear programming problem with a constraint M1 < 15M1 < 15 Introduce binary variable U1 and constraints: Introduce binary variable U1 and constraints: M1 > 5 U1M1 > 5 U1 15U1 > M115U1 > M1 Then, U1 = 1 if M1 > 0, and either M1 = 0 or M1 > 5. Then, U1 = 1 if M1 > 0, and either M1 = 0 or M1 > 5. n Do not try to solve an integer linear program by rounding off (up or down) a solution to the problem without integer constraints. Rather, graph all feasible integer solutions and use iso-value linear, or use the Management Scientist module. Tool Summary

BA 452 Lesson B.3 Integer Programming 66 Rounding Off

BA 452 Lesson B.3 Integer Programming 77 Overview Rounding Off solutions in continuous variables to the nearest integer (like 2.67 rounded off to 3) is an unreliable way to solve a linear programming problem when decision variables should be integers. Rounding Off

BA 452 Lesson B.3 Integer Programming 88 n A LP in which all the variables are restricted to be integers is called an all-integer linear program (ILP). n The LP that results from dropping the integer requirements is called the LP Relaxation of the ILP. n If only a subset of the variables are restricted to be integers, the problem is called a mixed-integer linear program (MILP). n Binary variables are variables whose values are restricted to be 0 or 1. If all variables are restricted to be 0 or 1, the problem is called a 0-1 or binary integer linear program. Rounding Off

BA 452 Lesson B.3 Integer Programming 99 n Solve the following all-integer linear program, and compare that solution to the problem where the decision variables do not have to be integers: Max 3x 1 + 2x 2 Max 3x 1 + 2x 2 s.t. 3x 1 + x 2 < 9 s.t. 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < 7 -x 1 + x 2 < 1 -x 1 + x 2 < 1 x 1, x 2 > 0 and integer x 1, x 2 > 0 and integer Rounding Off

BA 452 Lesson B.3 Integer Programming 1010 n LP Relaxation. If we drop the integer constraints, we can graph the optimal solution to the linear program. And the optimal solution has fractional values: x 1 = 2.5, x 2 = 1.5, Max 3x 1 + 2x 2 = 10.5 Max 3x 1 + 2x 2 s.t. 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < 7 -x 1 + x 2 < 1 -x 1 + x 2 < 1 x 1, x 2 > 0 and integer x 1, x 2 > 0 and integer LP Optimal (2.5, 1.5) Max 3x 1 + 2x 2 Max 3x 1 + 2x 2  x 1 + x 2 < 1 x2x2x2x2 x1x1x1x1 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < Rounding Off

BA 452 Lesson B.3 Integer Programming 1111 n Rounding Up. If we round up the fractional solution (x 1 = 2.5, x 2 = 1.5) to the previous relaxed LP problem, we get x 1 = 3 and x 2 = 2. But the graph shows those values are infeasible. Max 3x 1 + 2x 2 s.t. 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < 7 -x 1 + x 2 < 1 -x 1 + x 2 < 1 x 1, x 2 > 0 and integer x 1, x 2 > 0 and integer ILP Infeasible (3, 2) ILP Infeasible (3, 2) LP Optimal (2.5, 1.5) Max 3x 1 + 2x 2 Max 3x 1 + 2x 2  x 1 + x 2 < 1 x2x2x2x2 x1x1x1x1 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < Rounding Off

BA 452 Lesson B.3 Integer Programming 1212 n Rounding Down. By rounding the non-integer solution down to x 1 = 2, x 2 = 1, we have a feasible solution, with objective function 3x 1 + 2x 2 = 8. But that solution is not optimal for the integer program. Max 3x 1 + 2x 2 s.t. 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < 7 -x 1 + x 2 < 1 -x 1 + x 2 < 1 x 1, x 2 > 0 and integer x 1, x 2 > 0 and integer ILP Optimal (3, 0) Max 3x 1 + 2x 2 Max 3x 1 + 2x 2  x 1 + x 2 < 1 x2x2x2x2 x1x1x1x1 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < n Optimal ILP solution. The optimal ILP solution (3,0) is not the closest feasible point to the non-integer solution (2.5,1.5). Rounding Off

BA 452 Lesson B.3 Integer Programming 1313 x 1 x 2 3x 1 + 2x 2 x 1 x 2 3x 1 + 2x optimal solution optimal solution Max 3x 1 + 2x 2 s.t. 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < 7 -x 1 + x 2 < 1 -x 1 + x 2 < 1 x 1, x 2 > 0 and integer x 1, x 2 > 0 and integer n Exhaustive Search. One way to solve the integer linear program is to evaluate the objective function at each feasible solution. There are 8 alternative feasible solutions in Example 1. Rounding Off

BA 452 Lesson B.3 Integer Programming 1414 Max 3x 1 + 2x 2 s.t. 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < 7 -x 1 + x 2 < 1 -x 1 + x 2 < 1 x 1, x 2 > 0 and integer x 1, x 2 > 0 and integer Rounding Off

BA 452 Lesson B.3 Integer Programming 1515 Max 3x 1 + 2x 2 s.t. 3x 1 + x 2 < 9 x 1 + 3x 2 < 7 x 1 + 3x 2 < 7 -x 1 + x 2 < 1 -x 1 + x 2 < 1 x 1, x 2 > 0 and integer x 1, x 2 > 0 and integer ILP Optimal (3, 0) Rounding Off

BA 452 Lesson B.3 Integer Programming 1616 Sensitivity Analysis with Integer Variables

BA 452 Lesson B.3 Integer Programming 1717 Overview Sensitivity Analysis with Integer Variables is more important than Sensitivity Analysis with Continuous Variables because a small change in a constraint coefficient can cause a relatively large change in the optimal solution, and in the objective-function value of the optimal solution. Sensitivity Analysis with Integer Variables

BA 452 Lesson B.3 Integer Programming 1818 n Sensitivity analysis often is more crucial for ILP problems than for LP problems. n A small change in a constraint coefficient can cause a relatively large change in the optimal solution, and the objective-function value of the optimal solution. n Recommendation: Resolve the ILP problem several times with slight variations in the coefficients before choosing the “best” solution for implementation. Sensitivity Analysis with Integer Variables

BA 452 Lesson B.3 Integer Programming 1919 Sensitivity Analysis Max 3x 1 + 2x 2 = 9 at old optimum (3,0) x2x2x2x2 x1x1x1x Max 3x 1 + 2x 2 = 10 at new optimum (2,2) A small change in the constraints (adding the red feasible area) can cause a jump in the objective function at the optimum, from 9 to 10.

BA 452 Lesson B.3 Integer Programming 2020 Assignment with Valuable Time

BA 452 Lesson B.3 Integer Programming 2121 Overview Assignment Problems with Valuable Time minimize the total time of assigning workers to jobs. Minimizing total time is appropriate when each worker has the same value of time. Assignment with Valuable Time

BA 452 Lesson B.3 Integer Programming 2222 Question: The NPD Group is a market research firm with three clients that each request the firm conduct a sample survey. Four statisticians can be assigned to these three projects; however, all four are busy, and therefore can handle only one client. The following are the number of hours required for each statistician to complete each job. The differences in time are based on experience and ability of the statisticians. Assignment with Valuable Time Client A Client B Client C Statistician Statistician Statistician Statistician

BA 452 Lesson B.3 Integer Programming 2323 What is the most natural objective function for the firm to optimize? Formulate the firm’s optimization problem. Are there any implicit assumptions in your formulation? Assignment with Valuable Time

BA 452 Lesson B.3 Integer Programming 2424 Answer: Linear programming formulation (supply inequality, demand equality). n Variables: Xij = 1 if Statistician i is assigned to Client j, else 0 n Objective (minimize time, assuming all time values equal): Min 150X X X X X X X X X X X X X X X X X X43 n Supply Constraints (Statisticians to at most 1 Client): X11 + X12 + X13 < 1, X21 + X22 + X23 < 1, X31 + X32 + X33 < 1, X41 + X42 + X43 < 1 n Demand Constraints (each Client served): X11 + X21 + X31 + X41 = 1 X12 + X22 + X32 + X42 = 1 X13 + X23 + X33 + X43 = 1 Assignment with Valuable Time

BA 452 Lesson B.3 Integer Programming 2525 Assignment with Supply and Demand

BA 452 Lesson B.3 Integer Programming 2626 Overview Assignment Problems with Supply and Demand are Transportation Problems of suppliers to demanders except that each demand is assigned to exactly one supplier. Assignment with Supply and Demand

BA 452 Lesson B.3 Integer Programming 2727 Question: Dow Chemical uses the chemical Rbase in production operations at five divisions. Only six suppliers of Rbase meet Dow’s quality standards. The quantity of Rbase needed by each Dow division and the price per gallon charged by each supplier are as follows: Assignment with Supply and Demand Price per Gallon ($) Sup Sup Sup Sup Sup Sup Demand (1000s of gallons) Div 140 Div 245 Div 350 Div 435 Div 545

BA 452 Lesson B.3 Integer Programming 2828 The cost per gallon ($) for shipping from each supplier to each division are as follows: Assignment with Supply and Demand CijDiv 1Div 2Div 3Div 4Div 5 Sup Sup Sup Sup Sup Sup

BA 452 Lesson B.3 Integer Programming 2929 Dow wants to diversify by spreading its business so that each division’s demand is assigned to exactly one supplier. Formulate the optimal assignment of suppliers to divisions as a linear-programming problem. Assignment with Supply and Demand

BA 452 Lesson B.3 Integer Programming 3030 Answer: Linear programming formulation (supply inequality, demand equality). n Variables: Xij = 1 if Supplier i is assigned to Division j, else 0 n Assignment Costs n The total cost is the sum of the purchase cost and the transportation cost. n Supplier 1 assigned to Division 1 (cost in $1000s): n Purchase cost: (40 x $12.60) = $504 n Transportation Cost: (40 x $2.75) = $110 n Total Cost: $614 Assignment with Supply and Demand

BA 452 Lesson B.3 Integer Programming 3131 n Assignment Costs: Cij = Cost of assigning Supplier i to Division j CijDiv 1Div 2Div 3Div 4Div 5 Sup Sup Sup Sup Sup Sup Assignment with Supply and Demand

BA 452 Lesson B.3 Integer Programming 3232 Linear programming formulation (supply inequality, demand equality). n Objective (minimize cost): Min  Cij Xij n Demand Constraints (since each division’s demand is assigned to exactly one supplier): X11 + X21 + X31 + X41 + X51 + X61 = 1 X12 + X22 + X32 + X42 + X52 + X62 = 1 X13 + X23 + X33 + X43 + X53 + X63 = 1 X14 + X24 + X34 + X44 + X54 + X64 = 1 X15 + X25 + X35 + X45 + X55 + X65 = 1 Assignment with Supply and Demand

BA 452 Lesson B.3 Integer Programming 3333 Optional: There is no mention of supply constraints, which are common in assignment problems. Here is what those common constraints would be in this problem. n Supply Constraints (Each supplier can supply at most 1 Division): X11 + X12 + X13 + X14 + X15 < 1 X21 + X22 + X23 + X24 + X25 < 1 X31 + X32 + X33 + X34 + X35 < 1 X41 + X42 + X43 + X44 + X45 < 1 X51 + X52 + X53 + X54 + X55 < 1 X61 + X62 + X63 + X64 + X65 < 1 Assignment with Supply and Demand

BA 452 Lesson B.3 Integer Programming 3434 BA 452 Quantitative Analysis End of Lesson B.3