请输入您要查询的字词:

 

单词 SimplexAlgorithm
释义

simplex algorithm


The simplex algorithm is used as part of the simplexmethod (due to George B. Dantzig) to solve linear programming problems.The algorithmMathworldPlanetmath is applied to a linear programming problem thatis in canonical form.

A canonical system of equations has an ordered subset of variables(called the basis) such that for each i, the ith basicvariable has a unit coefficient in the ith equation and zero coefficientin the other equations.

As an example x1,,xr are basic variables in the followingsystem of r equations:

x1+a1,r+1xr+1++a1,nxn=b1
x2+a2,r+1xr+1++a2,nxn=b2
xr+ar,r+1xr+1++ar,nxn=br

The simplex algorithm is used as one phase of the simplex method.

Suppose that we have a canonical system with basic variablesx1,,xm,-z and we seek to find nonnegative xi i=1,,nsuch that z is minimal. That is, we have

xi+j=m+1naijxj=bii=1,,m
-z+j=m+1ncjxj=-zo

where aij,bj,cj,zo are constants,and bj0,j=1,,m.

Notice that if we set xm+1=0,,xn=0 we will have a feasiblesolution with z=zo.. Hence, any optimal solution will havezzo.The algorithm can now be described as follows:

Step 1. Set N={m+1,,n} and B={1,,m}.Put cj=0 for jB.

Step 2. If there an index jN such that cj<0 thenchoose sN such that

cs=minjNcj

elsestop. The solution is given by xi=0 for iN andxi=bi for iB, z=zo.

Step 3. If ais0 for all i then stop. The value of zhas no lower bound.Else, let brars=minais>0biais.If there is more than one choice for r it does not matter which oneis chosen unless bi=0. This is the so-called degenerate case.In this case, one can choose uniformly at random from among thosei for which bi=0.

Step 4. (Pivot on ars). Multiply the rth equation by 1ars and for each i=1,,m, irreplace equation i by the sum of equation i and the (replaced) equationr multiplied by -ais. Replace the equation for z bythe sum of the equation for z and the (replaced) equationr multiplied by -cs. Note: The replacement operations of coursechange the coefficients aij and cj. As the algorithm proceedsit is of course necessary to use the changed coefficients.

Step 5. (Update B and N) Put s into B and r into Nand remove s from N and r from B. Go to step 2.

There are examples where the algorithm does not terminate in a finitenumber of steps; but if there is non-degeneracy at each iteration,the algorithm will terminate in a finite number of steps.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 15:44:00