Presentation is loading. Please wait.

Presentation is loading. Please wait.

Linear Programming An Example. Problem The dairy "Fior di Latte" produces two types of cheese: cheese A and B. The dairy company must decide how many.

Similar presentations


Presentation on theme: "Linear Programming An Example. Problem The dairy "Fior di Latte" produces two types of cheese: cheese A and B. The dairy company must decide how many."— Presentation transcript:

1 Linear Programming An Example

2 Problem The dairy "Fior di Latte" produces two types of cheese: cheese A and B. The dairy company must decide how many tons of each type of cheese can be produced. The company uses only the milk from some stables that can provide 2880 tons of milk per year. From the processing point of view, the two cheeses differ in the amount of milk and in the work needed to produce one unit of processed product In fact, 1 ton of A cheese requires 12 tons of milk and 9 hours of work, while, 1 ton of B needs 16 tons of milk and 6 hours of work. The dairy has a maximum capacity of 200 tons of cheese. The hours available are 1566. The profit that the company can benefit from cheese sale is 350 euros for cheese A and 300 euros for cheese B. The question is: how many tons of cheese A and B the company should produce in order to obtain the maximum profit?

3 Problems of choice In any economic context where resources to be used are available in limited quantities, there is a problem of choice concerning the quantities and combinations of factors to be used to obtain the best possible result. For example, entrepreneurial activity has as main purpose the continuity of their business and the factors of production remuneration. The entrepreneur organizes his activities in order to find that combination of factors that can provide the highest profit. In the field of transport logistics, for example, the goal is to find the shortest way to reach a certain place to minimize the transport costs of goods.

4 Developing the problem To solve any linear programming problem, first of all we must try to formulate it in algebraic terms by following these rules: 1. Understanding the problem; 2. Identify the decision variables; 3. Identify the objective function as a linear combination of decision variables; 4. Formulate the constraints of the problem as a linear combination of decision variables.

5 Understanding the problem Before dealing with the mathematical formulation of each problem, it is important to consider the context in which we are developing a mathematical programming model and ask to ourselves: 1. Which is the goal to which we respond by developing a mathematical programming model? 2. There are decision variables that can influence the objective? 3. Which are the factors or resources used in the technical- economic transformation process? 4. Which are the times required to give a decision support? 5. It 's really necessary to develop a mathematical programming model?

6 Identifying the decision variables If we have understood the terms of the problem, then we can identify the decision variables, those variables that through the use of the resources available in limited quantities determine the outcomes of the problem. The variables are those elements of the problem that have to be calculated to obtain the best possible result. Usually the variables of a LP problem are identified by the letters X 1, X 2, X 3, …, X n In our example, the decision variables are implicit in the final question: how many tons of cheese A and B the company should produce to maximize profit? The variables are: Cheese A X1X1 Cheese B X2X2 Decision variables for the LP problem

7 Objective Function After having identified the decision variables of the problem, we formulate in mathematical terms the objective of the LP problem. Question: What is to be maximized / minimized? The objective function is the algebraic transposition of the aim of who want to optimize a given situation using a LP model. In our example, the objective function is given by maximizing the total profit of the dairy, namely: Total Profit = 350 X 1 + 300 X 2 Objective= maximize (max) Total Profit Objective Function= max Total Profit = max 350 X 1 + 300 X 2

8 Constraints In each choice issue, there are bounds to the values that decision variables can assume. In particular, in each of LP problem it is very important to consider the limiting factors, namely the resources available in limited quantities. Moreover, in many problems of choice it is necessary to consider the technological constraints, namely the links between variables and between variables and limiting factors. In the LP problem we considerd we can see 3 main constraints. I constraint. The dairy wearhouse capacity The dairy can contain up to 200 tons of cheese. In other terms: X 1 + X 2 ≤ 200 The quantity of cheese A added to the quantity of cheese B cannot be higher that 200 tons.

9 Constraints II constraint. The technological constraint on the milk availibility The dairy company uses milk produced by some breeders to make the two types of cheese: 12 X 1 + 16 X 2 ≤ 2880 To produce one unit (ton) of cheese A it is necessary to use 12 tons of milk and to produce cheese B It needs to use 16 tons of milk. The total amount of milk that may enter in the dairy processing is equal to 2880 tons. III constraint. The constraint on work The maximum amount of hours that can be devoted to the processing activity represents a further constraint to the problem. In fact: 9 X 1 + 6 X 2 ≤ 1566 9 hours to produce 1 ton of cheese A and 6 hours to produce 1 ton of cheese B.

