Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
- Example 1
James produces two commodi0es, x1 and x2. These two
products are processed through 2 machines. Maximum
hours available are 120 and 180 for machines 1 and 2,
respec0vely. Profit is P45 for x1 and P55 for x2. Determine
the op0mal x1 and x2 that should be manufactured in order
to maximize profit.
x1 x2
Machine 1 6 4 120
Machine 2 3 10 180
Profit 45 55
Max 45x1 + 55x2
x2 subj. to
6x1 + 4x2 ≤ 120
6x1 + 4x2 = 120 3x1 + 10x2 ≤ 180
x1, x2 ≥ 0
A VOF
(0, 18) 990
(10, 15) 1275
(20, 0) 900
B
(0, 0) 0
subject to
6x1 + 4x2 ≤ 120 Max 45x1 + 55x2 = Min -45x1 - 55x2
Max c0 = Min -c0
3x1 + 10x2 ≤ 180
x1, x2 ≥ 0
Standard form: Convert inequality to equality sign by adding a slack so that you now have 4 variables
Max 45x1 + 55x2
subject to
6x1 + 4x2 + x3 = 120
3x1 + 10x2 + x4 = 180
x1, x2, x3, x4 ≥ 0
Computational form n=4
r=2
Min - 45x1 - 55x2 :. There are (n-r) 2 variables I can assign arbitrary values to
subject to
6x1 + 4x2 + x3 = 120
3x1 + 10x2 + x4 = 180
x1, x2, x3, x4 ≥ 0
Def. If the LPP is in computational form, there exists a basis B
such that B = I, cB = 0, then the LPP is said to be in canonical
* Basis of A = Columns of A that form a nonsingular matrix
form with respect to the basis of A. * Nonsingular - Has an inverse & determinant is not = 0
* Canonical - W/c columns of A form an identity matrix
Min -c x = -c0
If you find that the basis of A form an identity matrix & the
s.t. Ax = b coefficients of f(x) are 0[c^B = 0]. then it is canonical
x ≥ 0
Example:
c = [− 45 − 55 0 0]
⎡6 4 1 0⎤ 3rd & 4th
A= ⎢ ⎥
columns
comprise the x B = [x3 x4 ] x N = [x1 x2 ]
⎣ 3 10 0 1 ⎦ basis of A
⎡ xB ⎤
[− c B
− cN ] ⎢ N ⎥ = −c0
⎣x ⎦
x1 & x2 are nonbasic variables :. assign values of zero
x3 & x4 are basic variables
⎡ x B ⎤ ⎡b⎤
[B N ] ⎢ N ⎥ = ⎢ ⎥
⎣ x ⎦ ⎣0⎦
BxB = b
IxB = b
xB = b
x1 = 0, x2 = 0, x3 = 120, x4 = 180 Basic feasible
solution
⎡1 4 17 ⎤ ⎡1 4 17 ⎤
A1 = ⎢⎢2 12 46⎥⎥ A2 = ⎢⎢0 4 12 ⎥⎥
⎢⎣3 18 69 ⎥⎦ ⎢⎣0 6 18 ⎥⎦
⎡1 4 17 ⎤
⎡1 4 17 ⎤
A3 = ⎢⎢0 4 12 ⎥⎥ ⎢ ⎥
A4 = ⎢0 4 12 ⎥
⎢⎣0 1 3 ⎥⎦
⎢⎣0 0 0 ⎥⎦
Example:
Max 45x1 + 55x2
subject to
6x1 + 4x2 ≤ 120
3x1 + 10x2 ≤ 180
x1, x2 ≥ 0
Standard form:
Max 45x1 + 55x2 Note:
* Pivot - Change pivot element to 1
subject to and change other elements to zero (in
that column)
6x1 + 4x2 + x3 = 120 It is a basic feasible solution that
corresponds to D. Stop only if you
3x1 + 10x2 + x4 = 180 don’t find negative values in Row 0.
1. Pivot the most (-) column -> 55
x1, x2, x3, x4 ≥ 0 2. Pivot the most (-) row (Look at the
RHS)
Computational form Ex: 120/4 = 30 & 180/10 = 18 based
on the key column :. 4 & 10
Min - 45x1 - 55x2 - Quotients are 30 & 18 :. choose the
smaller number
subject to
6x1 + 4x2 + x3 = 120
3x1 + 10x2 + x4 = 180
x1, x2, x3, x4 ≥ 0 Basic variables - x3, x4