IIdentityExpression
(class from pyomo.core.kernel.expression
)
- class pyomo.core.kernel.expression.IIdentityExpression[source]
Bases:
NumericValue
The interface for classes that simply wrap another expression and perform no additional operations.
Derived classes should declare an _expr attribute or override all implemented methods.
- __init__()
Methods
__init__
()arg
(i)clone
()create_node_with_local_data
(values)Construct an expression after constructing the contained expression.
getname
(*args, **kwargs)If this is a component, return the component's name on the owning block; otherwise return the value converted to a string
Return True if this class is a Pyomo component
Return True if this numeric value is a constant value
is_expression_type
([expression_system])A boolean indicating whether this in an expression.
is_fixed
()A boolean indicating whether this expression is fixed.
Return True if this numeric value is an indexed object
Return True if this class is a Pyomo Boolean object.
A boolean indicating whether this in a named expression.
Return True if this class is a Pyomo numeric object
A boolean indicating whether this expression is a parameter object.
Return True if variables can appear in this expression
Return True if this object is a reference.
DEPRECATED.
A boolean indicating whether this expression is a variable object.
nargs
()Length of self._nargs()
The polynomial degree of the stored expression.
to_string
([verbose, labeler, smap, ...])Convert this expression into a string.
Attributes
PRECEDENCE
A tuple of subexpressions involved in this expressions operation.
expr
local_name
name
Member Documentation
- create_node_with_local_data(values)[source]
Construct an expression after constructing the contained expression.
This class provides a consistent interface for constructing a node, which is used in tree visitor scripts.
- getname(*args, **kwargs)
If this is a component, return the component’s name on the owning block; otherwise return the value converted to a string
- is_component_type()
Return True if this class is a Pyomo component
- is_expression_type(expression_system=None)[source]
A boolean indicating whether this in an expression.
- is_indexed()
Return True if this numeric value is an indexed object
- is_logical_type()
Return True if this class is a Pyomo Boolean object.
Boolean objects include constants, variables, or logical expressions.
- is_numeric_type()
Return True if this class is a Pyomo numeric object
- is_reference()
Return True if this object is a reference.
- is_relational()
DEPRECATED.
Return True if this numeric value represents a relational expression.
Deprecated since version 6.4.3: is_relational() is deprecated in favor of is_expression_type(ExpressionType.RELATIONAL)
- to_string(verbose=None, labeler=None, smap=None, compute_values=False)[source]
Convert this expression into a string.
- property args
A tuple of subexpressions involved in this expressions operation.