9.2 Linear Programming---Geometric Method (Linear Programming---Geometric Method)

This article is the reading notes of "Linear algebra and its applications"

Linear Programming Problem

Generally speaking, a linear programming problem involves a system of linear inequalities in variables x 1 , . . . , x n x_1, . . . , x_n x1,...,xn and a linear functional f f f from R n \R^n Rn into R \R R. The system typically has many free variables, and the problem is to find a solution x \boldsymbol x x that maximizes or minimizes f ( x ) f (\boldsymbol x) f(x).

EXAMPLE 1
The Shady-Lane grass seed company blends two types of seed mixtures, EverGreen and QuickGreen. Each bag of EverGreen contains 3 pounds of fescue seed, 1 pound of rye seed, and 1 pound of bluegrass. Each bag of QuickGreen contains 2 pounds of fescue, 2 pounds of rye, and 1 pound of bluegrass. The company has 1200 pounds of fescue seed, 800 pounds of rye seed, and 450 pounds of bluegrass available to put into its mixtures. The company makes a profit of $2 on each bag of EverGreen and $3 on each bag of QuickGreen that it produces. Set up the mathematical problem that determines the number of bags of each mixture that Shady-Lane should make in order to maximize its profit.
SOLUTION
Let x 1 x_1 x1 be the number of bags of EverGreen and x 2 x_2 x2 the number of bags of QuickGreen that are produced. The problem is summarized mathematically as

Insert picture description here
The example shows how a linear programming problem involves finding the maximum (or minimum) of a linear function, called the objective function, subject to certain linear constraints. In many situations, the constraints take the form of linear inequalities and the variables are restricted to nonnegative values.


Here is a precise statement of the so-called canonical(最简洁的) form of a linear programming problem.

Insert picture description here
To minimize a function h ( x ) h(\boldsymbol x) h(x), replace it with the problem of maximizing the function − h ( x ) −h(\boldsymbol x) h(x). A constraint inequality of the sort

Insert picture description here
can be replaced by

Insert picture description here
An equality constraint

Insert picture description here
can be replaced by two inequalities

Insert picture description here


With an arbitrary canonical linear programming problem, two things can go wrong.

  • If the constraint inequalities are inconsistent, then F \mathscr F F is the empty set.
  • If the objective function takes on arbitrarily large values in F \mathscr F F, then the desired maximum does not exist.

In the former case, the problem is said to be infeasible; in the latter case, the problem is called unbounded.

Fortunately, these are the only two things that can go wrong.


Insert picture description here
Insert picture description here

See Section 8.5: The implicit definition of polytopes and THEOREM 16

Geometric Method

Theorem 6 describes when an optimal solution exists, and it suggests a possible technique for finding one. That is, evaluate the objective function at each of the extreme points of F \mathscr F F and select the point that gives the largest value.


This works well in simple cases such as the next two examples. The geometric approach is limited to two or three dimensions, but it provides an important visualization of the nature of the solution set and how the objective function interacts with the feasible set to identify extreme points.

EXAMPLE 5

Insert picture description here
SOLUTION
Figure 1 shows the shaded feasible set. (For simplicity, points in this section are displayed as ordered pairs or triples.)

Insert picture description here

There are five extreme points, corresponding to the five vertices of the feasible set. The table below shows the value of the objective function at each extreme point. Evidently, the maximum is 96 96 96 at x 1 = 30 x_1 = 30 x1=30 and x 2 = 12 x_2 = 12 x2=12.

Insert picture description here
Another geometric technique that can be used when the problem involves two variables is to graph several level lines for the objective function. These are parallel lines, and the objective function has a constant value on each line. (See Fig. 2.) The values of the objective function f ( x 1 , x 2 ) f (x_1, x_2) f(x1,x2) increase as ( x 1 , x 2 ) (x_1, x_2) (x1,x2) moves from left to right. The level line farthest to the right that still intersects the feasible set is the line through the vertex ( 30 , 12 ) (30, 12) (30,12). Thus, the point ( 30 , 12 ) (30, 12) (30,12) yields the maximum value of f ( x 1 , x 2 ) f (x_1, x_2) f(x1,x2) over the feasible set.

Insert picture description here

EXAMPLE 6
Insert picture description here
SOLUTION
Each of the five inequalities above determines a “half-space” in R 3 \R^3 R3—a plane together with all points on one side of the plane. The feasible set of this linear programming problem is the intersection of these half-spaces, which is a convex set in the first octant(卦限) of R 3 \R^3 R3.

When the first inequality is changed to an equality, the graph is a plane that intercepts each coordinate axis 50 units from the origin and determines the equilateral(等边的) triangular region shown in Fig. 3.

Insert picture description here

Since ( 0 , 0 , 0 ) (0, 0, 0) (0,0,0) satisfies the inequality, so do all the other points “below” the plane. In a similar fashion, the second (in)equality determines a triangular region on a plane (shown in Fig. 4) that passes somewhat closer to the origin. The two planes intersect in a line that contains segment E B EB EB.

The quadrilateral surface BCDE BCDEBCDE forms a boundary of the feasible set, because it is below the equilateral triangular region. Beyond E B EB EB, however, the two planes change position relative to the origin, so the planar region A B E ABE ABE forms another bounding surface for the feasible set. The vertices of the feasible set are the points A , B , C , D , E A, B , C , D, E A,B,C,D,E, and 0 0 0 (the origin). See Fig. 5.

Insert picture description here

To find the coordinates of B B B , solve the system

Insert picture description here
Obtain x 2 = 30 x_2 = 30 x2=30, and find that B B B is ( 20 , 30 , 0 ) (20, 30, 0) (20,30,0). For E E And , solve

Insert picture description here
Obtain x 3 = 10 x_3 = 10 x3=10, and find that E = ( 40 , 0 , 10 ) E = (40, 0, 10) E=(40,0,10).

Now that the feasible set and its extreme points are clearly seen, the next step is to examine the objective function f ( x 1 , x 2 , x 3 ) = 2 x 1 + 3 x 2 + 4 x 3 f (x_1, x_2, x_3) = 2x_1 + 3x_2 + 4x_3 f(x1,x2,x3)=2 x1+3 x2+4 x3. The sets on which f f f is constant are planes, all having ( 2 , 3 , 4 ) (2, 3, 4) (2,3,4) as a normal vector to the plane. This normal vector has a direction different from the normal vectors ( 1 , 1 , 1 ) (1, 1, 1) (1,1,1) and ( 1 , 2 , 4 ) (1, 2, 4) (1,2,4) to the two faces B C D E BCDE BCDE and A B E ABE ABE . So the level sets of f f f are not parallel to any of the bounding surfaces of the feasible set. Figure 6 shows just the feasible set and a level set on which f f f has the value 120 120 120. This plane passes through C C C ,EEE, and the point ( 30 , 20 , 0 ) (30, 20, 0) (30,20,0) on the edge of the feasible set between A A A and B B B, which shows that the vertex B B B is “above” this level plane. In fact, f ( 20 , 30 , 0 ) = 130 f (20, 30, 0) = 130 f(20,30,0)=130. Thus the unique solution of the linear programming problem is at B = ( 20 , 30 , 0 ) B = (20, 30, 0) B=(20,30,0).

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42437114/article/details/109274416