Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computational Methods for Management and Economics Carla Gomes Module 5 Modeling Issues.

Similar presentations


Presentation on theme: "Computational Methods for Management and Economics Carla Gomes Module 5 Modeling Issues."— Presentation transcript:

1 Computational Methods for Management and Economics Carla Gomes Module 5 Modeling Issues

2 Main Categories of LP problems: Resource-Allocation Problems Cost-benefit-trade-off problems Distribution-Network Problems

3 Resource Allocation Problem Wyndor Glass Resources – m (plants) Activities – n (2 products) Wyndor Glass problem  optimal product mix --- allocation of resources to activities i.e., choose the levels of the activities that achieve best overall measure of performance

4 Financial Planning Another area of application of resource-allocation problems  Financial Planning Resources: –Financial assets (cash, securities,accounts receivable, lines of credit, etc). Example: Capital budgeting –Resources: amounts of investment capital available at different points in time.

5 Think-Big Capital Budgeting Problem Think-Big Development Co. is a major investor in commercial real-estate development projects. They are considering three large construction projects –Construct a high-rise office building. –Construct a hotel. –Construct a shopping center. Each project requires each partner to make four investments at four different points in time for the corresponding share: a down payment now, and additional capital after one, two, and three years.

6 Financial Data for the Projects AmountInvestment Capital Requirements Year AvailableOffice BuildingHotelShopping Center 0 $25 million$40 million$80 million$90 million 1 $20 million60 million80 million50 million 2 $20 million90 million80 million20 million 3 $15 million10 million70 million60 million Net present value $45 million$70 million$50 million Net present value - discounted future cash outflows (capital invested) and cash inflows (income) and adding discounted net cash flows

7 Thus a partner taking a certain percentage share of a project is obligated to invest that percentage of each the amounts for each point in time. Question: At what fraction should Think- Big invest in each of the three projects?

8 Activities: Activity 1 – invest in construction of office building Activity 2 – invest in construction of hotel Activity 3 – invest in construction of shopping center  Decisions – level for each activity Resources: Resource 1 – total investment capital available now Resource 2 – cumulative investment capital available by the end of one year. Resource 3– cumulative investment capital available by the end of two years. Resource 4– cumulative investment capital available by the end of three years.

9 Cumulative Investment Capital Required for an entire Project AmountInvestment Capital Requirements Year AvailableOffice BuildingHotelShopping Center 0 $25 million$40 million$80 million$90 million 1 $45 million100 million160 million140 million 2 $65 million190 million240 million160 million 3 $80 million200 million310 million220 million Net present value $45 million$70 million$50 million Net present value - discounted future cash outflows (capital invested) and cash inflows (income) and adding discounted net cash flows

10 Algebraic Formulation LetOB = Participation share in the office building, H = Participation share in the hotel, SC = Participation share in the shopping center. Maximize NPV = 45OB + 70H + 50SC subject to Total invested now:40OB + 80H + 90SC ≤ 25 ($million) Total invested within 1 year:100OB + 160H + 140SC ≤ 45 ($million) Total invested within 2 years:190OB + 240H + 160SC ≤ 65 ($million) Total invested within 3 years:200OB + 310H + 220SC ≤ 80 ($million) and OB ≥ 0, H ≥ 0, SC ≥ 0.

11 Cost-benefit-trade-off problems

12 The mix of levels of various activities is chosen to achieve minimum acceptable levels for various benefits at a minimum cost.

13 The Profit & Gambit Co. (Hillier & Hillier): Management has decided to undertake a major advertising campaign that will focus on the following three key products: –A spray prewash stain remover. –A liquid laundry detergent. –A powder laundry detergent. The campaign will use both television and print media The general goal is to increase sales of these products. Management has set the following goals for the campaign: –Sales of the stain remover should increase by at least 3%. –Sales of the liquid detergent should increase by at least 18%. –Sales of the powder detergent should increase by at least 4%. Question: how much should they advertise in each medium to meet the sales goals at a minimum total cost?

14 Profit & Gambit Co. Data

15 Activity 1 – advertise on television Activity 2 – advertise in the print media Benefit 1 – increases sales of stain remover Benefit 2 – increases sales of liquid detergent Benefit 3 – increases sales of powder detergent

