Linear Programming Terminology
Linear Programming Terminology
1
Question:
Answer:
• Whenever a decision variable appears in the objective function
or a constraint, it must appear linearly, that is, it must appear
only as a power term with an exponent of 1, possibly multiplied
by a constant (for example, 25T + 30B is OK, but 25T 2 and
25BT are not).
• The objective function is unique (there is only one quantity to
optimize).
• The decision variables are permitted to assume real values
(they are not restricted to integer values).
2
Observations about the carpenter problem
The feasible region was a convex set (a set is not convex if you
can draw a line segment joining two points in the set which does
not lie entirely within the set).
3
Comment on the number of solutions for a linear pro-
gram
4
In general (that is, for linear programs with a non-empty and
bounded feasible region), the optimal solution for a linear pro-
gram occurs at one of the extreme points of the feasible region.
3. For all remaining intersection points, namely those that are extreme
points of the feasible region, evaluate the objective function.
4. Choose the extreme point(s) with the largest/smallest value for the ob-
jective function.
5
The above procedure is easy to follow when the number of de-
cision variables is 2. In that case, such as for the carpenter
problem, we can graph the feasible region, and visually decide
whether a particular point of intersection is feasible or not.
6
Slack variables
Let yi be the slack variable for the ith constraint (not including
the non-negativity constraints). Add/Subtract the slack variable
to/from the constraint in such a way (and replace the inequality
to an equality) that the value of yi means the following:
• If yi > 0, the ith constraint is satisfied with room to spare (with slack).
• If yi = 0, the ith constraint is just satisfied.
• If yi < 0, the ith constraint is violated.
That is, yi will measure the extent to which the ith constraint is
satisfied.
7
Slack variables & number of intersection points
9
10
Logic of the Simplex Method
(a) If all the ki ’s are strictly less than zero, terminate the
algorithm.
11
(b) If none of the ki ’s are strictly positive, but some ki = 0,
then we are at an optimal corner, but there may exist
other optimal solutions. Terminate the algorithm.
(c) If some of the ki’s are positive, then increase any variable
Vi whose coefficient ki is the largest. Increase Vi to the
maximal allowable extent (that is, Vi loses status as corner
variable; it is referred to as the entering variable). In doing
so, some non-corner variable will necessarily fall to zero
(that is, it will gain status as corner variable; it is referred
to as the exiting variable). In this way, you are moving to
a new corner of the feasible region.
t b y1 y2 RHS
20 30 1 0 60
5 4 0 1 12
25 30 0 0 P-160
• Objective row: Last row, representing the objective function.
• Basic rows: All other rows, representing a constraint each.
• Corner variables: Those with non-elementary columns (here, t and b).
• Non-corner variables: Those with elementary columns (here, y1 and y2 ).
12
The Simplex Method using Tableaus
5. Go back to step 1 . . .