SurrogateSpec¶
- class flexcore.config.schema.SurrogateSpec(*, surrogate_type: SurrogateType, config_version: Annotated[int, ~pydantic.types.Strict(strict=True), ~annotated_types.Ge(ge=1)] = 1, config: dict[str, ~typing.Any]=<factory>, parameters: dict[str, ~flexcore.config.schema.ParameterState]=<factory>, provenance: dict[str, ~typing.Any]=<factory>)¶
A fitted (or default) energy/IO relationship for a unit.
The same object is produced by a fit (flexparameterize), read back from a live surrogate block (flexops), and placed into a flowsheet spec as a surrogate element.
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].