org.ojalgo.optimisation
Class Variable
java.lang.Object
org.ojalgo.optimisation.ModelEntity<Variable>
org.ojalgo.optimisation.Variable
- All Implemented Interfaces:
- Comparable<Variable>, Constraint, Objective
- Direct Known Subclasses:
- Arc
public class Variable
- extends ModelEntity<Variable>
Variable
- Author:
- apete
| Methods inherited from class org.ojalgo.optimisation.ModelEntity |
compareTo, equals, getAdjustedLowerLimit, getAdjustedUpperLimit, getContributionWeight, getLowerLimit, getName, getUpperLimit, hashCode, isConstraint, isContributionWeightSet, isEqualityConstraint, isLowerConstraint, isLowerLimitSet, isObjective, isUpperConstraint, isUpperLimitSet, level, lower, setContributionWeight, setLowerLimit, setUpperLimit, toString, upper, validateConfiguration, weight |
Variable
public Variable(String aName)
makeBinary
public static Variable makeBinary(String aName)
copy
public Variable copy()
getAdjustedUnit
public final BigDecimal getAdjustedUnit()
getAdjustmentFactor
public BigDecimal getAdjustmentFactor()
- Specified by:
getAdjustmentFactor in class ModelEntity<Variable>
getLowerSlack
public BigDecimal getLowerSlack()
getUpperSlack
public BigDecimal getUpperSlack()
getValue
public BigDecimal getValue()
integer
public Variable integer(boolean aBool)
isBinary
public boolean isBinary()
isInteger
public boolean isInteger()
isValueSet
public boolean isValueSet()
quantifyContribution
public BigDecimal quantifyContribution()
setInteger
public void setInteger(boolean aBool)
setValue
public void setValue(BigDecimal aValue)
validateState
public boolean validateState(NumberContext aContext)