Linear Programming in Operations Research
Linear Programming in Operations Research
schedule of
resources.
'linear' means that the relationships are represented by straight lines, i.e., the relationships are of the form
A = C + Bx.
The word 'programming' is just an other word for planning and is concerned with optimal allocation of limited resources.
Basic Terminology
Linear Function A linear function contains terms, each of which is composed of only a single, continuous variable raised to (and only to) the power of 1. Objective Function It is a linear function of the decision variables expressing the objective of the decision-maker. The most typical forms of objective functions are: maximize f(x) or minimize f(x). Decision Variables These are economic or physical quantities whose numerical values indicate the solution of the linear programming problem. These variables are under the control of the decision-maker and could have an impact on the solution to the problem under consideration. The relationships among these variables should be linear.
Constraints These are linear equations arising out of practical limitations. The mathematical forms of the constraints are: f(x) b or f(x) b or f(x) = b
Feasible Solution Any non-negative solution which satisfies all the constraints is known as a feasible solution. Optimal Solution The solution where the objective function is maximized or minimized is known as optimal solution.
subject to (constraints) a11x1 + a12x2 + a13x3 + .........+ a1nxn (, , =) b1 a21x1 + a22x2 + a23x3 + .........+ a2nxn (, , =) b2 ................................................................................. .. am1x1 + am2x2 + am3x3 + .........+ amnxn (, , =) bm
& (non-negative restrictions) x1, x2,....., xn 0
Where all c's, a's, b's are constants and x's are decision variables. The expression (, , =) means that each constraint may take only one of the three possible forms. The expression xn 0 means that the xn's must be non-negative.
9000 cubic yard material is required. Four sources of materials are in the vicinity of the construction site. The composition and the unit cost of material delivered to the site are:
Sources Gravel (% ) Sand (%) Silt (%) Cost (Rs./ cu. yd)
15 30
75 70
10 00
60 80
00
05
100
30
00
65
50
00
Determine the minimum cost solution that meets the specification requirement.
Solution
Decision Variables: Let the material from River gravel = x1
Let the material from Sea gravel = x2 Let the material from Sand = x3 Let the material on Site = x4
It was decided that, to carry out the required daily maintenance, each bus could operate only 8 successive hours a day. Chalk out the policy to minimize buses.
12:0 0 AM
4:00 AM
8:00 AM
12:0 0 Noon
4:00 PM
8:00 PM
12:0 0 AM
Solution
x6 x1 x2 x3 x4 x5 x6
12:0 0 AM
4:00 AM
8:00 AM
Min. Z = x1 + x2 + x3 + x4 + x5 + x6 Constraints:
x1 + x6 x1 + x2 x2 + x 3 x3 + x 4 x4 + x 5 x5 + x6 4 (12:00 4:00) 8 (4:00 8:00) 10 (8:00 12:00) 7 (12:00 4:00) 12 (4:00 8:00) 4 (8:00 12:00)
12:0 0 Noon
4:00 PM
8:00 PM
12:0 0 AM
x1 0, x2 0, x3 0, x4 0, x5 0, x6 0
Solution
Let x1, x2 be the nos. of Grade 1 and Grade 2 inspectors. Objective function is to minimize the daily cost of inspection which is equal to wages paid to the inspectors + the cost of their inspection error.
Cost of Grade 1 inspector/hr = 200 +(100*0.04*20) = Rs. 280 Cost of Grade 2 inspector/hr = 150+(100*0.08*14) =Rs. 262 Therefore, Z to minimize = 8(280x1+262x2) =2240 x1 + 2096x2 Constraints are x1 10 (Grade 1) and x2 15 (Grade 2)
on the number of pieces to be inspected daily 20 * 8x1 + 14 * 8x2 1500 or 160x1 + 112x2 1500
Assumption: Lengthwise strips can be taped together Goal: Throw away as little as possible
12
20
5'
5000'
13
Patterns possible
10 roll x1 5 7 9 Trim loss 2 0 0 0 x2 0 1 0 3 20 roll x4 4 0 0 0 x5 2 1 0 3 x6 2 0 1 1 x7 1 2 0 1 x8 0 1 1 4
x3
0 0 1 1
x9
0 0 2 2
s.t.
2x 1 + 4x 4 + 2x 5 + 2x 6 + x 7
x 2 + x 5 + 2x 7 + x 8
x3 + x6 + x8 + 2x 9 xj 0, j = 1, 2,,9
14
Alternative Formulation
min z = 3x2 + x3 + 3x5 + x6 + x7 + 4x8 + 2x9 + 5y1 + 7y2 + 9y3
s.t.
2x1 +
4 x4
+ 2x5 + 2x6 + x7
y1 y2 y3
=
= =
10,000
30,000 20,000
15