16 Algebraic Model for Profit & Gambit LetTV = the number of units of advertising on television PM = the number of units of advertising in the print media Minimize Cost = TV + 2PM (in millions of dollars) subject to Stain remover increased sales: PM ≥ 3 Liquid detergent increased sales:3TV + 2PM ≥ 18 Powder detergent increased sales:–TV + 4PM ≥ 4 and TV ≥ 0, PM ≥ 0.

17 Applying the Graphical Method

18 The Optimal Solution

19 Summary of the Graphical Method Draw the constraint boundary line for each constraint. Use the origin (or any point not on the line) to determine which side of the line is permitted by the constraint. Find the feasible region by determining where all constraints are satisfied simultaneously. Determine the slope of one objective function line. All other objective function lines will have the same slope. Move a straight edge with this slope through the feasible region in the direction of improving values of the objective function. Stop at the last instant that the straight edge still passes through a point in the feasible region. This line given by the straight edge is the optimal objective function line. A feasible point on the optimal objective function line is an optimal solution.

20 Union Airways Personnel Scheduling Union Airways is adding more flights to and from its hub airport and so needs to hire additional customer service agents. The five authorized eight-hour shifts are –Shift 1:6:00 AM to 2:00 PM –Shift 2:8:00 AM to 4:00 PM –Shift 3:Noon to 8:00 PM –Shift 4:4:00 PM to midnight –Shift 5:10:00 PM to 6:00 AM Question: How many agents should be assigned to each shift?

21 Time Periods Covered by Shift Time Period12345 Minimum Number of Agents Needed 6 AM to 8 AM√48 8 AM to 10 AM√√79 10 AM to noon√√65 Noon to 2 PM√√√87 2 PM to 4 PM√√64 4 PM to 6 PM√√73 6 PM to 8 PM√√82 8 PM to 10 PM√43 10 PM to midnight√√52 Midnight to 6 AM√15 Daily cost per agent $170$160$175$180$195

22 LP Formulation LetS i = Number working shift i (for i = 1 to 5), Minimize Cost = $170S 1 + $160S 2 + $175S 3 + $180S 4 + $195S 5 subject to Total agents 6AM–8AM:S 1 ≥ 48 Total agents 8AM–10AM:S 1 + S 2 ≥ 79 Total agents 10AM–12PM:S 1 + S 2 ≥ 65 Total agents 12PM–2PM:S 1 + S 2 + S 3 ≥ 87 Total agents 2PM–4PM:S 2 + S 3 ≥ 64 Total agents 4PM–6PM:S 3 + S 4 ≥ 73 Total agents 6PM–8PM:S 3 + S 4 ≥ 82 Total agents 8PM–10PM:S 4 ≥ 43 Total agents 10PM–12AM:S 4 + S 5 ≥ 52 Total agents 12AM–6AM:S 5 ≥ 15 and S i ≥ 0 (for i = 1 to 5)

23 Work-scheduling problem

24 A Work-Scheduling Problem (from Intro Math Programming Winston & Venkataramanan) A post office requires different numbers of full-time employees on different days of the week. Union rules state that each full-time employee must work five consecutive days and then receive two days off. For example, an employee who works on Monday to Friday must be off on Saturday and Sunday. The post office wants to meet its daily requirements using only full-time employees.

25 Overview Work-scheduling problem –The model –Practical enhancements or modifications –Two non-linear objectives that can be made linear –A non-linear constraint that can be made linear These slides are adapted from James Orlin’s

26 Scheduling Postal Workers Each postal worker works for 5 consecutive days, followed by 2 days off, repeated weekly. Minimize the number of postal workers (for the time being, we will permit fractional workers on each day.)

27 What’s wrong with this formulation? Minimizez = x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 subject to x 1  17 x 2  13 x 3  15 x 4  19 x 5  14 x 6  16 x 7  11 x j  0 for j = 1 to 7 Decision variables –Let x 1 be the number of workers who work on Monday –Let x 2 be the number of workers who work on Tuesday … –Let x 3, x 4, …, x 7 be defined similarly.

28 Answer Objective function is not number of full- time post office employees  each employee is counted five times; The variables x 1, x 2, x 3, etc are interrelated but that is not captured in our formulation (for example some people who are working on Monday are also working on Tuesday)