10 Constraints Finally, to achieve consistency between the solutions of the problem with the observed reality and in order to avoid implausible solutions to LP problems, the so-called non- negativity constraints related to variables must be added. So in our example, it would be surprising to obtain solutions with negative values of decision variables. For this reason, the problem is integrated by the following 2 constraints: X 1 ≥ 0 X 2 ≥ 0 The two constraints ensure that the solution of the problem be realistic and coherent. Non-negativity constraints

11 The LP Problem Now, we can write the LP problem in its full algebraic formulation: Subject to Objective Function Dairy capacity Milk supply Labour availibility Non-negativity 1 Non-negativity 2 Activity 1 Activity 2

12 Graphical Solution The constraints of a LP problem define the set of feasible solutions, i.e. the region of feasible solutions for the problem (feasible region). Our task is to determine which point of the feasible region corresponds to the optimal value of the objective function. Subject to

13 Graphical Solution Let us represent the first constraint 50 100 150 200 0 50100150200 x2x2 x1x1 (200,0) (0,200)

14 Graphical Solution 50 100 150 200 0 50100150200 x2x2 x1x1 (200,0) (0,200) Boundary line for the dairy company capacity Let us represent the first constraint

15 Graphical Solution 50 100 150 200 0 50100150200 x2x2 x1x1 (240,0) (0,180) 250 Let us represent the first constraint Boundary line for the dairy company capacity

16 Graphical Solution 50 100 150 200 0 50100150200 x2x2 x1x1 (240,0) (0,180) Boundary line for the milk supply 250 Let us represent the second constraint

17 Graphical Solution 50 100 150 200 0 50100150200 x2x2 x1x1 (174,0) (0,261) 250 Let us represent the third constraint Boundary line for the avaiable labour hours

18 Graphical Solution 50 100 150 200 0 50100150200 x2x2 x1x1 (174,0) (0,261) 250 Feasible region Let us represent the third constraint Boundary line for the avaiable labour hours

19 Graphical Solution The feasible region is the cloud of points with respect to which the values assumed by the decision variables do not conflict with the constraints of the problem. 50 100 150 200 0 50100150200 x2x2 x1x1 250 Feasible Region

20 Graphical Solution The feasible region offers an endless cloud of points in which we find the pair of values ​ that produce the highest profit. For this reason, there is an infinite number of values of the objective function that satisfies the constraints of the problem. However, only a point allows to get the maximum value of the objective function. The research of this point shall follow the criterion of saturation of the limited factors. You must find the solution that fully utilizes the scarce resources. This is why, the solution of our problem must be found on the border line of the feasible region. In LP, these points are in correspondence of the intersection of the constraint lines, namely the corner points of the feasible region.

21 Graphical Solution We proceed by trial from the following value of the objective function: 350x 1 + 300x 2 = 35000 Graphically: 50 100 150 200 0 50100150200 x2x2 x1x1 250 Objective Function (100,0) (0,116.67)

22 Graphical Solution The objective function value satisfies the previous constraints, but it does not maximize the result because we still have availability factors to use. Let us now with an OF value equal to 52500 euro. Graphically: 50 100 150 200 0 50100150200 x2x2 x1x1 250 New objective function (150,0) (0,175)

23 Graphical Solution By moving the objective function at the extremes of the feasible region, the economic performance continues to increase. The point beyond which no longer can move the OF is the optimal point. 50 100 150 200 0 50100150200 x2x2 x1x1 250 Optimal solution (122,78)

24 Graphical Solution To find the optimal solution of a LP problem it is necessary to study the corner points and determine the value of the objective function. The point that returns the highest value of OF coincides with the optimal point. 50 100 150 200 0 50100150200 x2x2 x1x1 250 (0,0) OF=0€ (174,0) OF=60900€ (0,180) OF=54000€ (80,120) OF=64000€ (122,78) OF=66100€

25 LP Problem Solve graphically the following LP problem. Subject to

26 Graphical Solution Some problems may present multiple optimal solutions 50 100 150 200 0 50100150200 x2x2 x1x1 250 (0,0) OF=0€ (174,0) OF=78300€ (0,180) OF=54000€ (80,120) OF=72000€ (122,78) OF=78300€

27 LP Problem Solve graphically the following LP problem: Subject to


Download ppt "Linear Programming An Example. Problem The dairy "Fior di Latte" produces two types of cheese: cheese A and B. The dairy company must decide how many."

Similar presentations


Ads by Google