(class from pyomo.contrib.satsolver.satsolver)
pyomo.contrib.satsolver.satsolver
Bases: StreamBasedExpressionVisitor
StreamBasedExpressionVisitor
Creates an SMT expression from the corresponding Pyomo expression.
This class walks a pyomo expression tree and builds up the corresponding SMT string representation of an equivalent expression
Methods
__init__(varmap)
__init__
beforeChild(node, child, child_idx)
beforeChild
exitNode(node, data)
exitNode
finalizeResult(node_result)
finalizeResult
walk_expression(expr)
walk_expression
Walk an expression, calling registered callbacks.
walk_expression_nonrecursive(expr)
walk_expression_nonrecursive
Nonrecursively walk an expression, calling registered callbacks.
Attributes
client_methods
Member Documentation
This is the standard interface for running the visitor. It defaults to using an efficient recursive implementation of the visitor, falling back on walk_expression_nonrecursive() if the recursion stack gets too deep.
walk_expression_nonrecursive()
This routine is safer than the recursive walkers for deep (or unbalanced) trees. It is, however, slightly slower than the recursive implementations.