29 LP Formulation Select the decision variables –Let x 1 be the number of workers who start working on Monday, and work till Friday –Let x 2 be the number of workers who start on Tuesday … –Let x 3, x 4, …, x 7 be defined similarly. Note 1: number of full-time employees is x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 Note 2: Who is working on Monday? Everybody except those who start working on Tuesday and Wednesday (on Monday they have a day off) (similarly reasoning can be applied for the other days)

30 The linear program Minimizez = x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 subject to x 1 + x 4 + x 5 + x 6 + x 7  17 x 1 + x 2 + x 5 + x 6 + x 7  13 x 1 + x 2 + x 3 + x 6 + x 7  15 x 1 + x 2 + x 3 + x 4 + x 7  19 x 1 + x 2 + x 3 + x 4 + x 5  14 x 2 + x 3 + x 4 + x 5 + x 6  16 x 3 + x 4 + x 5 + x 6 + x 7  11 x j  0 for j = 1 to 7

31 Some Enhancements of the Model Suppose that there was a pay differential. The cost of workers who start work on day j is c j per worker. Minimizez = c 1 x 1 + c 2 x 2 + c 3 x 3 + … + c 7 x 7

32 Some Enhancements of the Model Suppose that one can hire part time workers (one day at a time), and that the cost of a part time worker on day j is PT j. Let y j = number of part time workers on day j

33 What is the Revised Linear Program? subject to x 1 + x 4 + x 5 + x 6 + x 7  17 x 1 + x 2 + x 5 + x 6 + x 7  13 x 1 + x 2 + x 3 + x 6 + x 7  15 x 1 + x 2 + x 3 + x 4 + x 7  19 x 1 + x 2 + x 3 + x 4 + x 5  14 x 2 + x 3 + x 4 + x 5 + x 6  16 x 3 + x 4 + x 5 + x 6 + x 7  11 x j  0 for j = 1 to 7 z = x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 Minimize

34 z = x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 subject to x 1 + x 4 + x 5 + x 6 + x 7 + y 1  17 x 1 + x 2 + x 5 + x 6 + x 7 + y 2  13 x 1 + x 2 + x 3 + x 6 + x 7 + y 3  15 x 1 + x 2 + x 3 + x 4 + x 7 + y 4  19 x 1 + x 2 + x 3 + x 4 + x 5 + y 5  14 x 2 + x 3 + x 4 + x 5 + x 6 + y 6  16 x 3 + x 4 + x 5 + x 6 + x 7 + y 7  11 x j  0, y j  0 for j = 1 to 7 + PT 1 y 1 + PT 2 y 2 + … + PT 7 y 7

35 Another Enhancement Suppose that the number of workers required on day j is d j. Let y j be the number of workers on day j. What is the minimum cost schedule, where the “cost” of having too many workers on day j is - f j (y j – d j ), which is a non-linear function? NOTE: this will lead to a non-linear program, not a linear program. We will let s j = y j – d j be the excess number of workers on day j.

36 What is the Revised Linear Program? subject to x 1 + x 4 + x 5 + x 6 + x 7  17 x 1 + x 2 + x 5 + x 6 + x 7  13 x 1 + x 2 + x 3 + x 6 + x 7  15 x 1 + x 2 + x 3 + x 4 + x 7  19 x 1 + x 2 + x 3 + x 4 + x 5  14 x 2 + x 3 + x 4 + x 5 + x 6  16 x 3 + x 4 + x 5 + x 6 + x 7  11 x j  0 for j = 1 to 7 z = x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 Minimize

37 z = f 1 (s 1 ) + f 2 (s 2 ) + f 3 (s 3 ) + f 4 (s 4 ) + f 5 (s 5 ) + f 6 (s 6 ) + f 7 (s 7 ) subject to x 1 + x 4 + x 5 + x 6 + x 7 - s 1 = 17 x 1 + x 2 + x 5 + x 6 + x 7 - s 2 = 13 x 1 + x 2 + x 3 + x 6 + x 7 - s 3 = 15 x 1 + x 2 + x 3 + x 4 + x 7 - s 4 = 19 x 1 + x 2 + x 3 + x 4 + x 5 - s 5 = 14 x 2 + x 3 + x 4 + x 5 + x 6 - s 6 = 16 x 3 + x 4 + x 5 + x 6 + x 7 - s 7 = 11 x j  0, s j  0 for j = 1 to 7

