Chapter Two
Linear Programming:
Application and Model
Formulation
2.1. Introduction (We first detail discuss
the theory of LP)
The term linear implies that all the
mathematical relations used in the problem
are linear or straight-line relations,
While the term programming refers to the
method of determining a particular program
or plan of action,
i.e., the use of algorithms that is a well
defined sequence of steps that will lead to an
optimal solution.
Cont..
• As a whole, the term linear programming
refers to a family of mathematical techniques
for:
- determining the optimum allocation of
resources and
-obtaining a particular objective when there are
alternative uses of the limited or constrained
resources.
2.2. Linear Programming Models
 Linear programming models:
- are mathematical representations of LP problems.
-have certain characteristics in common.
 Knowledge of these characteristics:
- enables us to recognize problems that are amenable/ተዕዛዝ
የማይቃወም/ to a solution using LP models, and
-to be able to correctly formulate an LP model.
• The components relate to the structure of a model,(2)
whereas
• The assumptions reveal the conditions under which the
model is valid.(1)
Components vs Assumptions
• The components relate to the structure of a
model,(2)
whereas
• The assumptions reveal the conditions under
which the model is valid.(1)
2.2.1. Components of LP Models
There are four major components of LP models
including:
1.Objective function,
2. decision variables,
3. constraints and
4. parameters.
1. Objective and Objective Function
• The objective in problem solving is the criterion by
which all decisions are evaluated.
• It provides the focus for problem solving.
• In linear programming models, a single, quantifiable
objective must be specified by the decision maker.
• Because we are dealing with optimization, the
objective will be either maximization or minimization.
• Hence, every LP problem will be either maximization
or a minimization problem.
• An LP model consists of a mathematical statement of
the objective called the objective function.
2. Decision variables
They represent unknown quantities to be solved
for.
The decision maker can control the value of the
objective, which is achieved through choices in the
levels of decision variables.
- For example, how much of each product should
be produced in order to obtain the greatest profit?
3. Constraints
The ability of a decision maker to select values of the
decision variables in an LP problem is subject to certain
restrictions or limits coming from a variety of sources.
The restrictions may reflect
- availabilities of resources (e.g., raw materials, labor time,
etc.),
-legal or contractual requirements (e.g., product
standards, work standards, etc.),
-technological requirements (e.g., necessary compressive
strength or tensile strength) or
-they may reflect other limits based on forecasts, customer
orders, company policies, and so on.
Cont...
In LP model, the restrictions are referred to as
constraints.
Only solutions that satisfy all constraints in a
model are acceptable and are referred to as
feasible solutions.
 The optimal solution will be the one that
