Linear Programming Lecture Notes - Penn State Personal Web Server
Linear Programming Lecture Notes - Penn State Personal Web Server
Linear Programming Lecture Notes - Penn State Personal Web Server
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Matlab Solution<br />
Figure 3.1. The feasible region for the diet problem is unbounded and there are<br />
alternative optimal solutions, since we are seeking a minimum, we travel in the<br />
opposite direction of the gradient, so toward the origin to reduce the objective<br />
function value. Notice that the level curves hit one side of the boundary of the<br />
feasible region.<br />
This is not an accident, it’s because we started with a negative identity matrix inside the<br />
augmented matrix. The point x1 = 4, x2 = 4 is a point of intersection, shown in Figure 3.1.<br />
It also happens to be one of the alternative optimal solutions of this problem. Notice in<br />
Figure 3.1 that the level curves of the objective function are parallel to one of the sides of<br />
the boundary of the feasible region. If we continued in this way, we could actually construct<br />
all the points of intersection that make up the boundary of the feasible region. We’ll can do<br />
one more, suppose xB = [x1 s1] T . Then we would use Gauss-Jordan elimination to obtain:<br />
1 2 0 −1 12<br />
0 1 1 −2 4<br />
<br />
Notice there are now columns of the identity matrix in the columns corresponding to s1 and<br />
x1. That’s how we know we’re solving for s1 and x2. We have x1 = 12 and s1 = 4. By<br />
definition x1 = s2 = 0. This corresponds to the point x1 = 12, x2 = 0 shown in Figure 3.1.<br />
Let’s use Matlab to solve this problem. Our original problem is:<br />
⎧<br />
⎪⎨<br />
⎪⎩<br />
min x1 + 1.5x2<br />
s.t. 2x1 + 3x2 ≥ 20<br />
x1 + 2x2 ≥ 12<br />
x1, x2 ≥ 0<br />
49