Class LinearFunction
java.lang.Object
org.clafer.math.LinearFunction
- All Implemented Interfaces:
LinearFunctionable
- Author:
- jimmy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLinearFunction(long constant) LinearFunction(long[] coefficients, Variable[] variables, long constant) LinearFunction(long coefficient, Variable variable) LinearFunction(long coefficient, Variable variable, long constant) LinearFunction(Rational constant) LinearFunction(Rational[] coefficients, Variable[] variables, Rational constant) LinearFunction(Rational coefficient, Variable variable) LinearFunction(Rational coefficient, Variable variable, Rational constant) -
Method Summary
Modifier and TypeMethodDescriptionadd(long addend) add(LinearFunction addend) intarity()div(long divisor) booleangetCoefficient(Variable variable) Rational[]Variable[]booleaninthashCode()minus()mul(long multiplier) replace(Variable variable, LinearFunction value) sub(long subtrahend) sub(LinearFunction subtrahend) toString()
-
Field Details
-
coefficientMap
-
-
Constructor Details
-
LinearFunction
-
LinearFunction
-
LinearFunction
-
LinearFunction
-
LinearFunction
-
LinearFunction
-
LinearFunction
-
LinearFunction
-
-
Method Details
-
arity
-
getCoefficient
-
getCoefficients
-
getVariables
-
getVariableSet
-
hasConstant
-
getConstant
-
getLowBound
-
getHighBound
-
minus
-
add
-
add
-
add
-
sub
-
sub
-
sub
-
mul
-
mul
-
div
-
div
-
replace
-
toFunction
- Specified by:
toFunctionin interfaceLinearFunctionable
-
equals
-
hashCode
-
toString
-