provides the best value for the objective
function.
A constraint has four elements:
• A right hand side (RHS) quantity that specifies the
limit for that constraint.
• It must be a constant, not a variable.
• An algebraic sign that indicates whether the limit is an
upper bound that cannot be exceeded, a lower bound
that is the lowest acceptable amount, or an equality
that must be met exactly.
• The decision variables to which the constraint applies.
• The impact that one unit of each decision variable will
have on the right-hand side quantity of the constraint.
Constraints can be arranged into three groups:
• System constraints – involve more than one
decision variable,
• Individual constraints – involve only one
variable, and
• Non-negativity constraints – specify that no
variable will be allowed to take on a negative
value.
• The non-negativity constraints typically apply in
an LP model, whether they are explicitly stated
or not.
4. Parameters
• The objective function and the constraints
consist of symbols that represent the decision
variables (e.g., X1, X2, etc.) and numerical
values called parameters.
• The parameters are fixed values that specify the
impact that one unit of each decision variable
will have on the objective and on any constraint
it pertains to as well as the numerical value of
each constraint.
The following simple example illustrates the
components of LP models:
2.2.2. Assumptions of LP Models
1. Linearity (proportionality)
• The linearity requirement is that each decision variable has a linear
impact on the objective function and in each constraint in which it
appears.
• In terms of a mathematical model, a function or equation is linear
when the variables included are all to the power 1 (not squared,
cubed, square root, etc.).
• On the other hand, the amount of each resource used (supplied)
and its contribution to the profit (or cost) in the objective function
must be proportional to the value of each decision variable.
• For example, if production of one unit requires 5 hours of a
particular resource, then making 3 units of that product requires
15 hours (3x5) of that resource.
2. Divisibility (Continuity)
• The divisibility requirement pertains to potential values of decision variables.
• It is assumed that non-integer values are acceptable.
• For example, the optimal number of houses to construct, 3.5 do not appear
to be acceptable.
• Instead, that type of problem would seem to require strictly integer
solutions.
• In such cases, integer-programming methods should be used.
• It should be noted, however, that some obvious integer type situations could
be handled under the assumption of divisibility.
• For instance, suppose 3.5 to be the optimal number of television sets to
produce per hour, which is unacceptable, but it would result in 7 sets per two
hours, which would then be acceptable.
3. Certainty
• This requirement -involves two aspects of LP models.
• One aspect relates to the model parameters, i.e., the
numerical values.
• It is assumed that these values are known and constant.
• In practice, production times and other parameters may
not be truly constant.
• Therefore, the model builder must make an assessment
as to the degree to which the certainty requirement is
met.
• The other aspect is the assumption that all relevant
constraints have been identified and represented in the
model.
Additivity
• The value of the objective function and the total
amount of each resource used (or supplied), must be
equal to the sum of the respective individual
contributions (profit or cost) by decision variables.
• For example, the total profit earned from the sale of
two products A and B must be equal to the sum of the
profits earned separately from A and B.
• Similarly, the amount of a resource consumed for
producing A and B must be equal to the sum of
resources used for A and B respectively.
4. Non-negativity
• It assumes that negative values of variables are
unrealistic and, therefore, will not be
considered in any potential solutions.
• Only positive values and zero will be allowed
and the non-negativity assumption is inherent
in LP models.
2.3. Linear Programming Applications
• There is a wide range of problems that lend
themselves to solution by linear programming
techniques.
• This discussion is only meant to give an
indication of the LP techniques for managerial
decision making and the apparent diversity of
situations to which linear programming can be
applied.
Some of these include፡
- production management (product mix, blending
problems, production planning, Assembly line
balancing…),
- Marketing management (media selection, traveling
sales man problem, physical distribution),
- Financial management (portfolio selection, profit
planning),
- agricultural application, military applications,
personnel management (staffing problem,
Determination of equitable salary and etc.
Steps in formulating LP models:
Step-1: Identify the decision variables.
Step-2: Determine the objective function.
Step-3: Identify the constraints.
Step-4: Determine appropriate values for
parameters and determine whether :
-an upper limit,
-lower limit or
-equality is called for.
 Use this information to build a model.
Validate the model.
Cont..
• NB: To clearly formulate the LP, try to give
attention to phrases; at least, at most,
exactly, not more then, cannot exceed in
order to whether the constraints are to be
associated by ≥, ≤ or = signs.
• Otherwise, its invalid formulation of
LP.
Exemaple1 (Product Mix)
 ABC private limited company is engaged in the production of
power transformers and traction transformers.
• Both of these categories of transformers pass through three
basic processes:
-core preparation,
-core to coil assembly, and
-vapor phase drying.
 A power transformer yields a contribution of Birr 50,000 and
 Traction transformer contributes Birr 10,000.
• The time required in the production of these two products in
terms of hours for each of the processes is as follows.
The time required in the production of these
two products in terms of hours for each of the
processes is as follows.
Power transformer Traction
Transformer
Core preparation 75 15
Core to Coil Assembly 160 30
Vapor Phase Drying 45 10
If the capacities available are 1000, 1500, and 750
machine hours in each processes respectively, formulate
the problem as LP?
Solution
• Step -1
 Identify decision variables
• Since the products to be produced are power and traction
transformers using the available resource to attain the objective
set, we consider them as decision variables.
• This is because the organization's problem here is how many of
each product to produce in order to attain the objective, which
requires the management decision.
• Let ፡ X1 = the no of power transformers to be produced.
X2= the no of traction transformer to be produced
Step-2
Determine Objective Function
• From the problem above, we understand that
the problem is maximization problem.
Hence,
• Z max = 50,000X1+ 10,000X2
• This is because, each unit of
- X1 contributes Birr 50,000 and
- X2 contributes Birr 10,000
to objective function.
Step -3
Identify constraints
• Here we have two constraints:
- structural and
-non-negativity constraints.
• The structural constraint is the amount of machine
hours available in each process.
Step - 4.
Determining Parameters
• Parameters are already identified in the table of the
problem.
Note: Step 3 and 4 can be performed simultaneously as:
• 75X1 + 15X2 < 1000 hrs- Core preparation
process
• 160X1 + 30X2 < 1500 hrs- Core to Coil Assembly
Machine hour constraint
• 45X1 + 10X2 < 750 hrs- Vapor Phase Drying
• X1, X2 > 0
Step- 5
Building and validating the model
• Z max = 50,000X1+ 10,000X2
• Subject to:
o 75X1 + 15X2 < 1000 hrs
o 160X1 + 30X2 < 1500 hrs
o 45X1 + 10X2 < 750 hrs
o X1, X2 > 0
Example 2 (Investment Application)
• An individual investor has Birr 70,000 to divide among several
investments.
• The alternative investments are
-Municipal bonds with an 8.5% return,
-Certificates of deposits with a 10% return,
-Treasury bill with a 6.5% return, and
-Income bonds with a 13% return.
• The amount of time until maturity is the same for each
alternative.
• However, each investment alternative has a different perceived
risk to the investor; thus it is advisable to diversify.
• The investor wants to know how much to invest in each
alternative in order to maximize the return.
The following guidelines have been established for diversifying the investment and lessening
the risk perceived by the investor.
1. No more than 20% of the total investment should be in an income
bonds.
2. The amount invested in certificates of deposit should not exceed
the amount invested in other three alternatives.
3. At least 30% of the investment should be in treasury bills and
certificates of deposits.
4. The ratio of the amount invested in municipal bonds to the
amount invested in treasury bills should not exceed one to three.
• The investor wants to invest the entire Birr 70,000.
• Required: Formulate a LP model for the problem.
Solution
Step -1
Decision variables
• Four decision variables represent the monetary
amount invested in each investment
alternative.
• Let X1, X2, X3 and X4 represent investment on
municipal bonds, certificates of deposits,
Treasury bill, and income bonds respectively.
Step -2
 Objective function
• The problem is maximization because from the word problem
we know that the objective of the investor is to maximization
return from the investment in the four alternatives.
• Therefore, the objective function is expressed as:
 Z max = 0.085 X1+ 0.1X2+ 0.065X3+0.13X4
Where,
• Z = total return from all investment
• 0.085 X1=return from the investment in municipal bonds.
• 0. 100 X2=return from the investment in certificates in deposit
• 0.065 X3=return from the investment in treasury bills
• 0.130 X4=return from the investment in income bonds
Step3 and 4- Model Constraints and parameter
• In this problem the constraints are the guide
lines established for diversifying the total
investment.
• Each guideline is transformed in to
mathematical constraint separately.
• Guideline -1 above is transformed as:
• X4 <20 %(70,000) X4 <14,000
• Guideline -2
• X2< X1 +X3+ X4 X2 - X1 -X3- X4< 0
Guideline- 3
• X2+ X3> 30 %( 70,000) X2 + X3 >
21,000
Guideline - 4
• X1/ X3< 1/3 3X1<X3 3X1-
X3< 0
Finally,
• X1+ X2+ X3+X4 = 70,000, because the investor's money
equals to the sum of money invested in all alternatives.
• This last constraint differs from , <, and ≥ inequalities
previously developed in that there is a specific
requirement to invest an exact amount.
• Therefore, the possibility to invest more or less than Birr
70,000 is not considered.
• This problem contains all three types of constraints
possible in LP problems:
• Finally, ≤, ≥ and =.
• As this problem demonstrates there is no restriction on
mixing these types of constraints.
Guideline-1 above is transformed as:
• X4 <20 %(70,000)  X4 <14,000
• Guideline- 2
• X2< X1 +X3+ X4  X2 - X1 -X3- X4< 0
• Guideline - 3
• X2+ X3> 30 %( 70,000)  X2 + X3 > 21,000
•Guideline -4
• X1/ X3< 1/3 3X1<X33X1-X3< 0
Finally,
• X1+ X2+ X3+X4 = 70,000, because the investor's money
equals to the sum of money invested in all alternatives.
• This last constraint differs from , and  inequalities
previously developed in that there is a specific
requirement to invest an exact amount.
• Therefore, the possibility to invest more or less than
Birr 70,000 is not considered.
• This problem contains all three types of constraints
possible in LP problems: ,  and =.
• As this problem demonstrates there is no restriction on
mixing these types of constraints.
Step5- The complete LPM for this problem can be summarized as:
• Zmax = 0.085 X1+ 0.1X2+ 0.065X3+0.13X4
• Subjected to:
• X4 <14,000
• X2 - X1 -X3 - X4 < 0
• X2 + X3 > 21,000
• 3X1-X3 < 0
• X1 + X2 + X3 + X4 = 70,000,
• X1+ X2+ X3+X4 0 
2.4. Solving LP Models
• Following the formulation of a mathematical model, the
next stage in the application of LP to decision making
problem is to find the solution of the model.
• An optimal, as well as feasible solution to an LP problem
is obtained by choosing from several values of decision
variables x1,x2…xn , the one set of values that satisfy the
given set of constraints simultaneously and also provide
the optimal ( maximum or minimum) values of the given
objective function.
• The most common solution approaches are to solve
graphically and algebraically the set of mathematical
relationships that form the model, thus determining the
values of decision variables.
2.4.1. Graphical Linear Programming Methods
• Graphical linear programming is a relatively
straightforward for determining the optimal solution
to certain linear programming problems involving only
two decision variables.
• Although graphic method is limited as a solution
approach, it is very useful in the presentation of LP, in
that it gives a “picture” of how a solution is derived
thus a better understanding of the solution.
• In this method, the two decision variables are
considered as ordered pairs (X1, X2), which represent
a point in a plane, i.e, X1 is represented on X-axis and
X2 on Y-axis.
Important Definitions
• Solution
-The set of values of decision variables xj (j = 1,2,…,
n) which satisfy the constraints of an LP problem is
said to constitute solution to that LP problem.
• Feasible solution
-The set of values of decision variables xj (j = 1,2,…,
n) which satisfy all the constraints and non-
negativity conditions of an LP problems
simultaneously is said to constitute the Feasible
solution to that LP problem.
Infeasible solution
-The set of values of decision variables xj (j = 1,2,
…, n) which do not satisfy all the constraints and
non- negativity conditions of an LP problems
simultaneously is said to constitute the infeasible
solution to that LP problem.
• Basic solution
-For a set of m simultaneous equations in n
variables ( n>m), a solution obtained by setting ( n-
m) variables equal to zero and solving for
remaining m equations in m variables is called a
basic solution.
Cont...
• The (n-m) variables whose value did not appear in this
solution are called non-basic variables and the remaining m
variables are called basic variables.
• Basic feasible solution
-A feasible solution to LP problem which is also the basic
solution is called the basic feasible solution.
• That is, all basic variables assume non-negative values.
Basic feasible solutions are of two types:
• Degenerate A basic feasible solution is called degenerate if
value of at least one basic variable is zero.
• Non-degenerate A basic feasible solution is called non-
degenerate if value of all m basic variables are non- zero
and positive.
Optimal Basic feasible solution
-A basic feasible solution which optimizes the
objective function value of the given LP problem is
called an optimal basic feasible solution.
• Unbounded solution
-A solution which can increase or decrease the
value of OF of the LP problem indefinitely is called
an unbounded solution.
Example
• In order to demonstrate the method, let us take
a microcomputer problem in which a firm is
about to start production of two new
microcomputers, X1 and X2.
• Each requires limited resources of: assembly
time, inspection time, and storage space.
• The manager wants to determine how much of
each computer to produce in order to maximize
the profit generated by selling them.
Other relevant information is given below:
Type 1 Type 2 Available
resource
Assembly time per unit 4 hrs 10hrs 100hrs
Inspection time per unit 2hrs 1hrs 22hrs
Storage space per unit 3cubic feet 3cubic feet 39cubic feet
Profit per unit $60 $50
The model is then:
• Maximize 60X1 + 50X2
• Subject to Assembly 4 X 1 +10 X 2 < 100 hrs
Inspection 2 X 1 + 1 X 2 < 22 hrs
Storage 3 X 1 + 3 X 2 < 39 cubic feet
X1, X2 > 0
Graphical solution method involves the following steps.
1. Formulate the mathematical model (from the
previous section)
2. Write the objectivity of function and plot each
of the constraints (find corner)
3. Identify the feasible region ( common shaded
area)
4. Locate the optimal solution ( specify optimal
corner)
Step 2. Plot each of the constraints
• The step begins by plotting the non-negativity
constraint, which restricts our graph only to
the first quadrant.
• We then can deal with the task of graphing the
rest of the constraints in two parts.
For example
• Let us take the first constraint 4X1 + 10X2 <
100 hrs.
• First we treat the constraint as equality: 4X1 +
10X2 = 100.
• Then identify the easiest two points where the
line intersects each axis by alternatively
equating each decision variable to zero and
solving for the other:
- when X1=0, X2 becomes 10 and when X2=0, X1
will be 25.
Cont..
• We can now plot the straight line
that is boundary of the feasible
region as we have got two points (0,
10) and (25,0).
Step 3. Identify the feasible region
• The feasible region is the solution space
that satisfies all the constraints
simultaneously.
• It is the intersection of the entire region
represented by all constraints of the
problem.
• We shade in the feasible region
depending on the inequality sign.
Cont..
• In our example above, for all the constraints
except the non-negativity constraint, the
inequality sign is „less than or equal to‟ and it
represents region of the plane below the
plotted lines.
Step 4. Locate the optimal solution.
• The feasible region contains an infinite number of
points that would satisfy all the constraints of the
problem.
• Point that will make the objective function
optimum will be our optimal solution.
• This point is always found among the corner points
of the solution space.
• For the above feasible solution of the Graph has
five corner points, in which the three are obviously
known, the two remaining is calculated by the
substitution of the interaction of two lines.
For example
• corner at “b” get by substitution equation of line
A with the equation of Line S.
• The same for corner “c” calculated by substitution
the Equation of line S and the equation of line I.
A= X 2 =10 hrs-2/5 X 1
S= X 2 = 13- X 1
I= X 2 =22-2 X 1.
• Therefore, b=10 hrs-2/5 X 1 = X 2 = 13- X 1 = (5, 8)
C = 13- X 1 = 22-2 X 1 = (9, 4)
Cont..
Corner point Value of Max= 60X1 +
50X2
a(0,10) 60(0) + 50 (10) = 500
b (5,8) 60(5) + 50 (8) = 700
C (9,4) 60(9) + 50(4) = 740
d (11,0) 60(11) + 50(0) = 660
e (0,0) 60(0) + 50(0) = 0
Interpretation: For a firm to maximize
its profit (740), it should produce 9 units
of the Model I microcomputer and 4 units
of model II
Example 2:
• Solving minimization problems involve where the objective
functions (like cost function) will be minimum.
• The constraints are connected to RHS values with > sign.
• But, in real world problems, mixes of constraint is also possible.
• The value of RHS involves the lowest value of the constraint.
• The solution space lies above the slant lines and it is not enclosed.
• It extends indefinitely above the lines in the first quadrant.
• This means simply that cost increases without limit as more and
more units are produced.
• The minimum cost will occur at a point along the inner boundary
of the solution space.
• The origin and other points below the lines are not in the solution
space.
Example
• Zmin = 0.1x+0.07y
• Subject to:
• 3x+2y > 18
• 2x+5y > 10
• y > 1
• x, y > 0
• Find the values of x and y which makes the
objective function minimum?
Solution
Coordinate
Corner point x y Zmin = 0.1x+0.07y
A 0 9 0.63
B 3.63 3.54 0.61
C 15/4 1 0.445
2.4.2. Graphical Solutions for the Special Cases of LP
• i) Un boundedness
• Un boundedness occurs when the decision
variable increased indefinitely without
violating any of the constraints.
• The reason for it may be concluded to be
wrong formulation of the problem such as
incorrectly maximizing instead of minimizing
and/or errors in the given problem.
• Checking equalities or rethinking the problem
statement will resolve the problem.
Example
• Max Z = 10X1 + 20X2
• Subject to 2X1 + 4X2 > 16
X1 + 5X2 > 15
X1, X2 > 0
Following the above listed steps of graphical solution method, we
find the following graph for the above model:
The shaded area represents the set of all feasible solutions and as
can be seen from the graph, the solution is unbounded.
ii) Redundant Constraints
• In some cases, a constraint does not form a unique boundary of
the feasible solution space.
• Such a constraint is called a redundant constraint.
• A constraint is redundant if its removal would not alter the
feasible solution space.
• Redundancy of any constraint does not cause any difficulty in
solving an LP problem graphically.
• Constraints appear redundant when it may be more binding
(restrictive) than others.
• There is not intersection of line, b/c it simple redundant of
equation 2X1+ 3X2= 60
iii) Infeasibility
• In some cases after plotting all the constraints
on the graph, feasible area (common region)
that represents all the constraint of the
problem cannot be obtained.
• In other words, infeasibility is a condition that
arises when no value of the variables satisfy all
the constraints simultaneously.
• Such a problem arises due to wrong model
formulation with conflicting constraints.
For example,
• Max Z = 3X1+2X2
• Subject to: 2X1 + X2 < 2
3X1 + 4X2 > 12
X1, X2 > 0
iv) Multiple optimal solutions
• Recall the optimum solution is that extreme
point for which the objective function has the
largest value.
• It is of course possible that in a given problem
there may be more than one optimal solution.
• There are two conditions that should be
satisfied for an alternative optimal solution to
exist:
Cont..
• The given objective function is parallel to a
constraint that forms the boundary of the feasible
region.
• In other words, the slope of an objective function is
the same as that of the constraint forming the
boundary of the feasible region; and
• The constraint should form a boundary on the
feasible region in the direction of optimal movement
of the objective function.
• In other words, the constraint should be an active
constraint.
For example
• Max Z = 8X1+16X2
• Subject to: X1 + X2 < 200 ……. C1
3X1 + 6X2 < 900 ……. C2
X2 < 125 ……. C3
X1, X2 > 0
Cont..
• In the problem above, using extreme point method and
solving for values of corner points simultaneously, the
objective function assumes its maximum value of 2,400 at
two corner points B (50,125) and C (100,100).
• Therefore, the optimal solution is found on the line
segment connecting the two corner points.
• One benefit of having multiple optimal solutions is a
manager may prefer one of them to the others, even
though each would achieve the same value of the
objective function.
• In practical terms, one of the two corner points is usually
chosen because of ease in identifying its values.
Advantages: of Graphical method
• It is simple
• It is easy to understand, and
• It saves time
Additional Note
•Example
Solution to Linear Programing (LP)
• Solution to Linear Programing (LP)
• Before going through the solution of (L.P) we
need to know some definitions and concepts.
• Solution:
-A set of real values of X = (x1, x2, ..., xn) which
 satisfies the constraint AX (≤ = ≥ ) b.
