Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Chapter 3 Applications of Linear and Integer Programming Models - 1.

Similar presentations


Presentation on theme: "1 Chapter 3 Applications of Linear and Integer Programming Models - 1."— Presentation transcript:

1 1 Chapter 3 Applications of Linear and Integer Programming Models - 1

2 2 3.1 The Evolution of Linear Programming Models in Business and Government Many examples are presented that demonstrate the successful application of linear and integer programming. Our goals are to: –Examine potential application areas –Develop good modeling skills –Illustrate the use of spreadsheets to generate results –Interpret properly and analyze spreadsheet results

3 3 Examples of Linear Programming Models in Business and Government An optimal portfolio Optimal scheduling of personnel An optimal blend of raw crude oils A minimized cost diet An operation and shipping pattern The optimal production levels

4 4 The optimal assignment of fleets to flights How to best expand a communication network An efficient air-pollution control system An agricultural resource allocation plan The set of public projects to select Examples of Linear Programming Models in Business and Government

5 5 Three important factors may affect the successful process of building good models: –Familiarity –Simplicity –Clarity 3.2 Building Good Linear and Integer Programming Models

6 6 Many times the use of summation variables (representing the sum of all or of part of the decision variables) along with the summation constraints associated with them, may simplify models’ formulation. See the following example. Summation Variables / Constraints

7 7 Example –Three television models are to be produced. –Each model uses 2, 3, and 4 pounds of plastic respectively. –7000 pounds of plastic are available. –No model should exceed 40% of the total quantity produced. –The profit per set is $23, $34, and $45 respectively. –Find the production plan that maximizes the profit.

8 8 Solution Max 23X 1 + 34X 2 + 45X 3 S.T. 2X 1 +3X 2 + 4X 3  Without summation variables X 1 .4(X 1 + X 2 + X 3 ) X 2 .4(X 1 + X 2 + X 3 ) X 3 .4(X 1 + X 2 + X 3 ) X 1, X 2, X 3  With summation variables X 1 + X 2 + X 3 = X 4 X 1 .4X 4 X 2 .4X 4 X 3 .4X 4 X 1, X 2, X 3  Summation Variables / Constraints

9 9 Summation variables/constraints – TV production spreadsheet =SUM(B2:D2) Total production Decision Variables Percentag e Constraint s Plastic Constraint

10 10   –Bring the expression to the form: (Expression) [Relation] (Constant) A checklist for building linear models A + 2B 2A + B +10 - A + B 10 –Formulate a relationship / function in words before formulating it in mathematical terms. (Expression) [Has some relation to] (Another expression or constant)

11 11 A checklist for building linear models –Keep the units on both sides of the expressions consistent –Use summation variables when appropriate –Indicate which variables are  Non-negative  Integers  Binary

12 12 The modeling of real problems is illustrated in this section. Examples include: –Production –Purchasing –Finance –Cash flow accounting 3.4 Applications of Linear Programming Models

13 13 The modeling of real problems is illustrated in this section. Examples include: –Production –Purchasing –Finance –Cash flow accounting Emphasis is given to: –Various application area, –Model development, –Spreadsheet design, –Analysis and interpretation of the output. 3.4 Applications of Linear Programming Models

14 14 These models can assist managers in making decision regarding the efficient utilization of scarce resource. Applications include: –Determining production levels –Scheduling shifts –Using overtime –The cost effectiveness of adding resources 3.4.1 Production Scheduling Models

15 15 Galaxy Industries Expansion Plan Galaxy Industries is planning to increase its production and include two new products Data –Up to 3000 pounds of plastic will be available. –Regular time available will be 40 hours. –Overtime available will be 32 hours. –One hour of overtime costs $180 more than one hour of regular time.

16 16 Data - continued –Two new products will be introduced: Big Squirts Soakers –Marketing requirements: Space Rays should account for exactly 50% of total production. No other product should account for more than 40% of total production. Total production should increase to at least 1000 dozen per week. Galaxy Industries Expansion Plan The old products are: Space rays Zappers

17 17 Data - Continued PlasticProduction ProductProfit(lbs) Time (min) Space Rays $1623 Zappers $1514 Big Squirts $2035 Soakers $2246 PlasticProduction ProductProfit(lbs) Time (min) Space Rays $1623 Zappers $1514 Big Squirts $2035 Soakers $2246 Management wants to maximize the Net Weekly Profit. A weekly production schedule must be determined. Galaxy Industries Expansion Plan

