linear programming.pptx

21
LINEAR PROGRAMMING PREPARED BY: MS. DONNA JANE M. DELIMA

Upload: kwin-hazel-satiada

Post on 11-Dec-2015

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: LINEAR PROGRAMMING.pptx

LINEAR PROGRAMMING

PREPARED BY: MS. DONNA JANE M. DELIMA

Page 2: LINEAR PROGRAMMING.pptx

What is Linear Programming?

Page 3: LINEAR PROGRAMMING.pptx

HISTORYDeveloped by Leonid Kantorovich in 1937. He developed it during World War II as a way to plan expenditures and returns so as to reduce costs to the army and increase losses incurred by the enemy. Postwar, many industries found its use in their daily planning.

Page 4: LINEAR PROGRAMMING.pptx

What is Linear Programming?Say you own a 500 square acre farm. On this

farm you can grow wheat, barley, corn or some combination of the 3. You have a limited supply of fertilizer and pesticide, both of which are needed (in different quantities) for each crop grown. Let’s say wheat sells at $7 a bushel, barley is $3, and corn is $3.50.

So, how many of each crop should you grow to maximize your profit?

Page 5: LINEAR PROGRAMMING.pptx

LINEAR PROGRAMMING

Linear programming (also called linear

optimization) is a method to achieve the best outcome

in a mathematical model whose requirements are

represented by linear relationships.

The maximization or minimization of some

quantity is the objective in all linear

programming problems.

Page 6: LINEAR PROGRAMMING.pptx

(1) Graphing the constraints

In linear programming we have two variables that must satisfy several linear inequalities. These are called the constraints because they restrict the variables to only certain values.Constraints – is a condition that a solution to a linear programming problem is required by the problem itself to satisfy.

Page 7: LINEAR PROGRAMMING.pptx

(1) Graphing the constraints

Graph the solution set to the system of inequalities and identify each vertex of the region.

𝑥≥0 , 𝑦 ≥03 𝑥+2 𝑦 ≤12𝑥+2 𝑦 ≤8

Page 8: LINEAR PROGRAMMING.pptx

GRAPH

Page 9: LINEAR PROGRAMMING.pptx

(2) Writing the ConstraintsProblem 1.

One serving of food A contains 2 grams of protein and 6 grams of carbohydrates. One serving of food B contains 4 grams of protein and 3 grams of carbohydrates. A dietitian wants a meal that contains at least 12 grams of protein and at least 18 grams of carbohydrates. If the cost of food A is 9 cents per serving and the cost of food B is 20 cents per serving, then how many servings of each food to maximize the cost and satisfy the constraints?

Page 10: LINEAR PROGRAMMING.pptx

(2) Writing the ConstraintsLet x – number of servings of food A y – number of servings of food B

Types of Food

No. of Servings of

FoodGrams of Protein

Grams of Carbohydra

tes

Cost of food per serving

( cents)

A x 2 6 9

B y 4 3 20

Minimum Nutrients 12 18

Page 11: LINEAR PROGRAMMING.pptx

Objective Function – is a function in which the objective is to find the values on the decision variables that produce the optimal value.

Non-negative Constraints – is a condition that a solution to a linear programming problem is positive.

Regular constraints – are linear functions that are restricted to be "less than or equal to", "equal to", or "greater than or equal to" a constant.

Page 12: LINEAR PROGRAMMING.pptx

(2) Writing the Constraints

Objective

Function“Regular”Constraint

sNon-negativity Constraints

𝑃=9𝑥+20 𝑦2𝑥+4 𝑦 ≥126 𝑥+3 𝑦 ≥18𝑥≥0 , 𝑦≥0

Page 13: LINEAR PROGRAMMING.pptx

Strategy for Linear Programming

1. Graph the region that satisfies all the constraints.

2. Determine the coordinate of each vertex of the region.

3. Evaluate the function at each vertex of the region.

4. Identify which vertex gives the maximum or minimum value of the function.

Page 14: LINEAR PROGRAMMING.pptx

Problem 1.

One serving of food A contains 2 grams of protein and 6 grams of carbohydrates. One serving of food B contains 4 grams of protein and 3 grams of carbohydrates. A dietitian wants a meal that contains at least 12 grams of protein and at least 18 grams of carbohydrates. If the cost of food A is 9 cents per serving and the cost of food B is 20 cents per serving, then how many servings of each food to maximize the cost and satisfy the constraints?

Page 15: LINEAR PROGRAMMING.pptx

Solution: (1) Write the constraints

𝑃=9𝑥+20 𝑦2𝑥+4 𝑦 ≥126 𝑥+3 𝑦 ≥18𝑥≥0 , 𝑦≥0

Page 16: LINEAR PROGRAMMING.pptx

( 2)

GRAPH

Page 17: LINEAR PROGRAMMING.pptx

A feasible solution satisfies all the problem's constraints.

An optimal solution is a feasible solution that results in the largest possible objective function value when maximizing (or smallest when minimizing).

Page 18: LINEAR PROGRAMMING.pptx

(3) Determine the coordinatesof each vertex of the region

The vertices are (0,6), (6,0),(2,2).

Page 19: LINEAR PROGRAMMING.pptx

(4) Evaluate the function at each vertex of the region.

𝑃 (0,6)=9(0)+20(6)=120𝑐𝑒𝑛𝑡𝑠𝑃 (6,0)=9 (6)+20 (0)=54𝑐𝑒𝑛𝑡𝑠𝑃 (2,2)=9(2)+20 (2)=58𝑐𝑒𝑛𝑡𝑠

Page 20: LINEAR PROGRAMMING.pptx

(5) Identify which vertex gives the maximum

or minimum value of the function.

The minimum cost of 54 cents is attained by using six

servings of food A and no servings of food B.

Page 21: LINEAR PROGRAMMING.pptx

Problem 2.A manufacturer of lightweight mountain tents makes a standard model and expedition model for national distribution. Each standard tents requires 1 labor hour from cutting department and 3 labor hours from the assembly department. Each expedition tent requires 2 labor hours from the cutting department and four labor hours from the assembly department.

The maximum labor hours available per day in the cutting department and the assembly department are 32 and 84 respectively. If the company makes a profit of S50 on each standard tent and S80 on each expedition tent, how many tents of each type should be manufactured each day to maximize the total daily profit( assuming that all tents can be sold)?