38 A non-linear objective that often can be made linear. Suppose that one wants to minimize the maximum of the slacks, that is minimize z = max (s 1, s 2, …, s 7 ). This is a non-linear objective. But we can transform it, so the problem becomes an LP.

39 Minimize z z  s j for j = 1 to 7. subject to x 1 + x 4 + x 5 + x 6 + x 7 - s 1 = 17 x 1 + x 2 + x 5 + x 6 + x 7 - s 2 = 13 x 1 + x 2 + x 3 + x 6 + x 7 - s 3 = 15 x 1 + x 2 + x 3 + x 4 + x 7 - s 4 = 19 x 1 + x 2 + x 3 + x 4 + x 5 - s 5 = 14 x 2 + x 3 + x 4 + x 5 + x 6 - s 6 = 16 x 3 + x 4 + x 5 + x 6 + x 7 - s 7 = 11 x j  0, s j  0 for j = 1 to 7 The new constraint ensures that z  max (s 1, …, s 7 ) The objective ensures that z = s j for some j.

40 Another non-linear objective that often can be made linear. Suppose that the “goal” is to have d j workers on day j. Let y j be the number of workers on day j. Suppose that the objective is minimize  i | y j – d j | This is a non-linear objective. But we can transform it, so the problem becomes an LP.

41 Minimize  j z j z j  y j - d j for j = 1 to 7. subject to x 1 + x 4 + x 5 + x 6 + x 7 = y 1 x 1 + x 2 + x 5 + x 6 + x 7 = y 2 x 1 + x 2 + x 3 + x 6 + x 7 = y 3 x 1 + x 2 + x 3 + x 4 + x 7 = y 4 x 1 + x 2 + x 3 + x 4 + x 5 - = y 5 x 2 + x 3 + x 4 + x 5 + x 6 = y 6 x 3 + x 4 + x 5 + x 6 + x 7 = y 7 x j  0, y j  0 for j = 1 to 7 The new constraints ensure that z j  | y j – d j | for each j. The objective ensures that z j = | y j – d j | for each j. z j  d j - y j for j = 1 to 7.

42 A ratio constraint: Suppose that we need to ensure that at least 30% of the workers have Sunday off. How do we model this? (x 1 + x 2 )/x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 .3 (x 1 + x 2 ) .3 x 1 +.3 x 2 +.3 x 3 +.3 x 4 +.3 x 5 +.3 x 6 +.3 x 7 -.7 x 1 -.7 x 2 +.3 x 3 +.3 x 4 +.3 x 5 +.3 x 6 +.3 x 7 <= 0

43 Other enhancements Require that each shift has an integral number of workers –integer program Consider longer term scheduling –model 6 weeks at a time Consider shorter term scheduling – model lunch breaks Model individual workers –permit worker preferences

44 Distribution Network Problems

45 The Big M Distribution-Network Problem The Big M Company produces a variety of heavy duty machinery at two factories. One of its products is a large turret lathe. Orders have been received from three customers for the turret lathe.

46 Some Data Shipping Cost for Each Lathe To Customer 1 Customer 2 Customer 3 FromOutput Factory 1$700$900$80012 lathes Factory 280090070015 lathes Order Size 10 lathes8 lathes9 lathes

47 The Distribution Network Question: How many lathes should be shipped from each factory to each customer?

48 Activities – shipping lanes (not the level of production which has already been defined) –Level of each activity – number of lathes shipped through the corresponding shipping lane.  Best mix of shipping amounts Resources  requirements from factories and customers. Example: Requirement 1: Factory 1 must ship 12 lathes Requirement 2: Factory 2 must ship 15 lathes Requirement 3: Customer 1 must receive 10 lathes Requirement 4: Customer 2 must receive 8 lathes Requirement 5: Customer 3 must receive 9 lathes