18 18 Decision Variables. X 1 = number of dozen Space Rays, X 2 = number of dozen Zapper, X 3 = number of dozen Big Squirts X 4 = number of dozen Soakers, to be produced weekly X 5 = number of hours of overtime to be scheduled Galaxy Industries Expansion Plan – Solution

19 19 Objective Function –The total net weekly profit from the sale of products, less the extra cost of overtime, to be maximized. Maximize 16X 1 +15X 2 +20X 3 +22X 4 - 180X 5 Galaxy Industries Expansion Plan – Solution

20 20 Constraints Galaxy Industries Expansion Plan – Solution

21 21 Introduce the summation Variable X 6, that helps in setting up the production mix constraints X6 = total weekly production (in dozens ), X6 = X1+X2+X3+X4, or X1+X2+X3+X4 -X6 =0 Galaxy Industries Expansion Plan – Solution

22 22 Galaxy Industries Expansion Plan

23 23 The Complete Mathematical Model Max 16X 1 + 15X 2 + 20X 3 + 22X 4 – 180X 5 S.T. 2X 1 + 1X 2 + 3X 3 + 4X 4  3X 1 + 4X 2 + 5X 3 + 6X 4 – 60X 5  2400 X 5  32 1X 2  200 X 1 + X 2 +X 3 + X 4 - - X 6 = 0 X 1 -.5X 6 =0 X 2 -.4X 6 =0 X 3 -.4X 6 = 0 X 4 -.4X 6 =0 X 6  1000 X j are non-negative Galaxy Industries Expansion Plan

24 24 =SUM(B4:E4) Percentage Constraints SUMPRODUCT($B$4:$F$4,B6,F6) Drag to G7:G10 Galaxy Industries Expansion Plan

25 25 Galaxy Industries Expansion Plan

26 26 3.4.2 Portfolio Models Portfolio models are usually designed to: –Maximized return on investment, –Minimize risk. Factors considered include: –Liquidity requirements, –Long and short term investment goals, –Funds available.

27 27 Jones Investment Charles’ Evaluation

28 28 Jones Investment Portfolio goals – Expected annual return of at least 7.5%. – At least 50% invested in “A-Rated” investments. – At least 40% invested in immediately liquid investments. – No more than $30,000 in savings accounts and certificates of deposit. Problem summary – Determine the amount to be placed in each investment. – Minimize total overall risk. – Invest all $100,000. – Meet the investor goals (diversify).

29 29 Variables X i = the amount allotted to each investment; The Mathematical Model Minimize 25X 3 +30X 4 +20X 5 +15X 6 +65X 7 + 40X 8 ST: X 1 + X 2 + X 3 + X 4 + X 5 + X 6 + X 7 + X 8 = 100,000.04X 1 +.052X 2 +.071X 3 +.10X 4 +.082X 5 +.056X 6 +.27X 7 +.125X 8  7500 X 1 + X 2 + X 5 + X 7  50,000 X 1 + X 3 + X 4 + X 7 + X 8  40,000 X 1 +X 2  30,000 All the variables are non-negative Risk function Total investment Return A - Rate Liquid Savings/ Certificate Jones Investment – Solution

30 30 =SUM(B5:B12) =SUMPRODUCT(B5,B12,C5:C12) =SUMIF(E5:E12,"A",B5:B12) =SUMIF(F5:F12,"Immediate",B5:B12) =SUMPRODUCT(B5,B12,D5:D12) =B5+B6 Jones Investment - Spreadsheet

31 31 Jones Investment - Spreadsheet

32 32 Jones Investment - Spreadsheet

33 33 Governments in the public sector are charged with distributing resources for the public good. The public good can be measured by –Traditional objectives (i.e. cost minimization), –Specific functions developed to measure the public satisfaction or preference. The constraints represent (among others) – Resource availability, –Social issues (diversity, equality) 3.4.3 Public Sector Models

34 34 St. Joseph Inspection Problem St. Joseph Public Utility Commission needs to inspect and report utility problems in a flood area. Experts are assigned to inspect: Homes Offices Plants Three types of inspection will be conducted: Electrical Gas Insulation

35 35 Problem Summary –St. Joseph Public Utility Commission needs to determine the number of homes, office complexes, and plants to be inspected. –The objective is to maximize the total number of structures inspected, under certain requirements. St. Joseph Inspection Problem

36 36 Data –Requirements At least eight offices and eight plants must be inspected. At least 60% of the inspections should involve private homes. –Resources At most, 120 hours can be allocated for electrical inspections. At most 80 hours can be allocated for gas inspection. At most 100 consulting hours can be allocated for insulation inspection. St. Joseph Inspection Problem

