edu.harvard.econcs.jopt.solver.mip
Class Term
java.lang.Object
edu.harvard.econcs.jopt.solver.mip.Term
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Term
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Term
public Term(Variable var,
double coefficient)
getCoefficient
public double getCoefficient()
- Returns:
- Returns the coefficient.
getVarName
public java.lang.String getVarName()
- Returns:
- Returns the varIndex.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
typedClone
public Term typedClone()