Unit 3: Introduction To Linear Programming
Unit 3: Introduction To Linear Programming
3.1 INTRODUCTION
Linear programming- is an optimization method which shows how to allocate scarce resources in
the best possible way subject to more than one limiting condition expressed in the form of
inequalities and /or equations.
It
- Enables users to find optimal solution to certain problems in which the solution must
satisfy a given set of requirements or constraints.
- Optimization in linear programming implies either maximization (max) Profit, revenue,
sales, market share or minimization (min) Cost, time, distance, or a certain objective
function.
- Involves linearly related multi-variable functions i.e. functions with more than one
independent variables.
- The goal in linear programming is to find the best solution given the constraints imposed
by the problem, hence the term constrained optimization.
optimization.
Components Assumptions
1. Objective function 1. Linearity
2. Decision variables Model 2. Divisibility
Model
3. Constraints Structure 3. Certainty Validity
4. Parameters and Right. 4. Non-negativity
Hand Side Values
c) The constraints:
constraints: are restrictions which define or limit the attainability (achievability)
feasibility of a proposed course of action. They limit the degree to which the objective
can be pursued.
A typical restriction embodies scarce resources (such as labor supply, RMs, production
capacity, machine time, storage space), legal or contractual requirements (e.g. Product
standards, work standards), or they may reflect other limits based on forecasts, customer
orders, company policies etc.
d) Parameters-
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 to the
numerical value of each constraint.
The components are the building blocks of an LP model. We can better understand their meaning
by examining a simple LP model as follows.
Example:
Maximize: 4X1 + 7X2 + 5X3 (profit)… objective function subject to
2X1 + 3X2 + 6X3 ¿ 300 labor hrs System
5X1 + 4X3 ¿ 200 raw materials Constraints
X2 - qty of product 2
X3 - qty of product 3
System constraints-
constraints- involve more than one decision variables
Individual constraint-
constraint- involve only one decision variable.
None-negativity constrains-
constrains- 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.
d) Non-negativity-
Non-negativity- The non-negativity constraint is 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.
Once a problem has been defined, the attention of the analyst shifts to formulating a model. Just
as it is important to carefully formulate the model that will be used to solve the problem. If the
LP model is ill formulated, ill-structured, it can easily lend to poor decisions.
Additional information
In order to develop a suitable model of the problem, the manager has met with the design and
manufacturing personnel. As a result of these meetings, the manager has obtained the following
information:
Type 1 Type 2
Profit per unit $ 60 $ 50
Assembly time per unit 4hrs 10hrs
Inspection time per unit 2hrs 1hr
Storage space per unit 3 cubic ft 3 cubic ft
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
The manager has also met with the firms marketing manager and learned that demand for the
micro computers was such that whatever combination of these two types of micro computers is
produced, all of the output can be sold.
Answer
Step 1:
1: Problem definition
- To determine the no. of two types of microcomputers to be produced (and sold) per week
so as to maximize the weekly profit given the restrictions.
Step 2: Variable representation
- Let X1 and X2 be the weekly quantities of type 1 and type 2 microcomputers respectively.
Each workstation has a daily working time of 7.5 hrs. The manager wants to obtain the greatest
possible profit during the next five working days. Model A yields a profit of br. 8.25 per unit,
Model B a profit of br 7.5 per unit and model C a profit of Br 7.8 per unit. Assume that the firm
can sell all it produces. During this time, but it must fill outstanding orders for 20 units of each
model type.
Required.
Required. Formulate the linear programming model of this problem.
Solution
Step 1: Problem definition: to determine the number of three types of switching devices to be
produced and sold for the next 5 days (working) so as to maximize the 5 days profit.
2. Variable representation
Let X1, X2, and X3 be the number of model A, B and C switching devices to be produced and
sold.
4. Constraint identification
2.5X1 + 1.8X2 + 2.0X3 ¿ 450minutes…Assembly time station 1 System
Constraints
3.0X1 + 1.6X2 + 2.2X3 ¿ 450minutes…. Assembly time station2
X1 ¿ 20 …. Model A
Individual
X2 ¿ 20 ….Model B Constraints
X3 ¿ 20….Model C
X1, X2, X3 ¿ 0 ….no negativity
Summary
This method can be used only to solve problems that involve two decision variables. However,
most linear programming applications involve situations that have more than two decision
variables, so the graphic approach is not used to solve these.
Steps
To identity the maximum (minimum) value we use the corner point approach or the extreme
point approach. The corner point/ extreme point approach has one theorem. It states that:
For problems that have optional solutions, a solution will occur at an extreme, or corner point.
Thus if a problem has a single optional solution, it will occur at a corner point. If it has multiple
optional solutions, at least one will occur at a corner point consequently, in searching for an
optional solution to a problem, we need any corner/ the extreme points because one of those
must be optional. Further, 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 (i.e.
maximum or minimum, depending on the optimization case) of the objective function. Extreme
points represent interactions of constraints.
Determine the values of the decision variables at each corner point. Sometimes, this can be
done by impaction (observation) and sometimes by simultaneous equation.
Substitute the value of the decision variables at each corner point into the objective function
to obtain its value at each corner point.
After all corner points have been evaluated, select the one with the highest or lowest value
depending on the optimization case.
Value of the objective
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,
solution, we have to substitute the value of the decision variables
into the constraints and check whether all the resources available are used or not. If there is any
unused resource we can use it for any other purpose. The amount of unused resource is known as
slack-
slack- the amount of a scarce resource that is unused by a given solution. The slack can range
from zero, for a case in which all of a particular resource is used, to the original amount of the
resource that was available (i.e. none of it is used.)
Constraint X1 = 9, X2 = 4
Assembly 4(9) + 10(4) = 76 100 100 – 76 = 24 hrs
Inspection 2(9) 9+ 1(4) = 22 22 22 – 22 = 0 hr
Storage 3(9) + 3(4) = 39 39 39 – 39 = 0 hr
Constraints that have no slack are sometimes referred to as binding constraints since they limit or
bind the solution. In the above cases, inspection time and storage space are binding constraints,
while assembly time has slack.
Knowledge of unused capacity can be useful for planning. A manager may be able to use the
remaining assembly time for other products, or, perhaps to schedule equipment maintenance,
safety seminars, training sermons or other activities
Interpretation:
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, and in doing so the
company would be left with unused resource of 24 assembly hrs which can be used for other
purposes.
Example 2: A diet for Ethiopian athletes is to be developed from two types of foods; type 1 and
type 2 foods. Type 1 food costs 5 birr and type 2 food costs 8 birr per unit. One pound of type 1
food contains 10 units of vitamins and 20 units of minerals whereas one pound of type 2 food
contains 30 units of vitamins and 15 units of minerals. A diet is to be designed so that it must
contain at least 140 units of vitamins and 145 units of minerals.
Required: a) Develop linear programming model.
b) What combinations of food to be used to have the least cost?
Solution
a) C min = 5X1 + 8X2
10X1 + 30X2 ¿ 140…vitamins 10X1 + 30X2 = 140
20X1 + 15X2 ¿ 145…minerals X1 0 14
X1, X2 ¿ 0 X2 14/3 0
b)
X2 20X1 + 15X2 = 145 X1 0 7.25
X2 9.67 0
12
A
8
20X1 + 15X2 = 145
0 C X1
4 8 12 16
Value of objective
Coordinates How determined Function cmin = 5X1 + 8X2
Points X1 X2
A 0 9.67 Observation 77.3 br.
B 5 3 Simul. equn. 49 br.
C 14 0 Observation 70 br.
If there is a difference between the minimum required amount and the optimal solution, we call
the difference surplus; that is: surplus is the amount by which the optimal solution causes a ¿
constraint to exceed the required minimum amount. It can be determined in the same way that
slack can: substitute the optimum values of the decision variables into the left side of the
constraint and solve. The difference between the resulting value and the original right-hand side
amount is the amount of surplus.
Surplus can potentially occur in a ¿ constraint.