37 37 Variables –X 1, X 2, X 3 = number of homes, office complexes, and industrial plants to be inspected, respectively. –X 4 = a summation variable: The total number of structures to be inspected. The Complete Mathematical Model Maximize X 4 ST:X 1 + X 2 + X 3 - X 4 = 0 (Summation) X 2  8 (Min. Office) X 3  8 (Min. Plants) X 1 -.6X 4  0 (At least 60% Homes) 2X 1 + 4X 2 + 6X 3  120 (Electrical) 1X 1 + 3X 2 + 3X 3  80 (Gas) 3X 1 + 2X 2 + 1X3  100 (Insulation) X 1, X 2, X 3  0 St. Joseph Inspection Problem – Solution

38 38 St. Joseph Inspection Problem – Solution

39 39 The problem is properly formulated, but there is no feasible solution to the problem. Here is why... Infeasible Solution St. Joseph Inspection Problem – Solution

40 40 Even when the smallest number allowed of offices and plants are inspected, the number of houses that can be inspected with the given resources is too small. Here is the reasoning. St. Joseph Inspection Problem spreadsheet

41 41 St. Joseph Inspection Problem – the infeasibility Recall that X 2  8 and X 3  8. Let X 2 = 8 (offices) and X 3 = 8 (plants). That is, take their minimum feasible value. Hours used on electrical inspection for offices and plants are 4(8) + 6(8) = 80. Hours left over to inspect houses are 120 – 80 = 40, thus at most 40/2 = 20 houses can be inspected. Total number of structures inspected is 8+8+20=36, of which houses are only 20/36 = 55.55% This is less than the 60% required.

42 42 The revised problem St. Joseph Inspection Problem – Solution Suppose the commission would accept 6 offices and 6 plants.

43 43 3.4.4 Purchasing Modeling These models can consider: –Demand –Budget –Cash flow –Advertising –Inventory restrictions. In solving purchasing problems, we attempt to balance customer satisfaction with resource utilization by the business enterprise.

44 44 Euromerica Liquor Purchasing Problem Euromerica Liquors purchases and distributes a number of wines to retailers. There are four different wines to be ordered. Requirements –Order at least 800 of each type. –Order at least twice as many domestic bottles as imported bottles.

45 45 Data: Management wishes to determine how many bottles of each type to order. The objective is to maximize the total profit from purchasing and distributing the wine bottles. Euromerica Liquor Purchasing Problem

46 46 Variables X 1 = bottles of Napa Gold purchased X 2 = bottles of Cayuga Lake purchased X 3 = bottles of Seine Soir purchased X 4 = bottles of Bella Bella purchased. Euromerica Liquor Purchasing Problem – Solution

47 47 The Mathematical Model Maximize 1.75X 1 + 1.50X 2 + 3X 3 + 2X 4 ST: X 1  800 X 2  800 X 3  800 X 4  800 X 1 + X 2 - 2X 3 - 2X 4  0 X 1, X 2, X 3, X 4  0 $4.25 - $2.50 = $1.75 [Domestic wines] [ Are at least] [ Twice the imported wines] Euromerica Liquor Purchasing Problem – Solution

48 48 Euromerica Liquor Purchasing Problem – Solution

49 49 An Unbounded solution Euromerica Liquor Purchasing Problem – Solution

50 50 The revised model: Given budget, limited supply, and limited demand Maximize 1.75X 1 +1.50X 2 +3X 3 + 2X 4 ST: X 1  800 X 2  800 X 3  800 X 4  800 X 1 + X 2 -2X 3 - 2X 4  0 2.50X 1 + 3.00X 2 +5X 3 + 4X 4  28000(Budget) X 1  3600 (Napa) X 3  2400 (Seine) X 1 + X 2 +X 3 + X 4  10000 (Total) X 1, X 2, X 3, X 4  0 Euromerica Liquor Purchasing Problem – Revised Solution

51 51 Euromerica Liquor Purchasing Problem – Solution

52 52 Solution Summary

53 53 3.4.5Blending Models Blending models were successfully implemented first by the oil industry. Blending problems have the following characteristics: –Each of several products have certain specifications that must be met. –The products can be produced by blending various components, each with different properties of its own. –The problem is to find the least costly (most profitable) blends that meet the requirements and specifications of all the products.

