net.sourceforge.combean.mathprog.grooml
Class GSumExpression

An expression which is given by - a set of index names (i.e. names of variables in the environment) with sets of values - an inner expression When the expression is evaluated, one term for each possible setting of the indices is generated.

Field Summary
 GExpression expr
           
 GIndexBinding idxBinding
           
 
Constructor Summary
GSumExpression(Object bindDef, GExpression expr)
            Constructor
 
Method Summary
Iterator evaluate(Object env)
          
 

Constructor Detail

GSumExpression

public GSumExpression(Object bindDef, GExpression expr)
Constructor
params:
idxMap maps index names (of type String) to sets
params:
expr the inner expression of the sum


Method Detail

evaluate

public Iterator evaluate(Object env)