|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.optimization.constrained.linearprogramming.simplex.standard.StandardSimplex
public class StandardSimplex
In our implementation, we follow the convention in "Linear Programming with MATLAB," Michael C. Ferris, Olvi L. Mangasarian, Stephen J. Wright, that the inequalities have this form: A * x ≥ b, , b ≤ 0 iff the problem is feasible.
| Constructor Summary | |
|---|---|
StandardSimplex(StandardLpProblem1 problem)
|
|
StandardSimplex(StandardLpProblem2 problem)
|
|
| Method Summary | |
|---|---|
Tableau |
getResultantTableau()
Get a copy of the Tableau after the solve operation. |
int |
lambdaCol()
Get the column index for which there is no row that passes the ratio test. |
LpSolution |
solve()
Solve the Linear Programming (LP) problem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardSimplex(StandardLpProblem2 problem)
public StandardSimplex(StandardLpProblem1 problem)
throws LpProblem.EmptyCostVector,
LpProblem.NoConstraint,
LpProblem.DimensionNotMatched
LpProblem.EmptyCostVector
LpProblem.NoConstraint
LpProblem.DimensionNotMatched| Method Detail |
|---|
public LpSolution solve()
throws LpProblem.Infeasible
LpSolver
solve in interface LpSolverLpProblem.Infeasiblepublic int lambdaCol()
LpSolverTo check whether a problem is bounded, we can do:
lambdaCol() == 0;
lambdaCol in interface LpSolverpublic Tableau getResultantTableau()
LpSolversolve operation.
The table can be passed to other operations, e.g., other LpSolver, for further processing.
getResultantTableau in interface LpSolversolve operation
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||