|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An single, linear term in the model. Consists of - a double coefficient, - a variable name and - an abstract index (which may be any type) The mapping of the abstract index to an integer index in a concrete LP model happens later when the expression, to which the term belongs is bound to a concrete LP model with well-defined variables. These variables then do this mapping.
Field Summary | |
---|---|
double |
coeff
|
Object |
idx
|
String |
var
|
Constructor Summary | |
GTerm(String var, Object idx, double coeff)
Constructor of such values) |
Method Summary | |
---|---|
GTerm |
clone()
|
double |
doubleValue()
|
Object |
index()
|
static GTerm |
parseTerm(String term)
Parse a String that defines a term. |
GTerm |
scale(Number factor)
|
void |
setIndex(Object idx)
|
String |
toString()
|
Constructor Detail |
---|
public GTerm(String var, Object idx, double coeff)
Method Detail |
---|
public GTerm clone()
public double doubleValue()
public Object index()
public static GTerm parseTerm(String term)
public GTerm scale(Number factor)
public void setIndex(Object idx)
public String toString()