net.sourceforge.combean.mathprog.grooml
Class GExpressionVectorIterator
Iterate through an expression, returning each term as VectorValue.
In order to convert the symbolic indices in the expression into absolute,
indices in the LPModel (consisting of a variable identifier plus a simple
numeric index of the variable), the iterator holds a reference to a GLPModel,
retrieves the variables from there and lets the variables perform the
mapping from symbolic indices to simple numeric indices.
GExpressionVectorIterator
public GExpressionVectorIterator(GExpression expr, GLPModel model, Object env)
- Constructor
- params:
- expr the expression which shall be traversed
- params:
- model the model which maps the symbolic indices in the expression
to absolute numeric indices
hasNext
public boolean hasNext()
-
next
public VectorValue next()
-
remove
public void remove()
-