MABA4 MathematicalProgramming
MABA4 MathematicalProgramming
• Linear Programming
• Transportation Problem
• Decision Making
Mathematical Programming
1Linear Programming
Linear Programming
Linear Programming
Assumptions:
• Linearity
• Certainty
• Devisability
Examples
The xyz Company wishes to schedule the production of two items namely
chairs and tables. The management of the company has to decide as to how
many chairs and tables to be produced per day to maximize the profit. The
following information is available to the management. The profit per item is
$35 and $55, respectively. In order to produce the two items that requires
resources wood, manpower and machine hour. The supply of wood is
restricted to 1500 kg/day. The manpower available per day is 75 carpenters.
Also the maximum of 120 machine hours available per day. The production
formula is as given in the following table.
Machines D and E have 2000 and 2500 machine minutes, respectively. The firm
must manufacture at least 100 A’s; 200 B’s and 50 C’s but not more than 150 C’s.
Formulate a linear programming model to maximize the total profit.
Examples
Formulate the following problem as an LP model:
A co-operative farm owns 100 acres of land and has $25,000 in funds available for
investment. The farm members can produce a total of 3500 man hours worth of labor
during the months September-May and 4000 man hours during June-August. If any
of these man-hours are not needed, some members of the farm will use them to work
on a neighbouring farm for $2/hour during September-May and $3/hour during
June-August. Cash income can be obtained from the three main crops and two types
of livestock: dairy cows and laying hens. No investment funds are needed for the
crops. However, each cow will require an investment outlay of $3200 and each hen
will require $15.
Moreover, each cow will require 1.5 acres of land, 100 man-hours of work during
September-May and another 50 man-hours during June-August. Each cow will
produce a net annual cash income of $3500 for the farm. The corresponding figures
for each hen are: no acreages, 0.6 man-hours during September-May, 0.4 man-hours
during June-August, and an annual net cash income of $200. The chicken house can
accommodate a maximum of 4000 hens and the size of the cattle-shed limits the
members to a maximum of 32 cows.
Examples
Estimated man-hours and income per acre planted in each of the three crops are:
The co-operative farm wishes to determine how much acreage should be planted in
each of the crops and how many cows and hens should be kept to maximize its net
cash income.
Examples
Relax and Enjoy Lake Development Corporation is developing a lake side
community at a privately owned lake and in the business of selling property for
vacation and rent cottages. The primary market for these lakeside lots are middle and
upper income families within 100 miles of the development. Relax and Enjoy has
employed the advertising firm Philippines Jackson to design the promotional
campaign for the project.
After considering possible advertising media and the market to be covered, the
agency has made the preliminary recommendations to restrict the first month’s
advertising to five sources. At the end of this month, the agency will re-evaluate the
strategy based upon the month’s results. The agency has collected data on the
number of potential purchase families reached, the cost per advertisement, the
maximum number of times each medium is available and the expected exposure for
each of the five media. The expected exposure is measured in terms of an exposure
unit, a management judgement measure of the relative value of one advertisement in
each of the media. The measures based on agency’s experience in the advertising
business take into account such factors as audience profile (age, income and
education of the audience reached), image presented and quality of the
advertisement. The information collected is presented in Table.
Examples
Advertising media alternative for relax and enjoy lake development corporation:
Relax and Enjoy has provided with an advertising budget of $300,000 for the first
month’s campaign.
In addition, the company has a wish to have at least 10 television commercials, and
atleast 50,000 potential purchasers must be reached during the month. Formulate the
problem of media selection.
Standard Form
A point x is an extreme point of a convex set iff there do not exist other points
x1, x2, x1 ≠ x2 in the set such that x = lx2 + (1 - l)x1, 0 < l < 1.
Eg.
1) In a triangle, the three vertices are extreme points.
2) In a circle, all boundary points are extreme points.
Remark 1: All boundary points need not be extreme points.
Remark 2: The maximum number of extreme points of a convex set of feasible
solution to a LPP is nCm, where ‘n’ is the number of variables and m be the number of
constraints in the problem. Such that m ≤ n.
Graphical Solutions
Examples
1) Max Z = 3x1 + 9x2; st. x1 + x2 ≤ 8; x1 + 2x2 ≤ 4, x1, x2 ≥ 0
2) Min Z = 2x1 + 3x2; s.t. x1 + x2 ≤ 4; 6x1 + 2x2 ≥ 8; x1 + 5x2 ≥ 4; x1 ≤ 3; x2 ≤ 3; x1, x2 ≥ 0
3) Max Z = 4x1 + 5x2 s.t. x1 + x2 ≥ 1; –2x1 + x2 ≤ 1; 4x1 – 2x2 ≤ 1; x1, x2 ≥ 0
4) Max Z = 6x1 − 2x2 st. 2x1 − x2 ≤ 0; x1 ≤ 4; x1, x2 ≥ 0
5) Max Z = x1 + x2 st. x1 + x2 ≤ 1; −3x1 + x2 ≥ 3; x1, x2 ≥ 0
6) Max Z = −0.1x1 + 0.5x2 s.t. x1 + x2 ≤ 20; 2x1 + 5x2 ≤ 80; −0.1x1 + 0.5x2 = 8; x1, x2 ≥ 0
7) Max Z = 5x+6y st. 4x+2y ≤ 10; 4x+2y ≥ 20; x, y ≥ 0
8) Min. Z = 4x+6y st. 4x+2y = 10; 4x+2y ≥ 20; x, y ≥ 0
9) Min Z = 5x + 7y st. 2x + 3y ≥ 6; 3x − y ≤ 15; −x + y ≤ 4; 2x + 5y ≤ 27; x,y ≥ 0
10) Min Z = 5x+5y, st. 2x+y ≥ 15; x+4y ≥ 25; x+2y ≥ 20; x, y ≥ 0
Given x,y ≥ 0, find Max and Min of:
11) Z = 2x + 3y st. 2x + 3y ≥ 6; 3x−y ≤ 15; −x + y ≤ 4; 2x + 5y ≤ 27
12) Z = 6x + 4y st. −x + y ≤ 12; x + y ≤ 24; 2x + 5y ≤ 80
13) Z = 6x + 5y st. x + y ≥ 6; 2x +y ≥ 9
14) Z = x – y st. x + y ≥ 6; 2x +y ≥ 9
Examples
1) A sick patient has been advised by his doctor that his diet must contain at least
4000 units of vitamins, 50 units of minerals and 1400 units of calories. Two foods,
F1 and F2, are available at a cost of $4 and $3 per unit, respectively. One unit of
food F1 contains 200 units of vitamins, 1 unit of mineral and 40 units of calories.
One unit of food F2 contains 100 units of vitamins, 2 units of minerals and 40 units
of calories. Formulate the above problem as an LPP and solve using graphical
method.
2) Memory Chip Data for CPUs:
1) M/s Funschool Toys Ltd. manufactures two models of toys T1 and T2. Each of
these products must go through two manufacturing processes A and B. Each unit of T1
requires one hour in Process A and 1. hours in Process B; each unit of T2 requires 2
hours in Process A and 3/4 hour in process B. The machinery supporting Process A
currently has a weekly machine hour capacity of 100 hours, and the weekly capacity
of process B machinery is 90 machine hours. Per unit profits on T1 and T2 are $100
and $150 respectively. Determine the optimal product mix for Funschool Ltd.
2) The emergency Ward of M/s. Apollo Hospitals Ltd., schedules Nurses to come on
duty every 3 hours for a 6 hours shift. The shift times and the minimum number of
nurses required during each 3 hours time interval are given below. Determine the
schedule that will minimize the total number of nurses employed in said Emergency
ward.
Dual problems
1) Max. z = 80x1 + 90x2 s.t. 3x1 + 5x2 ≤ 30; 3x1 + 2x2 ≤ 21; x1, x2 ≥ 0
2) Min. z = 10x1 + 8x2 s.t. x1 + 2x2 ≥ 5; 2x1 - x2 ≥ 12; x1 + 3x2 ≥ 4; x1 ≥ 0; x2 unrestricted.
3) Max. z = 10x1 + 20x2; s.t. x1 + x2 = 4; 2x1 - 3x2 ≤ 7; x1, x2 ≥ 0
4) Max Z = x1 - x2 + 3x3; s.t. x1 + x2 + x3 ≤ 10; 2x1 - x3 ≤ 2; 2x1 - 2x2 + 3x3 ≤ 6; x1, x2, x3 ≥ 0
5) Min Z = 4x1 + 6x2 + 18x3; s.t. x1 + x2 ≥ 3; x2 + 2x3 ≥ 5; x1, x2, x3 ≥ 0
6) Max Z = x1 - 2x2 + 3x3; s.t. -2x1 + x2 + 3x3 = 2; 2x1 + 3x2 + 4x3 = 1; x1, x2, x3 ≥ 0
7) Min Z = x1 + x2; s.t. 2x1 + x2 ≥ 4; x1 + 7x2 ≥ 7; x1, x2 ≥ 0
8) Max Z = 2x1 + 5x2 + 3x3; s.t. 2x1 + 4x2 - x3 ≤ 8; - 2x1 - 2x2 + 3x3 ≥ 7; x1 + 3x2 - 5x3 ≥ -2;
4x1 + x2 + 3x3 ≤ 4; x1, x2, x3 ≥ 09
9) Max Z = 3x1 - 2x2 + 4x3 - 6x4; s.t. x1 + x2 + x3 + x4 = 25; 2x1 - 3x2 - x3 + x4 ≤ 40;
7x1 - 3x2 + 4x3 - x4 ≤ 35; 6x1 + 6x2 - x3 + 3x4 ≥ 28; x1, x3 ≥ 0; x2, x4 ≤ 0;
10) Min Z = 4x1 + 3x2 + 6x3; s.t. x1 + x3 ≥ 2; x2 + x3 ≥ 5; x1, x2, x3 ≥ 0
Duality Theorems
Theorem 1. If an optimal feasible solution exists, the optimal values of the primal
problem and the optimal values of the dual problem are identical.
Theorem 2. Suppose that the slack or surplus variable (also called dummy variable)
in the ith constraint of the primal problem is denoted by si and the jth dummy
variable in the dual problem is denoted by tj . If, in the optimum, x∗j > 0, then t∗j = 0;
if y∗i > 0, then s∗i = 0. This means that if a choice variable in the primal problem is
nonzero in the optimum, its corresponding dummy variable in the dual problem must
be zero in the optimum; and if a choice variable in the dual problem is nonzero in the
optimum, its corresponding dummy variable in the primal problem must be zero in
the optimum. This theorem is called complementary slackness property or
complementary slackness condition or complementary slackness principle.
Canonical Form
This method starts from one infeasible extreme point to another attempting to find a
feasible solution. This feasible solution is also the optimal solution. We cannot apply
this method to all LPP unless the following conditions are satisfied.
(1) The LPP must be in the canonical form
(2) All the entries of (Zj - Cj) must be ≥ 0.
Canonical Form of an LPP
(i) The objective function should be of maximization.
(ii) All the constraints should have “≤“ inequality.
(iii) All variables must be “≥ 0”.
If an LPP satisfies the conditions cited above, then it is called in canonical form.
Eg. Rewrite the given LPP in the canonical form Max Z = 3x1+x2 s.t. 2x1 - x2 ≤ 10;
3x1 + 4x2 ≥ 24; x1 ≥ 2; x2 ≥ 0
Dual Simplex Method
Examples
1) Max Z = 3x1 + 2x2 s.t. 2x1 + x2 ≤ 5; x1 + x2 ≤ 3; x1, x2 ≥ 0
2) Max Z = -2x1 - 9x2 - 24x3 - 8x4 - 5x5; s.t. x1 + x2 + 2x3 - x5 - x6 = 1; -2x1 + x3 + x4 +
x5 - x7 = 2; xj ≥ 0 (for j = 1, 2, ..., 7)
3) Max Z = 2x1 + x2; s.t. x1 + 2x2 ≤ 10; x1 + x2 ≤ 6; x1 - x2 ≤ 2; x1 - 2x2 ≤ 1; x1, x2 ≥ 0
4) Min Z = 3x1 + x2; s.t. x1 + x2 ≥ 1; 2x1 + 3x2 ≥ 2; x1, x2 ≥ 0
5) Min Z = x1 + 2x2 + 3x3 + 4x4; s.t. x1 + 2x2 + 2x3 + 3x4 ≥ 30; 2x1 + x2 + 3x3 + 2x4 ≥ 20;
xj ≥ 0 (for j = 1, 2, 3, 4)
6) Min Z = 6x1 + 7x2 + 3x3 + 5x4; s.t. 5x1 + 6x2 - 3x3 + 4x4 ≥ 12; x2 + 5x3 - 6x4 ≥ 10; 2x1
+ 5x2 + x3 + x4 ≥ 8; xj ≥ 0 (for j = 1, ..., 4)
7) Max Z = -3x1 - 2x2; s.t. x1 + x2 ≥ 1; x1 + x2 ≤ 7; x1 + 2x2 ≥ 10; x2 ≤ 3; x1, x2 ≥ 0
8) Min Z = x1 + 2x2 + 5x3; s.t. | - x1 + 10x2 - 3x3| ≤ 15; 2x1 + x2 + x3 ≥ 10; x1, x2, x3 ≥ 0
9) Min Z = 2x1 + 2x2; s.t. 2x1 + 4x2 ≥ 1; x1 + 2x2 ≥ 1; 2x1 + x2 ≥ 1; x1, x2 ≥ 0
10) Max Z = -3x1 - 2x2; s.t. x1 + x2 ≥ 1; x1 + x2 ≤ 7; x1 + 2x2 ≥ 10; x2 ≤ 3; x1, x2 ≥ 0
11) Max Z = 5x1 - 2x2 + 3x3; s.t. 2x1 + 2x2 - x3 ≥ 2; 3x1 - 4x2 ≤ 3; x2 + 3x3 ≤ 5; x1, x2, x3
≥0
Mathematical Programming
1Transport Problem
Transport Problem
• m origins (production centres/warehouses) and n destinations (market places) in a
transportation system.
• The origin i (i = 1, 2, ..., m) has si (si > 0) units of single product of supply, whereas
the destination j (j = 1, 2, ..., n) requires the demand (dj > 0) dj units.
• Cost of transporting the unit from the origin i to the destination j is cij.
• It is required to determine the number of units of the product to be transported from
origin i to destination j, for all i and j, so that the total transportation cost can be
minimized, subject to the supply and demand constraints.
• Let xij (xij ≥ 0) denotes the number of units transported from the ith origin to jth
destination for all i = 1, 2, ..., m and j = 1, 2, ..., n.
• The relationship between the different elements of a transportation problem can be
given in a tabular form. The box (i, j) will be called cell (i, j).
Linear Programming form
2)
Vogel’s Approximation Method (VAM)
• N - Number
• CL - Close
• VN - Vogel Number (penalty cost)
• Rm - mth Row
• RVN - Row Vogel Number
• Cn - nth Column
• CVN - Column Vogel Number
• UG - Units Given
• R1 - 1st Row
• C1 - 1st Column
• SC - Selected Cell
Examples
• VD - Vertically Down
• HR 0 Horizontally Right
• HL - Horizontally Left
• R - Row
• C - Column
• H - Horizontal
• V - Vertical
Examples
(a) (b)
2) Consider the transportation problem. Find (i) initial solution using
NWCR. (ii) Find the optimum solution. Is the solution unique? If not find
the alternate solution.
Examples
1)
2)
Mathematical Programming
1Assignment Problem
Assignment Problem
Consider n jobs and n persons. Assume that each job can be done only by one person
and the expense a person required for completing the ith job (i = 1, 2, ..., n) by the jth
person (j = 1, 2, ..., n) is denoted by a real number Cij. On the whole, this model deals
with the assignment of n candidates to n jobs in such a way that to minimize the time
(cost) for over all completion of the jobs.
1) 2) 3)
4) A manager has four salesmen and four sales districts. He estimates that the profit per
day from each salesman in each district would be as follows. Find the assignment of
salesmen to districts that will result in maximum profit.
Examples
5) Solve the following problem to maximize the profit. Which job is to be left?
6) Impossible Assignment