is_variable_type

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

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

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