Register the specified type as an “integer type”.
A utility function for registering new types as “native integer
types”. Integer types can be leaf nodes in Pyomo numeric
expressions. The type should be compatible with float
(that is, store a scalar and be castable to a Python float).
Registering a type as an integer type implies
RegisterNumericType().
Note that integer types are NOT registered as logical / Boolean types.
- Parameters:
new_type (type) – The new integer type (e.g, numpy.int64)