54 54 United Oil Company United Oil blends two input streams of crude oil –Alkylate –Catalytic Cracked. The outputs of the blending process are –Regular gasoline. –Mid-Grade gasoline. –Premium gasoline.

55 55 Restrictions –Weekly supply of Crude oil is limited. –Contracted weekly demand for commercial gasoline has to be met. –To classify gasoline as Regular, Mid-Grade, or Premium, certain levels (specifications) of octane and vapor pressure must be met. Profit per barrel of each type of commercial gasoline depends on the blend it was made of. United Oil Company

56 56 Data Crude Oil Product Data Blended Gasoline Data United Oil Company

57 57 Problem Summary –Determine how many barrels of catalytic cracked to blend into regular, mid – grade, and premium each week. –Maximize total weekly profit. –Remain within raw gas availability. –Meet contract requirements. –Produce gasoline blends that meet the octane and vapor pressure requirements. United Oil Company

58 58 Decision Variables X 1, X 2, X 3 = number of barrels of Alkylate blended each week into Regular, Mid-Grade, and Premium gas respectively. Y 1, Y 2, Y 3 = number of barrels of Catalytic Cracked blended each week into Regular Mid-Grade, and Premium respectively. R, M, P = barrels of Regular, Mid-Grade, Premium respectively, produced weekly (summation variables). United Oil Company – Solution

59 59 The Mathematical Model Max –1X 1 + 1X 2 + 4X 3 +2Y 1 +4Y 2 + 7Y 3 1X 1 +1X 2 +1X 3  15000 1Y 1 +1Y 2 +1Y 3  15000 1X 1 +1Y 1 -R=0 1X 2 +1Y 2 -M=0 1X 1 +1Y 1 -P=0 R  12000  M  7500 P  4500 98X 1 +86Y 1  87R  0 98X 2 + 86Y 2  89M  0 98X 3 +86Y 3  92P  0 Click for more constraints 5x 1 + 9Y 1 –9R  0 5X 2 + 9Y 2 – 7M  0 5X 3 + 9Y 3 –6P  0 All the variables are non-negative 5x 1 + 9Y 1 –9R  0 5X 2 + 9Y 2 – 7M  0 5X 3 + 9Y 3 –6P  0 All the variables are non-negative United Oil Company – Solution

60 60 United Oil Company – Solution

61 61 Crude Availability Blended Requirements Total Profit Vapor Pr. Constraints (Hidden) Octane Constraints (Hidden) Decision Variables United Oil Company – Solution

62 62 These models cover a planning horizon of several periods. Linking constraints secure the proper transfer of quantities from one period to the next one. The form of these constraints is: Amount this period = Amount last period + Inflow for the period – Outflow for the period These models are useful for accounting analysis. Appendix 3.2 (CD): Cash Flow Models

63 63 Appendix 3.2 (CD): Cash Flow Models For example: Cash t = Cash t-1 + [Interest paid] t – [Loan repaid] t t-1 t 100 -20 +30 110 110 = 100 + 30 – 20

64 64 Data –There are $9 million available for short-term investments over a period of five months (it is now January 1). –There are three possible investments. –Interest earned on each investment is: 0.7% over two months for two month term account. 1.5% over three months for three months construction loan. 0.2% per one-month period for passbook saving account. –Funds invested in term account are not liquid before the term ends. –Interest earned on investment before it is matured is calculated proportionately to the term rate. The Powers Group Cash Flow Problem

65 65 Objective function – Maximize the book value at the end of May. Constraints –No more than $4 million should be invested in any one of the three short term investments. –Total investment each month in the liquid passbook account should be at least $2 million. –Cash available at the end of each month should be at least $3.5 million. –Cash available at the end of May should be at least $5 million. The Powers Group Cash Flow Problem

66 66 Decision variables –T j = the amount of funds invested in the 2 month term account at the beginning of month j = 1, 2,…, 6 (j=1, Jan.) –C j = the amount of funds invested in construction loan at the beginning of month j = 1, 2,…, 6 (j=1, Jan.) –P j = the amount of funds invested in passbook saving account at the beginning of month j = 1, 2,…, 6 (j=1, Jan.) –Summation variables: see next slide The Powers Group Cash Flow Problem – Solution

67 67 Summation variables TT j = TT j-1 –T j-2 + T j TC j = TC j-1 – C j-3 + C j TP j = P j The Powers Group Cash Flow Problem – Solution

