PositiveInt

(function from pyomo.common.config)

pyomo.common.config.PositiveInt(val)[source]

Domain validation function admitting strictly positive integers

This domain will admit positive integers (n > 0), as well as any types that are convertible to positive integers.