Feasible Solution:-
-A set of real values of X = (x1, x2, ..., xn) which
 Satisfies the constraints AX( ≤ = ≥ ) b and
 satisfies the non-negativity restriction X ≥ 0.
• Feasible Region:
-The collection of all the feasible solution is
called as the feasible region.
When a LP is solved, one of the following cases will occur:
• Case 1:
- The LP has a unique solution when has only one
optimal solution
• Case 2:
- The LP has more than one ( actually an infinite
number of ) optimal solutions.
• This is the case of alternative (Multiple)
optimal solutions.
Cont..
• Case 3:
- The LP is infeasible (it has no feasible solution).
- This means that the feasible region contains no
points.
• Case 4:
- The LP is unbounded.
- This means (in a max problem) that there are
points in the feasible region with arbitrarily large
z-values (objective function value ).
There are many methods to solve Linear programing problem. Such as :
• GRAPHICAL METHOD
• If the objective function Z is a function of two
variables, then the problem can be solved by
graphical method..
A procedure of solving LPP by graphical
method is as follows:
i. Formulation of the problem into LPP model
(i.e)
-objective function and the constraints are
written down.
ii. Consider each inequality constraints as
equation
Cont..
iii. Plot each equation on the graph as each equation
will geometrically represent a straight line.
iv. Shade the feasible region and identify the feasible
solutions.
-Every point on the line will satisfy the equation of
line.
-If the inequality constraints corresponding to that line
is ≤ then the region below the line lying in the 1st
quadrant (due to non negativity of variables) is shaded.
-For the inequality constraints with ≥ sign the region
above the line in the 1st quadrant is shaded.
Cont...
-The point lying in common region will satisfy all the
constraints simultaneously.
Thus, the common region obtained is called feasible region.
• This region is the region of feasible solution.
• The corner points of this region are identified.
v. Finding the optimal solutions.
 The values of Z at various corners points of the region of
