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: object

Domain 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
Type:

type or tuple of type

cdatatype
Type:

type or tuple of type

ctype_validator
Type:

callable or None

cdatatype_validator
Type:

callable or None

allow_repeats
Type:

bool

__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).

domain_name()

Return str briefly describing domain encompassed by self.

Member Documentation

domain_name()[source]

Return str briefly describing domain encompassed by self.