org.ojalgo.optimisation
Class Variable

java.lang.Object
  extended by org.ojalgo.optimisation.ModelEntity<Variable>
      extended by org.ojalgo.optimisation.Variable
All Implemented Interfaces:
Comparable<Variable>, Constraint, Objective
Direct Known Subclasses:
Arc

public class Variable
extends ModelEntity<Variable>

Variable

Author:
apete

Constructor Summary
Variable(String aName)
           
 
Method Summary
 Variable copy()
           
 BigDecimal getAdjustedUnit()
           
 BigDecimal getAdjustmentFactor()
           
 BigDecimal getLowerSlack()
           
 BigDecimal getUpperSlack()
           
 BigDecimal getValue()
           
 Variable integer(boolean aBool)
           
 boolean isBinary()
           
 boolean isInteger()
           
 boolean isValueSet()
           
static Variable makeBinary(String aName)
           
 BigDecimal quantifyContribution()
           
 void setInteger(boolean aBool)
           
 void setValue(BigDecimal aValue)
           
 boolean validateState(NumberContext aContext)
           
 
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
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(String aName)
Method Detail

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)