Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Simplex algorithm
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Standard form== The transformation of a linear program to one in standard form may be accomplished as follows.<ref>{{harvtxt|Murty|1983|loc=Section 2.2}}</ref> First, for each variable with a lower bound other than 0, a new variable is introduced representing the difference between the variable and bound. The original variable can then be eliminated by substitution. For example, given the constraint :<math>x_1 \ge 5</math> a new variable, <math>y_1</math>, is introduced with :<math> \begin{align} y_1 = x_1 - 5\\x_1 = y_1 + 5 \end{align}</math> The second equation may be used to eliminate <math>x_1</math> from the linear program. In this way, all lower bound constraints may be changed to non-negativity restrictions. Second, for each remaining inequality constraint, a new variable, called a ''[[slack variable]]'', is introduced to change the constraint to an equality constraint. This variable represents the difference between the two sides of the inequality and is assumed to be non-negative. For example, the inequalities :<math> \begin{align} x_2 + 2x_3 &\le 3\\ -x_4 + 3x_5 &\ge 2 \end{align}</math> are replaced with :<math> \begin{align} x_2 + 2x_3 + s_1 &= 3\\ -x_4 + 3x_5 - s_2 &= 2\\ s_1,\, s_2 &\ge 0 \end{align}</math> It is much easier to perform algebraic manipulation on inequalities in this form. In inequalities where β₯ appears such as the second one, some authors refer to the variable introduced as a {{anchor|Surplus variable}}'' surplus variable''. Third, each unrestricted variable is eliminated from the linear program. This can be done in two ways, one is by solving for the variable in one of the equations in which it appears and then eliminating the variable by substitution. The other is to replace the variable with the difference of two restricted variables. For example, if <math>z_1</math> is unrestricted then write :<math>\begin{align} &z_1 = z_1^+ - z_1^-\\ &z_1^+,\, z_1^- \ge 0 \end{align}</math> The equation may be used to eliminate <math>z_1</math> from the linear program. When this process is complete the feasible region will be in the form :<math>\mathbf{A}\mathbf{x} = \mathbf{b},\, \forall \ x_i \ge 0</math> It is also useful to assume that the rank of <math>\mathbf{A}</math> is the number of rows. This results in no loss of generality since otherwise either the system <math>\mathbf{A}\mathbf{x} = \mathbf{b}</math> has redundant equations which can be dropped, or the system is inconsistent and the linear program has no solution.<ref>{{harvtxt|Murty|1983|p=173}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)