linearalgebra
Class UnknownValue
java.lang.Object
linearalgebra.UnknownValue
- All Implemented Interfaces:
- java.lang.Cloneable
public final class UnknownValue
- extends java.lang.Object
- implements java.lang.Cloneable
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FREE
private static final int FREE
- See Also:
- Constant Field Values
BOUND
private static final int BOUND
- See Also:
- Constant Field Values
CONSTRAINT
private static final int CONSTRAINT
- See Also:
- Constant Field Values
m_state
private int m_state
m_name
private java.lang.String m_name
m_value
private double m_value
m_constraint
private LinearExpression m_constraint
UnknownValue
public UnknownValue(java.lang.String name)
resolveBoundConstraints
public void resolveBoundConstraints()
getName
public java.lang.String getName()
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
isBound
public boolean isBound()
isFree
public boolean isFree()
isConstrained
public boolean isConstrained()
getNumericValue
public double getNumericValue()
throws UnboundValueError
- Throws:
UnboundValueError
bindUnknown
public void bindUnknown(double value)
setConstraint
public void setConstraint(LinearExpression constraint)
getConstraint
public LinearExpression getConstraint()
clearBindings
public void clearBindings()
solveFor
public void solveFor(double y)
getDescription
public java.lang.String getDescription()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
substituteConstraints
public void substituteConstraints()