Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Linear Programming (LP) 線性規劃 - George Dantzig, 1947.

Similar presentations


Presentation on theme: "1 Linear Programming (LP) 線性規劃 - George Dantzig, 1947."— Presentation transcript:

1 1 Linear Programming (LP) 線性規劃 - George Dantzig, 1947

2 2 [1] LP Formulation (a) Decision Variables : All the decision variables are non-negative. (b) Objective Function : Min or Max (c) Constraints s.t. : subject to

3 3 [2] Example A company has three plants, Plant 1, Plant 2, Plant 3. Because of declining earnings, top management has decided to revamp the company’s product line. Product 1: It requires some of production capacity in Plants 1 and 3. Product 2: It needs Plants 2 and 3.

4 4 The marketing division has concluded that the company could sell as much as could be produced by these plants. However, because both products would be competing for the same production capacity in Plant 3, it is not clear which mix of the two products would be most profitable.

5 5 The data needed to be gathered: 1. Number of hours of production time available per week in each plant for these new products. (The available capacity for the new products is quite limited.) 2. Production time used in each plant for each batch to yield each new product. 3. There is a profit per batch from a new product.

6 6 Production Time per Batch, Hours Production Time Available per Week, Hours Plant Product Profit per batch 123123 4 12 18 1 2 1 0 0 2 3 2 $3,000 $5,000

7 7 : # of batches of product 1 produced per week : # of batches of product 2 produced per week : the total profit per week Maximize subject to

8 8 0 2 4 6 8 2 4 6 8 10 [3] Graphical Solution (only for 2-variable cases ) Feasible region

9 9 0 2 4 6 8 2 4 6 8 10 Feasible region

10 10 0 2 4 6 8 2 4 6 8 10 Feasible region

11 11 0 2 4 6 8 2 4 6 8 10 Feasible region

12 12 0 2 4 6 8 10 2 4 6 8 Maximize: The optimal solution The largest value Slope-intercept form:

13 13 Max s.t. [4] Standard Form of LP Model

14 14 [5] Other Forms The other LP forms are the following: 1. Minimizing the objective function: 2. Greater-than-or-equal-to constraints: Minimize

15 15 3. Some functional constraints in equation form: 4. Deleting the nonnegativity constraints for some decision variables: : unrestricted in sign

16 16 [6] Key Terminology (a) A feasible solution is a solution for which all constraints are satisfied (b) An infeasible solution is a solution for which at least one constraint is violated (c) A feasible region is a collection of all feasible solutions

17 17 (d) An optimal solution is a feasible solution that has the most favorable value of the objective function (e) Multiple optimal solutions have an infinite number of solutions with the same optimal objective value

18 18 and Maximize Subject to Example Multiple optimal solutions:

19 19 0 2 4 6 8 10 2 4 6 8 Feasible region Every point on this red line segment is optimal, each with Z=18. Multiple optimal solutions

20 20 (f) An unbounded solution occurs when the constraints do not prevent improving the value of the objective function.

21 21 [7] Case Study The Socorro Agriculture Co. is a group of three farming communities. Overall planning for this group is done in its Coordinating Technical Office. This office currently is planning agricultural production for the coming year.

22 22 Group Usable Land (Acres) Water Allocation (Acre Feet) 123123 400 600 300 600 800 375 The agricultural production is limited by both the amount of available land and the quantity of water allocated for irrigation. These data are given below.

23 23 The crops suited for this region include sugar beets, cotton, and sorghum, and these are the three products being considered for the upcoming season. These crops differ primarily in their expected net return per acre and their consumption of water.

24 24 Crop Sugar beets Cotton Sorghum Net Return ($/Acre) In addition, there is a maximum quota for the total acreage that can be devoted to each of these crops by Socorro Agriculture Co. Water Consumption (Acre Feet/Acre) Maximum Quota (Acres) 600 500 325 321321 1,000 750 250

25 25 Because of the limited water available for irrigation, the Socorro Agriculture Co. will be unable to use all its land for planting crops. To ensure equity among the three groups, it has been agreed that it will plant the same proportion of its available land. For example, if Group 1 plants 200 of its available 400 acres, then Group 2 must plant 300 of its 600 acres, while Group 3 plants 150 acres of its 300 acres.

