Guide 2
Guide 2
Optimization
Mariano Echeverria
Topics covered:
ë The exam will be based on the material from Lectures 7, 8, 9, 10, 11, 12. Roughly
speaking, the four topics for this exam are:
ë If you are reading the book, sections 5.1, 5.2, 5.3, 5.4 are the most important
ones. The other sections from chapter 5 provide interesting information which
can be read for those who want to dig further, but some of the presentation is
more abstract.
1
ë For example, in Lec 8 354, the farmer’s problem
max(1.2x1 + 1.7x2 )
x1 ≥ 0, x2 ≥ 0
x1 ≤ 3
x2 ≤ 4
x1 + x2 ≤ 5
2
ë Step 4 [row selection]: for the column that was selected in “Step 3”, compute
the ratio between a entry of b and the corresponding entry from that column. For
example, in our case, the ratios are 30 = ∞, 41 = 4 and 51 = 5. Choose the entry
of the column that gave the smallest positive ratio. In our example, this would
be the 1 in the second row, second column, that is, entry a22 . See remark at the
end of this explanation.
ë Step 5 [producing a new basic feasible solution]: using the entry selected in
Step 4, do row operations to make that entry the number 1, and then turn all the
other entries on that column equal to 0 using row operations. For example, for our
matrix, a22 is already 1 so there is no need to modify it, but we need to make every
other entry on that column equal to 0. This requires operations −r2 + r3 − > r3
and 1.7r2 + r4 − > r4 producing the matrix
0 1 0 0| 0
1 3
0 1 0 1 0| 0 4
1 0 0 −1 1 | 0 1
−1.2 0 0 1.7 0 1 6.8
Notice that this step becomes identical to Step 2, so the algorithm repeats itself at
this point (check Lec 8 354.pdf and Lec 9 354.pdf for how the method is concluded)
ë Remark: some complications with Step 4 [Unboundedness and degeneracy]. If
there are no positive entries in this column then there is no optimal
solution (see for example the unbounded case from Lec 10 354.pdf) If there is
positive ratio but there is a positive entry on this column with ratio 0
(so the corresponding entry of b was 0), then if one uses that entry then sometimes
the simplex method will continue working, but other times it may cycle, so one
option to avoid this is by perturbing the equations (see the topic of degeneracy in
Lec 10 354.pdf and Lec 11 354.pdf)
3
and one can’t see an “obvious” basic feasible solution, then one introduces new
variables, one for each row,
x4 = 4 − x1 − 3x2 − x3
x5 = 2 − 2x2 − x3
Notice that each new variable is also non-negative. Then, before solving “original
problem”, one solves the “auxiliary problem”
max(−x4 − x5 )
x1 ≥ 0, x2 ≥ 0, x3 ≥ 0, x4 ≥ 0, x5 ≥ 0
auxiliary problem
x1 + 3x2 + x3 + x4 = 4
2x + x + x = 2
2 3 5
and this now has an obvious basic solution determined by the last two columns.
Adding the coefficients for the optimization function one then applies the simplex
method to the matrix system
1 3 1 1 0| 0 4
!
0 2 1 0 1| 0 2
0 0 0 1 1 1 0
x∗1
x∗2 x∗1
!
ë If the max is 0 and occurs at x∗aux = x∗3 , then the vector x∗org = x∗2 can
x∗ x ∗
4 3
x∗5
be used as a basic feasible solution to “original problem” , and one runs the simplex
method with this.
ë If the max is not 0, then “original problem” has no basic feasible solution and there
is no solution to the original optimization problem.