Chapter10.Linear.Programming
Chapter10.Linear.Programming
com
Linear Programming
The LP formulation and the underlying assumptions
A prototype LP problem:
Generalization to the n-var case: the ``geometry'' of the LP feasible region and the
Fundamental Theorem of Linear Programming
Example:
http://www.amaderforum.com
http://www.amaderforum.com
Example:
http://www.amaderforum.com
http://www.amaderforum.com
As it happens, however, with every modeling effort, the effective application of Linear
Programming requires good understanding of the underlying modeling assumptions, and
a pertinent interpretation of the obtained analytical solutions
http://www.amaderforum.com
http://www.amaderforum.com
A prototype LP problem:
Consider a company which produces two types of products and . Production of these
products is supported by two workstations
and , with each station visited by both product types. If workstation is dedicated
completely to the production of product type , it can process 40 units per day, while if
it is dedicated to the production of product , it can process 60 units per day. Similarly,
workstation can produce daily 50 units of product and 50 units of product ,
assuming that it is dedicated completely to the production of the corresponding product.
If the company's profit by disposing one unit of product is $200 and that of disposing
one unit of is $400, and assumning that the company can dispose its entire production,
how many units of each product should the company produce on a daily basis to
maximize its profit?
Solution:
First notice that this problem is an optimization problem. Our objective is to maximize the
company's profit, which under the problem assumptions, is equivalent to maximizing the
company's daily profit. Furthermore, we are going to maximize the company profit by
adjusting the levels of the daily production for the two items and . Therefore, these
daily production levels are the control/decision factors, the values of which we are called
to determine. In the analytical formulation of the problem, the role of these factors is
captured by modeling them as the problem decision variables:
In the light of the above discussion, the problem objective can be expressed analytically
as:
Equation1 will be called the objective function of the problem, and the coefficients 200
and 400 which multiply the decision variables in it, will be called the objective function
coefficients.
Furthermore, any decision regarding the daily production levels for items and in
order to be realizable in the company's operation context must observe the production
capacity of the two worksations and . Hence, our next step in the problem
http://www.amaderforum.com
http://www.amaderforum.com
formulation seeks to introduce these technological constraints in it. Let's focus first on
the constraint which expresses the finite production capacity of workstation .
Regarding this constraint, we know that one day's work dedicated to the production of
item can result in 40 units of that item, while the same period dedicated to the
production of item will provide 60 units of it. Assuming that production of one unit of
product type , requires a constant amount of processing time at
workstation , it follows that: and . Under the further assumption that
the combined production of both items has no side-effects, i.e., does not impose any
additional requirements for production capacity of workstation (e.g., zero set-up
times), the total capacity (in terms of time length) required for producing units of
product and units of product is equal to . Hence, the technological
constraint imposing the condition that our total daily processing requirements for
workstation should not exceed its production capacity, is analytically expressed by:
Following the same line of reasoning (and under similar assumptions), the constraint
expressing the finite processing capacity of workstation is given by:
Finally, to the above constraints we must add the requirement that any permissible value
for variables must be nonnegative, i.e.,
since these values express production levels. These constraints are known as the variable
sign restrictions.
http://www.amaderforum.com
http://www.amaderforum.com
s.t.
http://www.amaderforum.com
http://www.amaderforum.com
Objective Function:
s.t.
Technological Constraints:
Sign Restrictions:
To provide a better feeling of the linearity concept, let us assume that the different
decision variables correspond to various activities from which any solution
will be eventually synthesized, and the values assigned to the variables by any given
solution indicate the activity level in the considered plan(s). For instance, in the above
example, the two activities are the production of items and , while the activity levels
correspond to the daily production volume. Furthermore, let us assume that each
technological constraint of Equation7 imposes some restriction on the consumption of a
particular resource. Referring back to the prototype example, the two problem resources
are the daily production capacity of the two workstations and . Under this
interpretation, the linearity property implies that:
http://www.amaderforum.com
http://www.amaderforum.com
Additivity assumption:
the total consumption of each resource, as well as the overall objective value are
the aggregates of the resource consumptions and the contributions to the problem
objective, resulting by carrying out each activity independently, and
Proportionality assumption:
these consumptions and contributions for each activity are proportional to the
actual activity level.
It is interesting to notice how the above statement reflects to the logic that was applied
when we derived the technological constraints of the prototype example: (i) Our
assumption that the processing of each unit of product at every station requires a constant
amount of time establishes the proportionality property for our model. (ii) The
assumption that the total processing time required at every station to meet the production
levels of both products is the aggregate of the processing times required for each product
if the corresponding activity took place independently, implies that our system has an
additive behavior. It is also interesting to see how the linearity assumption restricts the
modeling capabilities of the LP framework: As an example, in the LP paradigm, we
cannot immediately model effects like economies of scale in the problem cost structure,
and/or situations in which resource consumption by one activity depends on the
corresponding consumption by another complementary activity. In some cases, one can
approach these more complicated problems by applying some linearization scheme. The
resulting approximations for many of these cases have been reported to be quite
satisfactory.
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
The objective function will be described in this n-dim space by its contour plots, i.e., the
sets of points that correspond to the same objective value. To the extent that the proposed
approach requires the visualization of the underlying geometry, it is applicable only for
LP's with upto three variables. Actually, to facilitate the visualization of the concepts
involved, in this section we shall restrict ourselves to the two-dimensional case, i.e., to
LP's with two decision variables. In the next section, we shall generalize the geometry
introduced here for the 2-var case, to the case of LP's with n decision variables, providing
more analytic (algebraic) characterizations of these concepts and properties.
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
. In the special case where , the solution space (locus) of Equation9 is still a
straight line perpendicular to the -axis, intersecting it at the point . Notice that
the presence of an equality constraint restricts the dimensionality of the feasible solution
space by one degree of freedom, i.e., it turns it from a planar area to a line segment.
http://www.amaderforum.com
http://www.amaderforum.com
The solution space of this constraint is one of the closed half-planes defined by the
equation: . To show this, let us consider a point which
satsifies Equation10 as equality, and another point for which Equation10 is also
valid. For any such pair of points, it holds that:
Interpreting the left side of Eq.11 as the inner (dot) product of the two vectors
and , and recognizing that
, it follows that line , itself, can be
defined by point and the set of points such that vector is at right
angles with vector . Furthermore, the set of points that satisfy the > (<) part of
Equation11 have the vector forming an acute (obtuse) angle with vector , and
therefore, they are ``above'' (``below'') the line. Hence, the set of points satisfying each of
the two inequalities implied by Equation10 is given by one of the two half-planes the
boundary of which is defined by the corresponding equality constraint. Figure1
summarizes the above discussion.
http://www.amaderforum.com
http://www.amaderforum.com
An easy way to determine the half-plane depicting the solution space of a linear
inequality, is to draw the line depicting the solution space of the corresponding equality
constraint, and then test whether the point (0,0) satisfies the inequality. In case of a
positive answer, the solution space is the half-space containing the origin, otherwise, it is
the other one.
From the above discussion, it follows that the feasible region for the prototype LP of
Equation5 is the shaded area in the following figure:
http://www.amaderforum.com
http://www.amaderforum.com
in the Cartesian plane defined by the two independent variables and . For this
purpose, we shall use the concept of contour plots. Contour plots depict a function by
identifying the set of points that correspond to a constant value of the function
, for any given range of 's. The plot obtained for any fixed value of is a
contour of the function. Studying the structure of a contour is expected to identify some
patterns that essentially depict some useful properties of the function.
In the case of LP's, the linearity of the objective function implies that any contour of it
will be of the type:
i.e., a straight line. For a maximization (minimization) problem, this line will be called an
isoprofit (isocost) line. Assuming that (o.w., work with ), Equation12 can be
rewritten as:
which implies that by changing the value of , the resulting isoprofit/isocost lines have
constant slope and varying intercept, i.e, they are parallel to each other (which makes
sense, since by the definition of this cocnept, isoprofit/isocost lines cannot intersect).
Hence, if we continously increase from some initial value , the corresponding
isoprofit lines can be obtained by ``sliding'' the isprofit line corresponding to
parallel to itself, in the direction of increasing or decreasing intercepts,
depending on whether is positive or negative.
http://www.amaderforum.com
http://www.amaderforum.com
From this figure, it follows that the optimal daily production levels for the protoype LP
are given by the coordinates of the point corresponding to the intersection of line
http://www.amaderforum.com
http://www.amaderforum.com
and they are parallel to the line corresponding to the first problem constraint:
Therefore, if we try to apply the optimizing technique of the previous paragraph in this
case, we get the situation depicted below (Figure4), i.e., every point in the line segment
CD is an optimal point, providing the optimal objective value of $24,000.
It is worth-noticing that even in this case of many optimal solutions, we have two of them
corresponding to ``corner'' points of the feasible region, namely points C and D.
http://www.amaderforum.com
http://www.amaderforum.com
Attempting to plot the feasible region for this new problem, we get Figure5, which
indicates that there are no points on the -plane that satisfy all constraints, and
therefore our problem is infeasible (over-constrained).
Figure 5: An infeasible LP
http://www.amaderforum.com
http://www.amaderforum.com
s.t.
The feasible region and the direction of improvement for the isoprofit lines for this
problem are given in Figure6
Figure 6: An unbounded LP
http://www.amaderforum.com
http://www.amaderforum.com
It is easy to see that the feasible region of this problem is unbounded, and furthermore,
the orientation of the isoprofit lines is such that no matter how far we ``slide'' these lines
in the direction of increasing the objective function, they will always share some points
with the feasible region. Therefore, this is an example of a (2-var) LP whose objective
function can take arbitrarily large values. Such an LP is characterized as unbounded.
Notice, however, that even though an unbounded feasible region is a necessary condition
for an LP to be unbounded, it is not sufficient; to convince yourself, try to graphically
identify the optimal solution for the above LP in the case that the objective function is
changed to: .
Summarizing the above discussion, we have shown that a 2-var LP can either
In the next section, we generalize this geometrical description of the LP solution space
for the n-var LP case, and we provide a brief (informal) derivation of the Fundamental
Theorem of Linear Programming. The latter states that if an LP has a bounded optimal
solution, then it must have one which is an extreme point of its feasible region. The
Simplex algorithm to be discussed in the last section of this set of notes essentially
exploits this fundamental result to reduce the space to be searched for an optimal
solution.
Finally, you can actively try the graphical approach to the solution of 2-var LP's
discussed above, by using the code developed by the group of Professors Ken Goldberg
and Ilan Adler, at the University of Berkeley, Dept. of Industrial Engineering and
Operations Research. Notice that the problem formulation uses a "minimization"
objective, and all variables are considered to be "urs". Therefore, (i) any maximization
problem must be turned into a minimization one (can you think of an easy way?), and (ii)
all sign restrictions must be introduced in the formulation explicitly. Other than that, the
software is self-explanatory.
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
• Equation
as the set of points for which the vector
is at right angles with vector
,
• Inequality as the set of points for which the
vector
forms an acute angle with vector
, and
• Inequality
as the set of points for which the vector
forms an obtuse angle with vector
.
From the above description, it follows that the solution space of the equation
http://www.amaderforum.com
http://www.amaderforum.com
Hence, the solution space (feasible region) of an n-var LP is geometrically defined by the
intersection of a number of half-spaces and/or hyperplanes equal to the LP constraints,
including the sign restrictions. Such a set is characterized as a polytope. In particular, a
bounded polytope is called a polyhedron.
Two other concepts of interest in the following discussion are those of the straight line
and the line segment. Given two points
and
, the straight line passing through them is algebraicaly defined by the set of points
As it is seen in the figure above, the line segment between points and is analytically
defined by:
or
http://www.amaderforum.com
http://www.amaderforum.com
In this paragraph we show that polytopes are convex sets. This property is important for
eventually proving the Fundamental Theorem of LP. A set of points S in the n-dim space
is convex, if the line segment connecting any two points , belongs
completely in S. According to the previous mathematical definition of line segments, this
definition of convexity is mathematically expressed as:
To show that a polytope is a convex set, we first establish that the solution space of any
linear constraint (i.e., hyperplanes and half-spaces) is a convex set. Since a polytope is
the intersection of a number of hyperplanes and half-spaces, the convexity of the latter
directly implies the convexity of the polytope (i.e., a line segment belonging to each
defining hyperplane and/or half-space will also belong to the polytope).
To establish the convexity of the feasible region of a linear constraint, let's consider the
constraint:
http://www.amaderforum.com
http://www.amaderforum.com
A last concept that we must define before the statement of the Fundamental Theorem of
LP, is that of the extreme point of a convex set. Given a convex set S, point is an
extreme point, if each line segment that lies completely in S and contains point , has
as an end point of the line segment. Mathematically,
http://www.amaderforum.com
http://www.amaderforum.com
Proof (Sketch):
We establish the validity of Theorem1, through a series of observations:
1. First notice that according to the previous discussion, the feasible region of an LP
is a polytope, and thus, convex.
2. Furthermore, since we assume that the LP has an optimal solution, let denote
such an optimal point. The optimal objective value will be denoted by
.
3. Then notice that point cannot be interior to a line segment that is not
perpendicular to the direction of improvement to the ``isoprofit'' hyperplanes -
w.l.o.g., let's assume a maximization LP for our discussion - defined by vector .
Otherwise, by moving on this line segment in the direction of improvement of the
``isoprofit'' hyperplanes,we would be able to obtain another point of the
feasible region, such that . But this contradicts the assumption that
is an optimal point. Figure9 depicts this argument.
http://www.amaderforum.com
http://www.amaderforum.com
4. However, point can be interior to a line segment of the feasible solution space
which is perpendicular to the direction of improvement of the optimal ``isoprofit''
hyperplane. This, in fact, corresponds to a situation of many optimal solutions. In
this case, notice that this line segment must have at least one end defined by
the fact that one (or more) additional constraint is binding at this point. Otherwise,
the problem is ill-posed, since we can vary some variable(s) at will over
with this variation affecting neither the constraints nor the objective.
5. Hence, , being on the optimal ``isoprofit'' hyperplane, is another optimal point
at which an additional constraint is binding. Then, there are two possibilities: (i)
is an extreme point of the feasible region, in which case we are done, or (ii)
is interior point to another line segment lying in the optimal ``isoprofit''
hyperplane , which binds, however, an additional constraint,
compared to point . In this case, repeating the argument above, we establish
the existence of another end point , determined by the binding of at least one
more constraint. Then, we repeat the entire argument for , and so on. Figure10
depicts this part of the proof.
http://www.amaderforum.com
http://www.amaderforum.com
6. Finally, notice that every time we bind an additional constraint, we restrict the
(sub-)space of optimal solutions considered by one ``degree of freedom''. Since an
n-dim space has n ``degrees of freedom'', the number of end points visited in the
argument above before we find one that it is an extreme point is finite. Thus, this
last observation establishes the existence of an optimal extreme point for the case
of many optimal solutions, and the proof is complete.
The discourse of the previous proof has also revealed a very important property of
extreme points: At these points, the number of binding constraints is such that it allows
zero ``degrees of freedom'', or, in other words, these constraints define the point uniquely.
Starting from this observation, in the next section we provide a series of algebraic
characterizations of the extreme points, which will eventually allow us to analytically
manipulate the set of extreme points of an LP, in the context of the Simplex algorithm.
As it has been previously mentioned, this algorithm exploits the result stated in the
Fundamental Theorem above, by limiting the search for an optimal solution over the set
of extreme points of the polytope defining the LP feasible region. In the next section, we
shall show that this set is finite and discrete, so it can even be exhaustively enumerated.
Simplex algorithm provides an efficient way to search this set.
http://www.amaderforum.com
http://www.amaderforum.com
The starting point of this discussion is the observation made at the end of the previous
section, that at an extreme point, the set of binding constraints is such that it characterizes
the point uniquely. Let's try to investigate what is the algebraic structure implied by this
statement. Also, staying close to the general spirit of our discussion, let's examine this
issue in an inductive manner.
• We know that in the 1-dim space, i.e., on the line of real numbers, a point can be
identified uniquely by an equation a X = b, where .
• In the 2-dim space, a linear equation defines a line, i.e., a
subspace with 1 ``degree of freedom'', while the definition of a unique point
requires a system of two linear equations:
for which:
http://www.amaderforum.com
http://www.amaderforum.com
Defining a unique point in the 3-dim space requires three linearly independent
equations, i.e.,
with
with
http://www.amaderforum.com
http://www.amaderforum.com
Example:
We demonstrate the findings of the above discussion on the feasible region of the
prototype example, which for convenience is reproduced in Figure11.
As we can see in the figure, each of the extreme points of this region corresponds to the
binding of a pair of the LP constraints, i.e.,
Notice, however, that points E and F, even though they are defined by the binding of the
constraint pairs (tech. con. 1, sign res. of ) and (tech. con. 2, sign res. of ),
respectively, are not extreme points of the feasible region just because they are infeasible
(i.e., some other LP constraints are violated). Hence, having n linearly independent
constraints binding at certain point is a necessary condition for it to be an extreme point
of the feasible region, but not sufficient.
http://www.amaderforum.com
http://www.amaderforum.com
Finally, it should be easy to see that for an n-var LP, n is the minimum number of
constraints binding at an extreme point. If more than this minimum number of constraints
are binding to an extreme point, the point (and the corresponding solution) are
characterized as degenerate. Degeneracy can complicate the search for the optimal
solution carried out by the Simplex method.
http://www.amaderforum.com
http://www.amaderforum.com
Every LP can be brought into ``standard form'' through the following transformations:
• an inequality constraint:
can be converted into an equality one, through the introduction of a slack (excess)
variable :
You can get a clearer idea about how the above transformation works, by having it
applied to your own examples. To interpret the obtained results, notice that the final
outcome is presented in a"tableau" format.
Submit your examples
http://www.amaderforum.com
http://www.amaderforum.com
The structure of the ``standard form'' solutions corresponding to extreme points of the
original feasible region (i.e., that defined with respect to the primary LP variables ),
described for the example above, actually applies to any other LP in ``standard form''. We
formally characterize this structure through the definition of basic feasible solutions for
LP's in ``standard form'' (taken from Winston, ``Introduction to Mathematical
Programming'').
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
http://www.amaderforum.com
Example:
Returning to the prototype example, it is easy to see that its ``standard form'' formulation
is as follows:
s.t.
This formulation involves four variables and two technological constraints. Therefore,
any basic solution will be defined by selecting a basis of two variables, with the
remaining two being set equal to zero. For example, selecting as basis the variable set
implies that (since they are the remaining non-basic variables).
This further implies that the considered basic solution corresponds to the extreme point of
the LP feasible region defined by the binding of the two technological constraints.
Finally, the values of the two basic variables and are obtained by solving the system
of equations:
which results from the technological constraints in ``standard form'', by eliminating the
non-basic variables.
On the other hand, consider the extreme point B of the feasible region, which is the
optimal solution of this example LP. It has been already shown (cf. previous example)
that this point is defined by the binding of the second technological constraint and the
sign restriction imposed on variable . Hence, at this point, , and the
corresponding basis consists of variables and . To compute the values for these
variables, we solve the system of equations:
http://www.amaderforum.com
http://www.amaderforum.com
Finally, the basic solution defined by the basis implies that , and
therefore, the corresponding point on the -plane, F, is defined by the binding of
second technological constraint and the sign restriction of variable . Solving the
system of equations:
In the example above, extreme points B and C are adjacent, in the sense that they are
linked by one edge of the feasible region. This reflects in the structure of the
corresponding bases by the fact that they differ in only one binding constraint. This
observation generalizes to the n-dimensional case: extreme points connected by ``edges''
of the feasible region have n-1 common binding constraints, and therefore, their
corresponding bases will differ in one variable only. Hence, we have the following
definition:
http://www.amaderforum.com
http://www.amaderforum.com
1. If an LP has a bounded optimal solution, then there exists an extreme point of the
feasible region which is optimal.
2. Extreme points of the feasible region of an LP correspond to basic feasible
solutions of its ``standard form'' representation.
The first of these results implies that in order to obtain an optimal solution of an LP, we
can constrain our search on the set of the extreme points of its feasible region. The
second result provides an algebraic characterization of this set: each of these points is
determined by selecting a set of basic variables, with cardinality equal to the number of
the technological constraints of the LP, and the additional requirement that the (uniquely
determined) values of these variables are nonnegative (cf. discussion on basic feasible
solutions). This further implies that the set of extreme points for an LP with m
technological constraints and N variables in its ``standard form'' representation can have
The last observation would make one think that a (naive) approach to the problem would
be to enumerate the entire set of extreme points, compare their corresponding objective
values, and eventually select one which minimizes the objective function over this set.
Such an approach would actually work for rather small formulations. But for reasonably
sized LP's, the set of extreme points, even though finite, can become extremely large. For
example, a small LP with 10 variables (in ``standard form'') and 3 technological
constraints can have upto 120 extreme points, while an LP with 100 variables and 20
constraints can have upto extreme points. And yet, this is a rather small LP!
Hence, we need a more systematic approach to organize the search so that we manage the
complexity resulting from the size of the search space. Such a systematic approach is
provided by the Simplex algorithm. The basic logic of the algorithm is depicted in
Figure12.
http://www.amaderforum.com
http://www.amaderforum.com
The algorithm starts with an initial basic feasible solution (bfs) and tests its optimality. If
some optimality condition is verified, then the algorithm terminates. Otherwise, the
algorithm identifies an adjacent bfs, with a better objective value. The optimality of this
new solution is tested again, and the entire scheme is repeated, until an optimal bfs is
found. Since every time a new bfs is identified the objective value is improved (except
from a certain pathological case that we shall see later), and the set of bfs's is finite, it
follows that the algorithm will terminate in a finite number of steps (iterations).
In the following, we explain how the Simplex algorithm implements this logic in its
computations by appplying it on our prototype LP.
http://www.amaderforum.com
http://www.amaderforum.com
s.t.
To start the Simplex algorithm on this problem, we need to identify an initial bfs. For this
particular problem, a bfs will have two basic variables, since we have two technological
constraints. Taking a closer look to the structure of these constraints in Equation28, it can
be seen that a convenient selection is
The above easy computation of the values of the basic variables resulted from the fact
that each of these variables could be associated with one and only one constraint. More
specifically, (i) each of these variables appeared in only one constraint, (ii) the coefficient
of the variable in that constraint was equal to 1.0, and (iii) any pair of basic variables
showed up in different constraints. An LP the constraints of which satisfy these three
properties with respect to a certain basis, is said to be in canonical form with respect to
that basis.
http://www.amaderforum.com
http://www.amaderforum.com
Testing bfs optimality: Checking the sign of the objective function coefficients for
nonbasic variables Notice that the LP objective value corresponding to basis is
determined by the fact that , and therefore, z= 0. So, we pose the question:
Is it possible that there exists another bfs with a better objective value? Obviously, any
bfs for which and/or is a basic variable has a considerable chance of having a better
(i.e., strictly positive) objective value, since the objective function coefficients for these
variables are positive numbers. Hence, the answer to the previous question is that the
nonnegativity of the objective function coefficients of the nonbasic variables
implies that there is potential for improvement of the objective value, z, and both
variables are good candidates for entering the basis.
Selecting the variable to leave the basis: the ratio test Once we have selected the
variable to enter the basis, we are faced with the question of which of the current basic
variables will be dropped out of it, in order to obtain the improving adjacent bfs. The
logic behind this step is as follows: Since increasing from its current (zero) value
improves the objective value, we would like to increase it as much as we can. What
constrains us in this increase, is the requirement to meet the technological constraints:
http://www.amaderforum.com
http://www.amaderforum.com
Notice that as increases, both and are decreased. Obviously, cannot increase
beyond a value that makes any of and negative. So, the maximal allowable increase
for is obtained by solving the system of inequalities:
Hence,
i.e., . Equation30 is known as the ratio test in the theory of Simplex algorithm,
and for an entering variable , its general form is:
Obtaining the canonical form with respect to the new bfs: Pivoting the entering
variable At this point, we must reset to ourselves the question regarding the optimality of
basis . Notice, however, that the way that we addressed this question - as well as all the
other questions - with respect to basis , was facilitated by the fact that the original set
of technological constraints in Equation28 were in canonical form with respect to that
basis. To be able to address the same set of questions regarding basis , we must
transform the original set of constraints into canonical form with respect to this new
basis.
To perform this transformation, first, we rewrite the original LP equations in the form:
http://www.amaderforum.com
http://www.amaderforum.com
Under the above tableau representation, the columns corresponding to the basic variables
and are essentially the elementary (unit) vectors: and ,
respectively, while the third unit vector is the column of the objective
variable z. This is another way to characterize the fact that the above tableau is in
canonical form with respect to variables . Hence, to obtain the tableau
corresponding to basis , we must convert the column of in the above
tableau to the unit vector , making sure that while we are doing so, we do
not alter the content of these three equations. This can be done by exploiting the
following two properties of a system of linear equations (generally, known as elementary
row operations):
Applying the first of these properties to the third of equations32, with a coefficient of 50,
we get the equivalent system of equations:
Multiplying the third equation above with -1/60 and adding it to the second equation, we
get:
Finally, multiplying the third equation with 400 and adding it to the first equation, we
get:
http://www.amaderforum.com
http://www.amaderforum.com
This the new tableau is in canonical form with respect to basis . As it was expected, the
transformation provided also (automatically) the values of the new basic variables, and
the objective function value corresponding to the new basis (i.e., the right-hand-side of
Row-0).
Considering the signs of the Row-0 coefficients in this new tableau, we can see that
increasing any of the non-basic variables from their zero value will have a descreasing
effect on the objective value. Hence, we can conclude that is an optimal basis for our
example LP. The optimal values for the basic variables are: and , and
the optimal objective value is .
You can extend your understanding of this basic Simplex logic, by seeing how it applies
to your own examples. Remember that for this basic Simplex version to work, all the
constraints must be of the "<=" type, and all the decision variables as well as the rhs-
coefficients must be nonnegative. Submit your examples
Obtaining an initial bfs in the general case As we saw in the previous example, if all
the constraints in the original LP formulation are of the ` '-type, we can readily obtain
an initial bfs for Simplex, consisting of all the slack variables in the corresponding
``standard form'' formulation. In this section we consider the more general case, where
the original LP formulation might contain also ` '-type inequality as well as equality
constraints. To facilitate the subsequent discussion, let us consider the following LP:
s.t.
s.t.
http://www.amaderforum.com
http://www.amaderforum.com
For this LP, can constitute an initial basic variable associated with the first constraint.
However, the excess variable cannot be a basic variable for constraint 2, even though it
appears only in this constraint, since this would imply a negative value for it (i.e.,
), and the resulting basic solution would not be feasible. The last constraint
(#3), does not even involve an auxiliary variable.
s.t.
Synthesizing and solving the above LP is known as the Phase I - step of the Simplex
algorithm. If the original LP (Eq.36) has a feasible solution, then the nonnegativity of
implies that the optimal value of this new LP will be zero, and by the end of its
solution we shall also have a feasible bfs for the original formulation. On the other hand,
having a strictly positive optimal objective value for the LP of Equation37 implies that
the artificial variables are absolutely necessary to obtain a feasible solution for this set of
constraints, and therefore, our original LP is infeasible. Hence, infeasibility is tested
during the Phase-I step of the Simplex algorithm.
http://www.amaderforum.com
http://www.amaderforum.com
Then, we are ready to restart Simplex, but this time on the original LP formulation. In
this particular case, it is easy to see that, since we have a minimization problem, the
current basis is already optimal (i.e., increasing from its zero value will only
increase the objective function).
http://www.amaderforum.com
http://www.amaderforum.com
Unbounded LP's and LP's with many optimal solutions In the previous section, we
saw that Simplex detects infeasibility while trying to solve the Phase-I LP. It is
instructive to consider how the algorithm behaves on unbounded LP's as well as on LP's
with many optimal solutions. To understand these aspects of the algorithm, try to
implement it on the corresponding examples provided in Section 2. What is happening?
http://www.amaderforum.com