(class from pyomo.contrib.pyros.config)
pyomo.contrib.pyros.config
Bases: object
object
Domain validator for an object that is castable to a list of Pyomo component data objects.
ctype (type or tuple of type) – Valid Pyomo component type(s), such as Component, Var or Param.
cdatatype (type or tuple of type) – Valid Pyomo component data type(s), such as ComponentData, VarData, or ParamData.
ctype_validator (callable, optional) – Validator function for objects of type ctype.
cdatatype_validator (callable, optional) – Validator function for objects of type cdatatype.
allow_repeats (bool, optional) – True to allow duplicate component data object entries in final list to which argument is cast, False otherwise.
type or tuple of type
callable or None
bool
Initialize self (see class docstring).
Methods
__init__(ctype, cdatatype[, ...])
__init__
domain_name()
domain_name
Return str briefly describing domain encompassed by self.
Member Documentation