is_numeric_data

(函数来自 pyomo.core.base.numvalue)

pyomo.core.base.numvalue.is_numeric_data(obj)[source]

一个实用函数,返回一个布尔值,指示输入对象是否为数字且不可能是变量。