49 Algebraic Formulation LetS ij = Number of lathes to ship from i to j (i = F1, F2; j = C1, C2, C3). Minimize Cost = $700S F1-C1 + $900S F1-C2 + $800S F1-C3 + $800S F2-C1 + $900S F2-C2 + $700S F2-C3 subject to Factory 1:S F1-C1 + S F1-C2 + S F1-C3 = 12 Factory 2:S F2-C1 + S F2-C2 + S F2-C3 = 15 Customer 1:S F1-C1 + S F2-C1 = 10 Customer 2:S F1-C2 + S F2-C2 = 8 Customer 3:S F1-C3 + S F2-C3 = 9 and S ij ≥ 0 (i = F1, F2; j = C1, C2, C3).

50 Summary of Main Categories of LP problems: Resource-Allocation Problems Cost-benefit-trade-off problems Distribution-Network Problems

51 Types of Functional Constraints TypeForm* Typical InterpretationMain Usage Resource constraint LHS ≤ RHS For some resource, Amount used ≤ Amount available Resource- allocation problems and mixed problems Benefit constraint LHS ≥ RHS For some benefit, Level achieved ≥ Minimum Acceptable Cost-benefit- trade-off problems and mixed problems Fixed- requirement constraint LHS = RHS For some quantity, Amount provided = Required amount Distribution- network problems and mixed problems * LHS = Left-hand side RHS = Right-hand side (a constant).

52 Mixed LP problems

53 Save-It Company Waste Reclamation The Save-It Company operates a reclamation center that collects four types of solid waste materials and then treats them so that they can be amalgamated into a salable product. Three different grades of product can be made: A, B, and C (depending on the mix of materials used). Question: What quantity of each of the three grades of product should be produced from what quantity of each of the four materials?

54 Product Data for the Save-It Company GradeSpecification Amalgamation Cost per Pound Selling Price per Pound A Material 1: Not more than 30% of total Material 2: Not less than 40% of total Material 3: Not more than 50% of total Material 4: Exactly 20% of total $3.00$8.50 B Material 1: Not more than 50% of total Material 2: Not less than 10% of the total Material 4: Exactly 10% of the total 2.507.00 C Material 1: Not more than 70% of the total 2.005.50

55 Material Data for the Save-It Company Material Pounds/Week Available Treatment Cost per Pound Additional Restrictions 13,000$3.001. For each material, at least half of the pounds/week available should be collected and treated. 2. $30,000 per week should be used to treat these materials. 22,0006.00 34,0004.00 41,0005.00

56 Algebraic Formulation Let x ij = Pounds of material j allocated to product i per week (i = A, B, C; j = 1, 2, 3, 4). Maximize Profit = 5.5(x A1 + x A2 + x A3 + x A4 ) + 4.5(x B1 + x B2 + x B3 + x B4 ) + 3.5(x C1 + x C2 + x C3 + x C4 ) subject toMixture Specifications:x A1 ≤ 0.3 (x A1 + x A2 + x A3 + x A4 ) x A2 ≥ 0.4 (x A1 + x A2 + x A3 + x A4 ) x A3 ≤ 0.5 (x A1 + x A2 + x A3 + x A4 ) x A4 = 0.2 (x A1 + x A2 + x A3 + x A4 ) x B1 ≤ 0.5 (x B1 + x B2 + x B3 + x B4 ) x B2 ≥ 0.1 (x B1 + x B2 + x B3 + x B4 ) x B4 = 0.1 (x B1 + x B2 + x B3 + x B4 ) x C1 ≤ 0.7 (x C1 + x C2 + x C3 + x C4 ) Availability of Materials:x A1 + x B1 + x C1 ≤ 3,000 x A2 + x B2 + x C2 ≤ 2,000 x A3 + x B3 + x C3 ≤ 4,000 x A4 + x B4 + x C4 ≤ 1,000 Restrictions on amount treated:x A1 + x B1 + x C1 ≥ 1,500 x A2 + x B2 + x C2 ≥ 1,000 x A3 + x B3 + x C3 ≥ 2,000 x A4 + x B4 + x C4 ≥ 500 Restriction on treatment cost:3(x A1 + x B1 + x C1 ) + 6(x A2 + x B2 + x C2 ) + 4(x A3 + x B3 + x C3 ) + 5(x A4 + x B4 + x C4 ) = 30,000 and x ij ≥ 0 (i = A, B, C; j = 1, 2, 3, 4).

57 Spreadsheet Formulation


Download ppt "Computational Methods for Management and Economics Carla Gomes Module 5 Modeling Issues."

Similar presentations


Ads by Google