26 26 The job facing the Coordinating Technical Office is to plan how many acres to devote to each crop while satisfying the given restrictions. The objective is to maximize the total net return as a whole.

27 27 The quantities to be decided are the number of acres to devote to each of the three crops at each of the three groups. The decision variables represent these nine quantities. Crop Sugar beets Cotton Sorghum Allocation(Acres) Group 1 2 3

28 28 Maximize Z= The measure of effectiveness Z is the total net return and the resulting linear programming model for this problem is 1. Usable land for each group:

29 29 3. Total land use for each crop: 2. Water allocation for each group:

30 30 4. Equal proportion of land planted:

31 31 5. Nonnegativity: ( j =1, 2, …, 9) The final form is

32 32 An optimal solution is The resulting optimal value of the objective function is $633,333.33.

33 33 [8] Case Study - Personal Scheduling UNION AIRWAYS needs to hire additional customer service agents. Management recognizes the need for cost control while also consistently providing a satisfactory level of service to customers. Based on the new schedule of flights, an analysis has been made of the minimum number of customer service agents that need to be on duty at different times of the day to provide a satisfactory level of service.

34 34 * * * * * * * * * * Shift Time Period Covered Minimum # of Agents needed Time Period 6:00 am to 8:00 am 8:00 am to 10:00 am 10:00 am to noon Noon to 2:00 pm 2:00 pm to 4:00 pm 4:00 pm to 6:00 pm 6:00 pm to 8:00 pm 8:00 pm to 10:00 pm 10:00 pm to midnight Midnight to 6:00 am 1 2 3 4 5 48 79 65 87 64 73 82 43 52 15 170 160 175 180 195 Daily cost per agent

35 35 The problem is to determine how many agents should be assigned to the respective shifts each day to minimize the total personnel cost for agents, while meeting (or surpassing) the service requirements. Activities correspond to shifts, where the level of each activity is the number of agents assigned to that shift. This problem involves finding the best mix of shift sizes.

36 36 : # of agents for shift 1 (6AM - 2PM) : # of agents for shift 2 (8AM - 4PM) : # of agents for shift 3 (Noon - 8PM) : # of agents for shift 4 (4PM - Midnight) : # of agents for shift 5 (10PM - 6AM) The objective is to minimize the total cost of the agents assigned to the five shifts.

37 37 Min s.t. all

38 38 Total Personal Cost = $30,610

39 39 Basic assumptions for LP models: 1.Additivity: c 1 x 1 + c 2 x 2 ; a i1 x 1 + a i2 x 2 2.Proportionality: c i x i ; a ij x j 3.Divisibility: x i can be any real number 4.Certainty: all parameters are known with certainty

40 40 Other Examples Galaxy manufactures two toy doll models: –Space Ray. –Zapper. Resources are limited to –1000 pounds of special plastic. –40 hours of production time per week.

41 41 Marketing requirement –Total production cannot exceed 700 dozens. –Number of dozens of Space Rays cannot exceed number of dozens of Zappers by more than 350. Technological input –Space Rays requires 2 pounds of plastic and 3 minutes of labor per dozen. – Zappers requires 1 pound of plastic and 4 minutes of labor per dozen.

42 42 The current production plan calls for: –Producing as much as possible of the more profitable product, Space Ray ($8 profit per dozen). –Use resources left over to produce Zappers ($5 profit per dozen), while remaining within the marketing guidelines. The current production plan consists of: Space Rays = 450 dozen Zapper = 100 dozen Profit = $4100 per week 8(450) + 5(100)

43 43 Management is seeking a production schedule that will increase the company ’ s profit.

44 44 A linear programming model can provide an insight and an intelligent solution to this problem.

45 45 :Decisions variables: –X 1 = Weekly production level of Space Rays (in dozens) –X 2 = Weekly production level of Zappers (in dozens). Objective Function: – Weekly profit, to be maximized The Galaxy Linear Programming Model

46 46 Max 8X 1 + 5X 2 (Weekly profit) subject to 2X 1 + 1X 2  1000 (Plastic) 3X 1 + 4X 2  2400 (Production Time) X 1 + X 2  700 (Total production) X 1 - X 2  350 (Mix) X j > = 0, j = 1,2 (Nonnegativity) The Galaxy Linear Programming Model


Download ppt "1 Linear Programming (LP) 線性規劃 - George Dantzig, 1947."

Similar presentations


Ads by Google