numeric_types

Module Attributes

nonpyomo_leaf_types

Python set used to identify numeric constants, boolean values, strings and instances of NonNumericValue, which is commonly used in code that walks Pyomo expression trees.

native_numeric_types

Python set used to identify numeric constants.

native_types

Python set used to identify numeric constants and related native types.

Functions

RegisterBooleanType(new_type)

DEPRECATED.

RegisterComplexType(new_type)

Register the specified type as an "complex type".

RegisterIntegerType(new_type)

Register the specified type as an "integer type".

RegisterLogicalType(new_type)

Register the specified type as a "logical type".

RegisterNumericType(new_type)

Register the specified type as a "numeric type".

check_if_logical_type(obj)

Test if the argument behaves like a logical type.

check_if_native_type(obj)

check_if_numeric_type(obj)

Test if the argument behaves like a numeric type.

value(obj[, exception])

A utility function that returns the value of a Pyomo object or expression.