InputDataStandardizer
(class from pyomo.contrib.pyros.config)
- class pyomo.contrib.pyros.config.InputDataStandardizer(ctype, cdatatype, ctype_validator=None, cdatatype_validator=None, allow_repeats=False)[source]
Bases:
objectDomain validator for an object that is castable to a list of Pyomo component data objects.
- Parameters:
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.
- ctype_validator
- Type:
callable or None
- cdatatype_validator
- Type:
callable or None
- __init__(ctype, cdatatype, ctype_validator=None, cdatatype_validator=None, allow_repeats=False)[source]
Initialize self (see class docstring).
Methods
__init__(ctype, cdatatype[, ...])Initialize self (see class docstring).
Return str briefly describing domain encompassed by self.
Member Documentation