Math

23
1 Chapter 7 Introduction to Linear Programming

description

Chapter 7 (quanti)

Transcript of Math

Page 1: Math

1

Chapter 7

Introduction to Linear Programming

Page 2: Math

2

• Giapetto's Woodcarving, Inc. manufactures two types of wooden toys: soldiers and trains. A soldier sells for $27 and uses $10 worth of raw materials. Each soldier that is manufactures increases Giapetto's variable labor and overhead costs by $14. A train sells for $21 and uses $9 worth of raw materials. Each train built increases Giapetto's variable labor and overhead costs by $10. The manufacture of wooden soldiers and trains requires two types of skilled labor: carpentry and finishing.

Giapetto example

Page 3: Math

3

A soldier requires 2 hours of finishing labor and 1 hour of carpentry labor. A train requires 1 hour of finishing and 1 hour of carpentry labor. Each week, Giapetto can obtain all the needed raw material but only 100 finishing hours and 80 carpentry hours. Demand for trains is unlimited, but at most 40 soldiers are bought each week. Giapetto wants to maximize weekly profit (revenues - costs). Formulate a mathematical model of Giapetto's situation that can be used to maximize Giapetto's weekly profit

Page 4: Math

4

Example of Linear Programming Problem

Each week the company can obtain:

• All needed raw material. • Only 100 finishing hours.• Only 80 carpentry hours. Also: Demand for the trains is unlimited.• At most 40 soldiers are bought each week.

Giapetto wants to maximize weekly profit (revenues – expenses). Formulate a mathematical model of Giapetto’s situation that can be used maximize weekly profit.

Page 5: Math

5

Example of Linear Programming Problem

The Giapetto solution model incorporates the characteristics shared by all linear programming problems.

Decision Variables x1 = # of soldiers produced each week

x2 = # of trains produced each week

Objective Function The decision maker wants to maximize (usually revenue or profit) or minimize (usually costs) some function of the decision variables.

Page 6: Math

6

Example of Linear Programming Problem

Company’s weekly profit can be expressed in terms of the decision variables x1 and x2:

Weekly profit = weekly revenue

– weekly raw material costs

– the weekly variable costs

Weekly profit =

(27x1 + 21x2) – (10x1 + 9x2) – (14x1 + 10x2 ) = 3x1 + 2x2

Page 7: Math

7

Example of Linear Programming Problem

Constraint 1 Each week, no more than 100 hours of finishing time may be used.

2 x1 + x2 ≤ 100

Constraint 2 Each week, no more than 80 hours of carpentry time may be used.

x1 + x2 ≤ 80

Constraint 3 Because of limited demand, at most 40 soldiers should be produced.

x1 ≤ 40

Page 8: Math

8

Example of Linear Programming Problem

Sign Restrictions

If the decision variable can assume only nonnegative values, the sign restriction xi ≥ 0 is added.

If the variable can assume both positive and negative values, the decision variable xi is unrestricted in sign (often abbreviated urs).

The coefficients of the constraints are often called the technological coefficients.

The number on the right-hand side of the constraint is called the constraint’s right-hand side (or rhs).

Page 9: Math

9

Example of Linear Programming Problem

optimization model:

Max z = 3x1 + 2x2 (objective function)

Subject to (s.t.)

2 x1 + x2 ≤ 100 (finishing constraint)

x1 + x2 ≤ 80(carpentry constraint)

x1 ≤ 40 (constraint on demand for soldiers)

x1 ≥ 0 (sign restriction)

x2 ≥ 0 (sign restriction)

Page 10: Math

10

What Is a Linear Programming Problem?

1. Attempt to maximize (or minimize) a linear function (called the objective function) of the decision variables.

2. The values of the decision variables must satisfy a set of constraints.

3. Each constraint must be a linear equation or inequality.

4. A sign restriction is associated with each variable. For each variable xi, the sign restriction specifies either that xi must be nonnegative (xi ≥ 0) or that xi may be unrestricted in sign.

A linear programming problem (LP) is an optimization problem for which we do the following:

Page 11: Math

11

Assumptions of Linear Programming

Proportionality and Additive Assumptions

The objective function for an LP must be a linear function of the decision variables has two implications:

