非数值

(类来自 pyomo.core.base.numvalue)

class pyomo.core.base.numvalue.NonNumericValue(value)[source]

基础类:PyomoObject

包含非数值的对象

Constructor Arguments:

value 初始值。

__init__(value)[source]

方法

__init__(value)

is_component_type()

如果此类是Pyomo组件,则返回True

is_expression_type([expression_system])

如果此数值是一个表达式,则返回 True

is_logical_type()

如果此类是Pyomo布尔对象,则返回True。

is_named_expression_type()

如果此数值是一个命名表达式,则返回 True

is_numeric_type()

如果此类是Pyomo数值对象,则返回True

is_parameter_type()

除非此类是参数对象,否则返回 False

is_reference()

如果此对象是引用,则返回 True。

is_variable_type()

除非此类是变量对象,否则返回 False

属性

value

成员文档

is_component_type()

如果此类是Pyomo组件,则返回True

is_expression_type(expression_system=None)

如果此数值是一个表达式,则返回 True

is_logical_type()

如果此类是Pyomo布尔对象,则返回True。

布尔对象包括常量、变量或逻辑表达式。

is_named_expression_type()

如果此数值是一个命名表达式,则返回 True

is_numeric_type()

如果此类是Pyomo数值对象,则返回True

is_parameter_type()

除非此类是参数对象,否则返回 False

is_reference()

如果此对象是引用,则返回 True。

is_variable_type()

除非此类是变量对象,否则返回 False