com.numericalmethod.suanshu.optimization.constrained.linearprogramming.problem
Class StandardLpProblem2
java.lang.Object
com.numericalmethod.suanshu.optimization.constrained.linearprogramming.problem.StandardLpProblem2
- All Implemented Interfaces:
- LpProblem
public class StandardLpProblem2
- extends java.lang.Object
- implements LpProblem
This class represents a linear programming in the standard form,
following the convention in the reference.
min c'x
s.t.
A * x ≥ b, b ≤ 0 iff the problem is feasible
x ≥ 0
- See Also:
- "Michael C. Ferris, Olvi L. Mangasarian, Stephen J. Wright, "Linear Programming with MATLAB," Eq. 3.1. Chapter 3. The Simplex Method."
|
Method Summary |
protected void |
validate()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
c
public final ImmutableVector c
- the objective
min c'x
A
public final ImmutableMatrix A
A as in A * x ≥ b
b
public final ImmutableVector b
b as in A * x ≥ b
StandardLpProblem2
public StandardLpProblem2(Vector c,
Matrix A,
Vector b)
throws LpProblem.EmptyCostVector,
LpProblem.NoConstraint,
LpProblem.DimensionNotMatched
- Construct a linear programming problem in the standard form.
- Parameters:
c - c'x is the objective function to be minimizedA - the inequality constraints A * x ≥ bb - the inequality constraints A * x ≥ b
- Throws:
com.numericalmethod.suanshu.optimization.linearprogramming.problem.LpProblem.EmptyCostVector
com.numericalmethod.suanshu.optimization.linearprogramming.problem.LpProblem.NoConstraint
com.numericalmethod.suanshu.optimization.linearprogramming.problem.LpProblem.DimensionNotMatched
LpProblem.EmptyCostVector
LpProblem.NoConstraint
LpProblem.DimensionNotMatched
StandardLpProblem2
public StandardLpProblem2(StandardLpProblem1 problem1)
throws LpProblem.EmptyCostVector,
LpProblem.NoConstraint,
LpProblem.DimensionNotMatched
- Construct a linear programming problem in this standard form from form StandardLpProblem1.
- Parameters:
problem1 - a linear programming problem in StandardLpProblem1
- Throws:
LpProblem.EmptyCostVector
LpProblem.NoConstraint
LpProblem.DimensionNotMatched
validate
protected void validate()
throws LpProblem.EmptyCostVector,
LpProblem.NoConstraint,
LpProblem.DimensionNotMatched
- Throws:
com.numericalmethod.suanshu.optimization.linearprogramming.problem.LpProblem.EmptyCostVector
com.numericalmethod.suanshu.optimization.linearprogramming.problem.LpProblem.NoConstraint
com.numericalmethod.suanshu.optimization.linearprogramming.problem.LpProblem.DimensionNotMatched
LpProblem.EmptyCostVector
LpProblem.NoConstraint
LpProblem.DimensionNotMatched
Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.