edu.harvard.econcs.jopt.solver.mip
Class Variable

java.lang.Object
  extended by 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)
           
 
Method Summary
 double getLowerBound()
           
 java.lang.String getName()
           
 VarType getType()
           
 double getUpperBound()
           
 boolean ignore()
           
 void setIgnore(boolean ignore)
           
 java.lang.String toString()
           
 java.lang.String toStringPretty()
           
 Variable typedClone()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(java.lang.String name,
                VarType type,
                double lowerBound,
                double upperBound)
Parameters:
name -
upperBound -
lowerBound -
type -
Method Detail

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()