组件数据集

(类来自 pyomo.util.config_domains)

class pyomo.util.config_domains.ComponentDataSet(ctype)[source]

基础类:object

域验证类,接受单例或可迭代参数并将它们编译成ComponentSet,验证它们都是类型为‘ctype’的ComponentDatas。

Parameters:

ctype (单个组件类型组件类型的可迭代对象)

Raises:

如果所有参数的类型都不在'ctype'中,则抛出ValueError

__init__(ctype)[源代码]

方法

__init__(ctype)

domain_name()

成员文档