feasible solution are calculated.
 The optimum (maximum or minimum) Z among these
values is noted.
 Corresponding solution is the optimal solution.
Example: Unique Solution
• Solve the following LPP graphically
• Max Z = 4x + 5y
Subject to x + y ≤ 20
3x + 4y ≤ 72
x, y ≥ 0
Solution
• First, we need to draw the straight lines of constrains.
• This means finding x- intercept and y- intercept.
For the constrain x + y ≤ 20
• x- intercept ( set y = 0 ) is x + 0 = 20, then
x = 20 , the point (20, 0 )
• y- intercept ( set x = 0 ) is 0 + y = 20 , then
y = 20 , the point is (0, 20 )
For the constrain 3x + 4y ≤ 72
• x- intercept ( set y = 0 ) is 3 x + 0 = 72 , then
x = 24 ,the point is (24, 0 )
• y- intercept ( set x = 0 ) is 0 + 4 y = 72 , then
y = 18 ,the point is (0, 18 ) and
x = 0, y- axis y = 0, x -axis.
.......figure p23
Finally, the optimal solutions x = 8 and y = 12
which is unique
To find the intersection point C feasible region
• We need to solve the system of equations
x + y = 20 ……. (1)
3x + 4y = 72 ………(2)
• Multiply equation (1) by -3 and added to (2) to
get y = 12 and x = 8 then the point C is (8, 12 )
• Now we substitute the corner points into the
objective function Z ,then fined the maximum
one.
...............see figure 23 Table
Example: Multiple Optimal Solutions
• Solve the following LPP by graphical method
• Max Z = 100 x1 + 40 x2
• Subject to 5 x1 + 2 x2 ≤ 1000
3 x1 + 2 x2 ≤ 900
x1 + 2 x2 ≤ 500
x1, x2 ≥ 0
Solution
• First, we need to draw the straight lines of constrains. --This
means finding x1- intercept and x2 - intercept.
• For the constrain 5 x1 + 2 x2 ≤ 1000
x1 - intercept ( set x2 = 0 ) is
• 5 x1 + 0 = 1000, then x1 = 200 , the point (200, 0 )
x2 - intercept ( set x1 = 0 ) is
• 0 + 2 x2 = 1000 , then x2 = 500 , the point is (0, 500 )
• For the constrain 3 x1 + 2 x2 ≤ 900
x1 - intercept ( set x2 = 0 ) is
• 3 x1 + 0 = 900, then x1 = 300 , the point (300, 0 )
x2 - intercept ( set x1 = 0 ) is
• 0 + 2 x2 = 900 , then x2 = 450 , the point is (0, 450 )
Cont..
• For the constrain x1 + 2 x2 ≤ 500
x1 - intercept ( set x2 = 0 ) is
• x1 + 0 = 500, then x1 = 500 , the point (500, 0 )
x2 - intercept ( set x1 = 0 ) is
• 0 + 2 x2 = 500 , then x2 = 250 , the point is
• (0, 250 ) and x1 = 0, x2 axis x2 = 0, x1 axis.
• See Figure Page 24
To find the intersection point C
• We need to solve the system of equations
x1 + 2 x2 = 500 ……. (1)
5 x1 + 2 x2 = 1000 ………(2)
• Multiply equation (1) by -1 and added to (2) to get
• x1= 125 and x2 = 187.5, then the point C = (125, 187.5)
• Now we substitute the corner points into the objective
function Z then fined the maximum one
.....See figure...p25
Finally, there are multiple optimum solutions for the LPP. (0,
250) and (125, 187.5)
.............2000
Example: Unbounded Solutions
• Use graphical method to solve the following
LPP.
• Max Z = 3x1 + 2x2
• Subject to
5x1 + x2 ≥ 10
x1 + x2 ≥ 6
x1 + 4x2 ≥ 12
x1, x2 ≥ 0
Solution
• First, we need to draw the straight lines of
constrains.
• This means finding x1- intercept and x2 -
intercept.
For the constrain 5 x1 + x2 ≥ 10
• x1 - intercept ( set x2 = 0 ) is
• 5 x1 + 0 = 10, then x1 = 2 , the point (2, 0 )
• x2 - intercept ( set x1 = 0 ) is
• 0 + x2 = 10 , then x2 = 10 , the point is (0, 10 )
For the constrain x1 + x2 ≥ 6
• x1 - intercept ( set x2 = 0 ) is
• x1 + 0 = 6, then x1 = 6 , the point (6, 0 )
• x2 - intercept ( set x1 = 0 ) is
• 0 + x2 = 6 , then x2 = 6 , the point is (0, 6 )
For the constrain x1 + 4 x2 ≥ 12
• x1 - intercept ( set x2 = 0 ) is
• x1 + 0 = 12, then x1 = 12 , the point (12, 0 )
• x2 - intercept ( set x1 = 0 ) is
• 0 + 4 x2 = 12 , then x2 = 3 , the point is (0, 3 )
• and x1 = 0, x2 axis x2 = 0, x1 axis.
.....See fig.p27
• The feasible region is unbounded.
• Thus, the maximum value of Z occurs at infinity;
hence, the problem has an unbounded solution.
Example: No Feasible Solution
• Use graphical method to solve the following
LPP.
• Max Z = x1 + x2
• Subject to
• x1 + x2 ≤ 1
• x1 + x2 ≥ 3
• x1, x2 ≥ 0
Solution
• First, we need to draw the straight lines of
constrains.
• This means finding x1- intercept and x2 -
intercept.
For the constrain x1 + x2 ≤ 1
• x1 - intercept ( set x2 = 0 ) is
x1 + 0 = 1, then x1 = 1 , the point (1, 0 )
x2 - intercept ( set x1 = 0 ) is
0 + x2 = 1 , then x2 = 1 , the point is (0, 1 )
For the constrain x1 + x2 ≥ 3
• x1 - intercept ( set x2 = 0 ) is
x1 + 0 = 3, then x1 = 3 , the point (3, 0 )
• x2 - intercept ( set x1 = 0 ) is
0 + x2 = 3 , then x2 = 3 , the point is (0, 3 )
• and x1 = 0, x2 axis x2 = 0, x1 axis.
....see fig.p28
• We cannot find a feasible region for this problem.
• So the problem can not be solved, hence, the
problem has no solution.

