org.ojalgo.optimisation
Class Variable
java.lang.Object
org.ojalgo.optimisation.ModelEntity<ME>
org.ojalgo.optimisation.ModelComponent<Variable>
org.ojalgo.optimisation.Variable
- All Implemented Interfaces:
- Comparable<Variable>, Constraint, Objective
public class Variable
- extends ModelComponent<Variable>
Variable
- Author:
- apete
| Methods inherited from class org.ojalgo.optimisation.ModelComponent |
getAdjustedLowerLimit, getAdjustedUpperLimit, getContributionWeight, getLowerLimit, getUpperLimit, isConstraint, isContributionWeightSet, isEqualityConstraint, isLowerConstraint, isLowerLimitSet, isObjective, isUpperConstraint, isUpperLimitSet, level, lower, setContributionWeight, setLowerLimit, setUpperLimit, toString, upper, validateConfiguration, weight |
Variable
public Variable(String aName)
make
public static Variable make(String aName)
makeBinary
public static Variable makeBinary(String aName)
binary
public final Variable binary()
copy
public Variable copy()
getAdjustedUnit
public final BigDecimal getAdjustedUnit()
getAdjustmentFactor
public BigDecimal getAdjustmentFactor()
- Specified by:
getAdjustmentFactor in class ModelComponent<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)