Unit 3 Maths For Financ New
Unit 3 Maths For Financ New
Unit 3 Maths For Financ New
3.1 INTRODUCTION
Example:
Maximize: 4X1 + 7X2 + 5X3 (profit)… objective function subject to
2X1 + 3X2 + 6X3 ≤ 300 labor hrs
5X1 + 4X3 ≤ 200 raw mata. System
Constraints
3X1 + 5X2 + 2X3 ≤ 360
X1 = 30 Individual
X1 – qty of product 1 X2 ≥ 40 Constraints
Variables
Decision
58
None-negativity constrains- specify that no variable will be allowed to take on a negative
value. The non negativity constraints typically apply in an LP model.
3.3 FORMULATING LP MODELS
The manager also has acquired information on the available company resources. These
(weekly) amounts are:
Resource Resource available
Assembly time 100hrs
Inspection time 22hrs
Storage space 39cubic feet
59
Answer for the above check your progress question
60
It’s a relatively straight forward method for determining the optional solution to certain
linear programming problems. This method can be used only to solve problems that
involve two decision variables. However, linear programming involve more than two
decision variables, so the graphic approach is not used to solve these.
61
To identity the maximum (minimum) value we use the corner point approach or the
extreme point approach. The corner point theorem states that: For LP problems that have
optional solutions, a solution will occur at an extreme, or corner point. Determining the
value of the objective function at each corner point, we could identify the optional
solution by selecting the corner point that has the best value.
After all corner points have been so evaluated, select the one with the highest or lowest
value depending on the optimization case.
Value of the obi
Corner Coordinates How function Z = 60X1 + 50X2
Points X1 X2 determined?
A 0 0 observation 0 br
B 11 0 observation 660 br
C 9 4 Simultaneous 740 br
equation
D 5 8 Simultaneous 700 br
equation
E 0 10 Observation 500 br
Basic Solution
X1 = 9 X2 = 4 Z = 740 Br.
After we have got the optimal solution,
Interpretation: The company is advised to produce 9 units of type 1 micro computer and 4
units of type 2 micro computers per week to maximize its early profit to Br. 740.
62
X2 9.67 0
X2
12
8
A
4 B
0 C X1
4 8 12 16
The optimal solution to a linear programming model will occur at an extreme point of the
feasible solution space. This is true even if a model involves more than two variables;
optsmal solutions will occur at these point of the feasible solution space; some will be
outside of the feasible solution space. Hence, not every solution will be a feasible
solution. Solutions which represent infasseetwim of constraints are called basic solutions;
63
those which also satisfy all of the constraints, including the non-negativity constraints,
are called basic feasible solutions. The simplex method is an algebraic procedure for
systematically examining basic feasible solutions. If an optimal solution exists, the
simplex method will identify it. # of basic solution n + m.
The simplex procedure for a maximization problem with all ≤ constraints consists of the
following steps.
1. Write the LPM in a Standard form: When all of the constraints are written as
equalities, the LP program is said to be in a standard form. We convert the LPM in to
a standard form by applying the slack variables, s, which carries a subscript that
denotes which constraint it applies to. For example, s1 refers to the amount of slack in
the first constraint, S2 to the amount of slack in the second constraint, and so on.
When slack variables are introduced to the constraints, they are no longer inequalities
b/c the slack variable accounts, they become equalities. Further more, every variable
in a model must be represented in the objective function
2. Taking the microcomputer problem, its standard form is as follows
Z max = 60X1 + 50X2 Z max = 60X1 + 50X2 + 0S1 + 0S2 + 0S3
4X1 + 10X2 ≤ 100 4X1 + 10X2 + S1 = 100
2X1 + X2 ≤ 22 ⇒ 2X1 + X2 + S2 = 22
3X1 + 3X2 ≤ 39 3X1 + 3X2 + S3 = 39
X1, X2 ≥ 0 All variables ≥ 0
(X1, X2, S1, S2, S3 ≥ 0)
3. Develop the initial tableau
a. List the variables across the top of the table and write the objective function
coefficient of each variables just above it.
b. There should be one row in the body of the table for each constraint. List the slack
variables in the basis column, one per row.
c. In the Cj column, enter the objective function coefficient of zero for each slack
variable.
d. Compute values for row Zj. Cj = Coeff of variable J in the obj function.
64
Solution Cj 60 50 0 0 0
Basis X1 X2 S1 S2 S3 RHSV
S1 0 4 10 1 0 0 100 100/4 = 25
leaving
S2 0 2 1 0 1 0 22 22/2 = 11
39/3 = 13
S3 0 3 3 0 0 1 39
Zj 0 0 0 0 0 0
Cj - Zj 60 50 0 0 0
Initial feasible solution
S1 = 100 Obtained by
Entering variable S2 = 22 equating tow
S3 =39 Variables to
X1 = 0 Zero
X2 = 0 Decision
Z = 0 Variable
Incoming Variable
65
Solution Cj 60 50 0 0 0 RHSV
basis X1 X2 S1 S2 S3
S1 0 0 0 1 6 -16/3 24
X1 60 1 0 0 1 -1/3 9
X2 50 0 1 0 -1 2/3 4
Zj 60 50 0 10 40/3 740
Opportunity cost
Cj - Zj 0 0 0 -10 -40/3
6. Compute Cj – Zj row
7. If all Cj – Zj Values are zeros and negatives, you have reached optimality
8. If this is not the case (step 6), repeat 2 to 5 until you get optional solution.
“A simplex solution in a maximization problem in optional if the Cj – Zj row consists
entirely of zeros and negative numbers (i.e. there are no positive values in the bottom
row.)”
Note: The variables in solution all have unit vectors in their respective columns for
the constraint equations. Further, note that a zero appears in row C – Z in every
column whose variable is in solution, in row C – Z in every column whose variable is
in solution, indicating that its maximum contribution to the objective function has
been realized.
Example 2
A manufacture of lawn and garden equipment makes two basic types of lawn mowers; a
push type and a self propelled model. The push type require 9 minutes to assemble and 2
minutes to package; the self-propelled mover requires 12 minute to assemble and 6
minutes to package. Each type has an engine. The company has 12hrs of assembly time
available, 75 engines, and 5hrs of packing time profits are Birr 70 for the self propelled
model and br 45 for the push type mower per unit.
Required:
1. a. To determine how many units of each type of mower to produce so as to
maximize profit.
b. Let X1 be push type mower
X2 be self propelled mower
66
c. Determine the objective function
Z max = 45X1 + 70 X2
d. Identify constraints
9X1 + 12X2 ≤ 720 minutes ……assembly time
2X1 + 6X2 ≤ 300 minutes ……..packing time
X1 + X2 ≤ 75 engine ………….Engines
X1, X2 ≥ 0
In summary
Z max = 45X1 + 70X2
S.t. 9X1 + 12X2 ≤ 720
2X1 + 6X2 ≤ 300
X1 + 2 ≤ 75
X1, X2 ≥ 0
2. a. Write the Lpm in a standard form
Z max = 45X1 + 70X2 + 0S1 + 0S2 + 0S
S.T. 9X1 + 12X2 + S1 = 720
2X1 + 6X2 + S2 = 300
X1 + X2 + S3 = 75
X1 X2, S1, S2, S3 ≥ 0
b. Develop the initial tableau
Solution C 45 70 0 0 0 RHSV
Basis X1 X2 S1 S2 S3
Qij = Bi/aij
S1 0 9 12 1 0 0 720
720/12 = 60
S2 0 2 6 0 1 0 300
300/6 = 50 – Leaving
S3 0 1 1 0 0 1 75 75/1 = 75
Z 0 0 0 0 0 0
C-Z 45 70 0 0 0
entering
67
C 45 70 0 0 0
Solution Basis X1 X2 S1 S2 S3 RHSV
S1 0 5 0 1 -2 0 120
X2 70 1/3 1 0 1/6 0 50
S3 0 2/3 0 0 -1/6 1 25
Z 70/30 70 0 70/6 0 3500
C-Z 65/3 0 0 -70/6 0
Entering
1/5R1, -1/3 R1new + R2old, -2/3R, New + R3 old
C 45 70 0 0 0 Optimal solution
Solution Basis X1 X2 S1 S2 S3 RHSV X1 = 24units
68
X2
120
9X1 + 12X2 = 720
100 2X1 + 6S2 = 300
9(150 – 3X2) + 12X2 = 720
80 1450 – 27X2 + 12X2 = 720
730 = 15X2
X2 = 730/15
60 9X1 = 720 – 4 (730/3)
9X1 + 12X2 = 720
E
40
D
20
C 2X1 + 6X2 = 300
Interpretation. The company is advised to produce 24 units of push type mower and 40
units of self-propelled mowers so as to realize a profit of Br. 4020. in doing so, the
company would be left with unused resource of engine which can be used for other
purposes.
69
Exercises
1. firm manufactures three products which must be processed through some of or all
four departments. The table below indicates the number of hours a unit of each
product requires in the different departments and the number of pounds of raw
materials required. Also listed are the cost per unit, selling price, and weekly
capacities of both work-hours and raw materials. If the objective is to maximize
total weekly profit, formulate the linear programming model. (Only the model)
Weekly
Product A Product B Product C Availability
Department 1 3 4 2 120 hours
Department 2 2 2 100 hours
Department 3 4 1 80 hours
Department 4 2 3 6 150 hours
Pounds of raw 5 4 3 250 pounds
Material per
unit
Selling price $ 50 $ 60 $ 65
Cost / unit 41 40 43
70