ComponentDataSet

(class from pyomo.util.config_domains)

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

Bases: object

Domain validation class that accepts singleton or iterable arguments and compiles them into a ComponentSet, verifying that they are all ComponentDatas of type ‘ctype.’

Parameters:

ctype (Either a single component type or an iterable of component types)

Raises:

ValueError if all of the arguments are not of a type in 'ctype'

__init__(ctype)[source]

Methods

__init__(ctype)

domain_name()

Member Documentation