OR Ch-two.pptx operational research chapter

  • 1.
  • 2.
    2.1. Introduction (Wefirst detail discuss the theory of LP) The term linear implies that all the mathematical relations used in the problem are linear or straight-line relations, While the term programming refers to the method of determining a particular program or plan of action, i.e., the use of algorithms that is a well defined sequence of steps that will lead to an optimal solution.
  • 3.
    Cont.. • As awhole, the term linear programming refers to a family of mathematical techniques for: - determining the optimum allocation of resources and -obtaining a particular objective when there are alternative uses of the limited or constrained resources.
  • 4.
    2.2. Linear ProgrammingModels  Linear programming models: - are mathematical representations of LP problems. -have certain characteristics in common.  Knowledge of these characteristics: - enables us to recognize problems that are amenable/ተዕዛዝ የማይቃወም/ to a solution using LP models, and -to be able to correctly formulate an LP model. • The components relate to the structure of a model,(2) whereas • The assumptions reveal the conditions under which the model is valid.(1)
  • 5.
    Components vs Assumptions •The components relate to the structure of a model,(2) whereas • The assumptions reveal the conditions under which the model is valid.(1)
  • 6.
    2.2.1. Components ofLP Models There are four major components of LP models including: 1.Objective function, 2. decision variables, 3. constraints and 4. parameters.
  • 7.
    1. Objective andObjective Function • The objective in problem solving is the criterion by which all decisions are evaluated. • It provides the focus for problem solving. • In linear programming models, a single, quantifiable objective must be specified by the decision maker. • Because we are dealing with optimization, the objective will be either maximization or minimization. • Hence, every LP problem will be either maximization or a minimization problem. • An LP model consists of a mathematical statement of the objective called the objective function.
  • 8.
    2. Decision variables Theyrepresent unknown quantities to be solved for. The decision maker can control the value of the objective, which is achieved through choices in the levels of decision variables. - For example, how much of each product should be produced in order to obtain the greatest profit?
  • 9.
    3. Constraints The abilityof a decision maker to select values of the decision variables in an LP problem is subject to certain restrictions or limits coming from a variety of sources. The restrictions may reflect - availabilities of resources (e.g., raw materials, labor time, etc.), -legal or contractual requirements (e.g., product standards, work standards, etc.), -technological requirements (e.g., necessary compressive strength or tensile strength) or -they may reflect other limits based on forecasts, customer orders, company policies, and so on.
  • 10.
    Cont... In LP model,the restrictions are referred to as constraints. Only solutions that satisfy all constraints in a model are acceptable and are referred to as feasible solutions.  The optimal solution will be the one that provides the best value for the objective function.
  • 11.
    A constraint hasfour elements: • A right hand side (RHS) quantity that specifies the limit for that constraint. • It must be a constant, not a variable. • An algebraic sign that indicates whether the limit is an upper bound that cannot be exceeded, a lower bound that is the lowest acceptable amount, or an equality that must be met exactly. • The decision variables to which the constraint applies. • The impact that one unit of each decision variable will have on the right-hand side quantity of the constraint.
  • 12.
    Constraints can bearranged into three groups: • System constraints – involve more than one decision variable, • Individual constraints – involve only one variable, and • Non-negativity constraints – specify that no variable will be allowed to take on a negative value. • The non-negativity constraints typically apply in an LP model, whether they are explicitly stated or not.
  • 13.
    4. Parameters • Theobjective function and the constraints consist of symbols that represent the decision variables (e.g., X1, X2, etc.) and numerical values called parameters. • The parameters are fixed values that specify the impact that one unit of each decision variable will have on the objective and on any constraint it pertains to as well as the numerical value of each constraint.
  • 14.
    The following simpleexample illustrates the components of LP models:
  • 15.
    2.2.2. Assumptions ofLP Models 1. Linearity (proportionality) • The linearity requirement is that each decision variable has a linear impact on the objective function and in each constraint in which it appears. • In terms of a mathematical model, a function or equation is linear when the variables included are all to the power 1 (not squared, cubed, square root, etc.). • On the other hand, the amount of each resource used (supplied) and its contribution to the profit (or cost) in the objective function must be proportional to the value of each decision variable. • For example, if production of one unit requires 5 hours of a particular resource, then making 3 units of that product requires 15 hours (3x5) of that resource.
  • 16.
    2. Divisibility (Continuity) •The divisibility requirement pertains to potential values of decision variables. • It is assumed that non-integer values are acceptable. • For example, the optimal number of houses to construct, 3.5 do not appear to be acceptable. • Instead, that type of problem would seem to require strictly integer solutions. • In such cases, integer-programming methods should be used. • It should be noted, however, that some obvious integer type situations could be handled under the assumption of divisibility. • For instance, suppose 3.5 to be the optimal number of television sets to produce per hour, which is unacceptable, but it would result in 7 sets per two hours, which would then be acceptable.
  • 17.
    3. Certainty • Thisrequirement -involves two aspects of LP models. • One aspect relates to the model parameters, i.e., the numerical values. • It is assumed that these values are known and constant. • In practice, production times and other parameters may not be truly constant. • Therefore, the model builder must make an assessment as to the degree to which the certainty requirement is met. • The other aspect is the assumption that all relevant constraints have been identified and represented in the model.
  • 18.
    Additivity • The valueof the objective function and the total amount of each resource used (or supplied), must be equal to the sum of the respective individual contributions (profit or cost) by decision variables. • For example, the total profit earned from the sale of two products A and B must be equal to the sum of the profits earned separately from A and B. • Similarly, the amount of a resource consumed for producing A and B must be equal to the sum of resources used for A and B respectively.
  • 19.
    4. Non-negativity • Itassumes that negative values of variables are unrealistic and, therefore, will not be considered in any potential solutions. • Only positive values and zero will be allowed and the non-negativity assumption is inherent in LP models.
  • 20.
    2.3. Linear ProgrammingApplications • There is a wide range of problems that lend themselves to solution by linear programming techniques. • This discussion is only meant to give an indication of the LP techniques for managerial decision making and the apparent diversity of situations to which linear programming can be applied.
  • 21.
    Some of theseinclude፡ - production management (product mix, blending problems, production planning, Assembly line balancing…), - Marketing management (media selection, traveling sales man problem, physical distribution), - Financial management (portfolio selection, profit planning), - agricultural application, military applications, personnel management (staffing problem, Determination of equitable salary and etc.
  • 22.
    Steps in formulatingLP models: Step-1: Identify the decision variables. Step-2: Determine the objective function. Step-3: Identify the constraints. Step-4: Determine appropriate values for parameters and determine whether : -an upper limit, -lower limit or -equality is called for.  Use this information to build a model. Validate the model.
  • 23.
    Cont.. • NB: Toclearly formulate the LP, try to give attention to phrases; at least, at most, exactly, not more then, cannot exceed in order to whether the constraints are to be associated by ≥, ≤ or = signs. • Otherwise, its invalid formulation of LP.
  • 24.
    Exemaple1 (Product Mix) ABC private limited company is engaged in the production of power transformers and traction transformers. • Both of these categories of transformers pass through three basic processes: -core preparation, -core to coil assembly, and -vapor phase drying.  A power transformer yields a contribution of Birr 50,000 and  Traction transformer contributes Birr 10,000. • The time required in the production of these two products in terms of hours for each of the processes is as follows.
  • 25.
    The time requiredin the production of these two products in terms of hours for each of the processes is as follows. Power transformer Traction Transformer Core preparation 75 15 Core to Coil Assembly 160 30 Vapor Phase Drying 45 10
  • 26.
    If the capacitiesavailable are 1000, 1500, and 750 machine hours in each processes respectively, formulate the problem as LP? Solution • Step -1  Identify decision variables • Since the products to be produced are power and traction transformers using the available resource to attain the objective set, we consider them as decision variables. • This is because the organization's problem here is how many of each product to produce in order to attain the objective, which requires the management decision. • Let ፡ X1 = the no of power transformers to be produced. X2= the no of traction transformer to be produced
  • 27.
    Step-2 Determine Objective Function •From the problem above, we understand that the problem is maximization problem. Hence, • Z max = 50,000X1+ 10,000X2 • This is because, each unit of - X1 contributes Birr 50,000 and - X2 contributes Birr 10,000 to objective function.
  • 28.
    Step -3 Identify constraints •Here we have two constraints: - structural and -non-negativity constraints. • The structural constraint is the amount of machine hours available in each process. Step - 4. Determining Parameters • Parameters are already identified in the table of the problem.
  • 29.
    Note: Step 3and 4 can be performed simultaneously as: • 75X1 + 15X2 < 1000 hrs- Core preparation process • 160X1 + 30X2 < 1500 hrs- Core to Coil Assembly Machine hour constraint • 45X1 + 10X2 < 750 hrs- Vapor Phase Drying • X1, X2 > 0
  • 30.
    Step- 5 Building andvalidating the model • Z max = 50,000X1+ 10,000X2 • Subject to: o 75X1 + 15X2 < 1000 hrs o 160X1 + 30X2 < 1500 hrs o 45X1 + 10X2 < 750 hrs o X1, X2 > 0
  • 31.
    Example 2 (InvestmentApplication) • An individual investor has Birr 70,000 to divide among several investments. • The alternative investments are -Municipal bonds with an 8.5% return, -Certificates of deposits with a 10% return, -Treasury bill with a 6.5% return, and -Income bonds with a 13% return. • The amount of time until maturity is the same for each alternative. • However, each investment alternative has a different perceived risk to the investor; thus it is advisable to diversify. • The investor wants to know how much to invest in each alternative in order to maximize the return.
  • 32.
    The following guidelineshave been established for diversifying the investment and lessening the risk perceived by the investor. 1. No more than 20% of the total investment should be in an income bonds. 2. The amount invested in certificates of deposit should not exceed the amount invested in other three alternatives. 3. At least 30% of the investment should be in treasury bills and certificates of deposits. 4. The ratio of the amount invested in municipal bonds to the amount invested in treasury bills should not exceed one to three. • The investor wants to invest the entire Birr 70,000. • Required: Formulate a LP model for the problem.
  • 33.
    Solution Step -1 Decision variables •Four decision variables represent the monetary amount invested in each investment alternative. • Let X1, X2, X3 and X4 represent investment on municipal bonds, certificates of deposits, Treasury bill, and income bonds respectively.
  • 34.
    Step -2  Objectivefunction • The problem is maximization because from the word problem we know that the objective of the investor is to maximization return from the investment in the four alternatives. • Therefore, the objective function is expressed as:  Z max = 0.085 X1+ 0.1X2+ 0.065X3+0.13X4 Where, • Z = total return from all investment • 0.085 X1=return from the investment in municipal bonds. • 0. 100 X2=return from the investment in certificates in deposit • 0.065 X3=return from the investment in treasury bills • 0.130 X4=return from the investment in income bonds
  • 35.
    Step3 and 4-Model Constraints and parameter • In this problem the constraints are the guide lines established for diversifying the total investment. • Each guideline is transformed in to mathematical constraint separately. • Guideline -1 above is transformed as: • X4 <20 %(70,000) X4 <14,000 • Guideline -2 • X2< X1 +X3+ X4 X2 - X1 -X3- X4< 0
  • 36.
    Guideline- 3 • X2+X3> 30 %( 70,000) X2 + X3 > 21,000 Guideline - 4 • X1/ X3< 1/3 3X1<X3 3X1- X3< 0
  • 37.
    Finally, • X1+ X2+X3+X4 = 70,000, because the investor's money equals to the sum of money invested in all alternatives. • This last constraint differs from , <, and ≥ inequalities previously developed in that there is a specific requirement to invest an exact amount. • Therefore, the possibility to invest more or less than Birr 70,000 is not considered. • This problem contains all three types of constraints possible in LP problems: • Finally, ≤, ≥ and =. • As this problem demonstrates there is no restriction on mixing these types of constraints.
  • 38.
    Guideline-1 above istransformed as: • X4 <20 %(70,000)  X4 <14,000 • Guideline- 2 • X2< X1 +X3+ X4  X2 - X1 -X3- X4< 0 • Guideline - 3 • X2+ X3> 30 %( 70,000)  X2 + X3 > 21,000 •Guideline -4 • X1/ X3< 1/3 3X1<X33X1-X3< 0
  • 39.
    Finally, • X1+ X2+X3+X4 = 70,000, because the investor's money equals to the sum of money invested in all alternatives. • This last constraint differs from , and  inequalities previously developed in that there is a specific requirement to invest an exact amount. • Therefore, the possibility to invest more or less than Birr 70,000 is not considered. • This problem contains all three types of constraints possible in LP problems: ,  and =. • As this problem demonstrates there is no restriction on mixing these types of constraints.
  • 40.
    Step5- The completeLPM for this problem can be summarized as: • Zmax = 0.085 X1+ 0.1X2+ 0.065X3+0.13X4 • Subjected to: • X4 <14,000 • X2 - X1 -X3 - X4 < 0 • X2 + X3 > 21,000 • 3X1-X3 < 0 • X1 + X2 + X3 + X4 = 70,000, • X1+ X2+ X3+X4 0 
  • 41.
    2.4. Solving LPModels • Following the formulation of a mathematical model, the next stage in the application of LP to decision making problem is to find the solution of the model. • An optimal, as well as feasible solution to an LP problem is obtained by choosing from several values of decision variables x1,x2…xn , the one set of values that satisfy the given set of constraints simultaneously and also provide the optimal ( maximum or minimum) values of the given objective function. • The most common solution approaches are to solve graphically and algebraically the set of mathematical relationships that form the model, thus determining the values of decision variables.
  • 42.
    2.4.1. Graphical LinearProgramming Methods • Graphical linear programming is a relatively straightforward for determining the optimal solution to certain linear programming problems involving only two decision variables. • Although graphic method is limited as a solution approach, it is very useful in the presentation of LP, in that it gives a “picture” of how a solution is derived thus a better understanding of the solution. • In this method, the two decision variables are considered as ordered pairs (X1, X2), which represent a point in a plane, i.e, X1 is represented on X-axis and X2 on Y-axis.
  • 43.
    Important Definitions • Solution -Theset of values of decision variables xj (j = 1,2,…, n) which satisfy the constraints of an LP problem is said to constitute solution to that LP problem. • Feasible solution -The set of values of decision variables xj (j = 1,2,…, n) which satisfy all the constraints and non- negativity conditions of an LP problems simultaneously is said to constitute the Feasible solution to that LP problem.
  • 44.
    Infeasible solution -The setof values of decision variables xj (j = 1,2, …, n) which do not satisfy all the constraints and non- negativity conditions of an LP problems simultaneously is said to constitute the infeasible solution to that LP problem. • Basic solution -For a set of m simultaneous equations in n variables ( n>m), a solution obtained by setting ( n- m) variables equal to zero and solving for remaining m equations in m variables is called a basic solution.
  • 45.
    Cont... • The (n-m)variables whose value did not appear in this solution are called non-basic variables and the remaining m variables are called basic variables. • Basic feasible solution -A feasible solution to LP problem which is also the basic solution is called the basic feasible solution. • That is, all basic variables assume non-negative values. Basic feasible solutions are of two types: • Degenerate A basic feasible solution is called degenerate if value of at least one basic variable is zero. • Non-degenerate A basic feasible solution is called non- degenerate if value of all m basic variables are non- zero and positive.
  • 46.
    Optimal Basic feasiblesolution -A basic feasible solution which optimizes the objective function value of the given LP problem is called an optimal basic feasible solution. • Unbounded solution -A solution which can increase or decrease the value of OF of the LP problem indefinitely is called an unbounded solution.
  • 47.
    Example • In orderto demonstrate the method, let us take a microcomputer problem in which a firm is about to start production of two new microcomputers, X1 and X2. • Each requires limited resources of: assembly time, inspection time, and storage space. • The manager wants to determine how much of each computer to produce in order to maximize the profit generated by selling them.
  • 48.
    Other relevant informationis given below: Type 1 Type 2 Available resource Assembly time per unit 4 hrs 10hrs 100hrs Inspection time per unit 2hrs 1hrs 22hrs Storage space per unit 3cubic feet 3cubic feet 39cubic feet Profit per unit $60 $50
  • 49.
    The model isthen: • Maximize 60X1 + 50X2 • Subject to Assembly 4 X 1 +10 X 2 < 100 hrs Inspection 2 X 1 + 1 X 2 < 22 hrs Storage 3 X 1 + 3 X 2 < 39 cubic feet X1, X2 > 0
  • 50.
    Graphical solution methodinvolves the following steps. 1. Formulate the mathematical model (from the previous section) 2. Write the objectivity of function and plot each of the constraints (find corner) 3. Identify the feasible region ( common shaded area) 4. Locate the optimal solution ( specify optimal corner)
  • 51.
    Step 2. Ploteach of the constraints • The step begins by plotting the non-negativity constraint, which restricts our graph only to the first quadrant. • We then can deal with the task of graphing the rest of the constraints in two parts.
  • 52.
    For example • Letus take the first constraint 4X1 + 10X2 < 100 hrs. • First we treat the constraint as equality: 4X1 + 10X2 = 100. • Then identify the easiest two points where the line intersects each axis by alternatively equating each decision variable to zero and solving for the other: - when X1=0, X2 becomes 10 and when X2=0, X1 will be 25.
  • 53.
    Cont.. • We cannow plot the straight line that is boundary of the feasible region as we have got two points (0, 10) and (25,0).
  • 54.
    Step 3. Identifythe feasible region • The feasible region is the solution space that satisfies all the constraints simultaneously. • It is the intersection of the entire region represented by all constraints of the problem. • We shade in the feasible region depending on the inequality sign.
  • 55.
    Cont.. • In ourexample above, for all the constraints except the non-negativity constraint, the inequality sign is „less than or equal to‟ and it represents region of the plane below the plotted lines.
  • 56.
    Step 4. Locatethe optimal solution. • The feasible region contains an infinite number of points that would satisfy all the constraints of the problem. • Point that will make the objective function optimum will be our optimal solution. • This point is always found among the corner points of the solution space. • For the above feasible solution of the Graph has five corner points, in which the three are obviously known, the two remaining is calculated by the substitution of the interaction of two lines.
  • 57.
    For example • cornerat “b” get by substitution equation of line A with the equation of Line S. • The same for corner “c” calculated by substitution the Equation of line S and the equation of line I. A= X 2 =10 hrs-2/5 X 1 S= X 2 = 13- X 1 I= X 2 =22-2 X 1. • Therefore, b=10 hrs-2/5 X 1 = X 2 = 13- X 1 = (5, 8) C = 13- X 1 = 22-2 X 1 = (9, 4)
  • 58.
    Cont.. Corner point Valueof Max= 60X1 + 50X2 a(0,10) 60(0) + 50 (10) = 500 b (5,8) 60(5) + 50 (8) = 700 C (9,4) 60(9) + 50(4) = 740 d (11,0) 60(11) + 50(0) = 660 e (0,0) 60(0) + 50(0) = 0 Interpretation: For a firm to maximize its profit (740), it should produce 9 units of the Model I microcomputer and 4 units of model II
  • 59.
    Example 2: • Solvingminimization problems involve where the objective functions (like cost function) will be minimum. • The constraints are connected to RHS values with > sign. • But, in real world problems, mixes of constraint is also possible. • The value of RHS involves the lowest value of the constraint. • The solution space lies above the slant lines and it is not enclosed. • It extends indefinitely above the lines in the first quadrant. • This means simply that cost increases without limit as more and more units are produced. • The minimum cost will occur at a point along the inner boundary of the solution space. • The origin and other points below the lines are not in the solution space.
  • 60.
    Example • Zmin =0.1x+0.07y • Subject to: • 3x+2y > 18 • 2x+5y > 10 • y > 1 • x, y > 0 • Find the values of x and y which makes the objective function minimum?
  • 61.
    Solution Coordinate Corner point xy Zmin = 0.1x+0.07y A 0 9 0.63 B 3.63 3.54 0.61 C 15/4 1 0.445
  • 62.
    2.4.2. Graphical Solutionsfor the Special Cases of LP • i) Un boundedness • Un boundedness occurs when the decision variable increased indefinitely without violating any of the constraints. • The reason for it may be concluded to be wrong formulation of the problem such as incorrectly maximizing instead of minimizing and/or errors in the given problem. • Checking equalities or rethinking the problem statement will resolve the problem.
  • 63.
    Example • Max Z= 10X1 + 20X2 • Subject to 2X1 + 4X2 > 16 X1 + 5X2 > 15 X1, X2 > 0 Following the above listed steps of graphical solution method, we find the following graph for the above model: The shaded area represents the set of all feasible solutions and as can be seen from the graph, the solution is unbounded.
  • 64.
    ii) Redundant Constraints •In some cases, a constraint does not form a unique boundary of the feasible solution space. • Such a constraint is called a redundant constraint. • A constraint is redundant if its removal would not alter the feasible solution space. • Redundancy of any constraint does not cause any difficulty in solving an LP problem graphically. • Constraints appear redundant when it may be more binding (restrictive) than others. • There is not intersection of line, b/c it simple redundant of equation 2X1+ 3X2= 60
  • 65.
    iii) Infeasibility • Insome cases after plotting all the constraints on the graph, feasible area (common region) that represents all the constraint of the problem cannot be obtained. • In other words, infeasibility is a condition that arises when no value of the variables satisfy all the constraints simultaneously. • Such a problem arises due to wrong model formulation with conflicting constraints.
  • 66.
    For example, • MaxZ = 3X1+2X2 • Subject to: 2X1 + X2 < 2 3X1 + 4X2 > 12 X1, X2 > 0
  • 67.
    iv) Multiple optimalsolutions • Recall the optimum solution is that extreme point for which the objective function has the largest value. • It is of course possible that in a given problem there may be more than one optimal solution. • There are two conditions that should be satisfied for an alternative optimal solution to exist:
  • 68.
    Cont.. • The givenobjective function is parallel to a constraint that forms the boundary of the feasible region. • In other words, the slope of an objective function is the same as that of the constraint forming the boundary of the feasible region; and • The constraint should form a boundary on the feasible region in the direction of optimal movement of the objective function. • In other words, the constraint should be an active constraint.
  • 69.
    For example • MaxZ = 8X1+16X2 • Subject to: X1 + X2 < 200 ……. C1 3X1 + 6X2 < 900 ……. C2 X2 < 125 ……. C3 X1, X2 > 0
  • 70.
    Cont.. • In theproblem above, using extreme point method and solving for values of corner points simultaneously, the objective function assumes its maximum value of 2,400 at two corner points B (50,125) and C (100,100). • Therefore, the optimal solution is found on the line segment connecting the two corner points. • One benefit of having multiple optimal solutions is a manager may prefer one of them to the others, even though each would achieve the same value of the objective function. • In practical terms, one of the two corner points is usually chosen because of ease in identifying its values.
  • 71.
    Advantages: of Graphicalmethod • It is simple • It is easy to understand, and • It saves time
  • 72.
  • 73.
    Solution to LinearPrograming (LP) • Solution to Linear Programing (LP) • Before going through the solution of (L.P) we need to know some definitions and concepts. • Solution: -A set of real values of X = (x1, x2, ..., xn) which  satisfies the constraint AX (≤ = ≥ ) b.
  • 74.
    Feasible Solution:- -A setof real values of X = (x1, x2, ..., xn) which  Satisfies the constraints AX( ≤ = ≥ ) b and  satisfies the non-negativity restriction X ≥ 0. • Feasible Region: -The collection of all the feasible solution is called as the feasible region.
  • 75.
    When a LPis solved, one of the following cases will occur: • Case 1: - The LP has a unique solution when has only one optimal solution • Case 2: - The LP has more than one ( actually an infinite number of ) optimal solutions. • This is the case of alternative (Multiple) optimal solutions.
  • 76.
    Cont.. • Case 3: -The LP is infeasible (it has no feasible solution). - This means that the feasible region contains no points. • Case 4: - The LP is unbounded. - This means (in a max problem) that there are points in the feasible region with arbitrarily large z-values (objective function value ).
  • 77.
    There are manymethods to solve Linear programing problem. Such as : • GRAPHICAL METHOD • If the objective function Z is a function of two variables, then the problem can be solved by graphical method..
  • 78.
    A procedure ofsolving LPP by graphical method is as follows: i. Formulation of the problem into LPP model (i.e) -objective function and the constraints are written down. ii. Consider each inequality constraints as equation
  • 79.
    Cont.. iii. Plot eachequation on the graph as each equation will geometrically represent a straight line. iv. Shade the feasible region and identify the feasible solutions. -Every point on the line will satisfy the equation of line. -If the inequality constraints corresponding to that line is ≤ then the region below the line lying in the 1st quadrant (due to non negativity of variables) is shaded. -For the inequality constraints with ≥ sign the region above the line in the 1st quadrant is shaded.
  • 80.
    Cont... -The point lyingin common region will satisfy all the constraints simultaneously. Thus, the common region obtained is called feasible region. • This region is the region of feasible solution. • The corner points of this region are identified. v. Finding the optimal solutions.  The values of Z at various corners points of the region of feasible solution are calculated.  The optimum (maximum or minimum) Z among these values is noted.  Corresponding solution is the optimal solution.
  • 81.
    Example: Unique Solution •Solve the following LPP graphically • Max Z = 4x + 5y Subject to x + y ≤ 20 3x + 4y ≤ 72 x, y ≥ 0 Solution • First, we need to draw the straight lines of constrains. • This means finding x- intercept and y- intercept. For the constrain x + y ≤ 20 • x- intercept ( set y = 0 ) is x + 0 = 20, then x = 20 , the point (20, 0 ) • y- intercept ( set x = 0 ) is 0 + y = 20 , then y = 20 , the point is (0, 20 )
  • 82.
    For the constrain3x + 4y ≤ 72 • x- intercept ( set y = 0 ) is 3 x + 0 = 72 , then x = 24 ,the point is (24, 0 ) • y- intercept ( set x = 0 ) is 0 + 4 y = 72 , then y = 18 ,the point is (0, 18 ) and x = 0, y- axis y = 0, x -axis. .......figure p23 Finally, the optimal solutions x = 8 and y = 12 which is unique
  • 84.
    To find theintersection point C feasible region • We need to solve the system of equations x + y = 20 ……. (1) 3x + 4y = 72 ………(2) • Multiply equation (1) by -3 and added to (2) to get y = 12 and x = 8 then the point C is (8, 12 ) • Now we substitute the corner points into the objective function Z ,then fined the maximum one. ...............see figure 23 Table
  • 85.
    Example: Multiple OptimalSolutions • Solve the following LPP by graphical method • Max Z = 100 x1 + 40 x2 • Subject to 5 x1 + 2 x2 ≤ 1000 3 x1 + 2 x2 ≤ 900 x1 + 2 x2 ≤ 500 x1, x2 ≥ 0
  • 86.
    Solution • First, weneed to draw the straight lines of constrains. --This means finding x1- intercept and x2 - intercept. • For the constrain 5 x1 + 2 x2 ≤ 1000 x1 - intercept ( set x2 = 0 ) is • 5 x1 + 0 = 1000, then x1 = 200 , the point (200, 0 ) x2 - intercept ( set x1 = 0 ) is • 0 + 2 x2 = 1000 , then x2 = 500 , the point is (0, 500 ) • For the constrain 3 x1 + 2 x2 ≤ 900 x1 - intercept ( set x2 = 0 ) is • 3 x1 + 0 = 900, then x1 = 300 , the point (300, 0 ) x2 - intercept ( set x1 = 0 ) is • 0 + 2 x2 = 900 , then x2 = 450 , the point is (0, 450 )
  • 87.
    Cont.. • For theconstrain x1 + 2 x2 ≤ 500 x1 - intercept ( set x2 = 0 ) is • x1 + 0 = 500, then x1 = 500 , the point (500, 0 ) x2 - intercept ( set x1 = 0 ) is • 0 + 2 x2 = 500 , then x2 = 250 , the point is • (0, 250 ) and x1 = 0, x2 axis x2 = 0, x1 axis.
  • 88.
  • 89.
    To find theintersection point C • We need to solve the system of equations x1 + 2 x2 = 500 ……. (1) 5 x1 + 2 x2 = 1000 ………(2) • Multiply equation (1) by -1 and added to (2) to get • x1= 125 and x2 = 187.5, then the point C = (125, 187.5) • Now we substitute the corner points into the objective function Z then fined the maximum one .....See figure...p25 Finally, there are multiple optimum solutions for the LPP. (0, 250) and (125, 187.5) .............2000
  • 90.
    Example: Unbounded Solutions •Use graphical method to solve the following LPP. • Max Z = 3x1 + 2x2 • Subject to 5x1 + x2 ≥ 10 x1 + x2 ≥ 6 x1 + 4x2 ≥ 12 x1, x2 ≥ 0
  • 91.
    Solution • First, weneed to draw the straight lines of constrains. • This means finding x1- intercept and x2 - intercept. For the constrain 5 x1 + x2 ≥ 10 • x1 - intercept ( set x2 = 0 ) is • 5 x1 + 0 = 10, then x1 = 2 , the point (2, 0 ) • x2 - intercept ( set x1 = 0 ) is • 0 + x2 = 10 , then x2 = 10 , the point is (0, 10 )
  • 92.
    For the constrainx1 + x2 ≥ 6 • x1 - intercept ( set x2 = 0 ) is • x1 + 0 = 6, then x1 = 6 , the point (6, 0 ) • x2 - intercept ( set x1 = 0 ) is • 0 + x2 = 6 , then x2 = 6 , the point is (0, 6 )
  • 93.
    For the constrainx1 + 4 x2 ≥ 12 • x1 - intercept ( set x2 = 0 ) is • x1 + 0 = 12, then x1 = 12 , the point (12, 0 ) • x2 - intercept ( set x1 = 0 ) is • 0 + 4 x2 = 12 , then x2 = 3 , the point is (0, 3 ) • and x1 = 0, x2 axis x2 = 0, x1 axis. .....See fig.p27 • The feasible region is unbounded. • Thus, the maximum value of Z occurs at infinity; hence, the problem has an unbounded solution.
  • 94.
    Example: No FeasibleSolution • Use graphical method to solve the following LPP. • Max Z = x1 + x2 • Subject to • x1 + x2 ≤ 1 • x1 + x2 ≥ 3 • x1, x2 ≥ 0
  • 95.
    Solution • First, weneed to draw the straight lines of constrains. • This means finding x1- intercept and x2 - intercept. For the constrain x1 + x2 ≤ 1 • x1 - intercept ( set x2 = 0 ) is x1 + 0 = 1, then x1 = 1 , the point (1, 0 ) x2 - intercept ( set x1 = 0 ) is 0 + x2 = 1 , then x2 = 1 , the point is (0, 1 )
  • 96.
    For the constrainx1 + x2 ≥ 3 • x1 - intercept ( set x2 = 0 ) is x1 + 0 = 3, then x1 = 3 , the point (3, 0 ) • x2 - intercept ( set x1 = 0 ) is 0 + x2 = 3 , then x2 = 3 , the point is (0, 3 ) • and x1 = 0, x2 axis x2 = 0, x1 axis. ....see fig.p28 • We cannot find a feasible region for this problem. • So the problem can not be solved, hence, the problem has no solution.