(class from pyomo.repn.ampl)
pyomo.repn.ampl
Bases: AMPLRepn
AMPLRepn
An AMPLRepn that uses the “debug” (annotated) NL format
This is identical to the AMPLRepn class, except it is built using the TextNLDebugTemplate formatting template. This format includes descriptions of the operators and variable / expression names in the NL text.
Methods
__init__(const, linear, nonlinear)
__init__
append(other)
append
Append a child result from acceptChildResult
compile_nonlinear_fragment()
compile_nonlinear_fragment
compile_repn([prefix, args, named_exprs])
compile_repn
duplicate()
duplicate
to_expr(var_map)
to_expr
Attributes
const
linear
mult
named_exprs
nl
nonlinear
Member Documentation
Notes
This method assumes that the operator was “+”. It is implemented so that we can directly use an AMPLRepn() as a data object in the expression walker (thereby avoiding the function call for a custom callback)