1. The contribution of the objective function from each decision variable is proportional to the value of the decision variable.

2. The contribution to the objective function for any variable is independent of the other decision variables.

Page 12: Math

12

Assumptions of Linear Programming

1. The contribution of each variable to the left-hand side of each constraint is proportional to the value of the variable.

2. The contribution of a variable to the left-hand side of each constraint is independent of the values of the variable.

Each LP constraint must be a linear inequality or linear equation has two implications:

Page 13: Math

13

Assumptions of Linear Programming

Divisibility Assumption

The divisibility assumption requires that each decision variable be permitted to assume fractional values.

The Certainty Assumption

The certainty assumption is that each parameter (objective function coefficients, right-hand side, and technological coefficients) are known with certainty.

Page 14: Math

14

What Is a Linear Programming Problem?

Feasible Region and Optimal Solution

• Give a point in feasible region

• Give a point that is not in feasible region

Giapetto Constraints

2 x1 + x2 ≤ 100 (finishing constraint)

x1 + x2 ≤ 80 (carpentry constraint)

x1 ≤ 40 (demand constraint)

x1 ≥ 0 (sign restriction)

x2 ≥ 0 (sign restriction)

The feasible region of an LP is the set of all points satisfying all the LP’s constraints and sign restrictions.

Page 15: Math

15

What Is a Linear Programming Problem?

For a maximization problem, an optimal solution to an LP is a point in the feasible region with the largest objective function value.

Similarly, for a minimization problem, an optimal solution is a point in the feasible region with the smallest objective function value.

Most LPs have only one optimal solution. However, some LPs have no optimal solution, and some LPs have an infinite number of solutions.

Page 16: Math

16

Graphical Solution to a 2-Variable LP

Finding the Feasible Solution

Since the Giapetto LP has two variables, it may be solved graphically. The feasible region is the set of all points satisfying the constraints:

Giapetto Constraints

2 x1 + x2 ≤ 100 (finishing constraint)

x1 + x2 ≤ 80 (carpentry constraint)

x1 ≤ 40 (demand constraint)

x1 ≥ 0 (sign restriction)

x2 ≥ 0 (sign restriction)

A graph of the constraints and feasible region is shown on the next slide.

Page 17: Math

17

Graphical Solution to a 2-Variable LP

X1

X2

10 20 40 50 60 8020

40

60

80

100

finishing constraint

carpentry constraint

demand constraint

z = 60

z = 100

z = 180

Feasible Region

G

A

B

C

D

E

F

H

Any point on or in the interior of the five sided polygon DGFEH(the shade area) is in the feasible region.

Isoprofit line for maximization problem (Isocost line for minimization problem )is a set of points that have the same z-value

Page 18: Math

18

Two type of Constraints

Binding and Nonbinding constraints

A constraint is binding if the left-hand and right-hand side of the constraint are equal when the optimal values of the decision variables are substituted into the constraint.

Page 19: Math

19

Two type of Constraints

A constraint is nonbinding if the left-hand side and the right-hand side of the constraint are unequal when the optimal values of the decision variables are substituted into the constraint.

Page 20: Math

20

Special Cases of Graphical Solution

• Some LPs have an infinite number of solutions (alternative or multiple optimal solutions).

• Some LPs have no feasible solution (infeasible LPs).

• Some LPs are unbounded: There are points in the feasible region with arbitrarily large (in a maximization problem) z-values.

Page 21: Math

21

Alternative or Multiple Solutions

Any point (solution) falling on line segment AE will yield an optimal solution with the same objective value

X1

X2

10 20 30 40

1020

3040

50

Feasible Region

F50

60

z = 60

z = 100 z = 120

A

B

C

D

E

Page 22: Math

22

no feasible solution

X1

X2

10 20 30 40

10

20

30

40

50

No Feasible Region

50

60

x1 >= 0

x2 >=0

No feasible region exists

Some LPs have no solution. Consider the following formulation:

Page 23: Math

23

Unbpunded LP

X11 2 3 4

1

2

3

4

X2

5

6

5 6

A

B

C

Feasible Region

z = 4

z = 6

DThe constraints are satisfied by all points bounded by the x2 axis and on or above AB and CD.

There are points in the feasible region which will produce arbitrarily large z-values (unbounded LP).