public static class InequalitySystem.Inequality
extends java.lang.Object
| Constructor and Description |
|---|
Inequality(java.math.BigInteger leftHandSide,
InequalitySystem.Comparator comparator,
java.util.List<java.math.BigInteger> coefficients)
Construct a new linear inequality.
|
Inequality(java.math.BigInteger leftHandSide,
InequalitySystem.Comparator comparator,
java.util.List<java.math.BigInteger> coefficients,
java.lang.String comment)
Construct a new linear inequality.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
fulfilledBy(java.util.List<? extends java.lang.Number> values)
Test if the given values for the unknowns fulfill this inequality.
|
java.util.List<java.math.BigInteger> |
getCoefficients()
Get the coefficients of the right hand side of the inequality.
|
java.lang.String |
getComment()
Get the comment for this inequality.
|
InequalitySystem.Comparator |
getComparator()
Get the comparator of the inequality.
|
java.math.BigInteger |
getLeftHandSide()
Get the left hand side of the inequality
|
int |
getNumberOfCoefficients()
Get the number of coefficients in the inequality.
|
java.lang.String |
toString() |
public Inequality(java.math.BigInteger leftHandSide,
InequalitySystem.Comparator comparator,
java.util.List<java.math.BigInteger> coefficients,
java.lang.String comment)
leftHandSide - The left hand side of the inequality.comparator - The comparator used between both sides.coefficients - The coefficients of the unknowns on the right hand side.comment - A comment that describes the meaning of this inequality.public Inequality(java.math.BigInteger leftHandSide,
InequalitySystem.Comparator comparator,
java.util.List<java.math.BigInteger> coefficients)
leftHandSide - The left hand side of the inequality.comparator - The comparator used between both sides.coefficients - The coefficients of the unknowns on the right hand side.public java.lang.String getComment()
public java.math.BigInteger getLeftHandSide()
public InequalitySystem.Comparator getComparator()
public java.util.List<java.math.BigInteger> getCoefficients()
public int getNumberOfCoefficients()
public boolean fulfilledBy(java.util.List<? extends java.lang.Number> values)
values - The values for each variable.public java.lang.String toString()
toString in class java.lang.Object