Linear Programming: Model Formulation and Graphical Solution
Linear Programming: Model Formulation and Graphical Solution
Linear Programming: Model Formulation and Graphical Solution
Introduction
o Objectives of business decisions frequently involve maximizing profit or
minimizing costs.
o Linear programming uses linear algebraic relationships to represent a firm’s
decisions, given a business objective, and resource constraints.
o Steps in application:
1. Identify problem as solvable by linear programming.
2. Formulate a mathematical model of the unstructured problem.
3. Solve the model.
4. Implementation
Model Components
o Decision variables - mathematical symbols representing levels of activity of a
firm.
o Objective function - a linear mathematical relationship describing an objective of
the firm, in terms of decision variables - this function is to be maximized or
minimized.
o Constraints – requirements or restrictions placed on the firm by the operating
environment, stated in linear relationships of the decision variables.
o Parameters - numerical coefficients and constants used in the objective function
and constraints.
Resource Requirements
Labor Clay Profit
Product
(Hr./Unit) (Lb./Unit) ($/Unit)
Bowl 1 4 40
Mug 2 3 50
1
x1 = number of bowls to produce per da
x2 = number of mugs to produce per day
Objective Function:
Maximize Z = $40x1 + $50x2
Where Z = profit per day
Resource Constraints:
1x1 + 2x2 40 hours of labor
4x1 + 3x2 120 pounds of clay
Non-Negativity Constraints: x1 0; x2 0
Complete Linear Programming Model:
2
2x1 + 4x2 16 lb (nitrogen constraint)
4x1 + 3x2 24 lb (phosphate constraint)
x1, x2 0 (non-negativity constraint)
Example 0.1.1 Prototype Example A paint manufacturer produces two types of paints,
one type of standard quality (S) and the other of top quality (T).S To make these paints,
he needs two ingredients, the pigment and the resin. Standard quality requires 2 units of
pigments and 3 units of resin for each unit made, & are sold at a profit of R1 per unit.
Top quality paint requires 4 units of pigments and 2 units of resin for each unit made,
and are sold at a profit of R1.50 per unit. He has stocks of 12 units of pigments and 10
units of resin. Formulate this problem as a linear programming problem to maximize his
profit?
We make the following table from the given data
Example 0.1.2: (Diet problem) A house wife wishes to mix two types of food F 1 and F2 in
such a way that the vitamin contents of the mixture contain at least 8 units of vitamins A
and 11 units of vitamin B. Food F1 costs E60 / Kg & Food F2 costs E80 / Kg. Food F1
contains 3 units per gram of vitamin A and 5 units per gram vitamin B while Food F2
contains 4 units per gram of vitamin A and 2 units per gram vitamin B. Formulate this
problem as a linear programming problem to minimize the cost of the mixtures.
3
Example 0.1.3: A 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 no. 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 work and 1 hour in the painting department. During
the current production period, 240 hours of carpentry time are available and 100 hours
in painting are available.
Find the best combination of tables and chairs to manufacture in order to reach the
maximum profit.
We begin by summarizing the information needed to solve the problem in the form of a
table. This helps us understand the problem being faced
Simplex Method
Linear programming models could be solved algebraically. The most widely used
algebraic procedure for solving linear programming problem is called the Simplex
Method. The simplex method is a general-purpose linear-programming algorithm widely
used to solve large scale problems. Although it lacks the intuitive appeal of the graphical
approach, its ability to handle problems with more than two decision variables makes it
4
extremely valuable for solving problems often encountered in production/operations
management. Thus simplex method offers an efficient means of solving more complex
linear programming problems.
Slack Variable
Slack variables are defined to transform an inequality expression into an equality
expression with an added slack variable. The slack variable is defined by setting a lower
bound of zero (>0).
Inequality Constraint Form x>b
x = b + slack
Equality Constraint Form with Slack Variable
slack > 0
Solution:-
Starting at x0 , y0 the coordinates of any point in the gradient direction can be expressed
as