edu.harvard.econcs.jopt.solver.mip
Class Variable
java.lang.Object
edu.harvard.econcs.jopt.solver.mip.Variable
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Variable
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
Basic MIP Variable.
- Since:
- Apr 13, 2004
- Version:
- $Revision: 1.4 $ on $Date: 2005/05/16 23:27:28 $
- See Also:
- Serialized Form
Constructor Summary |
Variable(java.lang.String name,
VarType type,
double lowerBound,
double upperBound)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Variable
public Variable(java.lang.String name,
VarType type,
double lowerBound,
double upperBound)
- Parameters:
name
- upperBound
- lowerBound
- type
-
getLowerBound
public double getLowerBound()
- Returns:
- Returns the lowerBound.
getName
public java.lang.String getName()
- Returns:
- Returns the name.
getType
public VarType getType()
- Returns:
- Returns the type.
getUpperBound
public double getUpperBound()
- Returns:
- Returns the upperBound.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toStringPretty
public java.lang.String toStringPretty()
setIgnore
public void setIgnore(boolean ignore)
- Parameters:
ignore
- To ignore this variable during MIP solving. Only WDResult
Determination people should be using this right now.
ignore
public boolean ignore()
typedClone
public Variable typedClone()