Class LPRevisedSimplexSolver.Problem
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.convex.sdp.socp.qp.lp.simplex.solver.LPRevisedSimplexSolver.Problem
-
- All Implemented Interfaces:
LPProblem
,ConstrainedOptimProblem
,OptimProblem
- Enclosing class:
- LPRevisedSimplexSolver
public static class LPRevisedSimplexSolver.Problem extends Object implements LPProblem
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableMatrix
A()
Get the coefficients, A, of the greater-than-or-equal-to constraints A * x ≥ b.ImmutableMatrix
Aeq()
Get the coefficients, Aeq, of the equality constraints Aeq * x ≥ beq.ImmutableVector
b()
Get the values, b, of the greater-than-or-equal-to constraints A * x ≥ b.ImmutableVector
beq()
Get the values, beq, of the equality constraints Aeq * x ≥ beq.ImmutableVector
c()
Get the objective function.int
dimension()
Get the number of variables.RealScalarFunction
f()
Get the objective function.EqualityConstraints
getEqualityConstraints()
Gets the equality constraints, hi(x) = 0LessThanConstraints
getLessThanConstraints()
Gets the less-than-or-equal-to constraints, gi(x) ≤ 0boolean
isFree(int i)
Check whether xi is a free variable after handling the box constraints.
-
-
-
Method Detail
-
c
public ImmutableVector c()
Description copied from interface:LPProblem
Get the objective function.
-
A
public ImmutableMatrix A()
Description copied from interface:LPProblem
Get the coefficients, A, of the greater-than-or-equal-to constraints A * x ≥ b.
-
b
public ImmutableVector b()
Description copied from interface:LPProblem
Get the values, b, of the greater-than-or-equal-to constraints A * x ≥ b.
-
Aeq
public ImmutableMatrix Aeq()
Description copied from interface:LPProblem
Get the coefficients, Aeq, of the equality constraints Aeq * x ≥ beq.
-
beq
public ImmutableVector beq()
Description copied from interface:LPProblem
Get the values, beq, of the equality constraints Aeq * x ≥ beq.
-
isFree
public boolean isFree(int i)
Description copied from interface:LPProblem
Check whether xi is a free variable after handling the box constraints.
-
getLessThanConstraints
public LessThanConstraints getLessThanConstraints()
Description copied from interface:ConstrainedOptimProblem
Gets the less-than-or-equal-to constraints, gi(x) ≤ 0- Specified by:
getLessThanConstraints
in interfaceConstrainedOptimProblem
- Returns:
- the less-than-or-equal-to constraints
-
getEqualityConstraints
public EqualityConstraints getEqualityConstraints()
Description copied from interface:ConstrainedOptimProblem
Gets the equality constraints, hi(x) = 0- Specified by:
getEqualityConstraints
in interfaceConstrainedOptimProblem
- Returns:
- the equality constraints
-
dimension
public int dimension()
Description copied from interface:OptimProblem
Get the number of variables.- Specified by:
dimension
in interfaceOptimProblem
- Returns:
- the number of variables.
-
f
public RealScalarFunction f()
Description copied from interface:OptimProblem
Get the objective function.- Specified by:
f
in interfaceOptimProblem
- Returns:
- the objective function
-
-