public class IntegerVariable extends Variable
Constructor and Description |
---|
IntegerVariable(java.lang.String name)
Creates a new variable with the given name.
|
IntegerVariable(java.lang.String name,
boolean isPositive)
Creates a new variable with the given name.
|
IntegerVariable(java.lang.String name,
double lowerBound,
double upperBound)
Creates a new variable with the given name and bounds.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInteger()
Checks whether this term represents an integer value.
|
collapseAssociativeOperations, derive, equals, expandAssociativeOperations, getAbsoluteValues, getLowerBound, getMaximums, getMinimums, getName, getProducts, getUpperBound, getVariables, hashCode, isContinuous, isPositive, replaceTerm, simplify, toLinearForm, toString, value
add, doubleValue, evaluateMatrix, evaluateVector, evaluateVector, isContinuous, isLinear, min, minus, mult, replaceAllTerms, replaceAllTerms
public IntegerVariable(java.lang.String name)
name
- the name of this variable.public IntegerVariable(java.lang.String name, boolean isPositive)
name
- the name of this variable.isPositive
- whether this variables should be positive.public IntegerVariable(java.lang.String name, double lowerBound, double upperBound)
name
- the name of this variable.lowerBound
- the lower bound of the variable.upperBound
- the upper bound of the variable.