68 68 Objective function Book value consists of cash, and proportionate interest paid on investments before maturity. 1.007T 4 + 1.0035T 5 + 1.015C 3 + 1.010C 4 + 1.005C 5 +1.002P 5 Half of the full two months interest is considered at the end of May for a 2-month term investment made at the beginning of May..0035 May 1 June 1 The Powers Group Cash Flow Problem – Solution

69 69 Constraints –Not more than $4,000,000 can be invested in any investment TT j  4,000,000;  TC j  4,000,000  TP j  4,000,000 –Total in Passbook Saving is at least $2,000,000 TP j  2,000,000 –Total investment at the beginning of each month = cash available for investment at the end of the previous month. T j + C j + P j = L j-1 Then, L j  3,500,000  for j=Feb, March, …) and L 1 = 9,000,000. Also L 5  5,000,000 The Powers Group Cash Flow Problem – Solution

70 70 The Powers Group Cash Flow Problem - spreadsheet =1.007*H6+1.015*G7+1.002*I8 Drag back to E9:H9 =H13+I6-G6 =H14+I&7-G7 =I8 Drag back to column E:H =1.007*H6+1.0035*I6+1.015*G7+ 1.01*H7+1.005*I7+1.002*I8 Drag back to E16:H16 =(I16 – E18)/E18*(12/5) =Sum(I6:I8) Drag back to E5:H5

71 71 Appendix 3.3 (CD): Data Envelopment Analysis Models Relative efficiency = In these models the relative efficiency of facilities with similar goals and objectives is studied. The relative efficiency is calculated as a ratio of outputs to inputs. Weighted sum of outputs Weighted sum of inputs

72 72 Sir Loin Restaurants - DEA KATTLECORP Inc. owns and operates four restaurants located in different states. The restaurants are of different size, personnel, and traffic density. KATTLECORP wishes to determine which restaurant operates efficiently.

73 73 Sir Loin Restaurants - DEA To calculate efficiency KATTLECORP needs to compare input to output in each restaurant Input –Capacity –# of employees –Population around Output –Gross revenue –% of returning customers –Food rating

74 74 Data Sir Loin Restaurants - DEA Population within 10 miles around the restaurant location Customer survey: 1. Would you return to this restaurant? 2. Rate the food on a scale of 0 – 10.

75 75 Decision variables –X 1, X 2, X 3 = relative input weight for capacity, number of employee, and service area respectively –Y 1, Y 2, Y 3 = relative input weight for gross revenue, repeat business, and food rating respectively Sir Loin Restaurants – Solution

76 76 Objective function Maximize the efficiency for the Columbia restaurant Max, which becomes Sir Loin Restaurants – Solution 354000Y 1 + 88Y 2 + 7.5Y 3 152X 1 + 48X 2 + 275000X 3 Since we maximize the ratio, the denominator can be selected as equal to 1, without loss of generality. Max 354000Y 1 + 88Y 2 + 7.5Y 3 S.T. 152X 1 + 48X 2 + 275000X 3 = 1, and other constraints shown next…

77 77 Constraints –We have already established that 152X 1 + 48X 2 + 275000X 3 = 1 –In general, we require that the efficiency of each restaurant is not greater than 1. Output/input  1, or,Output  Input  –604000Y 1 +89Y 2 +7.3Y 3  213X 1 +52X 2 +650000X 3 (Tampa) 663000Y 1 +85Y 2 +6.8Y 3  265X 1 + 5X 2 +900000X 3 (Atlanta) 375000Y 1 +94Y 2 +9.1Y 3  157X 1 +40X 2 +200000X 3 (Mobile) 354000Y 1 +88Y 2 +7.5Y 3  152X 2 +48X 2 +275000X 3 (Columbia) Sir Loin Restaurants – Solution All the variables are non-negative

78 78 Sir Loin Restaurants - Spreadsheet =SUMPRODUCT($F$4:$F$6,E4:E6) Drag back to B7:D7 =SUMPRODUCT($F$10:$F$12,E10:E12) Drag back to B13:D13

79 79 Copyright  2002 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that named in Section 117 of the United States Copyright Act without the express written consent of the copyright owner is unlawful. Requests for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. Adopters of the textbook are granted permission to make back-up copies for their own use only, to make copies for distribution to students of the course the textbook is used in, and to modify this material to best suit their instructional needs. Under no circumstances can copies be made for resale. The Publisher assumes no responsibility for errors, omissions, or damages, caused by the use of these programs or from the use of the information contained herein.


Download ppt "1 Chapter 3 Applications of Linear and Integer Programming Models - 1."

Similar presentations


Ads by Google