Chapter 2 Linear Programming
Chapter 2 Linear Programming
LINEAR PROGRAMMING
1
Linear Programming
Linear Programming Problems in math is a system
process of finding a maximum or minimum value
of any variable in a function, it is also known by
the name of optimization problem.
LPP is helpful in developing and solving a decision
making problem by mathematical techniques.
The problem is generally given in a linear function
which needs to be optimized subject to a set of
different constraints. Major usage of LPP is in
advising the management to make the most
efficient & effective use of the scarce resources
Mathematical programming is used to
find the best or optimal solution to a problem
that requires a decision or set of decisions
about how best to use a set of limited
resources to achieve a state goal of objectives
Linear programming requires that all the
mathematical functions in the model be linear
functions.
Steps involved in mathematical
programming
Conversion of stated problem into a
mathematical model that abstracts all the
essential elements of the problem.
Exploration of different solutions of the
problem.
Finding out the most suitable or optimum
solution
Parts of the LP Model
1. Decision Variable
Variables which are changeable & going to impact the
decision function. Like the profit function is effected by
both sales and price, now which one of these two is
changeable, will be our decision variable.
2. Objective Function
Linear function of the objective, either to Maximize or
minimize, like Maximize Profit, sales, production etc.
and Minimize Cost, Loss, energy, consumption, wastage
etc.
3. Constraints
Any kind of limitation or scarcity explained through a
function like Limitations of raw materials, time, funds,
equipment etc. Non-Negative Constraints will also be
there which will remain non-negative all the time.
The Linear Programming Model (1)
8
Application areas
Product I Product II
The total amount of raw material available per day for both
products is 1575kg. The total storage space for all products is
1500 m2, and a maximum of 7 hours per day can be used for
production
Developing a model
The company has decided that it wants to maximize its sale income,
which depends on the number of units of product I and II that it
produces.
Therefore, the decision variables, x1 and x2 can be the number of units
of products I and II, respectively, produced per day.
The object is to maximize the equation: Z = 13x1 + 11x2
subject to the constraints on storage space, raw materials, and
production time.
F1 F2
Exercise
Solve using graphical method
Example 2
Furniture company produces inexpensive tables and chairs.
The production process for each is similar in that both
require a certain number of hours of carpentry work and a
certain number of labor hours in the painting department.
Each table takes 4 hours of carpentry and 2 hours in the
painting department. Each chair requires 3 hours of
carpentry and 1 hour in the painting department. During the
current production period, 240 hours of carpentry time are
available and 100 hours in painting is available. Each table
sold yields a profit of E7; each chair produced is sold for a
E5 profit. Find the best combination of tables and chairs to
manufacture in order to reach the maximum profit.
The decision variables can be defined as X = number of tables to be
produced & Y = number of chairs to be produced.
The total amount of raw material available per day for both
products is 1575 kg. The total storage space for all products is
1500 m2, and a maximum of 7 hours per day can be used for
production. The company wants to determine how many
units of each product to produce per day to maximize
its total income
Step 1: Convert all the inequality constraints into
equalities by the use of slack variables. Let
Introducing these slack variables into the inequality constraints
and rewriting the objective function such that all variables are on
the left-hand side of the equation. Equation 4 can be expressed as:
Since the coefficients of x1 and x2 in Eq. (A1) are both
negative, the value of Z can be increased by giving either
x1 or x2 some positive value in the solution.
In Eq. (B1), if x2 = S1 = 0, then x1 = 1500/4 = 375. That
is, there is only sufficient storage space to produce 375
units at product I.
From Eq. (C1), there is only sufficient raw materials to
produce 1575/5 = 315 units of product I.
From Eq. (D1), there is only sufficient time to produce
420/1 = 420 units of product I.
Therefore, considering all three constraints, there is
sufficient resource to produce only 315 units of x1. Thus
the maximum value of x1 is limited by Eq. (C1).
Step 2: From Equation CI, which limits the maximum
value of x
From these equations, the new feasible solution is readily found to be: x1 =
270, x2 = 75, S1 = 45, S2 = 0, S3 = 0, Z = 4335.