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

is_component_type()

Return True if this class is a Pyomo component

is_constant()

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.

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.

is_named_expression_type()

A boolean indicating whether this in a named expression.

is_numeric_type()

Return True if this class is a Pyomo numeric object

is_parameter_type()

A boolean indicating whether this expression is a parameter object.

is_potentially_variable()

Return True if variables can appear in this expression

is_reference()

Return True if this object is a reference.

is_relational()

DEPRECATED.

is_variable_type()

A boolean indicating whether this expression is a variable object.

nargs()

Length of self._nargs()

polynomial_degree()

The polynomial degree of the stored expression.

to_string([verbose, labeler, smap, ...])

Convert this expression into a string.

Attributes

PRECEDENCE

args

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_constant()[source]

Return True if this numeric value is a constant value

is_expression_type(expression_system=None)[source]

A boolean indicating whether this in an expression.

is_fixed()[source]

A boolean indicating whether this expression is fixed.

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_named_expression_type()[source]

A boolean indicating whether this in a named expression.

is_numeric_type()

Return True if this class is a Pyomo numeric object

is_parameter_type()[source]

A boolean indicating whether this expression is a parameter object.

is_potentially_variable()[source]

Return True if variables can appear in this expression

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)

is_variable_type()[source]

A boolean indicating whether this expression is a variable object.

nargs()[source]

Length of self._nargs()

polynomial_degree()[source]

The polynomial degree of the stored expression.

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.