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!
===Example=== {{see also|Revised simplex algorithm#Numerical example}} Consider the linear program :Minimize ::<math>Z = -2 x - 3 y - 4 z\,</math> :Subject to ::<math>\begin{align} 3 x + 2 y + z &\le 10\\ 2 x + 5 y + 3 z &\le 15\\ x,\,y,\,z &\ge 0 \end{align}</math> With the addition of slack variables ''s'' and ''t'', this is represented by the canonical tableau :<math> \begin{bmatrix} 1 & 2 & 3 & 4 & 0 & 0 & 0 \\ 0 & 3 & 2 & 1 & 1 & 0 & 10 \\ 0 & 2 & 5 & 3 & 0 & 1 & 15 \end{bmatrix} </math> where columns 5 and 6 represent the basic variables ''s'' and ''t'' and the corresponding basic feasible solution is :<math>x=y=z=0,\,s=10,\,t=15.</math> Columns 2, 3, and 4 can be selected as pivot columns, for this example column 4 is selected. The values of ''z'' resulting from the choice of rows 2 and 3 as pivot rows are 10/1 = 10 and 15/3 = 5 respectively. Of these the minimum is 5, so row 3 must be the pivot row. Performing the pivot produces :<math> \begin{bmatrix} 1 & -\frac{2}{3} & -\frac{11}{3} & 0 & 0 & -\frac{4}{3} & -20 \\ 0 & \frac{7}{3} & \frac{1}{3} & 0 & 1 & -\frac{1}{3} & 5 \\ 0 & \frac{2}{3} & \frac{5}{3} & 1 & 0 & \frac{1}{3} & 5 \end{bmatrix} </math> Now columns 4 and 5 represent the basic variables ''z'' and ''s'' and the corresponding basic feasible solution is :<math>x=y=t=0,\,z=5,\,s=5.</math> For the next step, there are no positive entries in the objective row and in fact :<math display="block">Z = -20 + \frac{2}{3}x+\frac{11}{3}y+\frac{4}{3}t</math> so the minimum value of ''Z'' is −20.
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)